molstar 3.0.0-dev.2 → 3.0.0-dev.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +187 -187
  3. package/build/viewer/embedded.html +43 -43
  4. package/build/viewer/index.html +94 -94
  5. package/build/viewer/molstar.js +1 -1
  6. package/lib/apps/docking-viewer/index.html +36 -36
  7. package/lib/apps/viewer/embedded.html +43 -43
  8. package/lib/apps/viewer/index.html +94 -94
  9. package/lib/commonjs/extensions/geo-export/obj-exporter.js +1 -1
  10. package/lib/commonjs/extensions/geo-export/usdz-exporter.js +1 -1
  11. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +3 -2
  12. package/lib/commonjs/mol-script/language/builder.d.ts +0 -1
  13. package/lib/examples/alpha-orbitals/index.html +60 -60
  14. package/lib/examples/basic-wrapper/index.html +136 -136
  15. package/lib/examples/lighting/index.html +86 -86
  16. package/lib/examples/proteopedia-wrapper/index.html +235 -235
  17. package/lib/extensions/geo-export/obj-exporter.js +1 -1
  18. package/lib/extensions/geo-export/usdz-exporter.js +1 -1
  19. package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +3 -2
  20. package/lib/mol-plugin/version.js +2 -2
  21. package/lib/mol-plugin-ui/skin/base/base.scss +32 -32
  22. package/lib/mol-plugin-ui/skin/base/components/controls-base.scss +333 -333
  23. package/lib/mol-plugin-ui/skin/base/components/controls.scss +418 -418
  24. package/lib/mol-plugin-ui/skin/base/components/help.scss +27 -27
  25. package/lib/mol-plugin-ui/skin/base/components/line-graph.scss +67 -67
  26. package/lib/mol-plugin-ui/skin/base/components/log.scss +100 -100
  27. package/lib/mol-plugin-ui/skin/base/components/misc.scss +616 -616
  28. package/lib/mol-plugin-ui/skin/base/components/sequence.scss +125 -125
  29. package/lib/mol-plugin-ui/skin/base/components/slider.scss +165 -165
  30. package/lib/mol-plugin-ui/skin/base/components/tasks.scss +99 -99
  31. package/lib/mol-plugin-ui/skin/base/components/toast.scss +83 -83
  32. package/lib/mol-plugin-ui/skin/base/components/transformer.scss +163 -163
  33. package/lib/mol-plugin-ui/skin/base/components/viewport.scss +127 -127
  34. package/lib/mol-plugin-ui/skin/base/layout/common.scss +71 -71
  35. package/lib/mol-plugin-ui/skin/base/layout/controls-landscape.scss +89 -89
  36. package/lib/mol-plugin-ui/skin/base/layout/controls-outside.scss +98 -98
  37. package/lib/mol-plugin-ui/skin/base/layout/controls-portrait.scss +108 -108
  38. package/lib/mol-plugin-ui/skin/base/layout.scss +40 -40
  39. package/lib/mol-plugin-ui/skin/base/logo.scss +12 -12
  40. package/lib/mol-plugin-ui/skin/base/normalize.scss +209 -209
  41. package/lib/mol-plugin-ui/skin/base/ui.scss +40 -40
  42. package/lib/mol-plugin-ui/skin/base/variables.scss +85 -85
  43. package/lib/mol-plugin-ui/skin/blue.scss +1 -1
  44. package/lib/mol-plugin-ui/skin/colors/blue.scss +23 -23
  45. package/lib/mol-plugin-ui/skin/colors/dark.scss +23 -23
  46. package/lib/mol-plugin-ui/skin/colors/light.scss +29 -29
  47. package/lib/mol-plugin-ui/skin/dark.scss +1 -1
  48. package/lib/mol-plugin-ui/skin/light.scss +1 -1
  49. package/lib/mol-script/language/builder.d.ts +0 -1
  50. package/package.json +160 -160
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License
2
-
3
- Copyright (c) 2017 - now, Mol* contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1
+ The MIT License
2
+
3
+ Copyright (c) 2017 - now, Mol* contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
21
  THE SOFTWARE.
