molstar 3.0.0 → 3.2.0

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 (256) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +194 -194
  3. package/build/viewer/embedded.html +43 -43
  4. package/build/viewer/index.html +106 -106
  5. package/build/viewer/molstar.js +1 -1
  6. package/lib/apps/docking-viewer/index.html +36 -36
  7. package/lib/apps/docking-viewer/viewport.d.ts +2 -0
  8. package/lib/apps/viewer/app.d.ts +1 -0
  9. package/lib/apps/viewer/app.js +6 -3
  10. package/lib/apps/viewer/embedded.html +43 -43
  11. package/lib/apps/viewer/index.html +106 -106
  12. package/lib/commonjs/apps/docking-viewer/viewport.d.ts +2 -0
  13. package/lib/commonjs/apps/viewer/app.d.ts +1 -0
  14. package/lib/commonjs/apps/viewer/app.js +8 -5
  15. package/lib/commonjs/extensions/anvil/behavior.d.ts +1 -0
  16. package/lib/commonjs/extensions/dnatco/confal-pyramids/behavior.d.ts +1 -0
  17. package/lib/commonjs/extensions/model-archive/quality-assessment/behavior.d.ts +2 -0
  18. package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +4 -2
  19. package/lib/commonjs/extensions/rcsb/graphql/types.d.ts +11 -11
  20. package/lib/commonjs/extensions/rcsb/validation-report/behavior.d.ts +3 -0
  21. package/lib/commonjs/mol-canvas3d/helper/interaction-events.js +1 -1
  22. package/lib/commonjs/mol-canvas3d/passes/draw.d.ts +1 -1
  23. package/lib/commonjs/mol-canvas3d/passes/draw.js +3 -3
  24. package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +2 -2
  25. package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +0 -1
  26. package/lib/commonjs/mol-geo/geometry/points/points.d.ts +1 -1
  27. package/lib/commonjs/mol-gl/renderer.d.ts +2 -2
  28. package/lib/commonjs/mol-gl/renderer.js +3 -3
  29. package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +2 -2
  30. package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.js +2 -2
  31. package/lib/commonjs/mol-gl/shader/cylinders.frag.d.ts +2 -2
  32. package/lib/commonjs/mol-gl/shader/cylinders.frag.js +2 -2
  33. package/lib/commonjs/mol-gl/shader/direct-volume.frag.d.ts +2 -2
  34. package/lib/commonjs/mol-gl/shader/direct-volume.frag.js +2 -2
  35. package/lib/commonjs/mol-gl/shader/mesh.frag.d.ts +2 -2
  36. package/lib/commonjs/mol-gl/shader/mesh.frag.js +2 -2
  37. package/lib/commonjs/mol-gl/shader/spheres.frag.d.ts +2 -2
  38. package/lib/commonjs/mol-gl/shader/spheres.frag.js +2 -2
  39. package/lib/commonjs/mol-io/reader/cif/schema/bird.d.ts +1 -1
  40. package/lib/commonjs/mol-io/reader/cif/schema/bird.js +1 -1
  41. package/lib/commonjs/mol-io/reader/cif/schema/ccd.d.ts +1 -1
  42. package/lib/commonjs/mol-io/reader/cif/schema/ccd.js +1 -1
  43. package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +24 -2
  44. package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +23 -1
  45. package/lib/commonjs/mol-math/geometry/primitives/sphere3d.d.ts +1 -1
  46. package/lib/commonjs/mol-math/geometry/primitives/sphere3d.js +17 -4
  47. package/lib/commonjs/mol-model/structure/export/categories/atom_site.js +68 -1
  48. package/lib/commonjs/mol-model/structure/export/categories/secondary-structure.js +8 -8
  49. package/lib/commonjs/mol-model/structure/model/properties/coarse/hierarchy.d.ts +1 -1
  50. package/lib/commonjs/mol-model/structure/model/properties/coarse/hierarchy.js +24 -2
  51. package/lib/commonjs/mol-model/structure/structure/element/loci.d.ts +1 -1
  52. package/lib/commonjs/mol-model/structure/structure/element/loci.js +4 -2
  53. package/lib/commonjs/mol-model/structure/structure/util/superposition-sifts-mapping.d.ts +21 -0
  54. package/lib/commonjs/mol-model/structure/structure/util/{superposition-db-mapping.js → superposition-sifts-mapping.js} +40 -20
  55. package/lib/commonjs/mol-model/volume/volume.d.ts +7 -0
  56. package/lib/commonjs/mol-model/volume/volume.js +18 -0
  57. package/lib/commonjs/mol-model-formats/structure/basic/schema.d.ts +5 -0
  58. package/lib/commonjs/mol-model-formats/structure/common/property.d.ts +5 -2
  59. package/lib/commonjs/mol-model-formats/structure/common/property.js +20 -8
  60. package/lib/commonjs/mol-model-formats/structure/property/bonds/index-pair.d.ts +1 -0
  61. package/lib/commonjs/mol-model-formats/structure/property/bonds/index-pair.js +2 -1
  62. package/lib/commonjs/mol-model-props/computed/interactions/common.d.ts +1 -1
  63. package/lib/commonjs/mol-model-props/computed/interactions/common.js +16 -24
  64. package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -1
  65. package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.js +44 -18
  66. package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.js +14 -4
  67. package/lib/commonjs/mol-model-props/sequence/{best-database-mapping.d.ts → sifts-mapping.d.ts} +7 -5
  68. package/lib/commonjs/mol-model-props/sequence/{best-database-mapping.js → sifts-mapping.js} +29 -26
  69. package/lib/{mol-model-props/sequence/themes/best-database-mapping.d.ts → commonjs/mol-model-props/sequence/themes/sifts-mapping.d.ts} +5 -5
  70. package/lib/commonjs/mol-model-props/sequence/themes/{best-database-mapping.js → sifts-mapping.js} +22 -22
  71. package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/sequence/{best-database-mapping.d.ts → sifts-mapping.d.ts} +1 -1
  72. package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/sequence/{best-database-mapping.js → sifts-mapping.js} +11 -11
  73. package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props.d.ts +1 -1
  74. package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props.js +2 -2
  75. package/lib/commonjs/mol-plugin/behavior/dynamic/representation.d.ts +1 -1
  76. package/lib/commonjs/mol-plugin/behavior/dynamic/representation.js +11 -6
  77. package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +2 -1
  78. package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js +16 -7
  79. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
  80. package/lib/commonjs/mol-plugin/behavior/static/representation.js +1 -1
  81. package/lib/commonjs/mol-plugin-state/actions/volume.d.ts +1 -1
  82. package/lib/commonjs/mol-plugin-state/actions/volume.js +3 -3
  83. package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +2 -0
  84. package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy.d.ts +1 -0
  85. package/lib/commonjs/mol-plugin-state/builder/structure/representation-preset.d.ts +155 -125
  86. package/lib/commonjs/mol-plugin-state/builder/structure/representation-preset.js +5 -31
  87. package/lib/commonjs/mol-plugin-state/builder/structure/representation.d.ts +2 -1
  88. package/lib/commonjs/mol-plugin-state/formats/volume.js +1 -11
  89. package/lib/commonjs/mol-plugin-state/manager/structure/component.d.ts +2 -1
  90. package/lib/commonjs/mol-plugin-state/manager/structure/component.js +11 -8
  91. package/lib/commonjs/mol-plugin-ui/controls/icons.d.ts +2 -1
  92. package/lib/commonjs/mol-plugin-ui/controls/icons.js +8 -5
  93. package/lib/commonjs/mol-plugin-ui/controls.d.ts +1 -1
  94. package/lib/commonjs/mol-plugin-ui/controls.js +2 -1
  95. package/lib/commonjs/mol-plugin-ui/structure/quick-styles.d.ts +25 -0
  96. package/lib/commonjs/mol-plugin-ui/structure/quick-styles.js +131 -0
  97. package/lib/commonjs/mol-plugin-ui/structure/superposition.d.ts +4 -1
  98. package/lib/commonjs/mol-plugin-ui/structure/superposition.js +66 -30
  99. package/lib/commonjs/mol-plugin-ui/structure/volume.js +4 -4
  100. package/lib/commonjs/mol-repr/shape/loci/common.d.ts +1 -1
  101. package/lib/commonjs/mol-repr/shape/loci/common.js +3 -3
  102. package/lib/commonjs/mol-repr/structure/registry.d.ts +1 -1
  103. package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +4 -4
  104. package/lib/commonjs/mol-repr/structure/representation/cartoon.js +3 -3
  105. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -1
  106. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.js +2 -2
  107. package/lib/commonjs/mol-repr/structure/visual/util/bond.d.ts +1 -1
  108. package/lib/commonjs/mol-repr/structure/visual/util/bond.js +5 -4
  109. package/lib/commonjs/mol-script/language/builder.d.ts +1 -0
  110. package/lib/commonjs/mol-state/transform.js +12 -2
  111. package/lib/commonjs/mol-theme/color/element-symbol.d.ts +46 -2
  112. package/lib/commonjs/mol-theme/color/element-symbol.js +15 -10
  113. package/lib/commonjs/mol-theme/color/entity-id.js +14 -11
  114. package/lib/commonjs/mol-theme/color/illustrative.d.ts +32 -32
  115. package/lib/commonjs/mol-theme/color.d.ts +39 -17
  116. package/lib/commonjs/servers/volume/config.js +3 -3
  117. package/lib/commonjs/servers/volume/query.js +1 -1
  118. package/lib/examples/alpha-orbitals/index.html +61 -61
  119. package/lib/examples/basic-wrapper/index.html +137 -137
  120. package/lib/examples/lighting/index.html +88 -88
  121. package/lib/examples/proteopedia-wrapper/index.html +236 -236
  122. package/lib/extensions/anvil/behavior.d.ts +1 -0
  123. package/lib/extensions/dnatco/confal-pyramids/behavior.d.ts +1 -0
  124. package/lib/extensions/model-archive/quality-assessment/behavior.d.ts +2 -0
  125. package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +4 -2
  126. package/lib/extensions/rcsb/graphql/types.d.ts +11 -11
  127. package/lib/extensions/rcsb/validation-report/behavior.d.ts +3 -0
  128. package/lib/mol-canvas3d/helper/interaction-events.js +1 -1
  129. package/lib/mol-canvas3d/passes/draw.d.ts +1 -1
  130. package/lib/mol-canvas3d/passes/draw.js +3 -3
  131. package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +2 -2
  132. package/lib/mol-geo/geometry/lines/lines.d.ts +0 -1
  133. package/lib/mol-geo/geometry/points/points.d.ts +1 -1
  134. package/lib/mol-gl/renderer.d.ts +2 -2
  135. package/lib/mol-gl/renderer.js +3 -3
  136. package/lib/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +2 -2
  137. package/lib/mol-gl/shader/chunks/apply-light-color.glsl.js +2 -2
  138. package/lib/mol-gl/shader/cylinders.frag.d.ts +2 -2
  139. package/lib/mol-gl/shader/cylinders.frag.js +2 -2
  140. package/lib/mol-gl/shader/direct-volume.frag.d.ts +2 -2
  141. package/lib/mol-gl/shader/direct-volume.frag.js +2 -2
  142. package/lib/mol-gl/shader/mesh.frag.d.ts +2 -2
  143. package/lib/mol-gl/shader/mesh.frag.js +2 -2
  144. package/lib/mol-gl/shader/spheres.frag.d.ts +2 -2
  145. package/lib/mol-gl/shader/spheres.frag.js +2 -2
  146. package/lib/mol-io/reader/cif/schema/bird.d.ts +1 -1
  147. package/lib/mol-io/reader/cif/schema/bird.js +1 -1
  148. package/lib/mol-io/reader/cif/schema/ccd.d.ts +1 -1
  149. package/lib/mol-io/reader/cif/schema/ccd.js +1 -1
  150. package/lib/mol-io/reader/cif/schema/mmcif.d.ts +24 -2
  151. package/lib/mol-io/reader/cif/schema/mmcif.js +23 -1
  152. package/lib/mol-math/geometry/primitives/sphere3d.d.ts +1 -1
  153. package/lib/mol-math/geometry/primitives/sphere3d.js +17 -4
  154. package/lib/mol-model/structure/export/categories/atom_site.js +68 -1
  155. package/lib/mol-model/structure/export/categories/secondary-structure.js +8 -8
  156. package/lib/mol-model/structure/model/properties/coarse/hierarchy.d.ts +1 -1
  157. package/lib/mol-model/structure/model/properties/coarse/hierarchy.js +24 -2
  158. package/lib/mol-model/structure/structure/element/loci.d.ts +1 -1
  159. package/lib/mol-model/structure/structure/element/loci.js +4 -2
  160. package/lib/mol-model/structure/structure/util/superposition-sifts-mapping.d.ts +21 -0
  161. package/lib/mol-model/structure/structure/util/{superposition-db-mapping.js → superposition-sifts-mapping.js} +38 -18
  162. package/lib/mol-model/volume/volume.d.ts +7 -0
  163. package/lib/mol-model/volume/volume.js +18 -0
  164. package/lib/mol-model-formats/structure/basic/schema.d.ts +5 -0
  165. package/lib/mol-model-formats/structure/common/property.d.ts +5 -2
  166. package/lib/mol-model-formats/structure/common/property.js +20 -8
  167. package/lib/mol-model-formats/structure/property/bonds/index-pair.d.ts +1 -0
  168. package/lib/mol-model-formats/structure/property/bonds/index-pair.js +2 -1
  169. package/lib/mol-model-props/computed/interactions/common.d.ts +1 -1
  170. package/lib/mol-model-props/computed/interactions/common.js +16 -24
  171. package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -1
  172. package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.js +44 -18
  173. package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.js +14 -4
  174. package/lib/mol-model-props/sequence/{best-database-mapping.d.ts → sifts-mapping.d.ts} +7 -5
  175. package/lib/mol-model-props/sequence/{best-database-mapping.js → sifts-mapping.js} +28 -25
  176. package/lib/{commonjs/mol-model-props/sequence/themes/best-database-mapping.d.ts → mol-model-props/sequence/themes/sifts-mapping.d.ts} +5 -5
  177. package/lib/mol-model-props/sequence/themes/{best-database-mapping.js → sifts-mapping.js} +19 -19
  178. package/lib/mol-plugin/behavior/dynamic/custom-props/sequence/{best-database-mapping.d.ts → sifts-mapping.d.ts} +1 -1
  179. package/lib/mol-plugin/behavior/dynamic/custom-props/sequence/{best-database-mapping.js → sifts-mapping.js} +8 -8
  180. package/lib/mol-plugin/behavior/dynamic/custom-props.d.ts +1 -1
  181. package/lib/mol-plugin/behavior/dynamic/custom-props.js +1 -1
  182. package/lib/mol-plugin/behavior/dynamic/representation.d.ts +1 -1
  183. package/lib/mol-plugin/behavior/dynamic/representation.js +11 -6
  184. package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +2 -1
  185. package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js +16 -7
  186. package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
  187. package/lib/mol-plugin/behavior/static/representation.js +1 -1
  188. package/lib/mol-plugin/version.js +2 -2
  189. package/lib/mol-plugin-state/actions/volume.d.ts +1 -1
  190. package/lib/mol-plugin-state/actions/volume.js +3 -3
  191. package/lib/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +2 -0
  192. package/lib/mol-plugin-state/builder/structure/hierarchy.d.ts +1 -0
  193. package/lib/mol-plugin-state/builder/structure/representation-preset.d.ts +155 -125
  194. package/lib/mol-plugin-state/builder/structure/representation-preset.js +5 -31
  195. package/lib/mol-plugin-state/builder/structure/representation.d.ts +2 -1
  196. package/lib/mol-plugin-state/formats/volume.js +1 -11
  197. package/lib/mol-plugin-state/manager/structure/component.d.ts +2 -1
  198. package/lib/mol-plugin-state/manager/structure/component.js +11 -8
  199. package/lib/mol-plugin-ui/controls/icons.d.ts +2 -1
  200. package/lib/mol-plugin-ui/controls/icons.js +5 -3
  201. package/lib/mol-plugin-ui/controls.d.ts +1 -1
  202. package/lib/mol-plugin-ui/controls.js +2 -1
  203. package/lib/mol-plugin-ui/skin/base/base.scss +32 -32
  204. package/lib/mol-plugin-ui/skin/base/components/controls-base.scss +333 -333
  205. package/lib/mol-plugin-ui/skin/base/components/controls.scss +418 -418
  206. package/lib/mol-plugin-ui/skin/base/components/help.scss +27 -27
  207. package/lib/mol-plugin-ui/skin/base/components/line-graph.scss +67 -67
  208. package/lib/mol-plugin-ui/skin/base/components/log.scss +100 -100
  209. package/lib/mol-plugin-ui/skin/base/components/misc.scss +643 -643
  210. package/lib/mol-plugin-ui/skin/base/components/sequence.scss +125 -125
  211. package/lib/mol-plugin-ui/skin/base/components/slider.scss +165 -165
  212. package/lib/mol-plugin-ui/skin/base/components/tasks.scss +99 -99
  213. package/lib/mol-plugin-ui/skin/base/components/toast.scss +83 -83
  214. package/lib/mol-plugin-ui/skin/base/components/transformer.scss +163 -163
  215. package/lib/mol-plugin-ui/skin/base/components/viewport.scss +127 -127
  216. package/lib/mol-plugin-ui/skin/base/layout/common.scss +71 -71
  217. package/lib/mol-plugin-ui/skin/base/layout/controls-landscape.scss +89 -89
  218. package/lib/mol-plugin-ui/skin/base/layout/controls-outside.scss +98 -98
  219. package/lib/mol-plugin-ui/skin/base/layout/controls-portrait.scss +108 -108
  220. package/lib/mol-plugin-ui/skin/base/layout.scss +40 -40
  221. package/lib/mol-plugin-ui/skin/base/logo.scss +12 -12
  222. package/lib/mol-plugin-ui/skin/base/normalize.scss +209 -209
  223. package/lib/mol-plugin-ui/skin/base/ui.scss +40 -40
  224. package/lib/mol-plugin-ui/skin/base/variables.scss +85 -85
  225. package/lib/mol-plugin-ui/skin/blue.scss +1 -1
  226. package/lib/mol-plugin-ui/skin/colors/blue.scss +23 -23
  227. package/lib/mol-plugin-ui/skin/colors/dark.scss +23 -23
  228. package/lib/mol-plugin-ui/skin/colors/light.scss +29 -29
  229. package/lib/mol-plugin-ui/skin/dark.scss +1 -1
  230. package/lib/mol-plugin-ui/skin/light.scss +1 -1
  231. package/lib/mol-plugin-ui/structure/quick-styles.d.ts +25 -0
  232. package/lib/mol-plugin-ui/structure/quick-styles.js +128 -0
  233. package/lib/mol-plugin-ui/structure/superposition.d.ts +4 -1
  234. package/lib/mol-plugin-ui/structure/superposition.js +66 -30
  235. package/lib/mol-plugin-ui/structure/volume.js +4 -4
  236. package/lib/mol-repr/shape/loci/common.d.ts +1 -1
  237. package/lib/mol-repr/shape/loci/common.js +3 -3
  238. package/lib/mol-repr/structure/registry.d.ts +1 -1
  239. package/lib/mol-repr/structure/representation/cartoon.d.ts +4 -4
  240. package/lib/mol-repr/structure/representation/cartoon.js +3 -3
  241. package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -1
  242. package/lib/mol-repr/structure/visual/molecular-surface-mesh.js +2 -2
  243. package/lib/mol-repr/structure/visual/util/bond.d.ts +1 -1
  244. package/lib/mol-repr/structure/visual/util/bond.js +5 -4
  245. package/lib/mol-script/language/builder.d.ts +1 -0
  246. package/lib/mol-state/transform.js +12 -2
  247. package/lib/mol-theme/color/element-symbol.d.ts +46 -2
  248. package/lib/mol-theme/color/element-symbol.js +15 -10
  249. package/lib/mol-theme/color/entity-id.js +14 -11
  250. package/lib/mol-theme/color/illustrative.d.ts +32 -32
  251. package/lib/mol-theme/color.d.ts +39 -17
  252. package/lib/servers/volume/config.js +3 -3
  253. package/lib/servers/volume/query.js +1 -1
  254. package/package.json +160 -163
  255. package/lib/commonjs/mol-model/structure/structure/util/superposition-db-mapping.d.ts +0 -13
  256. package/lib/mol-model/structure/structure/util/superposition-db-mapping.d.ts +0 -13
