mirror of
https://github.com/molstar/molstar.git
synced 2026-06-04 13:30:24 +08:00
* Moved MVS extension from mol-view-spec repo * Viewer supports URL params mvs-url, mvs-data, mvs-format * Tests * MVS sanity checks * MVS extension: drag-and-drop support * mvs-render try1 * Example CLI utility mvs-render * Example CLI utility mvs-validate * MVS extension: renaming * MVS extension: fixed FOV in mvs-render * Moved stuff to mol-util/array.ts * Moved stuff to mol-util/object.ts * MVS extension: renamed `additions` to `components` * MVS extension: trying plugin.managers.camera.focusSphere * MVS extension: refactor focus * MVS extension: fixed label color once again * MVS extension: camera position adjustment (compensate FOV differences) * Fixed formula for camera focus in orthographic mode * Moved Choice to mol-util/param-choice.ts * Moved stuff to mol-util/json.ts * Object.hasOwn polyfill * MVS extension: small refactor * Fixed bug in hashString
111 lines
2.1 KiB
Plaintext
111 lines
2.1 KiB
Plaintext
{
|
|
"version": 6,
|
|
"root": {
|
|
"kind": "root",
|
|
"children": [
|
|
{
|
|
"kind": "canvas",
|
|
"params": {
|
|
"background_color": "#ffffee"
|
|
}
|
|
},
|
|
{
|
|
"kind": "download",
|
|
"params": {
|
|
"url": "https://www.ebi.ac.uk/pdbe/entry-files/1cbs.bcif"
|
|
},
|
|
"children": [
|
|
{
|
|
"kind": "parse",
|
|
"params": {
|
|
"format": "bcif"
|
|
},
|
|
"children": [
|
|
{
|
|
"kind": "structure",
|
|
"params": {
|
|
"type": "model"
|
|
},
|
|
"children": [
|
|
{
|
|
"kind": "component",
|
|
"params": {
|
|
"selector": "polymer"
|
|
},
|
|
"children": [
|
|
{
|
|
"kind": "representation",
|
|
"params": {
|
|
"type": "cartoon"
|
|
},
|
|
"children": [
|
|
{
|
|
"kind": "color",
|
|
"params": {
|
|
"color": "green"
|
|
}
|
|
},
|
|
{
|
|
"kind": "color",
|
|
"params": {
|
|
"selector": {
|
|
"label_asym_id": "A",
|
|
"end_label_seq_id": 50
|
|
},
|
|
"color": "#6688ff"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"kind": "label",
|
|
"params": {
|
|
"text": "Protein"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"kind": "component",
|
|
"params": {
|
|
"selector": "ligand"
|
|
},
|
|
"children": [
|
|
{
|
|
"kind": "focus",
|
|
"params": {
|
|
"direction": [0.5, 0, -1],
|
|
"up": [0.5, 1, 0]
|
|
}
|
|
},
|
|
{
|
|
"kind": "representation",
|
|
"params": {
|
|
"type": "ball_and_stick"
|
|
},
|
|
"children": [
|
|
{
|
|
"kind": "color",
|
|
"params": {
|
|
"color": "#cc3399"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"kind": "label",
|
|
"params": {
|
|
"text": "Retinoic Acid"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
} |