package/README.md CHANGED
@@ -1,187 +1,187 @@
1
- [![License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](./LICENSE)
2
- [![npm version](https://badge.fury.io/js/molstar.svg)](https://www.npmjs.com/package/molstar)
3
- [![Build Status](https://travis-ci.org/molstar/molstar.svg?branch=master)](https://travis-ci.org/molstar/molstar)
4
- [![Gitter](https://badges.gitter.im/molstar/Lobby.svg)](https://gitter.im/molstar/Lobby)
5
-
6
- # Mol*
7
-
8
- The goal of **Mol\*** (*/'mol-star/*) is to provide a technology stack that serves as a basis for the next-generation data delivery and analysis tools for (not only) macromolecular structure data. Mol* development was jointly initiated by PDBe and RCSB PDB to combine and build on the strengths of [LiteMol](https://litemol.org) (developed by PDBe) and [NGL](https://nglviewer.org) (developed by RCSB PDB) viewers.
9
-
10
- When using Mol*, please cite:
11
-
12
- David Sehnal, Sebastian Bittrich, Mandar Deshpande, Radka Svobodová, Karel Berka, Václav Bazgier, Sameer Velankar, Stephen K Burley, Jaroslav Koča, Alexander S Rose: [Mol* Viewer: modern web app for 3D visualization and analysis of large biomolecular structures](https://doi.org/10.1093/nar/gkab314), *Nucleic Acids Research*, 2021; https://doi.org/10.1093/nar/gkab314.
13
-
14
- ## Project Structure Overview
15
-
16
- The core of Mol* consists of these modules (see under `src/`):
17
-
18
- - `mol-task` Computation abstraction with progress tracking and cancellation support.
19
- - `mol-data` Collections (integer-based sets, interface to columns/tables, etc.)
20
- - `mol-math` Math related (loosely) algorithms and data structures.
21
- - `mol-io` Parsing library. Each format is parsed into an interface that corresponds to the data stored by it. Support for common coordinate, experimental/map, and annotation data formats.
22
- - `mol-model` Data structures and algorithms (such as querying) for representing molecular data (including coordinate, experimental/map, and annotation data).
23
- - `mol-model-formats` Data format parsers for `mol-model`.
24
- - `mol-model-props` Common "custom properties".
25
- - `mol-script` A scripting language for creating representations/scenes and querying (includes the [MolQL query language](https://molql.github.io)).
26
- - `mol-geo` Creating (molecular) geometries.
27
- - `mol-theme` Theming for structure, volume and shape representations.
28
- - `mol-repr` Molecular representations for structures, volumes and shapes.
29
- - `mol-gl` A wrapper around WebGL.
30
- - `mol-canvas3d` A low-level 3d view component. Uses `mol-geo` to generate geometries.
31
- - `mol-state` State representation tree with state saving and automatic updates.
32
- - `mol-plugin` Allow to define modular Mol* plugin instances utilizing `mol-state` and `mol-canvas3d`.
33
- - `mol-plugin-state` State transformations, builders, and managers.
34
- - `mol-plugin-ui` React-based user interface for the Mol* plugin. Some components of the UI are usable outside the main plugin and can be integrated into 3rd party solutions.
35
- - `mol-util` Useful things that do not fit elsewhere.
36
-
37
- Moreover, the project contains the implementation of `servers`, including
38
-
39
- - `servers/model` A tool for accessing coordinate and annotation data of molecular structures.
40
- - `servers/volume` A tool for accessing volumetric experimental data related to molecular structures.
41
- - `servers/plugin-state` A basic server to store Mol* Plugin states.
42
-
43
- The project also contains performance tests (`perf-tests`), `examples`, and `cli` apps (CIF to BinaryCIF converter and JSON domain annotation to CIF converter).
44
-
45
- ## Previous Work
46
- This project builds on experience from previous solutions:
47
- - [LiteMol Suite](https://www.litemol.org)
48
- - [WebChemistry](https://webchem.ncbr.muni.cz)
49
- - [NGL Viewer](http://nglviewer.org)
50
- - [MMTF](http://mmtf.rcsb.org)
51
- - [MolQL](http://molql.org)
52
- - [PDB Component Library](https://www.ebi.ac.uk/pdbe/pdb-component-library/)
53
- - And many others (list will be continuously expanded).
54
-
55
- ## Building & Running
56
-
57
- ### Build:
58
- npm install
59
- npm run build
60
-
61
- ### Build automatically on file save:
62
- npm run watch
63
-
64
- If working on just the viewer, ``npm run watch-viewer`` will provide shorter compile times.
65
-
66
- ### Build with debug mode enabled:
67
- DEBUG=molstar npm run watch
68
-
69
- Debug/production mode in browsers can be turned on/off during runtime by calling ``setMolStarDebugMode(true/false, true/false)`` from the dev console.
70
-
71
- ### Cleaning and forcing a full rebuild
72
- npm run clean
73
-
74
- Wipes the `build` and `lib` directories and `.tsbuildinfo` files.
75
-
76
- npm run rebuild
77
-
78
- Runs the cleanup script prior to building the project, forcing a full rebuild of the project.
79
-
80
- Use these commands to resolve occassional build failures which may arise after some dependency updates. Once done, `npm run build` should work again. Note that full rebuilds take more time to complete.
81
-
82
- ### Build for production:
83
- NODE_ENV=production npm run build
84
-
85
- **Run**
86
-
87
- If not installed previously:
88
-
89
- npm install -g http-server
90
-
91
- ...or a similar solution.
92
-
93
- From the root of the project:
94
-
95
- http-server -p PORT-NUMBER
96
-
97
- and navigate to `build/viewer`
98
-
99
-
100
- ### Code generation
101
- **CIF schemas**
102
-
103
- node ./lib/commonjs/cli/cifschema -mip ../../../../mol-data -o src/mol-io/reader/cif/schema/mmcif.ts -p mmCIF
104
- node ./lib/commonjs/cli/cifschema -mip ../../../../mol-data -o src/mol-io/reader/cif/schema/ccd.ts -p CCD
105
- node ./lib/commonjs/cli/cifschema -mip ../../../../mol-data -o src/mol-io/reader/cif/schema/bird.ts -p BIRD
106
- node ./lib/commonjs/cli/cifschema -mip ../../../../mol-data -o src/mol-io/reader/cif/schema/cif-core.ts -p CifCore -aa
107
-
108
- **Lipid names**
109
-
110
- node lib/commonjs/cli/lipid-params -o src/mol-model/structure/model/types/lipids.ts
111
-
112
- **Ion names**
113
-
114
- node --max-old-space-size=4096 lib/commonjs/cli/chem-comp-dict/create-ions.js src/mol-model/structure/model/types/ions.ts
115
-
116
-
117
- **GraphQL schemas**
118
-
119
- node node_modules//@graphql-codegen/cli/bin -c src/extensions/rcsb/graphql/codegen.yml
120
-
121
- ### Other scripts
122
- **Create chem comp bond table**
123
-
124
- node --max-old-space-size=4096 lib/commonjs/cli/chem-comp-dict/create-table.js build/data/ccb.bcif -b
125
-
126
- **Test model server**
127
-
128
- export NODE_PATH="lib"; node build/src/servers/model/test.js
129
-
130
- **State Transformer Docs**
131
-
132
- export NODE_PATH="lib"; node build/state-docs
133
-
134
- **Convert any CIF to BinaryCIF**
135
-
136
- node lib/commonjs/servers/model/preprocess -i file.cif -ob file.bcif
137
-
138
- To see all available commands, use ``node lib/commonjs/servers/model/preprocess -h``.
139
-
140
- Or
141
-
142
- node lib/commonjs/cli/cif2bcif
143
-
144
- ## Development
145
-
146
- ### Installation
147
-
148
- If node complains about a missing acorn peer dependency, run the following commands
149
-
150
- npm update acorn --depth 20
151
- npm dedupe
152
-
153
- ### Editor
154
-
155
- To get syntax highlighting for shader and graphql files add the following to Visual Code's settings files and make sure relevant extensions are installed in the editor.
156
-
157
- "files.associations": {
158
- "*.glsl.ts": "glsl",
159
- "*.frag.ts": "glsl",
160
- "*.vert.ts": "glsl",
161
- "*.gql.ts": "graphql"
162
- },
163
-
164
- ## Publish
165
-
166
- ### Prerelease
167
- npm version prerelease # assumes the current version ends with '-dev.X'
168
- npm publish --tag next
169
-
170
- ### Release
171
- npm version 0.X.0 # provide valid semver string
172
- npm publish
173
-
174
- ## Deploy
175
- npm run test
176
- npm run build
177
- node ./scripts/deploy.js # currently updates the viewer on molstar.org/viewer
178
-
179
- ## Contributing
180
- Just open an issue or make a pull request. All contributions are welcome.
181
-
182
- ## Funding
183
- Funding sources include but are not limited to:
184
- * [RCSB PDB](https://www.rcsb.org) funding by a grant [DBI-1338415; PI: SK Burley] from the NSF, the NIH, and the US DoE
185
- * [PDBe, EMBL-EBI](https://pdbe.org)
186
- * [CEITEC](https://www.ceitec.eu/)
187
- * [EntosAI](https://www.entos.ai)
1
+ [![License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](./LICENSE)
2
+ [![npm version](https://badge.fury.io/js/molstar.svg)](https://www.npmjs.com/package/molstar)
3
+ [![Build Status](https://travis-ci.org/molstar/molstar.svg?branch=master)](https://travis-ci.org/molstar/molstar)
4
+ [![Gitter](https://badges.gitter.im/molstar/Lobby.svg)](https://gitter.im/molstar/Lobby)
5
+
6
+ # Mol*
7
+
8
+ The goal of **Mol\*** (*/'mol-star/*) is to provide a technology stack that serves as a basis for the next-generation data delivery and analysis tools for (not only) macromolecular structure data. Mol* development was jointly initiated by PDBe and RCSB PDB to combine and build on the strengths of [LiteMol](https://litemol.org) (developed by PDBe) and [NGL](https://nglviewer.org) (developed by RCSB PDB) viewers.
9
+
10
+ When using Mol*, please cite:
11
+
12
+ David Sehnal, Sebastian Bittrich, Mandar Deshpande, Radka Svobodová, Karel Berka, Václav Bazgier, Sameer Velankar, Stephen K Burley, Jaroslav Koča, Alexander S Rose: [Mol* Viewer: modern web app for 3D visualization and analysis of large biomolecular structures](https://doi.org/10.1093/nar/gkab314), *Nucleic Acids Research*, 2021; https://doi.org/10.1093/nar/gkab314.
13
+
14
+ ## Project Structure Overview
15
+
16
+ The core of Mol* consists of these modules (see under `src/`):
17
+
18
+ - `mol-task` Computation abstraction with progress tracking and cancellation support.
19
+ - `mol-data` Collections (integer-based sets, interface to columns/tables, etc.)
20
+ - `mol-math` Math related (loosely) algorithms and data structures.
21
+ - `mol-io` Parsing library. Each format is parsed into an interface that corresponds to the data stored by it. Support for common coordinate, experimental/map, and annotation data formats.
22
+ - `mol-model` Data structures and algorithms (such as querying) for representing molecular data (including coordinate, experimental/map, and annotation data).
23
+ - `mol-model-formats` Data format parsers for `mol-model`.
24
+ - `mol-model-props` Common "custom properties".
25
+ - `mol-script` A scripting language for creating representations/scenes and querying (includes the [MolQL query language](https://molql.github.io)).
26
+ - `mol-geo` Creating (molecular) geometries.
27
+ - `mol-theme` Theming for structure, volume and shape representations.
28
+ - `mol-repr` Molecular representations for structures, volumes and shapes.
29
+ - `mol-gl` A wrapper around WebGL.
30
+ - `mol-canvas3d` A low-level 3d view component. Uses `mol-geo` to generate geometries.
31
+ - `mol-state` State representation tree with state saving and automatic updates.
32
+ - `mol-plugin` Allow to define modular Mol* plugin instances utilizing `mol-state` and `mol-canvas3d`.
33
+ - `mol-plugin-state` State transformations, builders, and managers.
34
+ - `mol-plugin-ui` React-based user interface for the Mol* plugin. Some components of the UI are usable outside the main plugin and can be integrated into 3rd party solutions.
35
+ - `mol-util` Useful things that do not fit elsewhere.
36
+
37
+ Moreover, the project contains the implementation of `servers`, including
38
+
39
+ - `servers/model` A tool for accessing coordinate and annotation data of molecular structures.
40
+ - `servers/volume` A tool for accessing volumetric experimental data related to molecular structures.
41
+ - `servers/plugin-state` A basic server to store Mol* Plugin states.
42
+
43
+ The project also contains performance tests (`perf-tests`), `examples`, and `cli` apps (CIF to BinaryCIF converter and JSON domain annotation to CIF converter).
44
+
45
+ ## Previous Work
46
+ This project builds on experience from previous solutions:
47
+ - [LiteMol Suite](https://www.litemol.org)
48
+ - [WebChemistry](https://webchem.ncbr.muni.cz)
49
+ - [NGL Viewer](http://nglviewer.org)
50
+ - [MMTF](http://mmtf.rcsb.org)
51
+ - [MolQL](http://molql.org)
52
+ - [PDB Component Library](https://www.ebi.ac.uk/pdbe/pdb-component-library/)
53
+ - And many others (list will be continuously expanded).
54
+
55
+ ## Building & Running
56
+
57
+ ### Build:
58
+ npm install
59
+ npm run build
60
+
61
+ ### Build automatically on file save:
62
+ npm run watch
63
+
64
+ If working on just the viewer, ``npm run watch-viewer`` will provide shorter compile times.
65
+
66
+ ### Build with debug mode enabled:
67
+ DEBUG=molstar npm run watch
68
+
69
+ Debug/production mode in browsers can be turned on/off during runtime by calling ``setMolStarDebugMode(true/false, true/false)`` from the dev console.
70
+
71
+ ### Cleaning and forcing a full rebuild
72
+ npm run clean
73
+
74
+ Wipes the `build` and `lib` directories and `.tsbuildinfo` files.
75
+
76
+ npm run rebuild
77
+
78
+ Runs the cleanup script prior to building the project, forcing a full rebuild of the project.
79
+
80
+ Use these commands to resolve occassional build failures which may arise after some dependency updates. Once done, `npm run build` should work again. Note that full rebuilds take more time to complete.
81
+
82
+ ### Build for production:
83
+ NODE_ENV=production npm run build
84
+
85
+ **Run**
86
+
87
+ If not installed previously:
88
+
89
+ npm install -g http-server
90
+
91
+ ...or a similar solution.
92
+
93
+ From the root of the project:
94
+
95
+ http-server -p PORT-NUMBER
96
+
97
+ and navigate to `build/viewer`
98
+
99
+
100
+ ### Code generation
101
+ **CIF schemas**
102
+
103
+ node ./lib/commonjs/cli/cifschema -mip ../../../../mol-data -o src/mol-io/reader/cif/schema/mmcif.ts -p mmCIF
104
+ node ./lib/commonjs/cli/cifschema -mip ../../../../mol-data -o src/mol-io/reader/cif/schema/ccd.ts -p CCD
105
+ node ./lib/commonjs/cli/cifschema -mip ../../../../mol-data -o src/mol-io/reader/cif/schema/bird.ts -p BIRD
106
+ node ./lib/commonjs/cli/cifschema -mip ../../../../mol-data -o src/mol-io/reader/cif/schema/cif-core.ts -p CifCore -aa
107
+
108
+ **Lipid names**
109
+
110
+ node lib/commonjs/cli/lipid-params -o src/mol-model/structure/model/types/lipids.ts
111
+
112
+ **Ion names**
113
+
114
+ node --max-old-space-size=4096 lib/commonjs/cli/chem-comp-dict/create-ions.js src/mol-model/structure/model/types/ions.ts
115
+
116
+
117
+ **GraphQL schemas**
118
+
119
+ node node_modules//@graphql-codegen/cli/bin -c src/extensions/rcsb/graphql/codegen.yml
120
+
121
+ ### Other scripts
122
+ **Create chem comp bond table**
123
+
124
+ node --max-old-space-size=4096 lib/commonjs/cli/chem-comp-dict/create-table.js build/data/ccb.bcif -b
125
+
126
+ **Test model server**
127
+
128
+ export NODE_PATH="lib"; node build/src/servers/model/test.js
129
+
130
+ **State Transformer Docs**
131
+
132
+ export NODE_PATH="lib"; node build/state-docs
133
+
134
+ **Convert any CIF to BinaryCIF**
135
+
136
+ node lib/commonjs/servers/model/preprocess -i file.cif -ob file.bcif
137
+
138
+ To see all available commands, use ``node lib/commonjs/servers/model/preprocess -h``.
139
+
140
+ Or
141
+
142
+ node lib/commonjs/cli/cif2bcif
143
+
144
+ ## Development
145
+
146
+ ### Installation
147
+
148
+ If node complains about a missing acorn peer dependency, run the following commands
149
+
150
+ npm update acorn --depth 20
151
+ npm dedupe
152
+
153
+ ### Editor
154
+
155
+ To get syntax highlighting for shader and graphql files add the following to Visual Code's settings files and make sure relevant extensions are installed in the editor.
156
+
157
+ "files.associations": {
158
+ "*.glsl.ts": "glsl",
159
+ "*.frag.ts": "glsl",
160
+ "*.vert.ts": "glsl",
161
+ "*.gql.ts": "graphql"
162
+ },
163
+
164
+ ## Publish
165
+
166
+ ### Prerelease
167
+ npm version prerelease # assumes the current version ends with '-dev.X'
168
+ npm publish --tag next
169
+
170
+ ### Release
171
+ npm version 0.X.0 # provide valid semver string
172
+ npm publish
173
+
174
+ ## Deploy
175
+ npm run test
176
+ npm run build
177
+ node ./scripts/deploy.js # currently updates the viewer on molstar.org/viewer
178
+
179
+ ## Contributing
180
+ Just open an issue or make a pull request. All contributions are welcome.
181
+
182
+ ## Funding
183
+ Funding sources include but are not limited to:
184
+ * [RCSB PDB](https://www.rcsb.org) funding by a grant [DBI-1338415; PI: SK Burley] from the NSF, the NIH, and the US DoE
185
+ * [PDBe, EMBL-EBI](https://pdbe.org)
186
+ * [CEITEC](https://www.ceitec.eu/)
187
+ * [EntosAI](https://www.entos.ai)
@@ -1,44 +1,44 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
6
- <link rel="icon" href="./favicon.ico" type="image/x-icon">
7
- <title>Embedded Mol* Viewer</title>
8
- <style>
9
- #app {
10
- position: absolute;
11
- left: 100px;
12
- top: 100px;
13
- width: 800px;
14
- height: 600px;
15
- }
16
- </style>
17
- <link rel="stylesheet" type="text/css" href="molstar.css" />
18
- </head>
19
- <body>
20
- <div id="app"></div>
21
- <script type="text/javascript" src="./molstar.js"></script>
22
- <script type="text/javascript">
23
- var viewer = new molstar.Viewer('app', {
24
- layoutIsExpanded: true,
25
- layoutShowControls: false,
26
- layoutShowRemoteState: false,
27
- layoutShowSequence: true,
28
- layoutShowLog: false,
29
- layoutShowLeftPanel: true,
30
-
31
- viewportShowExpand: true,
32
- viewportShowSelectionMode: false,
33
- viewportShowAnimation: false,
34
-
35
- pdbProvider: 'rcsb',
36
- emdbProvider: 'rcsb',
37
- });
38
- viewer.loadPdb('7bv2');
39
- viewer.loadEmdb('EMD-30210', { detail: 6 });
40
-
41
- // viewer.loadAllModelsOrAssemblyFromUrl('https://cs.litemol.org/5ire/full', 'mmcif', false, { representationParams: { theme: { globalName: 'operator-name' } } })
42
- </script>
43
- </body>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
6
+ <link rel="icon" href="./favicon.ico" type="image/x-icon">
7
+ <title>Embedded Mol* Viewer</title>
8
+ <style>
9
+ #app {
10
+ position: absolute;
11
+ left: 100px;
12
+ top: 100px;
13
+ width: 800px;
14
+ height: 600px;
15
+ }
16
+ </style>
17
+ <link rel="stylesheet" type="text/css" href="molstar.css" />
18
+ </head>
19
+ <body>
20
+ <div id="app"></div>
21
+ <script type="text/javascript" src="./molstar.js"></script>
22
+ <script type="text/javascript">
23
+ var viewer = new molstar.Viewer('app', {
24
+ layoutIsExpanded: true,
25
+ layoutShowControls: false,
26
+ layoutShowRemoteState: false,
27
+ layoutShowSequence: true,
28
+ layoutShowLog: false,
29
+ layoutShowLeftPanel: true,
30
+
31
+ viewportShowExpand: true,
32
+ viewportShowSelectionMode: false,
33
+ viewportShowAnimation: false,
34
+
35
+ pdbProvider: 'rcsb',
36
+ emdbProvider: 'rcsb',
37
+ });
38
+ viewer.loadPdb('7bv2');
39
+ viewer.loadEmdb('EMD-30210', { detail: 6 });
40
+
41
+ // viewer.loadAllModelsOrAssemblyFromUrl('https://cs.litemol.org/5ire/full', 'mmcif', false, { representationParams: { theme: { globalName: 'operator-name' } } })
42
+ </script>
43
+ </body>
44
44
  </html>