package/package.json CHANGED
@@ -1,163 +1,160 @@
1
- {
2
- "name": "molstar",
3
- "version": "3.0.0",
4
- "description": "A comprehensive macromolecular library.",
5
- "homepage": "https://github.com/molstar/molstar#readme",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/molstar/molstar.git"
9
- },
10
- "bugs": {
11
- "url": "https://github.com/molstar/molstar/issues"
12
- },
13
- "scripts": {
14
- "lint": "eslint .",
15
- "lint-fix": "eslint . --fix",
16
- "test": "npm run lint && jest",
17
- "jest": "jest",
18
- "build": "npm run build-tsc && npm run build-extra && npm run build-webpack",
19
- "clean": "node ./scripts/clean.js",
20
- "rebuild": "npm run clean && npm run build",
21
- "build-viewer": "npm run build-tsc && npm run build-extra && npm run build-webpack-viewer",
22
- "build-tsc": "concurrently \"tsc --incremental\" \"tsc --build tsconfig.commonjs.json --incremental\"",
23
- "build-extra": "cpx \"src/**/*.{scss,html,ico}\" lib/",
24
- "build-webpack": "webpack --mode production --config ./webpack.config.production.js",
25
- "build-webpack-viewer": "webpack --mode production --config ./webpack.config.viewer.js",
26
- "watch": "concurrently -c \"green,green,gray,gray\" --names \"tsc,srv,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-servers\" \"npm:watch-extra\" \"npm:watch-webpack\"",
27
- "watch-viewer": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer\"",
28
- "watch-viewer-debug": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer-debug\"",
29
- "watch-tsc": "tsc --watch --incremental",
30
- "watch-servers": "tsc --build tsconfig.commonjs.json --watch --incremental",
31
- "watch-extra": "cpx \"src/**/*.{scss,html,ico}\" lib/ --watch",
32
- "watch-webpack": "webpack -w --mode development --stats minimal",
33
- "watch-webpack-viewer": "webpack -w --mode development --stats minimal --config ./webpack.config.viewer.js",
34
- "watch-webpack-viewer-debug": "webpack -w --mode development --stats minimal --config ./webpack.config.viewer.debug.js",
35
- "serve": "http-server -p 1338 -g",
36
- "model-server": "node lib/commonjs/servers/model/server.js",
37
- "model-server-watch": "nodemon --watch lib lib/commonjs/servers/model/server.js",
38
- "volume-server-test": "node lib/commonjs/servers/volume/server.js --idMap em 'test/${id}.mdb' --defaultPort 1336",
39
- "plugin-state": "node lib/commonjs/servers/plugin-state/index.js --working-folder ./build/state --port 1339",
40
- "preversion": "npm run test",
41
- "version": "npm run rebuild && cpx .npmignore lib/",
42
- "postversion": "git push && git push --tags"
43
- },
44
- "files": [
45
- "lib/",
46
- "build/viewer/"
47
- ],
48
- "bin": {
49
- "cif2bcif": "lib/commonjs/cli/cif2bcif/index.js",
50
- "cifschema": "lib/commonjs/cli/cifschema/index.js",
51
- "model-server": "lib/commonjs/servers/model/server.js",
52
- "model-server-query": "lib/commonjs/servers/model/query.js",
53
- "model-server-preprocess": "lib/commonjs/servers/model/preprocess.js",
54
- "volume-server": "lib/commonjs/servers/volume/server.js",
55
- "volume-server-query": "lib/commonjs/servers/volume/query.js",
56
- "volume-server-pack": "lib/commonjs/servers/volume/pack.js"
57
- },
58
- "nodemonConfig": {
59
- "ignoreRoot": [
60
- "./node_modules",
61
- ".git"
62
- ],
63
- "ignore": [],
64
- "delay": "2500"
65
- },
66
- "jest": {
67
- "moduleFileExtensions": [
68
- "ts",
69
- "js"
70
- ],
71
- "transform": {
72
- "\\.ts$": "ts-jest"
73
- },
74
- "moduleDirectories": [
75
- "node_modules",
76
- "lib"
77
- ],
78
- "testURL": "http://localhost/",
79
- "testRegex": "\\.spec\\.ts$"
80
- },
81
- "author": "Mol* Contributors",
82
- "contributors": [
83
- "Alexander Rose <alexander.rose@weirdbyte.de>",
84
- "David Sehnal <david.sehnal@gmail.com>",
85
- "Sebastian Bittrich <sebastian.bittrich@rcsb.org>",
86
- "Áron Samuel Kovács <aron.kovacs@mail.muni.cz>",
87
- "Ludovic Autin <autin@scripps.edu>",
88
- "Michal Malý <michal.maly@ibt.cas.cz>",
89
- "Jiří Černý <jiri.cerny@ibt.cas.cz>",
90
- "Panagiotis Tourlas <panagiot_tourlov@hotmail.com>"
91
- ],
92
- "license": "MIT",
93
- "devDependencies": {
94
- "@graphql-codegen/add": "^3.1.1",
95
- "@graphql-codegen/cli": "^2.4.0",
96
- "@graphql-codegen/time": "^3.1.1",
97
- "@graphql-codegen/typescript": "^2.4.2",
98
- "@graphql-codegen/typescript-graphql-files-modules": "^2.1.1",
99
- "@graphql-codegen/typescript-graphql-request": "^4.3.3",
100
- "@graphql-codegen/typescript-operations": "^2.2.2",
101
- "@types/cors": "^2.8.12",
102
- "@types/gl": "^4.1.0",
103
- "@types/jest": "^27.4.0",
104
- "@typescript-eslint/eslint-plugin": "^5.10.0",
105
- "@typescript-eslint/parser": "^5.10.0",
106
- "benchmark": "^2.1.4",
107
- "concurrently": "^7.0.0",
108
- "cpx2": "^4.1.2",
109
- "crypto-browserify": "^3.12.0",
110
- "css-loader": "^6.5.1",
111
- "eslint": "^8.7.0",
112
- "extra-watch-webpack-plugin": "^1.0.3",
113
- "file-loader": "^6.2.0",
114
- "fs-extra": "^10.0.0",
115
- "graphql": "^16.2.0",
116
- "http-server": "^14.1.0",
117
- "jest": "^27.4.7",
118
- "mini-css-extract-plugin": "^2.5.2",
119
- "path-browserify": "^1.0.1",
120
- "raw-loader": "^4.0.2",
121
- "sass": "^1.49.0",
122
- "sass-loader": "^12.4.0",
123
- "simple-git": "^2.48.0",
124
- "stream-browserify": "^3.0.0",
125
- "style-loader": "^3.3.1",
126
- "ts-jest": "^27.1.3",
127
- "typescript": "^4.5.5",
128
- "webpack": "^5.67.0",
129
- "webpack-cli": "^4.9.1"
130
- },
131
- "dependencies": {
132
- "@types/argparse": "^2.0.10",
133
- "@types/benchmark": "^2.1.1",
134
- "@types/compression": "1.7.2",
135
- "@types/express": "^4.17.13",
136
- "@types/node": "^16.11.21",
137
- "@types/node-fetch": "^2.5.12",
138
- "@types/react": "^17.0.38",
139
- "@types/react-dom": "^17.0.11",
140
- "@types/swagger-ui-dist": "3.30.1",
141
- "argparse": "^2.0.1",
142
- "body-parser": "^1.19.1",
143
- "compression": "^1.7.4",
144
- "cors": "^2.8.5",
145
- "express": "^4.17.2",
146
- "h264-mp4-encoder": "^1.0.12",
147
- "immer": "^9.0.12",
148
- "immutable": "^4.0.0",
149
- "node-fetch": "^2.6.7",
150
- "rxjs": "^7.5.2",
151
- "swagger-ui-dist": "^4.2.1",
152
- "tslib": "^2.3.1",
153
- "util.promisify": "^1.1.1",
154
- "xhr2": "^0.2.1"
155
- },
156
- "peerDependencies": {
157
- "react": "^17.0.2",
158
- "react-dom": "^17.0.2"
159
- },
160
- "optionalDependencies": {
161
- "gl": "^5.0.0"
162
- }
163
- }
1
+ {
2
+ "name": "molstar",
3
+ "version": "3.2.0",
4
+ "description": "A comprehensive macromolecular library.",
5
+ "homepage": "https://github.com/molstar/molstar#readme",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/molstar/molstar.git"
9
+ },
10
+ "bugs": {
11
+ "url": "https://github.com/molstar/molstar/issues"
12
+ },
13
+ "scripts": {
14
+ "lint": "eslint .",
15
+ "lint-fix": "eslint . --fix",
16
+ "test": "npm install --no-save \"gl@^5.0.0\" && npm run lint && jest",
17
+ "jest": "jest",
18
+ "build": "npm run build-tsc && npm run build-extra && npm run build-webpack",
19
+ "clean": "node ./scripts/clean.js",
20
+ "rebuild": "npm run clean && npm run build",
21
+ "build-viewer": "npm run build-tsc && npm run build-extra && npm run build-webpack-viewer",
22
+ "build-tsc": "concurrently \"tsc --incremental\" \"tsc --build tsconfig.commonjs.json --incremental\"",
23
+ "build-extra": "cpx \"src/**/*.{scss,html,ico}\" lib/",
24
+ "build-webpack": "webpack --mode production --config ./webpack.config.production.js",
25
+ "build-webpack-viewer": "webpack --mode production --config ./webpack.config.viewer.js",
26
+ "watch": "concurrently -c \"green,green,gray,gray\" --names \"tsc,srv,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-servers\" \"npm:watch-extra\" \"npm:watch-webpack\"",
27
+ "watch-viewer": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer\"",
28
+ "watch-viewer-debug": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer-debug\"",
29
+ "watch-tsc": "tsc --watch --incremental",
30
+ "watch-servers": "tsc --build tsconfig.commonjs.json --watch --incremental",
31
+ "watch-extra": "cpx \"src/**/*.{scss,html,ico}\" lib/ --watch",
32
+ "watch-webpack": "webpack -w --mode development --stats minimal",
33
+ "watch-webpack-viewer": "webpack -w --mode development --stats minimal --config ./webpack.config.viewer.js",
34
+ "watch-webpack-viewer-debug": "webpack -w --mode development --stats minimal --config ./webpack.config.viewer.debug.js",
35
+ "serve": "http-server -p 1338 -g",
36
+ "model-server": "node lib/commonjs/servers/model/server.js",
37
+ "model-server-watch": "nodemon --watch lib lib/commonjs/servers/model/server.js",
38
+ "volume-server-test": "node lib/commonjs/servers/volume/server.js --idMap em 'test/${id}.mdb' --defaultPort 1336",
39
+ "plugin-state": "node lib/commonjs/servers/plugin-state/index.js --working-folder ./build/state --port 1339",
40
+ "preversion": "npm run test",
41
+ "version": "npm run rebuild && cpx .npmignore lib/",
42
+ "postversion": "git push && git push --tags"
43
+ },
44
+ "files": [
45
+ "lib/",
46
+ "build/viewer/"
47
+ ],
48
+ "bin": {
49
+ "cif2bcif": "lib/commonjs/cli/cif2bcif/index.js",
50
+ "cifschema": "lib/commonjs/cli/cifschema/index.js",
51
+ "model-server": "lib/commonjs/servers/model/server.js",
52
+ "model-server-query": "lib/commonjs/servers/model/query.js",
53
+ "model-server-preprocess": "lib/commonjs/servers/model/preprocess.js",
54
+ "volume-server": "lib/commonjs/servers/volume/server.js",
55
+ "volume-server-query": "lib/commonjs/servers/volume/query.js",
56
+ "volume-server-pack": "lib/commonjs/servers/volume/pack.js"
57
+ },
58
+ "nodemonConfig": {
59
+ "ignoreRoot": [
60
+ "./node_modules",
61
+ ".git"
62
+ ],
63
+ "ignore": [],
64
+ "delay": "2500"
65
+ },
66
+ "jest": {
67
+ "moduleFileExtensions": [
68
+ "ts",
69
+ "js"
70
+ ],
71
+ "transform": {
72
+ "\\.ts$": "ts-jest"
73
+ },
74
+ "moduleDirectories": [
75
+ "node_modules",
76
+ "lib"
77
+ ],
78
+ "testURL": "http://localhost/",
79
+ "testRegex": "\\.spec\\.ts$"
80
+ },
81
+ "author": "Mol* Contributors",
82
+ "contributors": [
83
+ "Alexander Rose <alexander.rose@weirdbyte.de>",
84
+ "David Sehnal <david.sehnal@gmail.com>",
85
+ "Sebastian Bittrich <sebastian.bittrich@rcsb.org>",
86
+ "Áron Samuel Kovács <aron.kovacs@mail.muni.cz>",
87
+ "Ludovic Autin <autin@scripps.edu>",
88
+ "Michal Malý <michal.maly@ibt.cas.cz>",
89
+ "Jiří Černý <jiri.cerny@ibt.cas.cz>",
90
+ "Panagiotis Tourlas <panagiot_tourlov@hotmail.com>"
91
+ ],
92
+ "license": "MIT",
93
+ "devDependencies": {
94
+ "@graphql-codegen/add": "^3.1.1",
95
+ "@graphql-codegen/cli": "^2.5.0",
96
+ "@graphql-codegen/time": "^3.1.1",
97
+ "@graphql-codegen/typescript": "^2.4.3",
98
+ "@graphql-codegen/typescript-graphql-files-modules": "^2.1.1",
99
+ "@graphql-codegen/typescript-graphql-request": "^4.3.4",
100
+ "@graphql-codegen/typescript-operations": "^2.2.4",
101
+ "@types/cors": "^2.8.12",
102
+ "@types/gl": "^4.1.0",
103
+ "@types/jest": "^27.4.0",
104
+ "@typescript-eslint/eslint-plugin": "^5.10.2",
105
+ "@typescript-eslint/parser": "^5.10.2",
106
+ "benchmark": "^2.1.4",
107
+ "concurrently": "^7.0.0",
108
+ "cpx2": "^4.1.2",
109
+ "crypto-browserify": "^3.12.0",
110
+ "css-loader": "^6.6.0",
111
+ "eslint": "^8.8.0",
112
+ "extra-watch-webpack-plugin": "^1.0.3",
113
+ "file-loader": "^6.2.0",
114
+ "fs-extra": "^10.0.0",
115
+ "graphql": "^16.3.0",
116
+ "http-server": "^14.1.0",
117
+ "jest": "^27.5.0",
118
+ "mini-css-extract-plugin": "^2.5.3",
119
+ "path-browserify": "^1.0.1",
120
+ "raw-loader": "^4.0.2",
121
+ "sass": "^1.49.7",
122
+ "sass-loader": "^12.4.0",
123
+ "simple-git": "^3.1.1",
124
+ "stream-browserify": "^3.0.0",
125
+ "style-loader": "^3.3.1",
126
+ "ts-jest": "^27.1.3",
127
+ "typescript": "^4.5.5",
128
+ "webpack": "^5.68.0",
129
+ "webpack-cli": "^4.9.2"
130
+ },
131
+ "dependencies": {
132
+ "@types/argparse": "^2.0.10",
133
+ "@types/benchmark": "^2.1.1",
134
+ "@types/compression": "1.7.2",
135
+ "@types/express": "^4.17.13",
136
+ "@types/node": "^16.11.22",
137
+ "@types/node-fetch": "^2.5.12",
138
+ "@types/react": "^17.0.39",
139
+ "@types/react-dom": "^17.0.11",
140
+ "@types/swagger-ui-dist": "3.30.1",
141
+ "argparse": "^2.0.1",
142
+ "body-parser": "^1.19.1",
143
+ "compression": "^1.7.4",
144
+ "cors": "^2.8.5",
145
+ "express": "^4.17.2",
146
+ "h264-mp4-encoder": "^1.0.12",
147
+ "immer": "^9.0.12",
148
+ "immutable": "^4.0.0",
149
+ "node-fetch": "^2.6.7",
150
+ "rxjs": "^7.5.2",
151
+ "swagger-ui-dist": "^4.5.0",
152
+ "tslib": "^2.3.1",
153
+ "util.promisify": "^1.1.1",
154
+ "xhr2": "^0.2.1"
155
+ },
156
+ "peerDependencies": {
157
+ "react": "^17.0.2",
158
+ "react-dom": "^17.0.2"
159
+ }
160
+ }
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
- *
4
- * @author David Sehnal <david.sehnal@gmail.com>
5
- */
6
- import { MinimizeRmsd } from '../../../../mol-math/linear-algebra/3d/minimize-rmsd';
7
- import { Structure } from '../structure';
8
- export interface AlignmentResult {
9
- transform: MinimizeRmsd.Result;
10
- pivot: number;
11
- other: number;
12
- }
13
- export declare function alignAndSuperposeWithBestDatabaseMapping(structures: Structure[]): AlignmentResult[];
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
- *
4
- * @author David Sehnal <david.sehnal@gmail.com>
5
- */
6
- import { MinimizeRmsd } from '../../../../mol-math/linear-algebra/3d/minimize-rmsd';
7
- import { Structure } from '../structure';
8
- export interface AlignmentResult {
9
- transform: MinimizeRmsd.Result;
10
- pivot: number;
11
- other: number;
12
- }
13
- export declare function alignAndSuperposeWithBestDatabaseMapping(structures: Structure[]): AlignmentResult[];