molstar 2.3.3 → 2.3.8

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 (1829) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +176 -176
  3. package/build/viewer/embedded.html +43 -43
  4. package/build/viewer/index.html +94 -88
  5. package/build/viewer/molstar.css +1 -2
  6. package/build/viewer/molstar.js +1 -1
  7. package/lib/apps/docking-viewer/index.html +36 -36
  8. package/lib/apps/docking-viewer/index.js +1 -1
  9. package/lib/apps/docking-viewer/index.js.map +1 -1
  10. package/lib/apps/viewer/embedded.html +43 -43
  11. package/lib/apps/viewer/index.d.ts +296 -5
  12. package/lib/apps/viewer/index.html +94 -88
  13. package/lib/apps/viewer/index.js +99 -9
  14. package/lib/apps/viewer/index.js.map +1 -1
  15. package/lib/cli/chem-comp-dict/create-ions.js +1 -1
  16. package/lib/cli/chem-comp-dict/create-ions.js.map +1 -1
  17. package/lib/cli/chem-comp-dict/create-table.js +3 -3
  18. package/lib/cli/chem-comp-dict/create-table.js.map +1 -1
  19. package/lib/cli/chem-comp-dict/util.d.ts +4 -4
  20. package/lib/cli/chem-comp-dict/util.js +2 -2
  21. package/lib/cli/chem-comp-dict/util.js.map +1 -1
  22. package/lib/cli/cif2bcif/converter.js +2 -2
  23. package/lib/cli/cif2bcif/converter.js.map +1 -1
  24. package/lib/cli/cifschema/index.js +12 -12
  25. package/lib/cli/cifschema/index.js.map +1 -1
  26. package/lib/cli/cifschema/util/cif-dic.js +19 -19
  27. package/lib/cli/cifschema/util/cif-dic.js.map +1 -1
  28. package/lib/cli/cifschema/util/generate.js +21 -21
  29. package/lib/cli/cifschema/util/generate.js.map +1 -1
  30. package/lib/cli/cifschema/util/schema.js +1 -1
  31. package/lib/cli/cifschema/util/schema.js.map +1 -1
  32. package/lib/cli/lipid-params/index.js +3 -3
  33. package/lib/cli/lipid-params/index.js.map +1 -1
  34. package/lib/cli/state-docs/index.js +4 -4
  35. package/lib/cli/state-docs/index.js.map +1 -1
  36. package/lib/cli/state-docs/pd-to-md.js +10 -10
  37. package/lib/cli/state-docs/pd-to-md.js.map +1 -1
  38. package/lib/cli/structure-info/model.js +18 -18
  39. package/lib/cli/structure-info/model.js.map +1 -1
  40. package/lib/cli/structure-info/volume.js +1 -1
  41. package/lib/cli/structure-info/volume.js.map +1 -1
  42. package/lib/commonjs/apps/docking-viewer/index.js +1 -1
  43. package/lib/commonjs/apps/docking-viewer/index.js.map +1 -1
  44. package/lib/commonjs/apps/docking-viewer/viewport.d.ts +2 -2
  45. package/lib/commonjs/apps/viewer/index.d.ts +296 -5
  46. package/lib/commonjs/apps/viewer/index.js +99 -9
  47. package/lib/commonjs/apps/viewer/index.js.map +1 -1
  48. package/lib/commonjs/cli/chem-comp-dict/create-ions.js +1 -1
  49. package/lib/commonjs/cli/chem-comp-dict/create-ions.js.map +1 -1
  50. package/lib/commonjs/cli/chem-comp-dict/create-table.js +3 -3
  51. package/lib/commonjs/cli/chem-comp-dict/create-table.js.map +1 -1
  52. package/lib/commonjs/cli/chem-comp-dict/util.d.ts +6 -6
  53. package/lib/commonjs/cli/chem-comp-dict/util.js +2 -2
  54. package/lib/commonjs/cli/chem-comp-dict/util.js.map +1 -1
  55. package/lib/commonjs/cli/cif2bcif/converter.js +2 -2
  56. package/lib/commonjs/cli/cif2bcif/converter.js.map +1 -1
  57. package/lib/commonjs/cli/cif2bcif/index.js +0 -0
  58. package/lib/commonjs/cli/cifschema/index.js +12 -12
  59. package/lib/commonjs/cli/cifschema/index.js.map +1 -1
  60. package/lib/commonjs/cli/cifschema/util/cif-dic.js +19 -19
  61. package/lib/commonjs/cli/cifschema/util/cif-dic.js.map +1 -1
  62. package/lib/commonjs/cli/cifschema/util/generate.js +21 -21
  63. package/lib/commonjs/cli/cifschema/util/generate.js.map +1 -1
  64. package/lib/commonjs/cli/cifschema/util/schema.js +1 -1
  65. package/lib/commonjs/cli/cifschema/util/schema.js.map +1 -1
  66. package/lib/commonjs/cli/lipid-params/index.js +3 -3
  67. package/lib/commonjs/cli/lipid-params/index.js.map +1 -1
  68. package/lib/commonjs/cli/state-docs/index.js +4 -4
  69. package/lib/commonjs/cli/state-docs/index.js.map +1 -1
  70. package/lib/commonjs/cli/state-docs/pd-to-md.js +10 -10
  71. package/lib/commonjs/cli/state-docs/pd-to-md.js.map +1 -1
  72. package/lib/commonjs/cli/structure-info/model.js +18 -18
  73. package/lib/commonjs/cli/structure-info/model.js.map +1 -1
  74. package/lib/commonjs/cli/structure-info/volume.js +1 -1
  75. package/lib/commonjs/cli/structure-info/volume.js.map +1 -1
  76. package/lib/commonjs/examples/basic-wrapper/superposition.js +3 -3
  77. package/lib/commonjs/examples/basic-wrapper/superposition.js.map +1 -1
  78. package/lib/commonjs/examples/domain-annotation-server/mapping.js +2 -2
  79. package/lib/commonjs/examples/domain-annotation-server/mapping.js.map +1 -1
  80. package/lib/commonjs/examples/domain-annotation-server/server.js +3 -3
  81. package/lib/commonjs/examples/domain-annotation-server/server.js.map +1 -1
  82. package/lib/commonjs/examples/proteopedia-wrapper/annotation.js +3 -3
  83. package/lib/commonjs/examples/proteopedia-wrapper/annotation.js.map +1 -1
  84. package/lib/commonjs/examples/proteopedia-wrapper/helpers.js +1 -1
  85. package/lib/commonjs/examples/proteopedia-wrapper/helpers.js.map +1 -1
  86. package/lib/commonjs/examples/proteopedia-wrapper/index.js +2 -2
  87. package/lib/commonjs/examples/proteopedia-wrapper/index.js.map +1 -1
  88. package/lib/commonjs/examples/task.js +6 -6
  89. package/lib/commonjs/examples/task.js.map +1 -1
  90. package/lib/commonjs/extensions/alpha-orbitals/transforms.js +2 -2
  91. package/lib/commonjs/extensions/alpha-orbitals/transforms.js.map +1 -1
  92. package/lib/commonjs/extensions/anvil/behavior.d.ts +2 -2
  93. package/lib/commonjs/extensions/anvil/representation.d.ts +5 -5
  94. package/lib/commonjs/extensions/anvil/representation.js +1 -1
  95. package/lib/commonjs/extensions/anvil/representation.js.map +1 -1
  96. package/lib/commonjs/extensions/cellpack/color/generate.d.ts +1 -1
  97. package/lib/commonjs/extensions/cellpack/color/generate.js +1 -1
  98. package/lib/commonjs/extensions/cellpack/color/provided.d.ts +1 -1
  99. package/lib/commonjs/extensions/cellpack/color/provided.js +1 -1
  100. package/lib/commonjs/extensions/cellpack/curve.d.ts +2 -2
  101. package/lib/commonjs/extensions/cellpack/curve.js +2 -2
  102. package/lib/commonjs/extensions/cellpack/data.d.ts +32 -0
  103. package/lib/commonjs/extensions/cellpack/index.d.ts +1 -1
  104. package/lib/commonjs/extensions/cellpack/index.js +1 -1
  105. package/lib/commonjs/extensions/cellpack/model.d.ts +5 -3
  106. package/lib/commonjs/extensions/cellpack/model.js +203 -65
  107. package/lib/commonjs/extensions/cellpack/model.js.map +1 -1
  108. package/lib/commonjs/extensions/cellpack/preset.d.ts +2 -1
  109. package/lib/commonjs/extensions/cellpack/preset.js +12 -15
  110. package/lib/commonjs/extensions/cellpack/preset.js.map +1 -1
  111. package/lib/commonjs/extensions/cellpack/property.d.ts +1 -1
  112. package/lib/commonjs/extensions/cellpack/property.js +1 -1
  113. package/lib/commonjs/extensions/cellpack/representation.d.ts +53 -0
  114. package/lib/commonjs/extensions/cellpack/representation.js +47 -0
  115. package/lib/commonjs/extensions/cellpack/representation.js.map +1 -0
  116. package/lib/commonjs/extensions/cellpack/state.d.ts +16 -5
  117. package/lib/commonjs/extensions/cellpack/state.js +234 -27
  118. package/lib/commonjs/extensions/cellpack/state.js.map +1 -1
  119. package/lib/commonjs/extensions/cellpack/util.d.ts +3 -1
  120. package/lib/commonjs/extensions/cellpack/util.js +34 -6
  121. package/lib/commonjs/extensions/cellpack/util.js.map +1 -1
  122. package/lib/commonjs/extensions/dnatco/confal-pyramids/behavior.d.ts +1 -1
  123. package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +6 -6
  124. package/lib/commonjs/extensions/dnatco/confal-pyramids/util.js +7 -7
  125. package/lib/commonjs/extensions/dnatco/confal-pyramids/util.js.map +1 -1
  126. package/lib/commonjs/extensions/g3d/data.js +2 -2
  127. package/lib/commonjs/extensions/g3d/data.js.map +1 -1
  128. package/lib/commonjs/extensions/g3d/model.js +2 -2
  129. package/lib/commonjs/extensions/g3d/model.js.map +1 -1
  130. package/lib/commonjs/extensions/geo-export/controls.js +2 -2
  131. package/lib/commonjs/extensions/geo-export/controls.js.map +1 -1
  132. package/lib/commonjs/extensions/geo-export/glb-exporter.js +1 -1
  133. package/lib/commonjs/extensions/geo-export/glb-exporter.js.map +1 -1
  134. package/lib/commonjs/extensions/geo-export/mesh-exporter.d.ts +1 -1
  135. package/lib/commonjs/extensions/geo-export/obj-exporter.js +3 -3
  136. package/lib/commonjs/extensions/geo-export/obj-exporter.js.map +1 -1
  137. package/lib/commonjs/extensions/geo-export/stl-exporter.js +1 -1
  138. package/lib/commonjs/extensions/geo-export/stl-exporter.js.map +1 -1
  139. package/lib/commonjs/extensions/geo-export/usdz-exporter.js +5 -5
  140. package/lib/commonjs/extensions/geo-export/usdz-exporter.js.map +1 -1
  141. package/lib/commonjs/extensions/mp4-export/controls.js +1 -1
  142. package/lib/commonjs/extensions/mp4-export/controls.js.map +1 -1
  143. package/lib/commonjs/extensions/pdbe/structure-quality-report/behavior.js +1 -1
  144. package/lib/commonjs/extensions/pdbe/structure-quality-report/behavior.js.map +1 -1
  145. package/lib/commonjs/extensions/pdbe/structure-quality-report/prop.js +1 -1
  146. package/lib/commonjs/extensions/pdbe/structure-quality-report/prop.js.map +1 -1
  147. package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +6 -6
  148. package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.js +3 -3
  149. package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.js.map +1 -1
  150. package/lib/commonjs/extensions/rcsb/assembly-symmetry/color.d.ts +12 -12
  151. package/lib/commonjs/extensions/rcsb/assembly-symmetry/color.js +1 -1
  152. package/lib/commonjs/extensions/rcsb/assembly-symmetry/color.js.map +1 -1
  153. package/lib/commonjs/extensions/rcsb/assembly-symmetry/prop.js +2 -2
  154. package/lib/commonjs/extensions/rcsb/assembly-symmetry/prop.js.map +1 -1
  155. package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.d.ts +1 -1
  156. package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.js +7 -7
  157. package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.js.map +1 -1
  158. package/lib/commonjs/extensions/rcsb/validation-report/behavior.d.ts +3 -3
  159. package/lib/commonjs/extensions/rcsb/validation-report/behavior.js +11 -11
  160. package/lib/commonjs/extensions/rcsb/validation-report/behavior.js.map +1 -1
  161. package/lib/commonjs/extensions/rcsb/validation-report/prop.js +2 -2
  162. package/lib/commonjs/extensions/rcsb/validation-report/prop.js.map +1 -1
  163. package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +25 -10
  164. package/lib/commonjs/extensions/rcsb/validation-report/representation.js +4 -4
  165. package/lib/commonjs/extensions/rcsb/validation-report/representation.js.map +1 -1
  166. package/lib/commonjs/mol-canvas3d/camera/util.d.ts +4 -3
  167. package/lib/commonjs/mol-canvas3d/camera/util.js +15 -16
  168. package/lib/commonjs/mol-canvas3d/camera/util.js.map +1 -1
  169. package/lib/commonjs/mol-canvas3d/camera.d.ts +11 -3
  170. package/lib/commonjs/mol-canvas3d/camera.js +21 -1
  171. package/lib/commonjs/mol-canvas3d/camera.js.map +1 -1
  172. package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +18 -8
  173. package/lib/commonjs/mol-canvas3d/canvas3d.js +11 -5
  174. package/lib/commonjs/mol-canvas3d/canvas3d.js.map +1 -1
  175. package/lib/commonjs/mol-canvas3d/controls/trackball.d.ts +2 -2
  176. package/lib/commonjs/mol-canvas3d/helper/camera-helper.d.ts +3 -3
  177. package/lib/commonjs/mol-canvas3d/helper/handle-helper.d.ts +1 -1
  178. package/lib/commonjs/mol-canvas3d/helper/handle-helper.js +1 -1
  179. package/lib/commonjs/mol-canvas3d/helper/handle-helper.js.map +1 -1
  180. package/lib/commonjs/mol-canvas3d/helper/interaction-events.d.ts +13 -4
  181. package/lib/commonjs/mol-canvas3d/helper/interaction-events.js +43 -9
  182. package/lib/commonjs/mol-canvas3d/helper/interaction-events.js.map +1 -1
  183. package/lib/commonjs/mol-canvas3d/passes/draw.js +1 -0
  184. package/lib/commonjs/mol-canvas3d/passes/draw.js.map +1 -1
  185. package/lib/commonjs/mol-canvas3d/passes/image.d.ts +2 -2
  186. package/lib/commonjs/mol-canvas3d/passes/pick.d.ts +5 -2
  187. package/lib/commonjs/mol-canvas3d/passes/pick.js +17 -3
  188. package/lib/commonjs/mol-canvas3d/passes/pick.js.map +1 -1
  189. package/lib/commonjs/mol-canvas3d/passes/wboit.js +1 -1
  190. package/lib/commonjs/mol-canvas3d/passes/wboit.js.map +1 -1
  191. package/lib/commonjs/mol-canvas3d/util.js +1 -1
  192. package/lib/commonjs/mol-canvas3d/util.js.map +1 -1
  193. package/lib/commonjs/mol-data/db/table.js +1 -1
  194. package/lib/commonjs/mol-data/db/table.js.map +1 -1
  195. package/lib/commonjs/mol-data/int/_spec/sorted-ranges.spec.js +1 -1
  196. package/lib/commonjs/mol-data/int/_spec/sorted-ranges.spec.js.map +1 -1
  197. package/lib/commonjs/mol-data/int/impl/ordered-set.d.ts +3 -3
  198. package/lib/commonjs/mol-data/int/impl/sorted-array.d.ts +1 -1
  199. package/lib/commonjs/mol-data/int/impl/sorted-array.js +2 -2
  200. package/lib/commonjs/mol-data/int/impl/sorted-array.js.map +1 -1
  201. package/lib/commonjs/mol-data/int/tuple.js +1 -1
  202. package/lib/commonjs/mol-data/int/tuple.js.map +1 -1
  203. package/lib/commonjs/mol-data/util/_spec/interval-iterator.spec.js +1 -1
  204. package/lib/commonjs/mol-data/util/_spec/interval-iterator.spec.js.map +1 -1
  205. package/lib/commonjs/mol-geo/geometry/base.d.ts +3 -3
  206. package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +1 -1
  207. package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.d.ts +3 -3
  208. package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.js +10 -1
  209. package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.js.map +1 -1
  210. package/lib/commonjs/mol-geo/geometry/image/image.d.ts +3 -3
  211. package/lib/commonjs/mol-geo/geometry/image/image.js +4 -1
  212. package/lib/commonjs/mol-geo/geometry/image/image.js.map +1 -1
  213. package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +1 -1
  214. package/lib/commonjs/mol-geo/geometry/lines/lines.js +1 -1
  215. package/lib/commonjs/mol-geo/geometry/lines/lines.js.map +1 -1
  216. package/lib/commonjs/mol-geo/geometry/mesh/builder/sheet.d.ts +1 -1
  217. package/lib/commonjs/mol-geo/geometry/mesh/builder/sheet.js +19 -11
  218. package/lib/commonjs/mol-geo/geometry/mesh/builder/sheet.js.map +1 -1
  219. package/lib/commonjs/mol-geo/geometry/mesh/builder/tube.d.ts +2 -2
  220. package/lib/commonjs/mol-geo/geometry/mesh/builder/tube.js +57 -15
  221. package/lib/commonjs/mol-geo/geometry/mesh/builder/tube.js.map +1 -1
  222. package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +1 -1
  223. package/lib/commonjs/mol-geo/geometry/mesh/mesh.js +1 -1
  224. package/lib/commonjs/mol-geo/geometry/mesh/mesh.js.map +1 -1
  225. package/lib/commonjs/mol-geo/geometry/points/points.d.ts +3 -3
  226. package/lib/commonjs/mol-geo/geometry/points/points.js +1 -1
  227. package/lib/commonjs/mol-geo/geometry/points/points.js.map +1 -1
  228. package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +2 -1
  229. package/lib/commonjs/mol-geo/geometry/text/font-atlas.js +1 -1
  230. package/lib/commonjs/mol-geo/geometry/text/font-atlas.js.map +1 -1
  231. package/lib/commonjs/mol-geo/geometry/text/text.d.ts +1 -1
  232. package/lib/commonjs/mol-geo/geometry/text/text.js +1 -1
  233. package/lib/commonjs/mol-geo/geometry/text/text.js.map +1 -1
  234. package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +1 -1
  235. package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js +6 -1
  236. package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js.map +1 -1
  237. package/lib/commonjs/mol-geo/primitive/polyhedron.js +1 -1
  238. package/lib/commonjs/mol-geo/primitive/polyhedron.js.map +1 -1
  239. package/lib/commonjs/mol-gl/_spec/cylinders.spec.d.ts +6 -0
  240. package/lib/commonjs/mol-gl/_spec/cylinders.spec.js +42 -0
  241. package/lib/commonjs/mol-gl/_spec/cylinders.spec.js.map +1 -0
  242. package/lib/commonjs/mol-gl/_spec/direct-volume.spec.d.ts +6 -0
  243. package/lib/commonjs/mol-gl/_spec/direct-volume.spec.js +42 -0
  244. package/lib/commonjs/mol-gl/_spec/direct-volume.spec.js.map +1 -0
  245. package/lib/commonjs/mol-gl/_spec/gl.d.ts +9 -0
  246. package/lib/commonjs/mol-gl/_spec/gl.js +33 -0
  247. package/lib/commonjs/mol-gl/_spec/gl.js.map +1 -0
  248. package/lib/commonjs/mol-gl/_spec/gl.shim.js +5 -5
  249. package/lib/commonjs/mol-gl/_spec/gl.shim.js.map +1 -1
  250. package/lib/commonjs/mol-gl/_spec/image.spec.d.ts +6 -0
  251. package/lib/commonjs/mol-gl/_spec/image.spec.js +42 -0
  252. package/lib/commonjs/mol-gl/_spec/image.spec.js.map +1 -0
  253. package/lib/commonjs/mol-gl/_spec/lines.spec.d.ts +6 -0
  254. package/lib/commonjs/mol-gl/_spec/lines.spec.js +42 -0
  255. package/lib/commonjs/mol-gl/_spec/lines.spec.js.map +1 -0
  256. package/lib/commonjs/mol-gl/_spec/mesh.spec.d.ts +6 -0
  257. package/lib/commonjs/mol-gl/_spec/mesh.spec.js +42 -0
  258. package/lib/commonjs/mol-gl/_spec/mesh.spec.js.map +1 -0
  259. package/lib/commonjs/mol-gl/_spec/points.spec.d.ts +6 -0
  260. package/lib/commonjs/mol-gl/_spec/points.spec.js +42 -0
  261. package/lib/commonjs/mol-gl/_spec/points.spec.js.map +1 -0
  262. package/lib/commonjs/mol-gl/_spec/renderer.spec.d.ts +7 -1
  263. package/lib/commonjs/mol-gl/_spec/renderer.spec.js +6 -44
  264. package/lib/commonjs/mol-gl/_spec/renderer.spec.js.map +1 -1
  265. package/lib/commonjs/mol-gl/_spec/spheres.spec.d.ts +6 -0
  266. package/lib/commonjs/mol-gl/_spec/spheres.spec.js +42 -0
  267. package/lib/commonjs/mol-gl/_spec/spheres.spec.js.map +1 -0
  268. package/lib/commonjs/mol-gl/_spec/text.spec.d.ts +6 -0
  269. package/lib/commonjs/mol-gl/_spec/text.spec.js +42 -0
  270. package/lib/commonjs/mol-gl/_spec/text.spec.js.map +1 -0
  271. package/lib/commonjs/mol-gl/_spec/texture-mesh.spec.d.ts +6 -0
  272. package/lib/commonjs/mol-gl/_spec/texture-mesh.spec.js +42 -0
  273. package/lib/commonjs/mol-gl/_spec/texture-mesh.spec.js.map +1 -0
  274. package/lib/commonjs/mol-gl/compute/grid3d.js +3 -3
  275. package/lib/commonjs/mol-gl/compute/grid3d.js.map +1 -1
  276. package/lib/commonjs/mol-gl/compute/histogram-pyramid/reduction.js +4 -4
  277. package/lib/commonjs/mol-gl/compute/histogram-pyramid/reduction.js.map +1 -1
  278. package/lib/commonjs/mol-gl/renderable/util.js +1 -1
  279. package/lib/commonjs/mol-gl/renderable/util.js.map +1 -1
  280. package/lib/commonjs/mol-gl/renderer.d.ts +3 -2
  281. package/lib/commonjs/mol-gl/renderer.js +3 -0
  282. package/lib/commonjs/mol-gl/renderer.js.map +1 -1
  283. package/lib/commonjs/mol-gl/scene.js +1 -1
  284. package/lib/commonjs/mol-gl/scene.js.map +1 -1
  285. package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
  286. package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
  287. package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.js.map +1 -1
  288. package/lib/commonjs/mol-gl/shader/lines.vert.d.ts +1 -1
  289. package/lib/commonjs/mol-gl/shader/lines.vert.js +1 -1
  290. package/lib/commonjs/mol-gl/shader/lines.vert.js.map +1 -1
  291. package/lib/commonjs/mol-gl/shader/points.vert.d.ts +1 -1
  292. package/lib/commonjs/mol-gl/shader/points.vert.js +1 -1
  293. package/lib/commonjs/mol-gl/shader/points.vert.js.map +1 -1
  294. package/lib/commonjs/mol-gl/shader-code.js +8 -8
  295. package/lib/commonjs/mol-gl/shader-code.js.map +1 -1
  296. package/lib/commonjs/mol-gl/webgl/buffer.d.ts +3 -2
  297. package/lib/commonjs/mol-gl/webgl/buffer.js +5 -5
  298. package/lib/commonjs/mol-gl/webgl/buffer.js.map +1 -1
  299. package/lib/commonjs/mol-gl/webgl/compat.js +3 -3
  300. package/lib/commonjs/mol-gl/webgl/compat.js.map +1 -1
  301. package/lib/commonjs/mol-gl/webgl/context.js +6 -4
  302. package/lib/commonjs/mol-gl/webgl/context.js.map +1 -1
  303. package/lib/commonjs/mol-gl/webgl/framebuffer.js +1 -1
  304. package/lib/commonjs/mol-gl/webgl/framebuffer.js.map +1 -1
  305. package/lib/commonjs/mol-gl/webgl/program.d.ts +1 -1
  306. package/lib/commonjs/mol-gl/webgl/program.js +14 -12
  307. package/lib/commonjs/mol-gl/webgl/program.js.map +1 -1
  308. package/lib/commonjs/mol-gl/webgl/render-item.d.ts +3 -2
  309. package/lib/commonjs/mol-gl/webgl/render-item.js +6 -3
  310. package/lib/commonjs/mol-gl/webgl/render-item.js.map +1 -1
  311. package/lib/commonjs/mol-gl/webgl/resources.js +1 -1
  312. package/lib/commonjs/mol-gl/webgl/resources.js.map +1 -1
  313. package/lib/commonjs/mol-gl/webgl/shader.js +3 -3
  314. package/lib/commonjs/mol-gl/webgl/shader.js.map +1 -1
  315. package/lib/commonjs/mol-gl/webgl/state.d.ts +4 -1
  316. package/lib/commonjs/mol-gl/webgl/state.js +25 -1
  317. package/lib/commonjs/mol-gl/webgl/state.js.map +1 -1
  318. package/lib/commonjs/mol-gl/webgl/texture.js +2 -2
  319. package/lib/commonjs/mol-gl/webgl/texture.js.map +1 -1
  320. package/lib/commonjs/mol-gl/webgl/uniform.js +2 -2
  321. package/lib/commonjs/mol-gl/webgl/uniform.js.map +1 -1
  322. package/lib/commonjs/mol-io/common/file-handle.js +1 -1
  323. package/lib/commonjs/mol-io/common/file-handle.js.map +1 -1
  324. package/lib/commonjs/mol-io/common/typed-array.js +1 -1
  325. package/lib/commonjs/mol-io/common/typed-array.js.map +1 -1
  326. package/lib/commonjs/mol-io/reader/ccp4/parser.js +1 -1
  327. package/lib/commonjs/mol-io/reader/ccp4/parser.js.map +1 -1
  328. package/lib/commonjs/mol-io/reader/cif/binary/parser.js +1 -1
  329. package/lib/commonjs/mol-io/reader/cif/binary/parser.js.map +1 -1
  330. package/lib/commonjs/mol-io/reader/cif/data-model.js +7 -7
  331. package/lib/commonjs/mol-io/reader/cif/data-model.js.map +1 -1
  332. package/lib/commonjs/mol-io/reader/cif/schema/bird.d.ts +5 -5
  333. package/lib/commonjs/mol-io/reader/cif/schema/ccd.d.ts +3 -3
  334. package/lib/commonjs/mol-io/reader/cif/schema/density-server.d.ts +3 -3
  335. package/lib/commonjs/mol-io/reader/cif/schema/mmcif-extras.d.ts +4 -4
  336. package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +22 -22
  337. package/lib/commonjs/mol-io/reader/cif/schema.js +7 -7
  338. package/lib/commonjs/mol-io/reader/cif/schema.js.map +1 -1
  339. package/lib/commonjs/mol-io/reader/cif/text/parser.js +2 -2
  340. package/lib/commonjs/mol-io/reader/cif/text/parser.js.map +1 -1
  341. package/lib/commonjs/mol-io/reader/dcd/parser.js +2 -2
  342. package/lib/commonjs/mol-io/reader/dcd/parser.js.map +1 -1
  343. package/lib/commonjs/mol-io/reader/ply/schema.d.ts +1 -1
  344. package/lib/commonjs/mol-io/reader/ply/schema.js +1 -1
  345. package/lib/commonjs/mol-io/reader/ply/schema.js.map +1 -1
  346. package/lib/commonjs/mol-io/reader/result.js +1 -1
  347. package/lib/commonjs/mol-io/reader/result.js.map +1 -1
  348. package/lib/commonjs/mol-io/writer/cif/encoder/text.js +3 -3
  349. package/lib/commonjs/mol-io/writer/cif/encoder/text.js.map +1 -1
  350. package/lib/commonjs/mol-io/writer/cif/encoder.js +5 -5
  351. package/lib/commonjs/mol-io/writer/cif/encoder.js.map +1 -1
  352. package/lib/commonjs/mol-io/writer/mol/encoder.js +4 -4
  353. package/lib/commonjs/mol-io/writer/mol/encoder.js.map +1 -1
  354. package/lib/commonjs/mol-io/writer/mol2/encoder.js +6 -6
  355. package/lib/commonjs/mol-io/writer/mol2/encoder.js.map +1 -1
  356. package/lib/commonjs/mol-math/geometry/gaussian-density/gpu.js +1 -1
  357. package/lib/commonjs/mol-math/geometry/gaussian-density/gpu.js.map +1 -1
  358. package/lib/commonjs/mol-math/geometry/primitives/axes3d.d.ts +2 -1
  359. package/lib/commonjs/mol-math/geometry/primitives/axes3d.js +9 -2
  360. package/lib/commonjs/mol-math/geometry/primitives/axes3d.js.map +1 -1
  361. package/lib/commonjs/mol-math/geometry/spacegroup/construction.js +8 -8
  362. package/lib/commonjs/mol-math/geometry/spacegroup/construction.js.map +1 -1
  363. package/lib/commonjs/mol-math/geometry/spacegroup/tables.js +1 -1
  364. package/lib/commonjs/mol-math/geometry/spacegroup/tables.js.map +1 -1
  365. package/lib/commonjs/mol-math/geometry/symmetry-operator.js +4 -4
  366. package/lib/commonjs/mol-math/geometry/symmetry-operator.js.map +1 -1
  367. package/lib/commonjs/mol-math/graph/inter-unit-graph.js +2 -2
  368. package/lib/commonjs/mol-math/graph/inter-unit-graph.js.map +1 -1
  369. package/lib/commonjs/mol-math/linear-algebra/3d/quat.js +1 -1
  370. package/lib/commonjs/mol-math/linear-algebra/3d/quat.js.map +1 -1
  371. package/lib/commonjs/mol-math/linear-algebra/3d/vec2.js +1 -1
  372. package/lib/commonjs/mol-math/linear-algebra/3d/vec2.js.map +1 -1
  373. package/lib/commonjs/mol-math/linear-algebra/3d/vec3.d.ts +3 -1
  374. package/lib/commonjs/mol-math/linear-algebra/3d/vec3.js +12 -4
  375. package/lib/commonjs/mol-math/linear-algebra/3d/vec3.js.map +1 -1
  376. package/lib/commonjs/mol-math/linear-algebra/3d/vec4.js +1 -1
  377. package/lib/commonjs/mol-math/linear-algebra/3d/vec4.js.map +1 -1
  378. package/lib/commonjs/mol-math/misc.d.ts +3 -1
  379. package/lib/commonjs/mol-math/misc.js +24 -2
  380. package/lib/commonjs/mol-math/misc.js.map +1 -1
  381. package/lib/commonjs/mol-model/loci.d.ts +32 -32
  382. package/lib/commonjs/mol-model/loci.js +4 -3
  383. package/lib/commonjs/mol-model/loci.js.map +1 -1
  384. package/lib/commonjs/mol-model/sequence/sequence.js +2 -2
  385. package/lib/commonjs/mol-model/sequence/sequence.js.map +1 -1
  386. package/lib/commonjs/mol-model/shape/shape.d.ts +1 -1
  387. package/lib/commonjs/mol-model/structure/export/categories/atom_site.js +2 -2
  388. package/lib/commonjs/mol-model/structure/export/categories/atom_site.js.map +1 -1
  389. package/lib/commonjs/mol-model/structure/export/categories/atom_site_operator_mapping.js +1 -1
  390. package/lib/commonjs/mol-model/structure/export/categories/atom_site_operator_mapping.js.map +1 -1
  391. package/lib/commonjs/mol-model/structure/export/categories/secondary-structure.js +1 -1
  392. package/lib/commonjs/mol-model/structure/export/categories/secondary-structure.js.map +1 -1
  393. package/lib/commonjs/mol-model/structure/export/mmcif.js +1 -1
  394. package/lib/commonjs/mol-model/structure/export/mmcif.js.map +1 -1
  395. package/lib/commonjs/mol-model/structure/model/properties/atomic/bonds.js +2 -2
  396. package/lib/commonjs/mol-model/structure/model/properties/atomic/bonds.js.map +1 -1
  397. package/lib/commonjs/mol-model/structure/model/properties/symmetry.js +3 -3
  398. package/lib/commonjs/mol-model/structure/model/properties/symmetry.js.map +1 -1
  399. package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-index.js +2 -2
  400. package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-index.js.map +1 -1
  401. package/lib/commonjs/mol-model/structure/model/properties/utils/coarse-keys.js +1 -1
  402. package/lib/commonjs/mol-model/structure/model/properties/utils/coarse-keys.js.map +1 -1
  403. package/lib/commonjs/mol-model/structure/model/properties/utils/residue-set.js +1 -1
  404. package/lib/commonjs/mol-model/structure/model/properties/utils/residue-set.js.map +1 -1
  405. package/lib/commonjs/mol-model/structure/query/context.js +1 -1
  406. package/lib/commonjs/mol-model/structure/query/context.js.map +1 -1
  407. package/lib/commonjs/mol-model/structure/structure/carbohydrates/compute.js +1 -1
  408. package/lib/commonjs/mol-model/structure/structure/carbohydrates/compute.js.map +1 -1
  409. package/lib/commonjs/mol-model/structure/structure/element/loci.d.ts +1 -0
  410. package/lib/commonjs/mol-model/structure/structure/element/loci.js +16 -2
  411. package/lib/commonjs/mol-model/structure/structure/element/loci.js.map +1 -1
  412. package/lib/commonjs/mol-model/structure/structure/element/util.js +1 -1
  413. package/lib/commonjs/mol-model/structure/structure/element/util.js.map +1 -1
  414. package/lib/commonjs/mol-model/structure/structure/properties.d.ts +3 -3
  415. package/lib/commonjs/mol-model/structure/structure/properties.js +1 -1
  416. package/lib/commonjs/mol-model/structure/structure/properties.js.map +1 -1
  417. package/lib/commonjs/mol-model/structure/structure/structure.js +3 -2
  418. package/lib/commonjs/mol-model/structure/structure/structure.js.map +1 -1
  419. package/lib/commonjs/mol-model/structure/structure/symmetry.js +3 -3
  420. package/lib/commonjs/mol-model/structure/structure/symmetry.js.map +1 -1
  421. package/lib/commonjs/mol-model/structure/structure/unit/bonds/intra-compute.js +1 -1
  422. package/lib/commonjs/mol-model/structure/structure/unit/bonds/intra-compute.js.map +1 -1
  423. package/lib/commonjs/mol-model/structure/structure/unit/bonds.d.ts +2 -1
  424. package/lib/commonjs/mol-model/structure/structure/unit/bonds.js +6 -1
  425. package/lib/commonjs/mol-model/structure/structure/unit/bonds.js.map +1 -1
  426. package/lib/commonjs/mol-model/structure/structure/unit.d.ts +4 -4
  427. package/lib/commonjs/mol-model/structure/structure/util/superposition-db-mapping.js +1 -1
  428. package/lib/commonjs/mol-model/structure/structure/util/superposition-db-mapping.js.map +1 -1
  429. package/lib/commonjs/mol-model/volume/volume.js +2 -2
  430. package/lib/commonjs/mol-model/volume/volume.js.map +1 -1
  431. package/lib/commonjs/mol-model-formats/shape/ply.d.ts +10 -10
  432. package/lib/commonjs/mol-model-formats/shape/ply.js +1 -1
  433. package/lib/commonjs/mol-model-formats/shape/ply.js.map +1 -1
  434. package/lib/commonjs/mol-model-formats/structure/basic/atomic.js +2 -2
  435. package/lib/commonjs/mol-model-formats/structure/basic/atomic.js.map +1 -1
  436. package/lib/commonjs/mol-model-formats/structure/basic/properties.js +2 -2
  437. package/lib/commonjs/mol-model-formats/structure/basic/properties.js.map +1 -1
  438. package/lib/commonjs/mol-model-formats/structure/basic/schema.d.ts +7 -7
  439. package/lib/commonjs/mol-model-formats/structure/common/component.d.ts +8 -8
  440. package/lib/commonjs/mol-model-formats/structure/common/entity.d.ts +1 -1
  441. package/lib/commonjs/mol-model-formats/structure/common/entity.js +6 -6
  442. package/lib/commonjs/mol-model-formats/structure/common/entity.js.map +1 -1
  443. package/lib/commonjs/mol-model-formats/structure/pdb/assembly.js +10 -10
  444. package/lib/commonjs/mol-model-formats/structure/pdb/assembly.js.map +1 -1
  445. package/lib/commonjs/mol-model-formats/structure/pdb/conect.js +1 -1
  446. package/lib/commonjs/mol-model-formats/structure/pdb/conect.js.map +1 -1
  447. package/lib/commonjs/mol-model-formats/structure/pdb/entity.js +30 -4
  448. package/lib/commonjs/mol-model-formats/structure/pdb/entity.js.map +1 -1
  449. package/lib/commonjs/mol-model-formats/structure/property/assembly.js +1 -1
  450. package/lib/commonjs/mol-model-formats/structure/property/assembly.js.map +1 -1
  451. package/lib/commonjs/mol-model-formats/structure/property/symmetry.js +1 -1
  452. package/lib/commonjs/mol-model-formats/structure/property/symmetry.js.map +1 -1
  453. package/lib/commonjs/mol-model-formats/volume/ccp4.js +1 -1
  454. package/lib/commonjs/mol-model-formats/volume/ccp4.js.map +1 -1
  455. package/lib/commonjs/mol-model-props/common/custom-element-property.js +1 -1
  456. package/lib/commonjs/mol-model-props/common/custom-element-property.js.map +1 -1
  457. package/lib/commonjs/mol-model-props/common/custom-property.js +1 -1
  458. package/lib/commonjs/mol-model-props/common/custom-property.js.map +1 -1
  459. package/lib/commonjs/mol-model-props/computed/interactions/common.js +1 -1
  460. package/lib/commonjs/mol-model-props/computed/interactions/common.js.map +1 -1
  461. package/lib/commonjs/mol-model-props/computed/interactions/refine.js +2 -2
  462. package/lib/commonjs/mol-model-props/computed/interactions/refine.js.map +1 -1
  463. package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +5 -2
  464. package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +5 -2
  465. package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +15 -6
  466. package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/property.js +1 -1
  467. package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/property.js.map +1 -1
  468. package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +20 -8
  469. package/lib/commonjs/mol-model-props/integrative/pair-restraints.js +1 -1
  470. package/lib/commonjs/mol-model-props/integrative/pair-restraints.js.map +1 -1
  471. package/lib/commonjs/mol-model-props/sequence/best-database-mapping.js +1 -1
  472. package/lib/commonjs/mol-model-props/sequence/best-database-mapping.js.map +1 -1
  473. package/lib/commonjs/mol-model-props/sequence/themes/best-database-mapping.d.ts +12 -12
  474. package/lib/commonjs/mol-model-props/sequence/themes/best-database-mapping.js +1 -1
  475. package/lib/commonjs/mol-model-props/sequence/themes/best-database-mapping.js.map +1 -1
  476. package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/computed/accessible-surface-area.js +3 -3
  477. package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/computed/accessible-surface-area.js.map +1 -1
  478. package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/computed/interactions.js +3 -3
  479. package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/computed/interactions.js.map +1 -1
  480. package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/computed/valence-model.js +1 -1
  481. package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/computed/valence-model.js.map +1 -1
  482. package/lib/commonjs/mol-plugin/behavior/dynamic/representation.d.ts +4 -2
  483. package/lib/commonjs/mol-plugin/behavior/dynamic/representation.js +22 -8
  484. package/lib/commonjs/mol-plugin/behavior/dynamic/representation.js.map +1 -1
  485. package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +1 -1
  486. package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js +2 -2
  487. package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js.map +1 -1
  488. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/behavior.d.ts +10 -10
  489. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/behavior.js +6 -6
  490. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/behavior.js.map +1 -1
  491. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +3 -2
  492. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/transformers.d.ts +7 -7
  493. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/transformers.js +5 -5
  494. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/transformers.js.map +1 -1
  495. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/util.js +6 -6
  496. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/util.js.map +1 -1
  497. package/lib/commonjs/mol-plugin/behavior/static/state.js +4 -4
  498. package/lib/commonjs/mol-plugin/behavior/static/state.js.map +1 -1
  499. package/lib/commonjs/mol-plugin/commands.d.ts +8 -4
  500. package/lib/commonjs/mol-plugin/config.d.ts +1 -0
  501. package/lib/commonjs/mol-plugin/config.js +11 -3
  502. package/lib/commonjs/mol-plugin/config.js.map +1 -1
  503. package/lib/commonjs/mol-plugin/context.js +7 -6
  504. package/lib/commonjs/mol-plugin/context.js.map +1 -1
  505. package/lib/commonjs/mol-plugin/layout.d.ts +4 -4
  506. package/lib/commonjs/mol-plugin/util/viewport-screenshot.d.ts +9 -9
  507. package/lib/commonjs/mol-plugin/util/viewport-screenshot.js +1 -1
  508. package/lib/commonjs/mol-plugin/util/viewport-screenshot.js.map +1 -1
  509. package/lib/commonjs/mol-plugin-state/actions/file.js +3 -3
  510. package/lib/commonjs/mol-plugin-state/actions/file.js.map +1 -1
  511. package/lib/commonjs/mol-plugin-state/actions/structure.d.ts +1 -1
  512. package/lib/commonjs/mol-plugin-state/actions/structure.js +12 -12
  513. package/lib/commonjs/mol-plugin-state/actions/structure.js.map +1 -1
  514. package/lib/commonjs/mol-plugin-state/actions/volume.js +16 -16
  515. package/lib/commonjs/mol-plugin-state/actions/volume.js.map +1 -1
  516. package/lib/commonjs/mol-plugin-state/animation/built-in/model-index.d.ts +2 -2
  517. package/lib/commonjs/mol-plugin-state/animation/helpers.d.ts +5 -5
  518. package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +5 -5
  519. package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy.d.ts +5 -5
  520. package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy.js +2 -2
  521. package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy.js.map +1 -1
  522. package/lib/commonjs/mol-plugin-state/builder/structure/representation-preset.d.ts +21 -21
  523. package/lib/commonjs/mol-plugin-state/builder/structure/representation-preset.js +21 -17
  524. package/lib/commonjs/mol-plugin-state/builder/structure/representation-preset.js.map +1 -1
  525. package/lib/commonjs/mol-plugin-state/builder/structure/representation.d.ts +1 -1
  526. package/lib/commonjs/mol-plugin-state/builder/structure/representation.js +2 -2
  527. package/lib/commonjs/mol-plugin-state/builder/structure/representation.js.map +1 -1
  528. package/lib/commonjs/mol-plugin-state/builder/structure.js +3 -3
  529. package/lib/commonjs/mol-plugin-state/builder/structure.js.map +1 -1
  530. package/lib/commonjs/mol-plugin-state/formats/registry.js +1 -1
  531. package/lib/commonjs/mol-plugin-state/formats/registry.js.map +1 -1
  532. package/lib/commonjs/mol-plugin-state/formats/volume.d.ts +12 -12
  533. package/lib/commonjs/mol-plugin-state/helpers/root-structure.d.ts +5 -5
  534. package/lib/commonjs/mol-plugin-state/helpers/root-structure.js +10 -10
  535. package/lib/commonjs/mol-plugin-state/helpers/root-structure.js.map +1 -1
  536. package/lib/commonjs/mol-plugin-state/helpers/structure-component.d.ts +2 -2
  537. package/lib/commonjs/mol-plugin-state/helpers/structure-component.js +3 -3
  538. package/lib/commonjs/mol-plugin-state/helpers/structure-component.js.map +1 -1
  539. package/lib/commonjs/mol-plugin-state/helpers/structure-query.js +1 -1
  540. package/lib/commonjs/mol-plugin-state/helpers/structure-query.js.map +1 -1
  541. package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.js +5 -5
  542. package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.js.map +1 -1
  543. package/lib/commonjs/mol-plugin-state/manager/animation.js +1 -1
  544. package/lib/commonjs/mol-plugin-state/manager/animation.js.map +1 -1
  545. package/lib/commonjs/mol-plugin-state/manager/interactivity.d.ts +2 -2
  546. package/lib/commonjs/mol-plugin-state/manager/interactivity.js +12 -11
  547. package/lib/commonjs/mol-plugin-state/manager/interactivity.js.map +1 -1
  548. package/lib/commonjs/mol-plugin-state/manager/loci-label.js +1 -1
  549. package/lib/commonjs/mol-plugin-state/manager/loci-label.js.map +1 -1
  550. package/lib/commonjs/mol-plugin-state/manager/snapshots.js +2 -2
  551. package/lib/commonjs/mol-plugin-state/manager/snapshots.js.map +1 -1
  552. package/lib/commonjs/mol-plugin-state/manager/structure/component.d.ts +3 -3
  553. package/lib/commonjs/mol-plugin-state/manager/structure/hierarchy.js +2 -2
  554. package/lib/commonjs/mol-plugin-state/manager/structure/hierarchy.js.map +1 -1
  555. package/lib/commonjs/mol-plugin-state/manager/structure/measurement.d.ts +7 -2
  556. package/lib/commonjs/mol-plugin-state/manager/structure/measurement.js +111 -13
  557. package/lib/commonjs/mol-plugin-state/manager/structure/measurement.js.map +1 -1
  558. package/lib/commonjs/mol-plugin-state/manager/structure/selection.d.ts +3 -3
  559. package/lib/commonjs/mol-plugin-state/manager/structure/selection.js +4 -10
  560. package/lib/commonjs/mol-plugin-state/manager/structure/selection.js.map +1 -1
  561. package/lib/commonjs/mol-plugin-state/transforms/data.d.ts +1 -1
  562. package/lib/commonjs/mol-plugin-state/transforms/data.js +8 -8
  563. package/lib/commonjs/mol-plugin-state/transforms/data.js.map +1 -1
  564. package/lib/commonjs/mol-plugin-state/transforms/helpers.d.ts +3 -1
  565. package/lib/commonjs/mol-plugin-state/transforms/helpers.js +7 -4
  566. package/lib/commonjs/mol-plugin-state/transforms/helpers.js.map +1 -1
  567. package/lib/commonjs/mol-plugin-state/transforms/model.d.ts +7 -7
  568. package/lib/commonjs/mol-plugin-state/transforms/model.js +18 -18
  569. package/lib/commonjs/mol-plugin-state/transforms/model.js.map +1 -1
  570. package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +30 -15
  571. package/lib/commonjs/mol-plugin-state/transforms/representation.js +78 -26
  572. package/lib/commonjs/mol-plugin-state/transforms/representation.js.map +1 -1
  573. package/lib/commonjs/mol-plugin-state/transforms/volume.js +7 -7
  574. package/lib/commonjs/mol-plugin-state/transforms/volume.js.map +1 -1
  575. package/lib/commonjs/mol-plugin-ui/base.js +1 -1
  576. package/lib/commonjs/mol-plugin-ui/base.js.map +1 -1
  577. package/lib/commonjs/mol-plugin-ui/controls/action-menu.js +3 -3
  578. package/lib/commonjs/mol-plugin-ui/controls/action-menu.js.map +1 -1
  579. package/lib/commonjs/mol-plugin-ui/controls/color.js +2 -2
  580. package/lib/commonjs/mol-plugin-ui/controls/color.js.map +1 -1
  581. package/lib/commonjs/mol-plugin-ui/controls/common.js +9 -9
  582. package/lib/commonjs/mol-plugin-ui/controls/common.js.map +1 -1
  583. package/lib/commonjs/mol-plugin-ui/controls/icons.js +1 -1
  584. package/lib/commonjs/mol-plugin-ui/controls/icons.js.map +1 -1
  585. package/lib/commonjs/mol-plugin-ui/controls/legend.js +3 -3
  586. package/lib/commonjs/mol-plugin-ui/controls/legend.js.map +1 -1
  587. package/lib/commonjs/mol-plugin-ui/controls/line-graph/line-graph-component.js +6 -6
  588. package/lib/commonjs/mol-plugin-ui/controls/line-graph/line-graph-component.js.map +1 -1
  589. package/lib/commonjs/mol-plugin-ui/controls/line-graph/point-component.js +1 -1
  590. package/lib/commonjs/mol-plugin-ui/controls/line-graph/point-component.js.map +1 -1
  591. package/lib/commonjs/mol-plugin-ui/controls/parameters.js +29 -29
  592. package/lib/commonjs/mol-plugin-ui/controls/parameters.js.map +1 -1
  593. package/lib/commonjs/mol-plugin-ui/controls/screenshot.js +1 -1
  594. package/lib/commonjs/mol-plugin-ui/controls/screenshot.js.map +1 -1
  595. package/lib/commonjs/mol-plugin-ui/controls/slider.js +9 -9
  596. package/lib/commonjs/mol-plugin-ui/controls/slider.js.map +1 -1
  597. package/lib/commonjs/mol-plugin-ui/controls.js +2 -2
  598. package/lib/commonjs/mol-plugin-ui/controls.js.map +1 -1
  599. package/lib/commonjs/mol-plugin-ui/plugin.js +3 -3
  600. package/lib/commonjs/mol-plugin-ui/plugin.js.map +1 -1
  601. package/lib/commonjs/mol-plugin-ui/sequence/chain.js +3 -3
  602. package/lib/commonjs/mol-plugin-ui/sequence/chain.js.map +1 -1
  603. package/lib/commonjs/mol-plugin-ui/sequence/sequence.js +4 -4
  604. package/lib/commonjs/mol-plugin-ui/sequence/sequence.js.map +1 -1
  605. package/lib/commonjs/mol-plugin-ui/sequence.d.ts +1 -1
  606. package/lib/commonjs/mol-plugin-ui/sequence.js +24 -10
  607. package/lib/commonjs/mol-plugin-ui/sequence.js.map +1 -1
  608. package/lib/commonjs/mol-plugin-ui/state/actions.js +1 -1
  609. package/lib/commonjs/mol-plugin-ui/state/actions.js.map +1 -1
  610. package/lib/commonjs/mol-plugin-ui/state/common.js +2 -2
  611. package/lib/commonjs/mol-plugin-ui/state/common.js.map +1 -1
  612. package/lib/commonjs/mol-plugin-ui/state/snapshots.js +4 -4
  613. package/lib/commonjs/mol-plugin-ui/state/snapshots.js.map +1 -1
  614. package/lib/commonjs/mol-plugin-ui/state/tree.js +8 -8
  615. package/lib/commonjs/mol-plugin-ui/state/tree.js.map +1 -1
  616. package/lib/commonjs/mol-plugin-ui/structure/components.js +4 -4
  617. package/lib/commonjs/mol-plugin-ui/structure/components.js.map +1 -1
  618. package/lib/commonjs/mol-plugin-ui/structure/focus.js +4 -4
  619. package/lib/commonjs/mol-plugin-ui/structure/focus.js.map +1 -1
  620. package/lib/commonjs/mol-plugin-ui/structure/generic.js +2 -2
  621. package/lib/commonjs/mol-plugin-ui/structure/generic.js.map +1 -1
  622. package/lib/commonjs/mol-plugin-ui/structure/measurements.d.ts +11 -2
  623. package/lib/commonjs/mol-plugin-ui/structure/measurements.js +49 -6
  624. package/lib/commonjs/mol-plugin-ui/structure/measurements.js.map +1 -1
  625. package/lib/commonjs/mol-plugin-ui/structure/selection.js +4 -4
  626. package/lib/commonjs/mol-plugin-ui/structure/selection.js.map +1 -1
  627. package/lib/commonjs/mol-plugin-ui/structure/source.js +12 -12
  628. package/lib/commonjs/mol-plugin-ui/structure/source.js.map +1 -1
  629. package/lib/commonjs/mol-plugin-ui/structure/superposition.js +4 -4
  630. package/lib/commonjs/mol-plugin-ui/structure/superposition.js.map +1 -1
  631. package/lib/commonjs/mol-plugin-ui/structure/volume.js +2 -2
  632. package/lib/commonjs/mol-plugin-ui/structure/volume.js.map +1 -1
  633. package/lib/commonjs/mol-repr/representation.d.ts +1 -0
  634. package/lib/commonjs/mol-repr/representation.js +14 -8
  635. package/lib/commonjs/mol-repr/representation.js.map +1 -1
  636. package/lib/commonjs/mol-repr/shape/loci/angle.d.ts +1 -1
  637. package/lib/commonjs/mol-repr/shape/loci/angle.js +2 -2
  638. package/lib/commonjs/mol-repr/shape/loci/angle.js.map +1 -1
  639. package/lib/commonjs/mol-repr/shape/loci/common.d.ts +1 -1
  640. package/lib/commonjs/mol-repr/shape/loci/dihedral.d.ts +1 -1
  641. package/lib/commonjs/mol-repr/shape/loci/dihedral.js +2 -2
  642. package/lib/commonjs/mol-repr/shape/loci/dihedral.js.map +1 -1
  643. package/lib/commonjs/mol-repr/shape/loci/distance.d.ts +1 -1
  644. package/lib/commonjs/mol-repr/shape/loci/distance.js +2 -2
  645. package/lib/commonjs/mol-repr/shape/loci/distance.js.map +1 -1
  646. package/lib/commonjs/mol-repr/shape/loci/label.d.ts +1 -1
  647. package/lib/commonjs/mol-repr/shape/loci/label.js +1 -1
  648. package/lib/commonjs/mol-repr/shape/loci/label.js.map +1 -1
  649. package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +6 -5
  650. package/lib/commonjs/mol-repr/shape/loci/orientation.js +38 -52
  651. package/lib/commonjs/mol-repr/shape/loci/orientation.js.map +1 -1
  652. package/lib/commonjs/mol-repr/shape/loci/plane.d.ts +27 -0
  653. package/lib/commonjs/mol-repr/shape/loci/plane.js +61 -0
  654. package/lib/commonjs/mol-repr/shape/loci/plane.js.map +1 -0
  655. package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +2 -2
  656. package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +13 -13
  657. package/lib/commonjs/mol-repr/structure/params.d.ts +12 -12
  658. package/lib/commonjs/mol-repr/structure/registry.d.ts +59 -40
  659. package/lib/commonjs/mol-repr/structure/registry.js +1 -1
  660. package/lib/commonjs/mol-repr/structure/registry.js.map +1 -1
  661. package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +6 -6
  662. package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +24 -12
  663. package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +15 -6
  664. package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +9 -6
  665. package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +24 -12
  666. package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +6 -6
  667. package/lib/commonjs/mol-repr/structure/representation/gaussian-volume.d.ts +9 -9
  668. package/lib/commonjs/mol-repr/structure/representation/label.d.ts +9 -9
  669. package/lib/commonjs/mol-repr/structure/representation/line.d.ts +43 -22
  670. package/lib/commonjs/mol-repr/structure/representation/line.js +10 -4
  671. package/lib/commonjs/mol-repr/structure/representation/line.js.map +1 -1
  672. package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +6 -6
  673. package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +6 -6
  674. package/lib/commonjs/mol-repr/structure/representation/point.d.ts +9 -9
  675. package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +6 -6
  676. package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +6 -6
  677. package/lib/commonjs/mol-repr/structure/units-representation.js +1 -1
  678. package/lib/commonjs/mol-repr/structure/units-representation.js.map +1 -1
  679. package/lib/commonjs/mol-repr/structure/units-visual.d.ts +18 -18
  680. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +16 -8
  681. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.js +20 -9
  682. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.js.map +1 -1
  683. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-line.d.ts +6 -4
  684. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-line.js +13 -8
  685. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-line.js.map +1 -1
  686. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +16 -8
  687. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.js +21 -7
  688. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.js.map +1 -1
  689. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.d.ts +6 -4
  690. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.js +14 -6
  691. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.js.map +1 -1
  692. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +5 -2
  693. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +2 -2
  694. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +5 -2
  695. package/lib/commonjs/mol-repr/structure/visual/element-cross.d.ts +26 -0
  696. package/lib/commonjs/mol-repr/structure/visual/element-cross.js +77 -0
  697. package/lib/commonjs/mol-repr/structure/visual/element-cross.js.map +1 -0
  698. package/lib/commonjs/mol-repr/structure/visual/element-point.d.ts +3 -3
  699. package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +4 -4
  700. package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +2 -2
  701. package/lib/commonjs/mol-repr/structure/visual/gaussian-density-volume.d.ts +6 -6
  702. package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +8 -8
  703. package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +2 -2
  704. package/lib/commonjs/mol-repr/structure/visual/label-text.d.ts +3 -3
  705. package/lib/commonjs/mol-repr/structure/visual/label-text.js +3 -3
  706. package/lib/commonjs/mol-repr/structure/visual/label-text.js.map +1 -1
  707. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +2 -2
  708. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +2 -2
  709. package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +2 -2
  710. package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +2 -2
  711. package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +2 -2
  712. package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +4 -4
  713. package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +4 -4
  714. package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +2 -2
  715. package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +2 -2
  716. package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +5 -2
  717. package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.js +22 -15
  718. package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.js.map +1 -1
  719. package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +2 -2
  720. package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.js +1 -1
  721. package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.js.map +1 -1
  722. package/lib/commonjs/mol-repr/structure/visual/util/bond.d.ts +30 -16
  723. package/lib/commonjs/mol-repr/structure/visual/util/bond.js +2 -1
  724. package/lib/commonjs/mol-repr/structure/visual/util/bond.js.map +1 -1
  725. package/lib/commonjs/mol-repr/structure/visual/util/common.d.ts +2 -2
  726. package/lib/commonjs/mol-repr/structure/visual/util/element.d.ts +4 -4
  727. package/lib/commonjs/mol-repr/structure/visual/util/link.d.ts +14 -4
  728. package/lib/commonjs/mol-repr/structure/visual/util/link.js +90 -37
  729. package/lib/commonjs/mol-repr/structure/visual/util/link.js.map +1 -1
  730. package/lib/commonjs/mol-repr/structure/visual/util/polymer.d.ts +2 -2
  731. package/lib/commonjs/mol-repr/volume/direct-volume.d.ts +9 -9
  732. package/lib/commonjs/mol-repr/volume/isosurface.d.ts +12 -12
  733. package/lib/commonjs/mol-repr/volume/registry.d.ts +8 -8
  734. package/lib/commonjs/mol-repr/volume/registry.js +1 -1
  735. package/lib/commonjs/mol-repr/volume/registry.js.map +1 -1
  736. package/lib/commonjs/mol-repr/volume/representation.d.ts +1 -1
  737. package/lib/commonjs/mol-repr/volume/slice.d.ts +9 -9
  738. package/lib/commonjs/mol-script/language/builder.d.ts +0 -1
  739. package/lib/commonjs/mol-script/language/expression-formatter.js +6 -6
  740. package/lib/commonjs/mol-script/language/expression-formatter.js.map +1 -1
  741. package/lib/commonjs/mol-script/language/helpers.js +4 -4
  742. package/lib/commonjs/mol-script/language/helpers.js.map +1 -1
  743. package/lib/commonjs/mol-script/language/parser.js +1 -1
  744. package/lib/commonjs/mol-script/language/parser.js.map +1 -1
  745. package/lib/commonjs/mol-script/language/symbol-table/structure-query.js +3 -3
  746. package/lib/commonjs/mol-script/language/symbol-table/structure-query.js.map +1 -1
  747. package/lib/commonjs/mol-script/language/symbol.js +1 -1
  748. package/lib/commonjs/mol-script/language/symbol.js.map +1 -1
  749. package/lib/commonjs/mol-script/runtime/query/base.js +2 -2
  750. package/lib/commonjs/mol-script/runtime/query/base.js.map +1 -1
  751. package/lib/commonjs/mol-script/script/mol-script/symbols.js +3 -3
  752. package/lib/commonjs/mol-script/script/mol-script/symbols.js.map +1 -1
  753. package/lib/commonjs/mol-state/state/builder.js +1 -1
  754. package/lib/commonjs/mol-state/state/builder.js.map +1 -1
  755. package/lib/commonjs/mol-state/state.js +7 -7
  756. package/lib/commonjs/mol-state/state.js.map +1 -1
  757. package/lib/commonjs/mol-state/transformer.js +3 -3
  758. package/lib/commonjs/mol-state/transformer.js.map +1 -1
  759. package/lib/commonjs/mol-state/tree/transient.js +3 -3
  760. package/lib/commonjs/mol-state/tree/transient.js.map +1 -1
  761. package/lib/commonjs/mol-task/execution/progress.js +4 -4
  762. package/lib/commonjs/mol-task/execution/progress.js.map +1 -1
  763. package/lib/commonjs/mol-task/task.js +1 -1
  764. package/lib/commonjs/mol-task/task.js.map +1 -1
  765. package/lib/commonjs/mol-task/util/multistep.js +1 -1
  766. package/lib/commonjs/mol-task/util/multistep.js.map +1 -1
  767. package/lib/commonjs/mol-task/util/user-timing.js +3 -3
  768. package/lib/commonjs/mol-task/util/user-timing.js.map +1 -1
  769. package/lib/commonjs/mol-theme/color/atom-id.d.ts +12 -12
  770. package/lib/commonjs/mol-theme/color/chain-id.d.ts +12 -12
  771. package/lib/commonjs/mol-theme/color/chain-id.js +1 -1
  772. package/lib/commonjs/mol-theme/color/chain-id.js.map +1 -1
  773. package/lib/commonjs/mol-theme/color/element-index.d.ts +12 -12
  774. package/lib/commonjs/mol-theme/color/element-symbol.d.ts +16 -16
  775. package/lib/commonjs/mol-theme/color/entity-id.d.ts +12 -12
  776. package/lib/commonjs/mol-theme/color/entity-id.js +1 -1
  777. package/lib/commonjs/mol-theme/color/entity-id.js.map +1 -1
  778. package/lib/commonjs/mol-theme/color/entity-source.d.ts +12 -12
  779. package/lib/commonjs/mol-theme/color/entity-source.js +4 -4
  780. package/lib/commonjs/mol-theme/color/entity-source.js.map +1 -1
  781. package/lib/commonjs/mol-theme/color/illustrative.d.ts +12 -12
  782. package/lib/commonjs/mol-theme/color/model-index.d.ts +12 -12
  783. package/lib/commonjs/mol-theme/color/operator-hkl.d.ts +12 -12
  784. package/lib/commonjs/mol-theme/color/operator-hkl.js +2 -2
  785. package/lib/commonjs/mol-theme/color/operator-hkl.js.map +1 -1
  786. package/lib/commonjs/mol-theme/color/operator-name.d.ts +12 -12
  787. package/lib/commonjs/mol-theme/color/polymer-id.d.ts +12 -12
  788. package/lib/commonjs/mol-theme/color/polymer-index.d.ts +12 -12
  789. package/lib/commonjs/mol-theme/color/unit-index.d.ts +12 -12
  790. package/lib/commonjs/mol-theme/color.d.ts +80 -80
  791. package/lib/commonjs/mol-theme/label.d.ts +1 -0
  792. package/lib/commonjs/mol-theme/label.js +38 -28
  793. package/lib/commonjs/mol-theme/label.js.map +1 -1
  794. package/lib/commonjs/mol-theme/theme.js +3 -3
  795. package/lib/commonjs/mol-theme/theme.js.map +1 -1
  796. package/lib/commonjs/mol-util/assets.js +3 -3
  797. package/lib/commonjs/mol-util/assets.js.map +1 -1
  798. package/lib/commonjs/mol-util/color/color.js +2 -2
  799. package/lib/commonjs/mol-util/color/color.js.map +1 -1
  800. package/lib/commonjs/mol-util/color/lists.js +1 -1
  801. package/lib/commonjs/mol-util/color/lists.js.map +1 -1
  802. package/lib/commonjs/mol-util/color/names.d.ts +1 -1
  803. package/lib/commonjs/mol-util/color/palette.d.ts +12 -12
  804. package/lib/commonjs/mol-util/color/palette.js +2 -2
  805. package/lib/commonjs/mol-util/color/palette.js.map +1 -1
  806. package/lib/commonjs/mol-util/color/scale.d.ts +1 -1
  807. package/lib/commonjs/mol-util/console-logger.js +9 -9
  808. package/lib/commonjs/mol-util/console-logger.js.map +1 -1
  809. package/lib/commonjs/mol-util/data-source.js +5 -5
  810. package/lib/commonjs/mol-util/data-source.js.map +1 -1
  811. package/lib/commonjs/mol-util/download.js +1 -1
  812. package/lib/commonjs/mol-util/download.js.map +1 -1
  813. package/lib/commonjs/mol-util/graphql-client.js +2 -2
  814. package/lib/commonjs/mol-util/graphql-client.js.map +1 -1
  815. package/lib/commonjs/mol-util/index.js +2 -2
  816. package/lib/commonjs/mol-util/index.js.map +1 -1
  817. package/lib/commonjs/mol-util/monadic-parser.js +4 -4
  818. package/lib/commonjs/mol-util/monadic-parser.js.map +1 -1
  819. package/lib/commonjs/mol-util/now.js +4 -4
  820. package/lib/commonjs/mol-util/now.js.map +1 -1
  821. package/lib/commonjs/mol-util/object.js +1 -1
  822. package/lib/commonjs/mol-util/object.js.map +1 -1
  823. package/lib/commonjs/mol-util/performance-monitor.js +4 -4
  824. package/lib/commonjs/mol-util/performance-monitor.js.map +1 -1
  825. package/lib/commonjs/mol-util/string.js +3 -3
  826. package/lib/commonjs/mol-util/string.js.map +1 -1
  827. package/lib/commonjs/mol-util/url.js +2 -2
  828. package/lib/commonjs/mol-util/url.js.map +1 -1
  829. package/lib/commonjs/mol-util/zip/deflate.js +1 -1
  830. package/lib/commonjs/mol-util/zip/deflate.js.map +1 -1
  831. package/lib/commonjs/mol-util/zip/inflate.js +1 -1
  832. package/lib/commonjs/mol-util/zip/inflate.js.map +1 -1
  833. package/lib/commonjs/mol-util/zip/zip.js +1 -1
  834. package/lib/commonjs/mol-util/zip/zip.js.map +1 -1
  835. package/lib/commonjs/perf-tests/mol-script.js +1 -1
  836. package/lib/commonjs/perf-tests/mol-script.js.map +1 -1
  837. package/lib/commonjs/perf-tests/sets.js +1 -1
  838. package/lib/commonjs/perf-tests/sets.js.map +1 -1
  839. package/lib/commonjs/perf-tests/sort.js +1 -1
  840. package/lib/commonjs/perf-tests/sort.js.map +1 -1
  841. package/lib/commonjs/perf-tests/string-builder.js +2 -2
  842. package/lib/commonjs/perf-tests/string-builder.js.map +1 -1
  843. package/lib/commonjs/perf-tests/structure.js +7 -7
  844. package/lib/commonjs/perf-tests/structure.js.map +1 -1
  845. package/lib/commonjs/perf-tests/test-xtc.js +1 -1
  846. package/lib/commonjs/perf-tests/test-xtc.js.map +1 -1
  847. package/lib/commonjs/servers/common/file-handle.js +1 -1
  848. package/lib/commonjs/servers/common/file-handle.js.map +1 -1
  849. package/lib/commonjs/servers/common/util.js +1 -1
  850. package/lib/commonjs/servers/common/util.js.map +1 -1
  851. package/lib/commonjs/servers/model/config.js +4 -5
  852. package/lib/commonjs/servers/model/config.js.map +1 -1
  853. package/lib/commonjs/servers/model/preprocess/master.js +1 -1
  854. package/lib/commonjs/servers/model/preprocess/master.js.map +1 -1
  855. package/lib/commonjs/servers/model/preprocess/parallel.js +2 -2
  856. package/lib/commonjs/servers/model/preprocess/parallel.js.map +1 -1
  857. package/lib/commonjs/servers/model/preprocess/util.js +3 -3
  858. package/lib/commonjs/servers/model/preprocess/util.js.map +1 -1
  859. package/lib/commonjs/servers/model/preprocess.js +0 -0
  860. package/lib/commonjs/servers/model/properties/providers/pdbe.js +5 -5
  861. package/lib/commonjs/servers/model/properties/providers/pdbe.js.map +1 -1
  862. package/lib/commonjs/servers/model/property-provider.js +2 -2
  863. package/lib/commonjs/servers/model/property-provider.js.map +1 -1
  864. package/lib/commonjs/servers/model/query.js +1 -1
  865. package/lib/commonjs/servers/model/query.js.map +1 -1
  866. package/lib/commonjs/servers/model/server/api-local.js +2 -2
  867. package/lib/commonjs/servers/model/server/api-local.js.map +1 -1
  868. package/lib/commonjs/servers/model/server/api-schema.js +2 -2
  869. package/lib/commonjs/servers/model/server/api-schema.js.map +1 -1
  870. package/lib/commonjs/servers/model/server/api-web-multiple.js +1 -1
  871. package/lib/commonjs/servers/model/server/api-web-multiple.js.map +1 -1
  872. package/lib/commonjs/servers/model/server/api-web.js +4 -4
  873. package/lib/commonjs/servers/model/server/api-web.js.map +1 -1
  874. package/lib/commonjs/servers/model/server/api.js +1 -1
  875. package/lib/commonjs/servers/model/server/api.js.map +1 -1
  876. package/lib/commonjs/servers/model/server/cache.js +3 -3
  877. package/lib/commonjs/servers/model/server/cache.js.map +1 -1
  878. package/lib/commonjs/servers/model/server/jobs.js +3 -3
  879. package/lib/commonjs/servers/model/server/jobs.js.map +1 -1
  880. package/lib/commonjs/servers/model/server/query.js +10 -10
  881. package/lib/commonjs/servers/model/server/query.js.map +1 -1
  882. package/lib/commonjs/servers/model/server/structure-wrapper.js +6 -6
  883. package/lib/commonjs/servers/model/server/structure-wrapper.js.map +1 -1
  884. package/lib/commonjs/servers/model/server.js +3 -3
  885. package/lib/commonjs/servers/model/server.js.map +1 -1
  886. package/lib/commonjs/servers/model/utils/fetch-props-pdbe.js +4 -4
  887. package/lib/commonjs/servers/model/utils/fetch-props-pdbe.js.map +1 -1
  888. package/lib/commonjs/servers/model/utils/writer.js +2 -2
  889. package/lib/commonjs/servers/model/utils/writer.js.map +1 -1
  890. package/lib/commonjs/servers/plugin-state/api-schema.js +2 -2
  891. package/lib/commonjs/servers/plugin-state/api-schema.js.map +1 -1
  892. package/lib/commonjs/servers/plugin-state/index.js +1 -1
  893. package/lib/commonjs/servers/plugin-state/index.js.map +1 -1
  894. package/lib/commonjs/servers/volume/config.js +0 -1
  895. package/lib/commonjs/servers/volume/config.js.map +1 -1
  896. package/lib/commonjs/servers/volume/pack/format/dsn6.js +1 -1
  897. package/lib/commonjs/servers/volume/pack/format/dsn6.js.map +1 -1
  898. package/lib/commonjs/servers/volume/pack/main.js +4 -4
  899. package/lib/commonjs/servers/volume/pack/main.js.map +1 -1
  900. package/lib/commonjs/servers/volume/pack/writer.js +1 -1
  901. package/lib/commonjs/servers/volume/pack/writer.js.map +1 -1
  902. package/lib/commonjs/servers/volume/pack.js +1 -1
  903. package/lib/commonjs/servers/volume/pack.js.map +1 -1
  904. package/lib/commonjs/servers/volume/query.js +0 -0
  905. package/lib/commonjs/servers/volume/server/api.js +7 -7
  906. package/lib/commonjs/servers/volume/server/api.js.map +1 -1
  907. package/lib/commonjs/servers/volume/server/local-api.js +1 -1
  908. package/lib/commonjs/servers/volume/server/local-api.js.map +1 -1
  909. package/lib/commonjs/servers/volume/server/query/encode.js +3 -3
  910. package/lib/commonjs/servers/volume/server/query/encode.js.map +1 -1
  911. package/lib/commonjs/servers/volume/server/query/execute.js +5 -5
  912. package/lib/commonjs/servers/volume/server/query/execute.js.map +1 -1
  913. package/lib/commonjs/servers/volume/server/version.js +1 -1
  914. package/lib/commonjs/servers/volume/server/version.js.map +1 -1
  915. package/lib/commonjs/servers/volume/server/web-api.js +7 -7
  916. package/lib/commonjs/servers/volume/server/web-api.js.map +1 -1
  917. package/lib/commonjs/servers/volume/server/web-schema.js +6 -6
  918. package/lib/commonjs/servers/volume/server/web-schema.js.map +1 -1
  919. package/lib/commonjs/servers/volume/server.js +2 -2
  920. package/lib/commonjs/servers/volume/server.js.map +1 -1
  921. package/lib/commonjs/tests/browser/font-atlas.js +1 -1
  922. package/lib/commonjs/tests/browser/font-atlas.js.map +1 -1
  923. package/lib/commonjs/tests/browser/render-shape.js +1 -1
  924. package/lib/commonjs/tests/browser/render-shape.js.map +1 -1
  925. package/lib/commonjs/tests/browser/render-structure.js +1 -1
  926. package/lib/commonjs/tests/browser/render-structure.js.map +1 -1
  927. package/lib/examples/alpha-orbitals/index.html +60 -60
  928. package/lib/examples/basic-wrapper/index.html +136 -136
  929. package/lib/examples/basic-wrapper/superposition.js +3 -3
  930. package/lib/examples/basic-wrapper/superposition.js.map +1 -1
  931. package/lib/examples/domain-annotation-server/mapping.js +2 -2
  932. package/lib/examples/domain-annotation-server/mapping.js.map +1 -1
  933. package/lib/examples/domain-annotation-server/server.js +3 -3
  934. package/lib/examples/domain-annotation-server/server.js.map +1 -1
  935. package/lib/examples/lighting/index.html +86 -86
  936. package/lib/examples/proteopedia-wrapper/annotation.js +3 -3
  937. package/lib/examples/proteopedia-wrapper/annotation.js.map +1 -1
  938. package/lib/examples/proteopedia-wrapper/helpers.js +1 -1
  939. package/lib/examples/proteopedia-wrapper/helpers.js.map +1 -1
  940. package/lib/examples/proteopedia-wrapper/index.html +235 -235
  941. package/lib/examples/proteopedia-wrapper/index.js +2 -2
  942. package/lib/examples/proteopedia-wrapper/index.js.map +1 -1
  943. package/lib/examples/task.js +6 -6
  944. package/lib/examples/task.js.map +1 -1
  945. package/lib/extensions/alpha-orbitals/transforms.js +2 -2
  946. package/lib/extensions/alpha-orbitals/transforms.js.map +1 -1
  947. package/lib/extensions/anvil/representation.js +1 -1
  948. package/lib/extensions/anvil/representation.js.map +1 -1
  949. package/lib/extensions/cellpack/color/generate.d.ts +1 -1
  950. package/lib/extensions/cellpack/color/generate.js +1 -1
  951. package/lib/extensions/cellpack/color/provided.d.ts +1 -1
  952. package/lib/extensions/cellpack/color/provided.js +1 -1
  953. package/lib/extensions/cellpack/curve.d.ts +2 -2
  954. package/lib/extensions/cellpack/curve.js +2 -2
  955. package/lib/extensions/cellpack/data.d.ts +32 -0
  956. package/lib/extensions/cellpack/index.d.ts +1 -1
  957. package/lib/extensions/cellpack/index.js +1 -1
  958. package/lib/extensions/cellpack/model.d.ts +5 -3
  959. package/lib/extensions/cellpack/model.js +204 -66
  960. package/lib/extensions/cellpack/model.js.map +1 -1
  961. package/lib/extensions/cellpack/preset.d.ts +2 -1
  962. package/lib/extensions/cellpack/preset.js +12 -15
  963. package/lib/extensions/cellpack/preset.js.map +1 -1
  964. package/lib/extensions/cellpack/property.d.ts +1 -1
  965. package/lib/extensions/cellpack/property.js +1 -1
  966. package/lib/extensions/cellpack/representation.d.ts +53 -0
  967. package/lib/extensions/cellpack/representation.js +43 -0
  968. package/lib/extensions/cellpack/representation.js.map +1 -0
  969. package/lib/extensions/cellpack/state.d.ts +16 -5
  970. package/lib/extensions/cellpack/state.js +232 -25
  971. package/lib/extensions/cellpack/state.js.map +1 -1
  972. package/lib/extensions/cellpack/util.d.ts +3 -1
  973. package/lib/extensions/cellpack/util.js +32 -5
  974. package/lib/extensions/cellpack/util.js.map +1 -1
  975. package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +3 -3
  976. package/lib/extensions/dnatco/confal-pyramids/util.js +7 -7
  977. package/lib/extensions/dnatco/confal-pyramids/util.js.map +1 -1
  978. package/lib/extensions/g3d/data.js +2 -2
  979. package/lib/extensions/g3d/data.js.map +1 -1
  980. package/lib/extensions/g3d/model.js +2 -2
  981. package/lib/extensions/g3d/model.js.map +1 -1
  982. package/lib/extensions/geo-export/controls.js +2 -2
  983. package/lib/extensions/geo-export/controls.js.map +1 -1
  984. package/lib/extensions/geo-export/glb-exporter.js +1 -1
  985. package/lib/extensions/geo-export/glb-exporter.js.map +1 -1
  986. package/lib/extensions/geo-export/obj-exporter.js +3 -3
  987. package/lib/extensions/geo-export/obj-exporter.js.map +1 -1
  988. package/lib/extensions/geo-export/stl-exporter.js +1 -1
  989. package/lib/extensions/geo-export/stl-exporter.js.map +1 -1
  990. package/lib/extensions/geo-export/usdz-exporter.js +5 -5
  991. package/lib/extensions/geo-export/usdz-exporter.js.map +1 -1
  992. package/lib/extensions/mp4-export/controls.js +1 -1
  993. package/lib/extensions/mp4-export/controls.js.map +1 -1
  994. package/lib/extensions/pdbe/structure-quality-report/behavior.js +1 -1
  995. package/lib/extensions/pdbe/structure-quality-report/behavior.js.map +1 -1
  996. package/lib/extensions/pdbe/structure-quality-report/prop.js +1 -1
  997. package/lib/extensions/pdbe/structure-quality-report/prop.js.map +1 -1
  998. package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +3 -3
  999. package/lib/extensions/rcsb/assembly-symmetry/behavior.js +3 -3
  1000. package/lib/extensions/rcsb/assembly-symmetry/behavior.js.map +1 -1
  1001. package/lib/extensions/rcsb/assembly-symmetry/color.d.ts +12 -12
  1002. package/lib/extensions/rcsb/assembly-symmetry/color.js +1 -1
  1003. package/lib/extensions/rcsb/assembly-symmetry/color.js.map +1 -1
  1004. package/lib/extensions/rcsb/assembly-symmetry/prop.js +2 -2
  1005. package/lib/extensions/rcsb/assembly-symmetry/prop.js.map +1 -1
  1006. package/lib/extensions/rcsb/assembly-symmetry/representation.js +7 -7
  1007. package/lib/extensions/rcsb/assembly-symmetry/representation.js.map +1 -1
  1008. package/lib/extensions/rcsb/validation-report/behavior.js +11 -11
  1009. package/lib/extensions/rcsb/validation-report/behavior.js.map +1 -1
  1010. package/lib/extensions/rcsb/validation-report/prop.js +2 -2
  1011. package/lib/extensions/rcsb/validation-report/prop.js.map +1 -1
  1012. package/lib/extensions/rcsb/validation-report/representation.d.ts +20 -5
  1013. package/lib/extensions/rcsb/validation-report/representation.js +4 -4
  1014. package/lib/extensions/rcsb/validation-report/representation.js.map +1 -1
  1015. package/lib/mol-canvas3d/camera/util.d.ts +4 -3
  1016. package/lib/mol-canvas3d/camera/util.js +15 -16
  1017. package/lib/mol-canvas3d/camera/util.js.map +1 -1
  1018. package/lib/mol-canvas3d/camera.d.ts +11 -3
  1019. package/lib/mol-canvas3d/camera.js +22 -2
  1020. package/lib/mol-canvas3d/camera.js.map +1 -1
  1021. package/lib/mol-canvas3d/canvas3d.d.ts +10 -0
  1022. package/lib/mol-canvas3d/canvas3d.js +12 -6
  1023. package/lib/mol-canvas3d/canvas3d.js.map +1 -1
  1024. package/lib/mol-canvas3d/helper/handle-helper.js +1 -1
  1025. package/lib/mol-canvas3d/helper/handle-helper.js.map +1 -1
  1026. package/lib/mol-canvas3d/helper/interaction-events.d.ts +13 -4
  1027. package/lib/mol-canvas3d/helper/interaction-events.js +43 -9
  1028. package/lib/mol-canvas3d/helper/interaction-events.js.map +1 -1
  1029. package/lib/mol-canvas3d/passes/draw.js +1 -0
  1030. package/lib/mol-canvas3d/passes/draw.js.map +1 -1
  1031. package/lib/mol-canvas3d/passes/pick.d.ts +5 -2
  1032. package/lib/mol-canvas3d/passes/pick.js +17 -3
  1033. package/lib/mol-canvas3d/passes/pick.js.map +1 -1
  1034. package/lib/mol-canvas3d/passes/wboit.js +1 -1
  1035. package/lib/mol-canvas3d/passes/wboit.js.map +1 -1
  1036. package/lib/mol-canvas3d/util.js +1 -1
  1037. package/lib/mol-canvas3d/util.js.map +1 -1
  1038. package/lib/mol-data/db/table.js +1 -1
  1039. package/lib/mol-data/db/table.js.map +1 -1
  1040. package/lib/mol-data/int/_spec/sorted-ranges.spec.js +1 -1
  1041. package/lib/mol-data/int/_spec/sorted-ranges.spec.js.map +1 -1
  1042. package/lib/mol-data/int/impl/sorted-array.js +2 -2
  1043. package/lib/mol-data/int/impl/sorted-array.js.map +1 -1
  1044. package/lib/mol-data/int/tuple.js +1 -1
  1045. package/lib/mol-data/int/tuple.js.map +1 -1
  1046. package/lib/mol-data/util/_spec/interval-iterator.spec.js +1 -1
  1047. package/lib/mol-data/util/_spec/interval-iterator.spec.js.map +1 -1
  1048. package/lib/mol-geo/geometry/direct-volume/direct-volume.d.ts +2 -2
  1049. package/lib/mol-geo/geometry/direct-volume/direct-volume.js +12 -3
  1050. package/lib/mol-geo/geometry/direct-volume/direct-volume.js.map +1 -1
  1051. package/lib/mol-geo/geometry/image/image.js +5 -2
  1052. package/lib/mol-geo/geometry/image/image.js.map +1 -1
  1053. package/lib/mol-geo/geometry/lines/lines.js +1 -1
  1054. package/lib/mol-geo/geometry/lines/lines.js.map +1 -1
  1055. package/lib/mol-geo/geometry/mesh/builder/sheet.d.ts +1 -1
  1056. package/lib/mol-geo/geometry/mesh/builder/sheet.js +19 -11
  1057. package/lib/mol-geo/geometry/mesh/builder/sheet.js.map +1 -1
  1058. package/lib/mol-geo/geometry/mesh/builder/tube.d.ts +2 -2
  1059. package/lib/mol-geo/geometry/mesh/builder/tube.js +57 -15
  1060. package/lib/mol-geo/geometry/mesh/builder/tube.js.map +1 -1
  1061. package/lib/mol-geo/geometry/mesh/color-smoothing.d.ts +1 -1
  1062. package/lib/mol-geo/geometry/mesh/mesh.js +1 -1
  1063. package/lib/mol-geo/geometry/mesh/mesh.js.map +1 -1
  1064. package/lib/mol-geo/geometry/points/points.d.ts +2 -2
  1065. package/lib/mol-geo/geometry/points/points.js +1 -1
  1066. package/lib/mol-geo/geometry/points/points.js.map +1 -1
  1067. package/lib/mol-geo/geometry/spheres/spheres.d.ts +1 -0
  1068. package/lib/mol-geo/geometry/text/font-atlas.js +1 -1
  1069. package/lib/mol-geo/geometry/text/font-atlas.js.map +1 -1
  1070. package/lib/mol-geo/geometry/text/text.js +1 -1
  1071. package/lib/mol-geo/geometry/text/text.js.map +1 -1
  1072. package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js +6 -1
  1073. package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js.map +1 -1
  1074. package/lib/mol-geo/primitive/polyhedron.js +1 -1
  1075. package/lib/mol-geo/primitive/polyhedron.js.map +1 -1
  1076. package/lib/mol-gl/_spec/cylinders.spec.d.ts +6 -0
  1077. package/lib/mol-gl/_spec/cylinders.spec.js +38 -0
  1078. package/lib/mol-gl/_spec/cylinders.spec.js.map +1 -0
  1079. package/lib/mol-gl/_spec/direct-volume.spec.d.ts +6 -0
  1080. package/lib/mol-gl/_spec/direct-volume.spec.js +38 -0
  1081. package/lib/mol-gl/_spec/direct-volume.spec.js.map +1 -0
  1082. package/lib/mol-gl/_spec/gl.d.ts +9 -0
  1083. package/lib/mol-gl/_spec/gl.js +28 -0
  1084. package/lib/mol-gl/_spec/gl.js.map +1 -0
  1085. package/lib/mol-gl/_spec/gl.shim.js +5 -5
  1086. package/lib/mol-gl/_spec/gl.shim.js.map +1 -1
  1087. package/lib/mol-gl/_spec/image.spec.d.ts +6 -0
  1088. package/lib/mol-gl/_spec/image.spec.js +38 -0
  1089. package/lib/mol-gl/_spec/image.spec.js.map +1 -0
  1090. package/lib/mol-gl/_spec/lines.spec.d.ts +6 -0
  1091. package/lib/mol-gl/_spec/lines.spec.js +38 -0
  1092. package/lib/mol-gl/_spec/lines.spec.js.map +1 -0
  1093. package/lib/mol-gl/_spec/mesh.spec.d.ts +6 -0
  1094. package/lib/mol-gl/_spec/mesh.spec.js +38 -0
  1095. package/lib/mol-gl/_spec/mesh.spec.js.map +1 -0
  1096. package/lib/mol-gl/_spec/points.spec.d.ts +6 -0
  1097. package/lib/mol-gl/_spec/points.spec.js +38 -0
  1098. package/lib/mol-gl/_spec/points.spec.js.map +1 -0
  1099. package/lib/mol-gl/_spec/renderer.spec.d.ts +7 -1
  1100. package/lib/mol-gl/_spec/renderer.spec.js +6 -46
  1101. package/lib/mol-gl/_spec/renderer.spec.js.map +1 -1
  1102. package/lib/{commonjs/mol-repr/structure/visual/aromatic-ring-mesh.d.ts → mol-gl/_spec/shader.spec.d.ts} +0 -0
  1103. package/lib/mol-gl/_spec/shader.spec.js +2 -0
  1104. package/lib/mol-gl/_spec/shader.spec.js.map +1 -0
  1105. package/lib/mol-gl/_spec/spheres.spec.d.ts +6 -0
  1106. package/lib/mol-gl/_spec/spheres.spec.js +38 -0
  1107. package/lib/mol-gl/_spec/spheres.spec.js.map +1 -0
  1108. package/lib/mol-gl/_spec/text.spec.d.ts +6 -0
  1109. package/lib/mol-gl/_spec/text.spec.js +38 -0
  1110. package/lib/mol-gl/_spec/text.spec.js.map +1 -0
  1111. package/lib/mol-gl/_spec/texture-mesh.spec.d.ts +6 -0
  1112. package/lib/mol-gl/_spec/texture-mesh.spec.js +38 -0
  1113. package/lib/mol-gl/_spec/texture-mesh.spec.js.map +1 -0
  1114. package/lib/mol-gl/compute/grid3d.js +3 -3
  1115. package/lib/mol-gl/compute/grid3d.js.map +1 -1
  1116. package/lib/mol-gl/compute/histogram-pyramid/reduction.js +4 -4
  1117. package/lib/mol-gl/compute/histogram-pyramid/reduction.js.map +1 -1
  1118. package/lib/mol-gl/renderable/util.js +1 -1
  1119. package/lib/mol-gl/renderable/util.js.map +1 -1
  1120. package/lib/mol-gl/renderer.d.ts +1 -0
  1121. package/lib/mol-gl/renderer.js +3 -0
  1122. package/lib/mol-gl/renderer.js.map +1 -1
  1123. package/lib/mol-gl/scene.js +1 -1
  1124. package/lib/mol-gl/scene.js.map +1 -1
  1125. package/lib/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
  1126. package/lib/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
  1127. package/lib/mol-gl/shader/chunks/assign-material-color.glsl.js.map +1 -1
  1128. package/lib/mol-gl/shader/lines.vert.d.ts +1 -1
  1129. package/lib/mol-gl/shader/lines.vert.js +1 -1
  1130. package/lib/mol-gl/shader/lines.vert.js.map +1 -1
  1131. package/lib/mol-gl/shader/points.vert.d.ts +1 -1
  1132. package/lib/mol-gl/shader/points.vert.js +1 -1
  1133. package/lib/mol-gl/shader/points.vert.js.map +1 -1
  1134. package/lib/mol-gl/shader-code.js +8 -8
  1135. package/lib/mol-gl/shader-code.js.map +1 -1
  1136. package/lib/mol-gl/webgl/buffer.d.ts +3 -2
  1137. package/lib/mol-gl/webgl/buffer.js +5 -5
  1138. package/lib/mol-gl/webgl/buffer.js.map +1 -1
  1139. package/lib/mol-gl/webgl/compat.js +3 -3
  1140. package/lib/mol-gl/webgl/compat.js.map +1 -1
  1141. package/lib/mol-gl/webgl/context.js +6 -4
  1142. package/lib/mol-gl/webgl/context.js.map +1 -1
  1143. package/lib/mol-gl/webgl/framebuffer.js +1 -1
  1144. package/lib/mol-gl/webgl/framebuffer.js.map +1 -1
  1145. package/lib/mol-gl/webgl/program.d.ts +1 -1
  1146. package/lib/mol-gl/webgl/program.js +14 -12
  1147. package/lib/mol-gl/webgl/program.js.map +1 -1
  1148. package/lib/mol-gl/webgl/render-item.d.ts +4 -3
  1149. package/lib/mol-gl/webgl/render-item.js +6 -3
  1150. package/lib/mol-gl/webgl/render-item.js.map +1 -1
  1151. package/lib/mol-gl/webgl/resources.js +1 -1
  1152. package/lib/mol-gl/webgl/resources.js.map +1 -1
  1153. package/lib/mol-gl/webgl/shader.js +3 -3
  1154. package/lib/mol-gl/webgl/shader.js.map +1 -1
  1155. package/lib/mol-gl/webgl/state.d.ts +4 -1
  1156. package/lib/mol-gl/webgl/state.js +25 -1
  1157. package/lib/mol-gl/webgl/state.js.map +1 -1
  1158. package/lib/mol-gl/webgl/texture.js +2 -2
  1159. package/lib/mol-gl/webgl/texture.js.map +1 -1
  1160. package/lib/mol-gl/webgl/uniform.js +2 -2
  1161. package/lib/mol-gl/webgl/uniform.js.map +1 -1
  1162. package/lib/mol-io/common/file-handle.js +1 -1
  1163. package/lib/mol-io/common/file-handle.js.map +1 -1
  1164. package/lib/mol-io/common/typed-array.js +1 -1
  1165. package/lib/mol-io/common/typed-array.js.map +1 -1
  1166. package/lib/mol-io/reader/ccp4/parser.js +1 -1
  1167. package/lib/mol-io/reader/ccp4/parser.js.map +1 -1
  1168. package/lib/mol-io/reader/cif/binary/parser.js +1 -1
  1169. package/lib/mol-io/reader/cif/binary/parser.js.map +1 -1
  1170. package/lib/mol-io/reader/cif/data-model.js +7 -7
  1171. package/lib/mol-io/reader/cif/data-model.js.map +1 -1
  1172. package/lib/mol-io/reader/cif/schema/bird.d.ts +5 -5
  1173. package/lib/mol-io/reader/cif/schema/ccd.d.ts +2 -2
  1174. package/lib/mol-io/reader/cif/schema/mmcif-extras.d.ts +2 -2
  1175. package/lib/mol-io/reader/cif/schema/mmcif.d.ts +15 -15
  1176. package/lib/mol-io/reader/cif/schema.js +7 -7
  1177. package/lib/mol-io/reader/cif/schema.js.map +1 -1
  1178. package/lib/mol-io/reader/cif/text/parser.js +2 -2
  1179. package/lib/mol-io/reader/cif/text/parser.js.map +1 -1
  1180. package/lib/mol-io/reader/dcd/parser.js +2 -2
  1181. package/lib/mol-io/reader/dcd/parser.js.map +1 -1
  1182. package/lib/mol-io/reader/ply/schema.d.ts +1 -1
  1183. package/lib/mol-io/reader/ply/schema.js +1 -1
  1184. package/lib/mol-io/reader/ply/schema.js.map +1 -1
  1185. package/lib/mol-io/reader/result.js +1 -1
  1186. package/lib/mol-io/reader/result.js.map +1 -1
  1187. package/lib/mol-io/writer/cif/encoder/text.js +3 -3
  1188. package/lib/mol-io/writer/cif/encoder/text.js.map +1 -1
  1189. package/lib/mol-io/writer/cif/encoder.js +5 -5
  1190. package/lib/mol-io/writer/cif/encoder.js.map +1 -1
  1191. package/lib/mol-io/writer/mol/encoder.js +4 -4
  1192. package/lib/mol-io/writer/mol/encoder.js.map +1 -1
  1193. package/lib/mol-io/writer/mol2/encoder.js +6 -6
  1194. package/lib/mol-io/writer/mol2/encoder.js.map +1 -1
  1195. package/lib/mol-math/geometry/gaussian-density/gpu.js +1 -1
  1196. package/lib/mol-math/geometry/gaussian-density/gpu.js.map +1 -1
  1197. package/lib/mol-math/geometry/primitives/axes3d.d.ts +2 -1
  1198. package/lib/mol-math/geometry/primitives/axes3d.js +9 -2
  1199. package/lib/mol-math/geometry/primitives/axes3d.js.map +1 -1
  1200. package/lib/mol-math/geometry/spacegroup/construction.js +8 -8
  1201. package/lib/mol-math/geometry/spacegroup/construction.js.map +1 -1
  1202. package/lib/mol-math/geometry/spacegroup/tables.js +1 -1
  1203. package/lib/mol-math/geometry/spacegroup/tables.js.map +1 -1
  1204. package/lib/mol-math/geometry/symmetry-operator.js +4 -4
  1205. package/lib/mol-math/geometry/symmetry-operator.js.map +1 -1
  1206. package/lib/mol-math/graph/inter-unit-graph.js +2 -2
  1207. package/lib/mol-math/graph/inter-unit-graph.js.map +1 -1
  1208. package/lib/mol-math/linear-algebra/3d/quat.js +1 -1
  1209. package/lib/mol-math/linear-algebra/3d/quat.js.map +1 -1
  1210. package/lib/mol-math/linear-algebra/3d/vec2.js +1 -1
  1211. package/lib/mol-math/linear-algebra/3d/vec2.js.map +1 -1
  1212. package/lib/mol-math/linear-algebra/3d/vec3.d.ts +3 -1
  1213. package/lib/mol-math/linear-algebra/3d/vec3.js +12 -4
  1214. package/lib/mol-math/linear-algebra/3d/vec3.js.map +1 -1
  1215. package/lib/mol-math/linear-algebra/3d/vec4.js +1 -1
  1216. package/lib/mol-math/linear-algebra/3d/vec4.js.map +1 -1
  1217. package/lib/mol-math/misc.d.ts +3 -1
  1218. package/lib/mol-math/misc.js +22 -1
  1219. package/lib/mol-math/misc.js.map +1 -1
  1220. package/lib/mol-model/loci.d.ts +32 -32
  1221. package/lib/mol-model/loci.js +4 -3
  1222. package/lib/mol-model/loci.js.map +1 -1
  1223. package/lib/mol-model/sequence/sequence.js +2 -2
  1224. package/lib/mol-model/sequence/sequence.js.map +1 -1
  1225. package/lib/mol-model/shape/shape.d.ts +1 -1
  1226. package/lib/mol-model/structure/export/categories/atom_site.js +2 -2
  1227. package/lib/mol-model/structure/export/categories/atom_site.js.map +1 -1
  1228. package/lib/mol-model/structure/export/categories/atom_site_operator_mapping.js +1 -1
  1229. package/lib/mol-model/structure/export/categories/atom_site_operator_mapping.js.map +1 -1
  1230. package/lib/mol-model/structure/export/categories/secondary-structure.js +1 -1
  1231. package/lib/mol-model/structure/export/categories/secondary-structure.js.map +1 -1
  1232. package/lib/mol-model/structure/export/mmcif.js +1 -1
  1233. package/lib/mol-model/structure/export/mmcif.js.map +1 -1
  1234. package/lib/mol-model/structure/model/properties/atomic/bonds.js +2 -2
  1235. package/lib/mol-model/structure/model/properties/atomic/bonds.js.map +1 -1
  1236. package/lib/mol-model/structure/model/properties/symmetry.js +3 -3
  1237. package/lib/mol-model/structure/model/properties/symmetry.js.map +1 -1
  1238. package/lib/mol-model/structure/model/properties/utils/atomic-index.js +2 -2
  1239. package/lib/mol-model/structure/model/properties/utils/atomic-index.js.map +1 -1
  1240. package/lib/mol-model/structure/model/properties/utils/coarse-keys.js +1 -1
  1241. package/lib/mol-model/structure/model/properties/utils/coarse-keys.js.map +1 -1
  1242. package/lib/mol-model/structure/model/properties/utils/residue-set.js +1 -1
  1243. package/lib/mol-model/structure/model/properties/utils/residue-set.js.map +1 -1
  1244. package/lib/mol-model/structure/query/context.js +1 -1
  1245. package/lib/mol-model/structure/query/context.js.map +1 -1
  1246. package/lib/mol-model/structure/structure/carbohydrates/compute.js +1 -1
  1247. package/lib/mol-model/structure/structure/carbohydrates/compute.js.map +1 -1
  1248. package/lib/mol-model/structure/structure/element/loci.d.ts +1 -0
  1249. package/lib/mol-model/structure/structure/element/loci.js +16 -2
  1250. package/lib/mol-model/structure/structure/element/loci.js.map +1 -1
  1251. package/lib/mol-model/structure/structure/element/util.js +1 -1
  1252. package/lib/mol-model/structure/structure/element/util.js.map +1 -1
  1253. package/lib/mol-model/structure/structure/properties.d.ts +3 -3
  1254. package/lib/mol-model/structure/structure/properties.js +1 -1
  1255. package/lib/mol-model/structure/structure/properties.js.map +1 -1
  1256. package/lib/mol-model/structure/structure/structure.js +3 -2
  1257. package/lib/mol-model/structure/structure/structure.js.map +1 -1
  1258. package/lib/mol-model/structure/structure/symmetry.js +3 -3
  1259. package/lib/mol-model/structure/structure/symmetry.js.map +1 -1
  1260. package/lib/mol-model/structure/structure/unit/bonds/intra-compute.js +1 -1
  1261. package/lib/mol-model/structure/structure/unit/bonds/intra-compute.js.map +1 -1
  1262. package/lib/mol-model/structure/structure/unit/bonds.d.ts +2 -1
  1263. package/lib/mol-model/structure/structure/unit/bonds.js +7 -2
  1264. package/lib/mol-model/structure/structure/unit/bonds.js.map +1 -1
  1265. package/lib/mol-model/structure/structure/unit.d.ts +4 -4
  1266. package/lib/mol-model/structure/structure/util/superposition-db-mapping.js +1 -1
  1267. package/lib/mol-model/structure/structure/util/superposition-db-mapping.js.map +1 -1
  1268. package/lib/mol-model/volume/volume.js +2 -2
  1269. package/lib/mol-model/volume/volume.js.map +1 -1
  1270. package/lib/mol-model-formats/shape/ply.d.ts +4 -4
  1271. package/lib/mol-model-formats/shape/ply.js +1 -1
  1272. package/lib/mol-model-formats/shape/ply.js.map +1 -1
  1273. package/lib/mol-model-formats/structure/basic/atomic.js +2 -2
  1274. package/lib/mol-model-formats/structure/basic/atomic.js.map +1 -1
  1275. package/lib/mol-model-formats/structure/basic/properties.js +2 -2
  1276. package/lib/mol-model-formats/structure/basic/properties.js.map +1 -1
  1277. package/lib/mol-model-formats/structure/basic/schema.d.ts +2 -2
  1278. package/lib/mol-model-formats/structure/common/component.d.ts +5 -5
  1279. package/lib/mol-model-formats/structure/common/entity.d.ts +1 -1
  1280. package/lib/mol-model-formats/structure/common/entity.js +6 -6
  1281. package/lib/mol-model-formats/structure/common/entity.js.map +1 -1
  1282. package/lib/mol-model-formats/structure/pdb/assembly.js +10 -10
  1283. package/lib/mol-model-formats/structure/pdb/assembly.js.map +1 -1
  1284. package/lib/mol-model-formats/structure/pdb/conect.js +1 -1
  1285. package/lib/mol-model-formats/structure/pdb/conect.js.map +1 -1
  1286. package/lib/mol-model-formats/structure/pdb/entity.js +30 -4
  1287. package/lib/mol-model-formats/structure/pdb/entity.js.map +1 -1
  1288. package/lib/mol-model-formats/structure/property/assembly.js +1 -1
  1289. package/lib/mol-model-formats/structure/property/assembly.js.map +1 -1
  1290. package/lib/mol-model-formats/structure/property/symmetry.js +1 -1
  1291. package/lib/mol-model-formats/structure/property/symmetry.js.map +1 -1
  1292. package/lib/mol-model-formats/volume/ccp4.js +1 -1
  1293. package/lib/mol-model-formats/volume/ccp4.js.map +1 -1
  1294. package/lib/mol-model-props/common/custom-element-property.js +1 -1
  1295. package/lib/mol-model-props/common/custom-element-property.js.map +1 -1
  1296. package/lib/mol-model-props/common/custom-property.js +1 -1
  1297. package/lib/mol-model-props/common/custom-property.js.map +1 -1
  1298. package/lib/mol-model-props/computed/interactions/common.js +1 -1
  1299. package/lib/mol-model-props/computed/interactions/common.js.map +1 -1
  1300. package/lib/mol-model-props/computed/interactions/refine.js +2 -2
  1301. package/lib/mol-model-props/computed/interactions/refine.js.map +1 -1
  1302. package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +4 -1
  1303. package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +4 -1
  1304. package/lib/mol-model-props/computed/representations/interactions.d.ts +12 -3
  1305. package/lib/mol-model-props/integrative/cross-link-restraint/property.js +1 -1
  1306. package/lib/mol-model-props/integrative/cross-link-restraint/property.js.map +1 -1
  1307. package/lib/mol-model-props/integrative/cross-link-restraint/representation.d.ts +16 -4
  1308. package/lib/mol-model-props/integrative/pair-restraints.js +1 -1
  1309. package/lib/mol-model-props/integrative/pair-restraints.js.map +1 -1
  1310. package/lib/mol-model-props/sequence/best-database-mapping.js +1 -1
  1311. package/lib/mol-model-props/sequence/best-database-mapping.js.map +1 -1
  1312. package/lib/mol-model-props/sequence/themes/best-database-mapping.d.ts +12 -12
  1313. package/lib/mol-model-props/sequence/themes/best-database-mapping.js +1 -1
  1314. package/lib/mol-model-props/sequence/themes/best-database-mapping.js.map +1 -1
  1315. package/lib/mol-plugin/behavior/behavior.d.ts +1 -1
  1316. package/lib/mol-plugin/behavior/dynamic/custom-props/computed/accessible-surface-area.js +3 -3
  1317. package/lib/mol-plugin/behavior/dynamic/custom-props/computed/accessible-surface-area.js.map +1 -1
  1318. package/lib/mol-plugin/behavior/dynamic/custom-props/computed/interactions.js +3 -3
  1319. package/lib/mol-plugin/behavior/dynamic/custom-props/computed/interactions.js.map +1 -1
  1320. package/lib/mol-plugin/behavior/dynamic/custom-props/computed/valence-model.js +1 -1
  1321. package/lib/mol-plugin/behavior/dynamic/custom-props/computed/valence-model.js.map +1 -1
  1322. package/lib/mol-plugin/behavior/dynamic/representation.d.ts +4 -2
  1323. package/lib/mol-plugin/behavior/dynamic/representation.js +23 -9
  1324. package/lib/mol-plugin/behavior/dynamic/representation.js.map +1 -1
  1325. package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +1 -1
  1326. package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js +2 -2
  1327. package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js.map +1 -1
  1328. package/lib/mol-plugin/behavior/dynamic/volume-streaming/behavior.js +6 -6
  1329. package/lib/mol-plugin/behavior/dynamic/volume-streaming/behavior.js.map +1 -1
  1330. package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +3 -2
  1331. package/lib/mol-plugin/behavior/dynamic/volume-streaming/transformers.d.ts +2 -2
  1332. package/lib/mol-plugin/behavior/dynamic/volume-streaming/transformers.js +5 -5
  1333. package/lib/mol-plugin/behavior/dynamic/volume-streaming/transformers.js.map +1 -1
  1334. package/lib/mol-plugin/behavior/dynamic/volume-streaming/util.js +6 -6
  1335. package/lib/mol-plugin/behavior/dynamic/volume-streaming/util.js.map +1 -1
  1336. package/lib/mol-plugin/behavior/static/state.js +4 -4
  1337. package/lib/mol-plugin/behavior/static/state.js.map +1 -1
  1338. package/lib/mol-plugin/commands.d.ts +4 -0
  1339. package/lib/mol-plugin/config.d.ts +1 -0
  1340. package/lib/mol-plugin/config.js +11 -3
  1341. package/lib/mol-plugin/config.js.map +1 -1
  1342. package/lib/mol-plugin/context.js +7 -6
  1343. package/lib/mol-plugin/context.js.map +1 -1
  1344. package/lib/mol-plugin/layout.d.ts +4 -4
  1345. package/lib/mol-plugin/util/viewport-screenshot.js +1 -1
  1346. package/lib/mol-plugin/util/viewport-screenshot.js.map +1 -1
  1347. package/lib/mol-plugin/version.js +2 -2
  1348. package/lib/mol-plugin-state/actions/file.js +3 -3
  1349. package/lib/mol-plugin-state/actions/file.js.map +1 -1
  1350. package/lib/mol-plugin-state/actions/structure.d.ts +2 -2
  1351. package/lib/mol-plugin-state/actions/structure.js +12 -12
  1352. package/lib/mol-plugin-state/actions/structure.js.map +1 -1
  1353. package/lib/mol-plugin-state/actions/volume.js +16 -16
  1354. package/lib/mol-plugin-state/actions/volume.js.map +1 -1
  1355. package/lib/mol-plugin-state/animation/built-in/model-index.d.ts +2 -2
  1356. package/lib/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +4 -4
  1357. package/lib/mol-plugin-state/builder/structure/hierarchy.d.ts +4 -4
  1358. package/lib/mol-plugin-state/builder/structure/hierarchy.js +2 -2
  1359. package/lib/mol-plugin-state/builder/structure/hierarchy.js.map +1 -1
  1360. package/lib/mol-plugin-state/builder/structure/representation-preset.d.ts +13 -13
  1361. package/lib/mol-plugin-state/builder/structure/representation-preset.js +21 -17
  1362. package/lib/mol-plugin-state/builder/structure/representation-preset.js.map +1 -1
  1363. package/lib/mol-plugin-state/builder/structure/representation.js +2 -2
  1364. package/lib/mol-plugin-state/builder/structure/representation.js.map +1 -1
  1365. package/lib/mol-plugin-state/builder/structure.js +3 -3
  1366. package/lib/mol-plugin-state/builder/structure.js.map +1 -1
  1367. package/lib/mol-plugin-state/formats/registry.js +1 -1
  1368. package/lib/mol-plugin-state/formats/registry.js.map +1 -1
  1369. package/lib/mol-plugin-state/formats/volume.d.ts +10 -10
  1370. package/lib/mol-plugin-state/helpers/root-structure.d.ts +4 -4
  1371. package/lib/mol-plugin-state/helpers/root-structure.js +10 -10
  1372. package/lib/mol-plugin-state/helpers/root-structure.js.map +1 -1
  1373. package/lib/mol-plugin-state/helpers/structure-component.d.ts +2 -2
  1374. package/lib/mol-plugin-state/helpers/structure-component.js +3 -3
  1375. package/lib/mol-plugin-state/helpers/structure-component.js.map +1 -1
  1376. package/lib/mol-plugin-state/helpers/structure-query.js +1 -1
  1377. package/lib/mol-plugin-state/helpers/structure-query.js.map +1 -1
  1378. package/lib/mol-plugin-state/helpers/structure-selection-query.js +5 -5
  1379. package/lib/mol-plugin-state/helpers/structure-selection-query.js.map +1 -1
  1380. package/lib/mol-plugin-state/manager/animation.js +1 -1
  1381. package/lib/mol-plugin-state/manager/animation.js.map +1 -1
  1382. package/lib/mol-plugin-state/manager/interactivity.d.ts +2 -2
  1383. package/lib/mol-plugin-state/manager/interactivity.js +12 -11
  1384. package/lib/mol-plugin-state/manager/interactivity.js.map +1 -1
  1385. package/lib/mol-plugin-state/manager/loci-label.js +1 -1
  1386. package/lib/mol-plugin-state/manager/loci-label.js.map +1 -1
  1387. package/lib/mol-plugin-state/manager/snapshots.js +2 -2
  1388. package/lib/mol-plugin-state/manager/snapshots.js.map +1 -1
  1389. package/lib/mol-plugin-state/manager/structure/component.d.ts +2 -2
  1390. package/lib/mol-plugin-state/manager/structure/hierarchy.js +2 -2
  1391. package/lib/mol-plugin-state/manager/structure/hierarchy.js.map +1 -1
  1392. package/lib/mol-plugin-state/manager/structure/measurement.d.ts +7 -2
  1393. package/lib/mol-plugin-state/manager/structure/measurement.js +110 -12
  1394. package/lib/mol-plugin-state/manager/structure/measurement.js.map +1 -1
  1395. package/lib/mol-plugin-state/manager/structure/selection.d.ts +3 -3
  1396. package/lib/mol-plugin-state/manager/structure/selection.js +4 -10
  1397. package/lib/mol-plugin-state/manager/structure/selection.js.map +1 -1
  1398. package/lib/mol-plugin-state/transforms/data.d.ts +1 -1
  1399. package/lib/mol-plugin-state/transforms/data.js +8 -8
  1400. package/lib/mol-plugin-state/transforms/data.js.map +1 -1
  1401. package/lib/mol-plugin-state/transforms/helpers.d.ts +3 -1
  1402. package/lib/mol-plugin-state/transforms/helpers.js +5 -3
  1403. package/lib/mol-plugin-state/transforms/helpers.js.map +1 -1
  1404. package/lib/mol-plugin-state/transforms/model.d.ts +6 -6
  1405. package/lib/mol-plugin-state/transforms/model.js +18 -18
  1406. package/lib/mol-plugin-state/transforms/model.js.map +1 -1
  1407. package/lib/mol-plugin-state/transforms/representation.d.ts +20 -5
  1408. package/lib/mol-plugin-state/transforms/representation.js +78 -26
  1409. package/lib/mol-plugin-state/transforms/representation.js.map +1 -1
  1410. package/lib/mol-plugin-state/transforms/volume.js +7 -7
  1411. package/lib/mol-plugin-state/transforms/volume.js.map +1 -1
  1412. package/lib/mol-plugin-ui/base.js +1 -1
  1413. package/lib/mol-plugin-ui/base.js.map +1 -1
  1414. package/lib/mol-plugin-ui/controls/action-menu.js +3 -3
  1415. package/lib/mol-plugin-ui/controls/action-menu.js.map +1 -1
  1416. package/lib/mol-plugin-ui/controls/color.js +2 -2
  1417. package/lib/mol-plugin-ui/controls/color.js.map +1 -1
  1418. package/lib/mol-plugin-ui/controls/common.js +9 -9
  1419. package/lib/mol-plugin-ui/controls/common.js.map +1 -1
  1420. package/lib/mol-plugin-ui/controls/icons.js +1 -1
  1421. package/lib/mol-plugin-ui/controls/icons.js.map +1 -1
  1422. package/lib/mol-plugin-ui/controls/legend.js +3 -3
  1423. package/lib/mol-plugin-ui/controls/legend.js.map +1 -1
  1424. package/lib/mol-plugin-ui/controls/line-graph/line-graph-component.js +6 -6
  1425. package/lib/mol-plugin-ui/controls/line-graph/line-graph-component.js.map +1 -1
  1426. package/lib/mol-plugin-ui/controls/line-graph/point-component.js +1 -1
  1427. package/lib/mol-plugin-ui/controls/line-graph/point-component.js.map +1 -1
  1428. package/lib/mol-plugin-ui/controls/parameters.d.ts +2 -2
  1429. package/lib/mol-plugin-ui/controls/parameters.js +29 -29
  1430. package/lib/mol-plugin-ui/controls/parameters.js.map +1 -1
  1431. package/lib/mol-plugin-ui/controls/screenshot.js +1 -1
  1432. package/lib/mol-plugin-ui/controls/screenshot.js.map +1 -1
  1433. package/lib/mol-plugin-ui/controls/slider.js +9 -9
  1434. package/lib/mol-plugin-ui/controls/slider.js.map +1 -1
  1435. package/lib/mol-plugin-ui/controls.js +2 -2
  1436. package/lib/mol-plugin-ui/controls.js.map +1 -1
  1437. package/lib/mol-plugin-ui/plugin.js +3 -3
  1438. package/lib/mol-plugin-ui/plugin.js.map +1 -1
  1439. package/lib/mol-plugin-ui/sequence/chain.js +3 -3
  1440. package/lib/mol-plugin-ui/sequence/chain.js.map +1 -1
  1441. package/lib/mol-plugin-ui/sequence/sequence.js +4 -4
  1442. package/lib/mol-plugin-ui/sequence/sequence.js.map +1 -1
  1443. package/lib/mol-plugin-ui/sequence.d.ts +1 -1
  1444. package/lib/mol-plugin-ui/sequence.js +24 -10
  1445. package/lib/mol-plugin-ui/sequence.js.map +1 -1
  1446. package/lib/mol-plugin-ui/skin/base/base.scss +32 -32
  1447. package/lib/mol-plugin-ui/skin/base/components/controls-base.scss +333 -333
  1448. package/lib/mol-plugin-ui/skin/base/components/controls.scss +418 -420
  1449. package/lib/mol-plugin-ui/skin/base/components/help.scss +27 -27
  1450. package/lib/mol-plugin-ui/skin/base/components/line-graph.scss +67 -67
  1451. package/lib/mol-plugin-ui/skin/base/components/log.scss +100 -100
  1452. package/lib/mol-plugin-ui/skin/base/components/misc.scss +616 -616
  1453. package/lib/mol-plugin-ui/skin/base/components/sequence.scss +125 -125
  1454. package/lib/mol-plugin-ui/skin/base/components/slider.scss +165 -165
  1455. package/lib/mol-plugin-ui/skin/base/components/tasks.scss +99 -99
  1456. package/lib/mol-plugin-ui/skin/base/components/toast.scss +83 -81
  1457. package/lib/mol-plugin-ui/skin/base/components/transformer.scss +163 -163
  1458. package/lib/mol-plugin-ui/skin/base/components/viewport.scss +127 -127
  1459. package/lib/mol-plugin-ui/skin/base/layout/common.scss +71 -71
  1460. package/lib/mol-plugin-ui/skin/base/layout/controls-landscape.scss +89 -89
  1461. package/lib/mol-plugin-ui/skin/base/layout/controls-outside.scss +98 -98
  1462. package/lib/mol-plugin-ui/skin/base/layout/controls-portrait.scss +108 -108
  1463. package/lib/mol-plugin-ui/skin/base/layout.scss +40 -40
  1464. package/lib/mol-plugin-ui/skin/base/logo.scss +12 -12
  1465. package/lib/mol-plugin-ui/skin/base/normalize.scss +209 -209
  1466. package/lib/mol-plugin-ui/skin/base/ui.scss +40 -40
  1467. package/lib/mol-plugin-ui/skin/base/variables.scss +85 -85
  1468. package/lib/mol-plugin-ui/skin/blue.scss +1 -1
  1469. package/lib/mol-plugin-ui/skin/colors/blue.scss +23 -23
  1470. package/lib/mol-plugin-ui/skin/colors/dark.scss +23 -23
  1471. package/lib/mol-plugin-ui/skin/colors/light.scss +29 -29
  1472. package/lib/mol-plugin-ui/skin/dark.scss +1 -1
  1473. package/lib/mol-plugin-ui/skin/light.scss +1 -1
  1474. package/lib/mol-plugin-ui/state/actions.js +1 -1
  1475. package/lib/mol-plugin-ui/state/actions.js.map +1 -1
  1476. package/lib/mol-plugin-ui/state/common.js +2 -2
  1477. package/lib/mol-plugin-ui/state/common.js.map +1 -1
  1478. package/lib/mol-plugin-ui/state/snapshots.js +4 -4
  1479. package/lib/mol-plugin-ui/state/snapshots.js.map +1 -1
  1480. package/lib/mol-plugin-ui/state/tree.js +8 -8
  1481. package/lib/mol-plugin-ui/state/tree.js.map +1 -1
  1482. package/lib/mol-plugin-ui/structure/components.js +4 -4
  1483. package/lib/mol-plugin-ui/structure/components.js.map +1 -1
  1484. package/lib/mol-plugin-ui/structure/focus.js +4 -4
  1485. package/lib/mol-plugin-ui/structure/focus.js.map +1 -1
  1486. package/lib/mol-plugin-ui/structure/generic.js +2 -2
  1487. package/lib/mol-plugin-ui/structure/generic.js.map +1 -1
  1488. package/lib/mol-plugin-ui/structure/measurements.d.ts +10 -1
  1489. package/lib/mol-plugin-ui/structure/measurements.js +50 -7
  1490. package/lib/mol-plugin-ui/structure/measurements.js.map +1 -1
  1491. package/lib/mol-plugin-ui/structure/selection.js +4 -4
  1492. package/lib/mol-plugin-ui/structure/selection.js.map +1 -1
  1493. package/lib/mol-plugin-ui/structure/source.js +12 -12
  1494. package/lib/mol-plugin-ui/structure/source.js.map +1 -1
  1495. package/lib/mol-plugin-ui/structure/superposition.js +4 -4
  1496. package/lib/mol-plugin-ui/structure/superposition.js.map +1 -1
  1497. package/lib/mol-plugin-ui/structure/volume.js +2 -2
  1498. package/lib/mol-plugin-ui/structure/volume.js.map +1 -1
  1499. package/lib/mol-repr/representation.d.ts +1 -0
  1500. package/lib/mol-repr/representation.js +12 -6
  1501. package/lib/mol-repr/representation.js.map +1 -1
  1502. package/lib/mol-repr/shape/loci/angle.js +2 -2
  1503. package/lib/mol-repr/shape/loci/angle.js.map +1 -1
  1504. package/lib/mol-repr/shape/loci/dihedral.js +2 -2
  1505. package/lib/mol-repr/shape/loci/dihedral.js.map +1 -1
  1506. package/lib/mol-repr/shape/loci/distance.d.ts +1 -1
  1507. package/lib/mol-repr/shape/loci/distance.js +2 -2
  1508. package/lib/mol-repr/shape/loci/distance.js.map +1 -1
  1509. package/lib/mol-repr/shape/loci/label.js +1 -1
  1510. package/lib/mol-repr/shape/loci/label.js.map +1 -1
  1511. package/lib/mol-repr/shape/loci/orientation.d.ts +5 -4
  1512. package/lib/mol-repr/shape/loci/orientation.js +39 -53
  1513. package/lib/mol-repr/shape/loci/orientation.js.map +1 -1
  1514. package/lib/mol-repr/shape/loci/plane.d.ts +27 -0
  1515. package/lib/mol-repr/shape/loci/plane.js +57 -0
  1516. package/lib/mol-repr/shape/loci/plane.js.map +1 -0
  1517. package/lib/mol-repr/shape/model/unitcell.d.ts +2 -2
  1518. package/lib/mol-repr/structure/complex-visual.d.ts +7 -7
  1519. package/lib/mol-repr/structure/params.d.ts +4 -4
  1520. package/lib/mol-repr/structure/registry.d.ts +49 -30
  1521. package/lib/mol-repr/structure/registry.js +1 -1
  1522. package/lib/mol-repr/structure/registry.js.map +1 -1
  1523. package/lib/mol-repr/structure/representation/backbone.d.ts +3 -3
  1524. package/lib/mol-repr/structure/representation/ball-and-stick.d.ts +21 -9
  1525. package/lib/mol-repr/structure/representation/carbohydrate.d.ts +12 -3
  1526. package/lib/mol-repr/structure/representation/cartoon.d.ts +6 -3
  1527. package/lib/mol-repr/structure/representation/ellipsoid.d.ts +21 -9
  1528. package/lib/mol-repr/structure/representation/gaussian-surface.d.ts +9 -9
  1529. package/lib/mol-repr/structure/representation/gaussian-volume.d.ts +6 -6
  1530. package/lib/mol-repr/structure/representation/label.d.ts +3 -3
  1531. package/lib/mol-repr/structure/representation/line.d.ts +43 -22
  1532. package/lib/mol-repr/structure/representation/line.js +10 -4
  1533. package/lib/mol-repr/structure/representation/line.js.map +1 -1
  1534. package/lib/mol-repr/structure/representation/molecular-surface.d.ts +9 -9
  1535. package/lib/mol-repr/structure/representation/orientation.d.ts +3 -3
  1536. package/lib/mol-repr/structure/representation/point.d.ts +6 -6
  1537. package/lib/mol-repr/structure/representation/putty.d.ts +3 -3
  1538. package/lib/mol-repr/structure/representation/spacefill.d.ts +3 -3
  1539. package/lib/mol-repr/structure/units-representation.js +1 -1
  1540. package/lib/mol-repr/structure/units-representation.js.map +1 -1
  1541. package/lib/mol-repr/structure/units-visual.d.ts +10 -10
  1542. package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +14 -6
  1543. package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.js +20 -9
  1544. package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.js.map +1 -1
  1545. package/lib/mol-repr/structure/visual/bond-inter-unit-line.d.ts +5 -3
  1546. package/lib/mol-repr/structure/visual/bond-inter-unit-line.js +13 -8
  1547. package/lib/mol-repr/structure/visual/bond-inter-unit-line.js.map +1 -1
  1548. package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +14 -6
  1549. package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.js +21 -7
  1550. package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.js.map +1 -1
  1551. package/lib/mol-repr/structure/visual/bond-intra-unit-line.d.ts +5 -3
  1552. package/lib/mol-repr/structure/visual/bond-intra-unit-line.js +14 -6
  1553. package/lib/mol-repr/structure/visual/bond-intra-unit-line.js.map +1 -1
  1554. package/lib/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +4 -1
  1555. package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -1
  1556. package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +4 -1
  1557. package/lib/mol-repr/structure/visual/element-cross.d.ts +26 -0
  1558. package/lib/mol-repr/structure/visual/element-cross.js +72 -0
  1559. package/lib/mol-repr/structure/visual/element-cross.js.map +1 -0
  1560. package/lib/mol-repr/structure/visual/element-point.d.ts +2 -2
  1561. package/lib/mol-repr/structure/visual/element-sphere.d.ts +2 -2
  1562. package/lib/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -1
  1563. package/lib/mol-repr/structure/visual/gaussian-density-volume.d.ts +4 -4
  1564. package/lib/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +12 -12
  1565. package/lib/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +1 -1
  1566. package/lib/mol-repr/structure/visual/label-text.d.ts +1 -1
  1567. package/lib/mol-repr/structure/visual/label-text.js +3 -3
  1568. package/lib/mol-repr/structure/visual/label-text.js.map +1 -1
  1569. package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +3 -3
  1570. package/lib/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +1 -1
  1571. package/lib/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -1
  1572. package/lib/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -1
  1573. package/lib/mol-repr/structure/visual/orientation-axes-mesh.d.ts +35 -0
  1574. package/lib/mol-repr/structure/visual/orientation-axes-mesh.js +43 -0
  1575. package/lib/mol-repr/structure/visual/orientation-axes-mesh.js.map +1 -0
  1576. package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh copy.d.ts +31 -0
  1577. package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh copy.js +48 -0
  1578. package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh copy.js.map +1 -0
  1579. package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -1
  1580. package/lib/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +2 -2
  1581. package/lib/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -2
  1582. package/lib/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -1
  1583. package/lib/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -1
  1584. package/lib/mol-repr/structure/visual/polymer-trace-mesh.d.ts +4 -1
  1585. package/lib/mol-repr/structure/visual/polymer-trace-mesh.js +22 -15
  1586. package/lib/mol-repr/structure/visual/polymer-trace-mesh.js.map +1 -1
  1587. package/lib/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -1
  1588. package/lib/mol-repr/structure/visual/polymer-tube-mesh.js +1 -1
  1589. package/lib/mol-repr/structure/visual/polymer-tube-mesh.js.map +1 -1
  1590. package/lib/mol-repr/structure/visual/util/bond.d.ts +30 -16
  1591. package/lib/mol-repr/structure/visual/util/bond.js +2 -1
  1592. package/lib/mol-repr/structure/visual/util/bond.js.map +1 -1
  1593. package/lib/mol-repr/structure/visual/util/color.d.ts +2 -2
  1594. package/lib/mol-repr/structure/visual/util/common.d.ts +2 -2
  1595. package/lib/mol-repr/structure/visual/util/element.d.ts +4 -4
  1596. package/lib/mol-repr/structure/visual/util/link.d.ts +14 -4
  1597. package/lib/mol-repr/structure/visual/util/link.js +90 -37
  1598. package/lib/mol-repr/structure/visual/util/link.js.map +1 -1
  1599. package/lib/mol-repr/structure/visual/util/orientation.d.ts +17 -0
  1600. package/lib/mol-repr/structure/visual/util/orientation.js +71 -0
  1601. package/lib/mol-repr/structure/visual/util/orientation.js.map +1 -0
  1602. package/lib/mol-repr/structure/visual/util/polymer.d.ts +2 -2
  1603. package/lib/mol-repr/volume/direct-volume.d.ts +3 -3
  1604. package/lib/mol-repr/volume/registry.d.ts +1 -1
  1605. package/lib/mol-repr/volume/registry.js +1 -1
  1606. package/lib/mol-repr/volume/registry.js.map +1 -1
  1607. package/lib/mol-script/language/builder.d.ts +0 -1
  1608. package/lib/mol-script/language/expression-formatter.js +6 -6
  1609. package/lib/mol-script/language/expression-formatter.js.map +1 -1
  1610. package/lib/mol-script/language/helpers.js +4 -4
  1611. package/lib/mol-script/language/helpers.js.map +1 -1
  1612. package/lib/mol-script/language/parser.js +1 -1
  1613. package/lib/mol-script/language/parser.js.map +1 -1
  1614. package/lib/mol-script/language/symbol-table/structure-query.js +3 -3
  1615. package/lib/mol-script/language/symbol-table/structure-query.js.map +1 -1
  1616. package/lib/mol-script/language/symbol.js +1 -1
  1617. package/lib/mol-script/language/symbol.js.map +1 -1
  1618. package/lib/mol-script/runtime/query/base.js +2 -2
  1619. package/lib/mol-script/runtime/query/base.js.map +1 -1
  1620. package/lib/mol-script/script/mol-script/symbols.js +3 -3
  1621. package/lib/mol-script/script/mol-script/symbols.js.map +1 -1
  1622. package/lib/mol-state/state/builder.js +1 -1
  1623. package/lib/mol-state/state/builder.js.map +1 -1
  1624. package/lib/mol-state/state.js +7 -7
  1625. package/lib/mol-state/state.js.map +1 -1
  1626. package/lib/mol-state/transformer.js +3 -3
  1627. package/lib/mol-state/transformer.js.map +1 -1
  1628. package/lib/mol-state/tree/transient.js +3 -3
  1629. package/lib/mol-state/tree/transient.js.map +1 -1
  1630. package/lib/mol-task/execution/progress.js +4 -4
  1631. package/lib/mol-task/execution/progress.js.map +1 -1
  1632. package/lib/mol-task/task.js +1 -1
  1633. package/lib/mol-task/task.js.map +1 -1
  1634. package/lib/mol-task/util/multistep.js +1 -1
  1635. package/lib/mol-task/util/multistep.js.map +1 -1
  1636. package/lib/mol-task/util/user-timing.js +3 -3
  1637. package/lib/mol-task/util/user-timing.js.map +1 -1
  1638. package/lib/mol-theme/color/atom-id.d.ts +12 -12
  1639. package/lib/mol-theme/color/chain-id.d.ts +12 -12
  1640. package/lib/mol-theme/color/chain-id.js +1 -1
  1641. package/lib/mol-theme/color/chain-id.js.map +1 -1
  1642. package/lib/mol-theme/color/element-index.d.ts +12 -12
  1643. package/lib/mol-theme/color/element-symbol.d.ts +16 -16
  1644. package/lib/mol-theme/color/entity-id.d.ts +12 -12
  1645. package/lib/mol-theme/color/entity-id.js +1 -1
  1646. package/lib/mol-theme/color/entity-id.js.map +1 -1
  1647. package/lib/mol-theme/color/entity-source.d.ts +12 -12
  1648. package/lib/mol-theme/color/entity-source.js +4 -4
  1649. package/lib/mol-theme/color/entity-source.js.map +1 -1
  1650. package/lib/mol-theme/color/illustrative.d.ts +12 -12
  1651. package/lib/mol-theme/color/model-index.d.ts +12 -12
  1652. package/lib/mol-theme/color/operator-hkl.d.ts +12 -12
  1653. package/lib/mol-theme/color/operator-hkl.js +2 -2
  1654. package/lib/mol-theme/color/operator-hkl.js.map +1 -1
  1655. package/lib/mol-theme/color/operator-name.d.ts +12 -12
  1656. package/lib/mol-theme/color/polymer-id.d.ts +12 -12
  1657. package/lib/mol-theme/color/polymer-index.d.ts +12 -12
  1658. package/lib/mol-theme/color/unit-index.d.ts +12 -12
  1659. package/lib/mol-theme/color.d.ts +80 -80
  1660. package/lib/mol-theme/label.d.ts +1 -0
  1661. package/lib/mol-theme/label.js +36 -27
  1662. package/lib/mol-theme/label.js.map +1 -1
  1663. package/lib/mol-theme/theme.js +3 -3
  1664. package/lib/mol-theme/theme.js.map +1 -1
  1665. package/lib/mol-util/assets.js +3 -3
  1666. package/lib/mol-util/assets.js.map +1 -1
  1667. package/lib/mol-util/color/color.js +2 -2
  1668. package/lib/mol-util/color/color.js.map +1 -1
  1669. package/lib/mol-util/color/lists.js +1 -1
  1670. package/lib/mol-util/color/lists.js.map +1 -1
  1671. package/lib/mol-util/color/palette.d.ts +12 -12
  1672. package/lib/mol-util/color/palette.js +2 -2
  1673. package/lib/mol-util/color/palette.js.map +1 -1
  1674. package/lib/mol-util/color/scale.d.ts +1 -1
  1675. package/lib/mol-util/console-logger.js +9 -9
  1676. package/lib/mol-util/console-logger.js.map +1 -1
  1677. package/lib/mol-util/data-source.js +5 -5
  1678. package/lib/mol-util/data-source.js.map +1 -1
  1679. package/lib/mol-util/download.js +1 -1
  1680. package/lib/mol-util/download.js.map +1 -1
  1681. package/lib/mol-util/graphql-client.js +2 -2
  1682. package/lib/mol-util/graphql-client.js.map +1 -1
  1683. package/lib/mol-util/index.js +2 -2
  1684. package/lib/mol-util/index.js.map +1 -1
  1685. package/lib/mol-util/monadic-parser.js +4 -4
  1686. package/lib/mol-util/monadic-parser.js.map +1 -1
  1687. package/lib/mol-util/now.js +4 -4
  1688. package/lib/mol-util/now.js.map +1 -1
  1689. package/lib/mol-util/object.js +1 -1
  1690. package/lib/mol-util/object.js.map +1 -1
  1691. package/lib/mol-util/performance-monitor.js +4 -4
  1692. package/lib/mol-util/performance-monitor.js.map +1 -1
  1693. package/lib/mol-util/string.js +3 -3
  1694. package/lib/mol-util/string.js.map +1 -1
  1695. package/lib/mol-util/url.js +2 -2
  1696. package/lib/mol-util/url.js.map +1 -1
  1697. package/lib/mol-util/zip/deflate.js +1 -1
  1698. package/lib/mol-util/zip/deflate.js.map +1 -1
  1699. package/lib/mol-util/zip/inflate.js +1 -1
  1700. package/lib/mol-util/zip/inflate.js.map +1 -1
  1701. package/lib/mol-util/zip/zip.js +1 -1
  1702. package/lib/mol-util/zip/zip.js.map +1 -1
  1703. package/lib/perf-tests/mol-script.js +1 -1
  1704. package/lib/perf-tests/mol-script.js.map +1 -1
  1705. package/lib/perf-tests/sets.js +1 -1
  1706. package/lib/perf-tests/sets.js.map +1 -1
  1707. package/lib/perf-tests/sort.js +1 -1
  1708. package/lib/perf-tests/sort.js.map +1 -1
  1709. package/lib/perf-tests/string-builder.js +2 -2
  1710. package/lib/perf-tests/string-builder.js.map +1 -1
  1711. package/lib/perf-tests/structure.js +7 -7
  1712. package/lib/perf-tests/structure.js.map +1 -1
  1713. package/lib/perf-tests/test-xtc.js +1 -1
  1714. package/lib/perf-tests/test-xtc.js.map +1 -1
  1715. package/lib/servers/common/file-handle.js +1 -1
  1716. package/lib/servers/common/file-handle.js.map +1 -1
  1717. package/lib/servers/common/util.js +1 -1
  1718. package/lib/servers/common/util.js.map +1 -1
  1719. package/lib/servers/model/config.d.ts +2 -2
  1720. package/lib/servers/model/config.js +4 -5
  1721. package/lib/servers/model/config.js.map +1 -1
  1722. package/lib/servers/model/preprocess/master.js +1 -1
  1723. package/lib/servers/model/preprocess/master.js.map +1 -1
  1724. package/lib/servers/model/preprocess/parallel.js +2 -2
  1725. package/lib/servers/model/preprocess/parallel.js.map +1 -1
  1726. package/lib/servers/model/preprocess/util.js +3 -3
  1727. package/lib/servers/model/preprocess/util.js.map +1 -1
  1728. package/lib/servers/model/properties/providers/pdbe.js +5 -5
  1729. package/lib/servers/model/properties/providers/pdbe.js.map +1 -1
  1730. package/lib/servers/model/property-provider.js +2 -2
  1731. package/lib/servers/model/property-provider.js.map +1 -1
  1732. package/lib/servers/model/query.js +1 -1
  1733. package/lib/servers/model/query.js.map +1 -1
  1734. package/lib/servers/model/server/api-local.js +2 -2
  1735. package/lib/servers/model/server/api-local.js.map +1 -1
  1736. package/lib/servers/model/server/api-schema.js +2 -2
  1737. package/lib/servers/model/server/api-schema.js.map +1 -1
  1738. package/lib/servers/model/server/api-web-multiple.js +1 -1
  1739. package/lib/servers/model/server/api-web-multiple.js.map +1 -1
  1740. package/lib/servers/model/server/api-web.js +4 -4
  1741. package/lib/servers/model/server/api-web.js.map +1 -1
  1742. package/lib/servers/model/server/api.js +1 -1
  1743. package/lib/servers/model/server/api.js.map +1 -1
  1744. package/lib/servers/model/server/cache.js +3 -3
  1745. package/lib/servers/model/server/cache.js.map +1 -1
  1746. package/lib/servers/model/server/jobs.js +3 -3
  1747. package/lib/servers/model/server/jobs.js.map +1 -1
  1748. package/lib/servers/model/server/query.js +10 -10
  1749. package/lib/servers/model/server/query.js.map +1 -1
  1750. package/lib/servers/model/server/structure-wrapper.js +6 -6
  1751. package/lib/servers/model/server/structure-wrapper.js.map +1 -1
  1752. package/lib/servers/model/server.js +3 -3
  1753. package/lib/servers/model/server.js.map +1 -1
  1754. package/lib/servers/model/utils/fetch-props-pdbe.js +4 -4
  1755. package/lib/servers/model/utils/fetch-props-pdbe.js.map +1 -1
  1756. package/lib/servers/model/utils/writer.js +2 -2
  1757. package/lib/servers/model/utils/writer.js.map +1 -1
  1758. package/lib/servers/plugin-state/api-schema.js +2 -2
  1759. package/lib/servers/plugin-state/api-schema.js.map +1 -1
  1760. package/lib/servers/plugin-state/index.js +1 -1
  1761. package/lib/servers/plugin-state/index.js.map +1 -1
  1762. package/lib/servers/volume/config.js +0 -1
  1763. package/lib/servers/volume/config.js.map +1 -1
  1764. package/lib/servers/volume/pack/format/dsn6.js +1 -1
  1765. package/lib/servers/volume/pack/format/dsn6.js.map +1 -1
  1766. package/lib/servers/volume/pack/main.js +4 -4
  1767. package/lib/servers/volume/pack/main.js.map +1 -1
  1768. package/lib/servers/volume/pack/writer.js +1 -1
  1769. package/lib/servers/volume/pack/writer.js.map +1 -1
  1770. package/lib/servers/volume/pack.js +1 -1
  1771. package/lib/servers/volume/pack.js.map +1 -1
  1772. package/lib/servers/volume/server/api.js +7 -7
  1773. package/lib/servers/volume/server/api.js.map +1 -1
  1774. package/lib/servers/volume/server/local-api.js +1 -1
  1775. package/lib/servers/volume/server/local-api.js.map +1 -1
  1776. package/lib/servers/volume/server/query/encode.js +3 -3
  1777. package/lib/servers/volume/server/query/encode.js.map +1 -1
  1778. package/lib/servers/volume/server/query/execute.js +5 -5
  1779. package/lib/servers/volume/server/query/execute.js.map +1 -1
  1780. package/lib/servers/volume/server/version.js +1 -1
  1781. package/lib/servers/volume/server/version.js.map +1 -1
  1782. package/lib/servers/volume/server/web-api.js +7 -7
  1783. package/lib/servers/volume/server/web-api.js.map +1 -1
  1784. package/lib/servers/volume/server/web-schema.js +6 -6
  1785. package/lib/servers/volume/server/web-schema.js.map +1 -1
  1786. package/lib/servers/volume/server.js +2 -2
  1787. package/lib/servers/volume/server.js.map +1 -1
  1788. package/lib/tests/browser/font-atlas.js +1 -1
  1789. package/lib/tests/browser/font-atlas.js.map +1 -1
  1790. package/lib/tests/browser/index.html +36 -36
  1791. package/lib/tests/browser/render-shape.js +1 -1
  1792. package/lib/tests/browser/render-shape.js.map +1 -1
  1793. package/lib/tests/browser/render-structure.js +1 -1
  1794. package/lib/tests/browser/render-structure.js.map +1 -1
  1795. package/lib/tsconfig.commonjs.tsbuildinfo +1 -1
  1796. package/package.json +158 -155
  1797. package/CHANGELOG.md +0 -165
  1798. package/lib/commonjs/mol-gl/shader/chunks/wboit-params.glsl.d.ts +0 -1
  1799. package/lib/commonjs/mol-gl/shader/chunks/wboit-params.glsl.js +0 -5
  1800. package/lib/commonjs/mol-gl/shader/chunks/wboit-params.glsl.js.map +0 -1
  1801. package/lib/commonjs/mol-model/structure/model/properties/utils/guess-element.d.ts +0 -6
  1802. package/lib/commonjs/mol-model/structure/model/properties/utils/guess-element.js +0 -40
  1803. package/lib/commonjs/mol-model/structure/model/properties/utils/guess-element.js.map +0 -1
  1804. package/lib/commonjs/mol-repr/structure/visual/aromatic-ring-mesh.js +0 -3
  1805. package/lib/commonjs/mol-repr/structure/visual/aromatic-ring-mesh.js.map +0 -1
  1806. package/lib/commonjs/mol-repr/structure/visual/util/polymer/backbone-iterator.d.ts +0 -37
  1807. package/lib/commonjs/mol-repr/structure/visual/util/polymer/backbone-iterator.js +0 -116
  1808. package/lib/commonjs/mol-repr/structure/visual/util/polymer/backbone-iterator.js.map +0 -1
  1809. package/lib/commonjs/mol-script/util/residue-list.d.ts +0 -7
  1810. package/lib/commonjs/mol-script/util/residue-list.js +0 -63
  1811. package/lib/commonjs/mol-script/util/residue-list.js.map +0 -1
  1812. package/lib/mol-gl/shader/chunks/wboit-params.glsl.d.ts +0 -1
  1813. package/lib/mol-gl/shader/chunks/wboit-params.glsl.js +0 -2
  1814. package/lib/mol-gl/shader/chunks/wboit-params.glsl.js.map +0 -1
  1815. package/lib/mol-model/structure/model/properties/utils/guess-element.d.ts +0 -6
  1816. package/lib/mol-model/structure/model/properties/utils/guess-element.js +0 -36
  1817. package/lib/mol-model/structure/model/properties/utils/guess-element.js.map +0 -1
  1818. package/lib/mol-model-formats/structure/mol copy.d.ts +0 -17
  1819. package/lib/mol-model-formats/structure/mol copy.js +0 -86
  1820. package/lib/mol-model-formats/structure/mol copy.js.map +0 -1
  1821. package/lib/mol-repr/structure/visual/aromatic-ring-mesh.d.ts +0 -0
  1822. package/lib/mol-repr/structure/visual/aromatic-ring-mesh.js +0 -3
  1823. package/lib/mol-repr/structure/visual/aromatic-ring-mesh.js.map +0 -1
  1824. package/lib/mol-repr/structure/visual/util/polymer/backbone-iterator.d.ts +0 -37
  1825. package/lib/mol-repr/structure/visual/util/polymer/backbone-iterator.js +0 -112
  1826. package/lib/mol-repr/structure/visual/util/polymer/backbone-iterator.js.map +0 -1
  1827. package/lib/mol-script/util/residue-list.d.ts +0 -7
  1828. package/lib/mol-script/util/residue-list.js +0 -59
  1829. package/lib/mol-script/util/residue-list.js.map +0 -1
@@ -3,6 +3,7 @@
3
3
  * Copyright (c) 2019-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
4
4
  *
5
5
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
6
+ * @author Ludovic Autin <ludovic.autin@gmail.com>
6
7
  */
7
8
  Object.defineProperty(exports, "__esModule", { value: true });
8
9
  exports.LoadCellPackModel = exports.createStructureFromCellPack = void 0;
@@ -28,10 +29,11 @@ var parser_1 = require("../../mol-model-formats/structure/basic/parser");
28
29
  var preset_1 = require("./preset");
29
30
  var assets_1 = require("../../mol-util/assets");
30
31
  var color_1 = require("../../mol-util/color");
31
- var data_source_1 = require("../../mol-util/data-source");
32
32
  var object_1 = require("../../mol-util/object");
33
+ var data_source_1 = require("../../mol-util/data-source");
34
+ var names_1 = require("../../mol-util/color/names");
33
35
  function getCellPackModelUrl(fileName, baseUrl) {
34
- return baseUrl + "/results/" + fileName;
36
+ return "".concat(baseUrl, "/results/").concat(fileName);
35
37
  }
36
38
  var TrajectoryCache = /** @class */ (function () {
37
39
  function TrajectoryCache() {
@@ -41,7 +43,7 @@ var TrajectoryCache = /** @class */ (function () {
41
43
  TrajectoryCache.prototype.get = function (id) { return this.map.get(id); };
42
44
  return TrajectoryCache;
43
45
  }());
44
- function getModel(plugin, id, ingredient, baseUrl, trajCache, file) {
46
+ function getModel(plugin, id, ingredient, baseUrl, trajCache, location, file) {
45
47
  return (0, tslib_1.__awaiter)(this, void 0, void 0, function () {
46
48
  var assetManager, modelIndex, surface, trajectory, assets, text, cif, binary, cif, text, pdb, data, e_1, _a, mmcif, asset, _b, mmcif, asset, data, model;
47
49
  return (0, tslib_1.__generator)(this, function (_c) {
@@ -50,6 +52,8 @@ function getModel(plugin, id, ingredient, baseUrl, trajCache, file) {
50
52
  assetManager = plugin.managers.asset;
51
53
  modelIndex = (ingredient.source.model) ? parseInt(ingredient.source.model) : 0;
52
54
  surface = (ingredient.ingtype) ? (ingredient.ingtype === 'transmembrane') : false;
55
+ if (location === 'surface')
56
+ surface = true;
53
57
  trajectory = trajCache.get(id);
54
58
  assets = [];
55
59
  if (!!trajectory) return [3 /*break*/, 32];
@@ -92,7 +96,7 @@ function getModel(plugin, id, ingredient, baseUrl, trajCache, file) {
92
96
  case 11:
93
97
  trajectory = _c.sent();
94
98
  return [3 /*break*/, 13];
95
- case 12: throw new Error("unsupported file type '" + file.name + "'");
99
+ case 12: throw new Error("unsupported file type '".concat(file.name, "'"));
96
100
  case 13: return [3 /*break*/, 31];
97
101
  case 14:
98
102
  if (!id.match(/^[1-9][a-zA-Z0-9]{3,3}$/i)) return [3 /*break*/, 26];
@@ -104,6 +108,7 @@ function getModel(plugin, id, ingredient, baseUrl, trajCache, file) {
104
108
  case 16:
105
109
  data = _c.sent();
106
110
  assets.push(data.asset);
111
+ data.pdb.id = id.toUpperCase();
107
112
  return [4 /*yield*/, plugin.runTask((0, pdb_1.trajectoryFromPDB)(data.pdb))];
108
113
  case 17:
109
114
  trajectory = _c.sent();
@@ -155,7 +160,7 @@ function getModel(plugin, id, ingredient, baseUrl, trajCache, file) {
155
160
  function getStructure(plugin, model, source, props) {
156
161
  if (props === void 0) { props = {}; }
157
162
  return (0, tslib_1.__awaiter)(this, void 0, void 0, function () {
158
- var structure, assembly, query, asymIds, compiled, result;
163
+ var structure, assembly, query, sel, asymIds, compiled, result;
159
164
  return (0, tslib_1.__generator)(this, function (_a) {
160
165
  switch (_a.label) {
161
166
  case 0:
@@ -167,11 +172,11 @@ function getStructure(plugin, model, source, props) {
167
172
  structure = _a.sent();
168
173
  _a.label = 2;
169
174
  case 2:
170
- if (source.selection) {
171
- asymIds = source.selection.replace(' ', '').replace(':', '').split('or');
175
+ if (source.source.selection) {
176
+ sel = source.source.selection;
177
+ asymIds = sel.replace(/ /g, '').replace(/:/g, '').split('or').slice(1);
172
178
  query = builder_1.MolScriptBuilder.struct.modifier.union([
173
179
  builder_1.MolScriptBuilder.struct.generator.atomGroups({
174
- 'entity-test': builder_1.MolScriptBuilder.core.rel.eq([builder_1.MolScriptBuilder.ammp('entityType'), 'polymer']),
175
180
  'chain-test': builder_1.MolScriptBuilder.core.set.has([builder_1.MolScriptBuilder.set.apply(builder_1.MolScriptBuilder, asymIds), builder_1.MolScriptBuilder.ammp('auth_asym_id')])
176
181
  })
177
182
  ]);
@@ -186,6 +191,8 @@ function getStructure(plugin, model, source, props) {
186
191
  compiled = (0, compiler_1.compile)(query);
187
192
  result = compiled(new structure_1.QueryContext(structure));
188
193
  structure = structure_1.StructureSelection.unionStructure(result);
194
+ // change here if possible the label ?
195
+ // structure.label = source.name;
189
196
  return [2 /*return*/, structure];
190
197
  }
191
198
  });
@@ -200,9 +207,9 @@ function getTransformLegacy(trans, rot) {
200
207
  return m;
201
208
  }
202
209
  function getTransform(trans, rot) {
203
- var q = linear_algebra_1.Quat.create(rot[0], rot[1], rot[2], rot[3]);
210
+ var q = linear_algebra_1.Quat.create(-rot[0], rot[1], rot[2], -rot[3]);
204
211
  var m = linear_algebra_1.Mat4.fromQuat(linear_algebra_1.Mat4.zero(), q);
205
- var p = linear_algebra_1.Vec3.create(trans[0], trans[1], trans[2]);
212
+ var p = linear_algebra_1.Vec3.create(-trans[0], trans[1], trans[2]);
206
213
  linear_algebra_1.Mat4.setTranslation(m, p);
207
214
  return m;
208
215
  }
@@ -226,9 +233,9 @@ function getCurveTransforms(ingredient) {
226
233
  }
227
234
  var resampling = false;
228
235
  for (var i = 0; i < n; ++i) {
229
- var cname = "curve" + i;
236
+ var cname = "curve".concat(i);
230
237
  if (!(cname in ingredient)) {
231
- // console.warn(`Expected '${cname}' in ingredient`)
238
+ console.warn("Expected '".concat(cname, "' in ingredient"));
232
239
  continue;
233
240
  }
234
241
  var _points = ingredient[cname];
@@ -239,7 +246,7 @@ function getCurveTransforms(ingredient) {
239
246
  // test for resampling
240
247
  var distance = linear_algebra_1.Vec3.distance(_points[0], _points[1]);
241
248
  if (distance >= segmentLength + 2.0) {
242
- console.info(distance);
249
+ // console.info(distance);
243
250
  resampling = true;
244
251
  }
245
252
  var points = new Float32Array(_points.length * 3);
@@ -250,11 +257,11 @@ function getCurveTransforms(ingredient) {
250
257
  }
251
258
  return instances;
252
259
  }
253
- function getAssembly(transforms, structure) {
254
- var builder = structure_1.Structure.Builder();
260
+ function getAssembly(name, transforms, structure) {
261
+ var builder = structure_1.Structure.Builder({ label: name });
255
262
  var units = structure.units;
256
263
  for (var i = 0, il = transforms.length; i < il; ++i) {
257
- var id = "" + (i + 1);
264
+ var id = "".concat(i + 1);
258
265
  var op = geometry_1.SymmetryOperator.create(id, transforms[i], { assembly: { id: id, operId: i, operList: [id] } });
259
266
  for (var _i = 0, units_1 = units; _i < units_1.length; _i++) {
260
267
  var unit = units_1[_i];
@@ -369,14 +376,15 @@ function getCurve(plugin, name, ingredient, transforms, model) {
369
376
  return [4 /*yield*/, plugin.runTask(curveModelTask)];
370
377
  case 1:
371
378
  curveModel = _a.sent();
372
- return [2 /*return*/, getStructure(plugin, curveModel, ingredient.source)];
379
+ // ingredient.source.selection = undefined;
380
+ return [2 /*return*/, getStructure(plugin, curveModel, ingredient)];
373
381
  }
374
382
  });
375
383
  });
376
384
  }
377
- function getIngredientStructure(plugin, ingredient, baseUrl, ingredientFiles, trajCache) {
385
+ function getIngredientStructure(plugin, ingredient, baseUrl, ingredientFiles, trajCache, location) {
378
386
  return (0, tslib_1.__awaiter)(this, void 0, void 0, function () {
379
- var name, source, results, nbCurve, file, _a, model, assets, structure, bu, legacy, structureMean, m1, m, q, m;
387
+ var name, source, results, nbCurve, file, _a, model, assets, structure, bu, legacy, pcp, structureMean, m1, o, m, p, q, m;
380
388
  return (0, tslib_1.__generator)(this, function (_b) {
381
389
  switch (_b.label) {
382
390
  case 0:
@@ -397,7 +405,7 @@ function getIngredientStructure(plugin, ingredient, baseUrl, ingredientFiles, tr
397
405
  if (name === 'lypoglycane')
398
406
  return [2 /*return*/];
399
407
  }
400
- return [4 /*yield*/, getModel(plugin, source.pdb || name, ingredient, baseUrl, trajCache, file)];
408
+ return [4 /*yield*/, getModel(plugin, source.pdb || name, ingredient, baseUrl, trajCache, location, file)];
401
409
  case 1:
402
410
  _a = _b.sent(), model = _a.model, assets = _a.assets;
403
411
  if (!model)
@@ -408,6 +416,8 @@ function getIngredientStructure(plugin, ingredient, baseUrl, ingredientFiles, tr
408
416
  structure = _b.sent();
409
417
  return [3 /*break*/, 5];
410
418
  case 3:
419
+ if ((!results || results.length === 0))
420
+ return [2 /*return*/];
411
421
  bu = source.bu ? source.bu : undefined;
412
422
  if (bu) {
413
423
  if (bu === 'AU') {
@@ -417,11 +427,12 @@ function getIngredientStructure(plugin, ingredient, baseUrl, ingredientFiles, tr
417
427
  bu = bu.slice(2);
418
428
  }
419
429
  }
420
- return [4 /*yield*/, getStructure(plugin, model, source, { assembly: bu })];
430
+ return [4 /*yield*/, getStructure(plugin, model, ingredient, { assembly: bu })];
421
431
  case 4:
422
432
  structure = _b.sent();
423
433
  legacy = true;
424
- if (ingredient.offset || ingredient.principalAxis) {
434
+ pcp = ingredient.principalVector ? ingredient.principalVector : ingredient.principalAxis;
435
+ if (pcp) {
425
436
  legacy = false;
426
437
  structureMean = (0, util_1.getStructureMean)(structure);
427
438
  linear_algebra_1.Vec3.negate(structureMean, structureMean);
@@ -429,22 +440,27 @@ function getIngredientStructure(plugin, ingredient, baseUrl, ingredientFiles, tr
429
440
  linear_algebra_1.Mat4.setTranslation(m1, structureMean);
430
441
  structure = structure_1.Structure.transform(structure, m1);
431
442
  if (ingredient.offset) {
432
- if (!linear_algebra_1.Vec3.exactEquals(ingredient.offset, linear_algebra_1.Vec3.zero())) {
443
+ o = linear_algebra_1.Vec3.create(ingredient.offset[0], ingredient.offset[1], ingredient.offset[2]);
444
+ if (!linear_algebra_1.Vec3.exactEquals(o, linear_algebra_1.Vec3.zero())) { // -1, 1, 4e-16 ??
445
+ if (location !== 'surface') {
446
+ linear_algebra_1.Vec3.negate(o, o);
447
+ }
433
448
  m = linear_algebra_1.Mat4.identity();
434
- linear_algebra_1.Mat4.setTranslation(m, ingredient.offset);
449
+ linear_algebra_1.Mat4.setTranslation(m, o);
435
450
  structure = structure_1.Structure.transform(structure, m);
436
451
  }
437
452
  }
438
- if (ingredient.principalAxis) {
439
- if (!linear_algebra_1.Vec3.exactEquals(ingredient.principalAxis, linear_algebra_1.Vec3.unitZ)) {
453
+ if (pcp) {
454
+ p = linear_algebra_1.Vec3.create(pcp[0], pcp[1], pcp[2]);
455
+ if (!linear_algebra_1.Vec3.exactEquals(p, linear_algebra_1.Vec3.unitZ)) {
440
456
  q = linear_algebra_1.Quat.identity();
441
- linear_algebra_1.Quat.rotationTo(q, ingredient.principalAxis, linear_algebra_1.Vec3.unitZ);
457
+ linear_algebra_1.Quat.rotationTo(q, p, linear_algebra_1.Vec3.unitZ);
442
458
  m = linear_algebra_1.Mat4.fromQuat(linear_algebra_1.Mat4.zero(), q);
443
459
  structure = structure_1.Structure.transform(structure, m);
444
460
  }
445
461
  }
446
462
  }
447
- structure = getAssembly(getResultTransforms(results, legacy), structure);
463
+ structure = getAssembly(name, getResultTransforms(results, legacy), structure);
448
464
  _b.label = 5;
449
465
  case 5: return [2 /*return*/, { structure: structure, assets: assets }];
450
466
  }
@@ -454,16 +470,15 @@ function getIngredientStructure(plugin, ingredient, baseUrl, ingredientFiles, tr
454
470
  function createStructureFromCellPack(plugin, packing, baseUrl, ingredientFiles) {
455
471
  var _this = this;
456
472
  return mol_task_1.Task.create('Create Packing Structure', function (ctx) { return (0, tslib_1.__awaiter)(_this, void 0, void 0, function () {
457
- var ingredients, name, assets, trajCache, structures, colors, skipColors, _a, _b, _i, iName, ingredientStructure, c, units, offsetInvariantId, offsetChainGroupId, _c, structures_1, s, maxInvariantId, maxChainGroupId, _d, _e, u, invariantId, chainGroupId, structure, i, il;
473
+ var ingredients, location, name, assets, trajCache, structures, colors, _a, _b, _i, iName, ingredientStructure, c, units, offsetInvariantId, offsetChainGroupId, _c, structures_1, s, maxInvariantId, maxChainGroupId, _d, _e, u, invariantId, chainGroupId, structure, i, il;
458
474
  return (0, tslib_1.__generator)(this, function (_f) {
459
475
  switch (_f.label) {
460
476
  case 0:
461
- ingredients = packing.ingredients, name = packing.name;
477
+ ingredients = packing.ingredients, location = packing.location, name = packing.name;
462
478
  assets = [];
463
479
  trajCache = new TrajectoryCache();
464
480
  structures = [];
465
481
  colors = [];
466
- skipColors = false;
467
482
  _a = [];
468
483
  for (_b in ingredients)
469
484
  _a.push(_b);
@@ -477,7 +492,7 @@ function createStructureFromCellPack(plugin, packing, baseUrl, ingredientFiles)
477
492
  case 2:
478
493
  _f.sent();
479
494
  _f.label = 3;
480
- case 3: return [4 /*yield*/, getIngredientStructure(plugin, ingredients[iName], baseUrl, ingredientFiles, trajCache)];
495
+ case 3: return [4 /*yield*/, getIngredientStructure(plugin, ingredients[iName], baseUrl, ingredientFiles, trajCache, location)];
481
496
  case 4:
482
497
  ingredientStructure = _f.sent();
483
498
  if (ingredientStructure) {
@@ -488,7 +503,7 @@ function createStructureFromCellPack(plugin, packing, baseUrl, ingredientFiles)
488
503
  colors.push(color_1.Color.fromNormalizedRgb(c[0], c[1], c[2]));
489
504
  }
490
505
  else {
491
- skipColors = true;
506
+ colors.push(color_1.Color.fromNormalizedRgb(1, 0, 0));
492
507
  }
493
508
  }
494
509
  _f.label = 5;
@@ -497,7 +512,7 @@ function createStructureFromCellPack(plugin, packing, baseUrl, ingredientFiles)
497
512
  return [3 /*break*/, 1];
498
513
  case 6:
499
514
  if (!ctx.shouldUpdate) return [3 /*break*/, 8];
500
- return [4 /*yield*/, ctx.update(name + " - units")];
515
+ return [4 /*yield*/, ctx.update("".concat(name, " - units"))];
501
516
  case 7:
502
517
  _f.sent();
503
518
  _f.label = 8;
@@ -511,7 +526,7 @@ function createStructureFromCellPack(plugin, packing, baseUrl, ingredientFiles)
511
526
  if (!(_c < structures_1.length)) return [3 /*break*/, 13];
512
527
  s = structures_1[_c];
513
528
  if (!ctx.shouldUpdate) return [3 /*break*/, 11];
514
- return [4 /*yield*/, ctx.update("" + s.label)];
529
+ return [4 /*yield*/, ctx.update("".concat(s.label))];
515
530
  case 10:
516
531
  _f.sent();
517
532
  _f.label = 11;
@@ -534,16 +549,16 @@ function createStructureFromCellPack(plugin, packing, baseUrl, ingredientFiles)
534
549
  return [3 /*break*/, 9];
535
550
  case 13:
536
551
  if (!ctx.shouldUpdate) return [3 /*break*/, 15];
537
- return [4 /*yield*/, ctx.update(name + " - structure")];
552
+ return [4 /*yield*/, ctx.update("".concat(name, " - structure"))];
538
553
  case 14:
539
554
  _f.sent();
540
555
  _f.label = 15;
541
556
  case 15:
542
- structure = structure_1.Structure.create(units);
557
+ structure = structure_1.Structure.create(units, { label: name + '.' + location });
543
558
  for (i = 0, il = structure.models.length; i < il; ++i) {
544
559
  structure_1.Model.TrajectoryInfo.set(structure.models[i], { size: il, index: i });
545
560
  }
546
- return [2 /*return*/, { structure: structure, assets: assets, colors: skipColors ? undefined : colors }];
561
+ return [2 /*return*/, { structure: structure, assets: assets, colors: colors }];
547
562
  }
548
563
  });
549
564
  }); });
@@ -559,8 +574,8 @@ function handleHivRna(plugin, packings, baseUrl) {
559
574
  _a.label = 1;
560
575
  case 1:
561
576
  if (!(i < il)) return [3 /*break*/, 4];
562
- if (!(packings[i].name === 'HIV1_capsid_3j3q_PackInner_0_1_0')) return [3 /*break*/, 3];
563
- url = assets_1.Asset.getUrlAsset(plugin.managers.asset, baseUrl + "/extras/rna_allpoints.json");
577
+ if (!(packings[i].name === 'HIV1_capsid_3j3q_PackInner_0_1_0' || packings[i].name === 'HIV_capsid')) return [3 /*break*/, 3];
578
+ url = assets_1.Asset.getUrlAsset(plugin.managers.asset, "".concat(baseUrl, "/extras/rna_allpoints.json"));
564
579
  return [4 /*yield*/, plugin.runTask(plugin.managers.asset.resolve(url, 'json', false))];
565
580
  case 2:
566
581
  json = _a.sent();
@@ -587,13 +602,13 @@ function handleHivRna(plugin, packings, baseUrl) {
587
602
  }
588
603
  function loadMembrane(plugin, name, state, params) {
589
604
  return (0, tslib_1.__awaiter)(this, void 0, void 0, function () {
590
- var file, fileName, _i, _a, f, cifileName, _b, _c, f, b, url, membrane, membraneParams;
605
+ var file, fileName, _i, _a, f, cifileName, _b, _c, f, legacy_membrane, geometry_membrane, b, url, url, url, url, props, membrane, membraneParams, membrane, membraneParams;
591
606
  return (0, tslib_1.__generator)(this, function (_d) {
592
607
  switch (_d.label) {
593
608
  case 0:
594
609
  file = undefined;
595
610
  if (params.ingredients !== null) {
596
- fileName = name + ".bcif";
611
+ fileName = "".concat(name, ".bcif");
597
612
  for (_i = 0, _a = params.ingredients; _i < _a.length; _i++) {
598
613
  f = _a[_i];
599
614
  if (fileName === f.name) {
@@ -602,7 +617,7 @@ function loadMembrane(plugin, name, state, params) {
602
617
  }
603
618
  }
604
619
  if (!file) {
605
- cifileName = name + ".cif";
620
+ cifileName = "".concat(name, ".cif");
606
621
  for (_b = 0, _c = params.ingredients; _b < _c.length; _b++) {
607
622
  f = _c[_b];
608
623
  if (cifileName === f.name) {
@@ -612,6 +627,8 @@ function loadMembrane(plugin, name, state, params) {
612
627
  }
613
628
  }
614
629
  }
630
+ legacy_membrane = false;
631
+ geometry_membrane = false;
615
632
  b = state.build().toRoot();
616
633
  if (file) {
617
634
  if (file.name.endsWith('.cif')) {
@@ -622,9 +639,32 @@ function loadMembrane(plugin, name, state, params) {
622
639
  }
623
640
  }
624
641
  else {
625
- url = assets_1.Asset.getUrlAsset(plugin.managers.asset, params.baseUrl + "/membranes/" + name + ".bcif");
626
- b = b.apply(transforms_1.StateTransforms.Data.Download, { url: url, isBinary: true, label: name }, { state: { isGhost: true } });
642
+ if (name.toLowerCase().endsWith('.bcif')) {
643
+ url = assets_1.Asset.getUrlAsset(plugin.managers.asset, "".concat(params.baseUrl, "/membranes/").concat(name));
644
+ b = b.apply(transforms_1.StateTransforms.Data.Download, { url: url, isBinary: true, label: name }, { state: { isGhost: true } });
645
+ }
646
+ else if (name.toLowerCase().endsWith('.cif')) {
647
+ url = assets_1.Asset.getUrlAsset(plugin.managers.asset, "".concat(params.baseUrl, "/membranes/").concat(name));
648
+ b = b.apply(transforms_1.StateTransforms.Data.Download, { url: url, isBinary: false, label: name }, { state: { isGhost: true } });
649
+ }
650
+ else if (name.toLowerCase().endsWith('.ply')) {
651
+ url = assets_1.Asset.getUrlAsset(plugin.managers.asset, "".concat(params.baseUrl, "/geometries/").concat(name));
652
+ b = b.apply(transforms_1.StateTransforms.Data.Download, { url: url, isBinary: false, label: name }, { state: { isGhost: true } });
653
+ geometry_membrane = true;
654
+ }
655
+ else {
656
+ url = assets_1.Asset.getUrlAsset(plugin.managers.asset, "".concat(params.baseUrl, "/membranes/").concat(name, ".bcif"));
657
+ b = b.apply(transforms_1.StateTransforms.Data.Download, { url: url, isBinary: true, label: name }, { state: { isGhost: true } });
658
+ legacy_membrane = true;
659
+ }
627
660
  }
661
+ props = {
662
+ type: {
663
+ name: 'assembly',
664
+ params: { id: '1' }
665
+ }
666
+ };
667
+ if (!legacy_membrane) return [3 /*break*/, 3];
628
668
  return [4 /*yield*/, b.apply(transforms_1.StateTransforms.Data.ParseCif, undefined, { state: { isGhost: true } })
629
669
  .apply(transforms_1.StateTransforms.Model.TrajectoryFromMmCif, undefined, { state: { isGhost: true } })
630
670
  .apply(transforms_1.StateTransforms.Model.ModelFromTrajectory, undefined, { state: { isGhost: true } })
@@ -638,18 +678,73 @@ function loadMembrane(plugin, name, state, params) {
638
678
  return [4 /*yield*/, preset_1.CellpackMembranePreset.apply(membrane, membraneParams, plugin)];
639
679
  case 2:
640
680
  _d.sent();
641
- return [2 /*return*/];
681
+ return [3 /*break*/, 8];
682
+ case 3:
683
+ if (!geometry_membrane) return [3 /*break*/, 5];
684
+ return [4 /*yield*/, b.apply(transforms_1.StateTransforms.Data.ParsePly, undefined, { state: { isGhost: true } })
685
+ .apply(transforms_1.StateTransforms.Model.ShapeFromPly)
686
+ .apply(transforms_1.StateTransforms.Representation.ShapeRepresentation3D, { xrayShaded: true,
687
+ doubleSided: true, coloring: { name: 'uniform', params: { color: names_1.ColorNames.orange } } })
688
+ .commit({ revertOnError: true })];
689
+ case 4:
690
+ _d.sent();
691
+ return [3 /*break*/, 8];
692
+ case 5: return [4 /*yield*/, b.apply(transforms_1.StateTransforms.Data.ParseCif, undefined, { state: { isGhost: true } })
693
+ .apply(transforms_1.StateTransforms.Model.TrajectoryFromMmCif, undefined, { state: { isGhost: true } })
694
+ .apply(transforms_1.StateTransforms.Model.ModelFromTrajectory, undefined, { state: { isGhost: true } })
695
+ .apply(transforms_1.StateTransforms.Model.StructureFromModel, props, { state: { isGhost: true } })
696
+ .commit({ revertOnError: true })];
697
+ case 6:
698
+ membrane = _d.sent();
699
+ membraneParams = {
700
+ representation: params.preset.representation,
701
+ };
702
+ return [4 /*yield*/, preset_1.CellpackMembranePreset.apply(membrane, membraneParams, plugin)];
703
+ case 7:
704
+ _d.sent();
705
+ _d.label = 8;
706
+ case 8: return [2 /*return*/];
707
+ }
708
+ });
709
+ });
710
+ }
711
+ function handleMembraneSpheres(state, primitives) {
712
+ return (0, tslib_1.__awaiter)(this, void 0, void 0, function () {
713
+ var nSpheres, j;
714
+ return (0, tslib_1.__generator)(this, function (_a) {
715
+ switch (_a.label) {
716
+ case 0:
717
+ nSpheres = primitives.positions.length / 3;
718
+ j = 0;
719
+ _a.label = 1;
720
+ case 1:
721
+ if (!(j < nSpheres)) return [3 /*break*/, 4];
722
+ return [4 /*yield*/, state.build()
723
+ .toRoot()
724
+ .apply(state_1.CreateCompartmentSphere, {
725
+ center: linear_algebra_1.Vec3.create(primitives.positions[j * 3 + 0], primitives.positions[j * 3 + 1], primitives.positions[j * 3 + 2]),
726
+ radius: primitives.radii[j]
727
+ })
728
+ .commit()];
729
+ case 2:
730
+ _a.sent();
731
+ _a.label = 3;
732
+ case 3:
733
+ j++;
734
+ return [3 /*break*/, 1];
735
+ case 4: return [2 /*return*/];
642
736
  }
643
737
  });
644
738
  });
645
739
  }
646
740
  function loadPackings(plugin, runtime, state, params) {
647
741
  return (0, tslib_1.__awaiter)(this, void 0, void 0, function () {
648
- var ingredientFiles, cellPackJson, url, file, jsonFile, data, cellPackBuilder, cellPackObject, packings, i, il, p, packing, packingParams;
742
+ var ingredientFiles, cellPackJson, resultsFile, url, file, modelFile, data, cellPackBuilder, cellPackObject, packings, i, il, p, packing, packingParams;
649
743
  return (0, tslib_1.__generator)(this, function (_a) {
650
744
  switch (_a.label) {
651
745
  case 0:
652
746
  ingredientFiles = params.ingredients || [];
747
+ resultsFile = params.results;
653
748
  if (!(params.source.name === 'id')) return [3 /*break*/, 1];
654
749
  url = assets_1.Asset.getUrlAsset(plugin.managers.asset, getCellPackModelUrl(params.source.params, params.baseUrl));
655
750
  cellPackJson = state.build().toRoot()
@@ -661,29 +756,39 @@ function loadPackings(plugin, runtime, state, params) {
661
756
  plugin.log.error('No file selected');
662
757
  return [2 /*return*/];
663
758
  }
664
- jsonFile = void 0;
759
+ modelFile = void 0;
665
760
  if (!file.name.toLowerCase().endsWith('.zip')) return [3 /*break*/, 3];
666
761
  return [4 /*yield*/, (0, data_source_1.readFromFile)(file.file, 'zip').runInContext(runtime)];
667
762
  case 2:
668
763
  data = _a.sent();
669
- jsonFile = assets_1.Asset.File(new File([data['model.json']], 'model.json'));
764
+ if (data['model.json']) {
765
+ modelFile = assets_1.Asset.File(new File([data['model.json']], 'model.json'));
766
+ }
767
+ else {
768
+ throw new Error('model.json missing from zip file');
769
+ }
770
+ if (data['results.bin']) {
771
+ resultsFile = assets_1.Asset.File(new File([data['results.bin']], 'results.bin'));
772
+ }
670
773
  (0, object_1.objectForEach)(data, function (v, k) {
671
774
  if (k === 'model.json')
672
775
  return;
776
+ if (k === 'results.bin')
777
+ return;
673
778
  ingredientFiles.push(assets_1.Asset.File(new File([v], k)));
674
779
  });
675
780
  return [3 /*break*/, 4];
676
781
  case 3:
677
- jsonFile = file;
782
+ modelFile = file;
678
783
  _a.label = 4;
679
784
  case 4:
680
785
  cellPackJson = state.build().toRoot()
681
- .apply(transforms_1.StateTransforms.Data.ReadFile, { file: jsonFile, isBinary: false, label: jsonFile.name }, { state: { isGhost: true } });
786
+ .apply(transforms_1.StateTransforms.Data.ReadFile, { file: modelFile, isBinary: false, label: modelFile.name }, { state: { isGhost: true } });
682
787
  _a.label = 5;
683
788
  case 5:
684
789
  cellPackBuilder = cellPackJson
685
790
  .apply(transforms_1.StateTransforms.Data.ParseJson, undefined, { state: { isGhost: true } })
686
- .apply(state_1.ParseCellPack);
791
+ .apply(state_1.ParseCellPack, { resultsFile: resultsFile, baseUrl: params.baseUrl });
687
792
  return [4 /*yield*/, state.updateTree(cellPackBuilder).runInContext(runtime)];
688
793
  case 6:
689
794
  cellPackObject = _a.sent();
@@ -694,7 +799,7 @@ function loadPackings(plugin, runtime, state, params) {
694
799
  i = 0, il = packings.length;
695
800
  _a.label = 8;
696
801
  case 8:
697
- if (!(i < il)) return [3 /*break*/, 13];
802
+ if (!(i < il)) return [3 /*break*/, 23];
698
803
  p = { packing: i, baseUrl: params.baseUrl, ingredientFiles: ingredientFiles };
699
804
  return [4 /*yield*/, state.build()
700
805
  .to(cellPackBuilder.ref)
@@ -709,15 +814,48 @@ function loadPackings(plugin, runtime, state, params) {
709
814
  return [4 /*yield*/, preset_1.CellpackPackingPreset.apply(packing, packingParams, plugin)];
710
815
  case 10:
711
816
  _a.sent();
712
- if (!(packings[i].location === 'surface' && params.membrane)) return [3 /*break*/, 12];
713
- return [4 /*yield*/, loadMembrane(plugin, packings[i].name, state, params)];
817
+ if (!packings[i].compartment) return [3 /*break*/, 22];
818
+ if (!(params.membrane === 'lipids')) return [3 /*break*/, 18];
819
+ if (!packings[i].compartment.geom_type) return [3 /*break*/, 15];
820
+ if (!(packings[i].compartment.geom_type === 'file')) return [3 /*break*/, 12];
821
+ // TODO: load mesh files or vertex,faces data
822
+ return [4 /*yield*/, loadMembrane(plugin, packings[i].compartment.filename, state, params)];
714
823
  case 11:
824
+ // TODO: load mesh files or vertex,faces data
715
825
  _a.sent();
716
- _a.label = 12;
826
+ return [3 /*break*/, 14];
717
827
  case 12:
828
+ if (!packings[i].compartment.compartment_primitives) return [3 /*break*/, 14];
829
+ return [4 /*yield*/, handleMembraneSpheres(state, packings[i].compartment.compartment_primitives)];
830
+ case 13:
831
+ _a.sent();
832
+ _a.label = 14;
833
+ case 14: return [3 /*break*/, 17];
834
+ case 15:
835
+ if (!(params.membrane === 'lipids')) return [3 /*break*/, 17];
836
+ return [4 /*yield*/, loadMembrane(plugin, packings[i].name, state, params)];
837
+ case 16:
838
+ _a.sent();
839
+ _a.label = 17;
840
+ case 17: return [3 /*break*/, 22];
841
+ case 18:
842
+ if (!(params.membrane === 'geometry')) return [3 /*break*/, 22];
843
+ if (!packings[i].compartment.compartment_primitives) return [3 /*break*/, 20];
844
+ return [4 /*yield*/, handleMembraneSpheres(state, packings[i].compartment.compartment_primitives)];
845
+ case 19:
846
+ _a.sent();
847
+ return [3 /*break*/, 22];
848
+ case 20:
849
+ if (!(packings[i].compartment.geom_type === 'file')) return [3 /*break*/, 22];
850
+ if (!packings[i].compartment.filename.toLowerCase().endsWith('.ply')) return [3 /*break*/, 22];
851
+ return [4 /*yield*/, loadMembrane(plugin, packings[i].compartment.filename, state, params)];
852
+ case 21:
853
+ _a.sent();
854
+ _a.label = 22;
855
+ case 22:
718
856
  ++i;
719
857
  return [3 /*break*/, 8];
720
- case 13: return [2 /*return*/];
858
+ case 23: return [2 /*return*/];
721
859
  }
722
860
  });
723
861
  });
@@ -727,19 +865,19 @@ var LoadCellPackModelParams = {
727
865
  'id': param_definition_1.ParamDefinition.Select('InfluenzaModel2.json', [
728
866
  ['blood_hiv_immature_inside.json', 'Blood HIV immature'],
729
867
  ['HIV_immature_model.json', 'HIV immature'],
730
- ['BloodHIV1.0_mixed_fixed_nc1.cpr', 'Blood HIV'],
731
- ['HIV-1_0.1.6-8_mixed_radii_pdb.cpr', 'HIV'],
868
+ ['Blood_HIV.json', 'Blood HIV'],
869
+ ['HIV-1_0.1.6-8_mixed_radii_pdb.json', 'HIV'],
732
870
  ['influenza_model1.json', 'Influenza envelope'],
733
- ['InfluenzaModel2.json', 'Influenza Complete'],
871
+ ['InfluenzaModel2.json', 'Influenza complete'],
734
872
  ['ExosomeModel.json', 'Exosome Model'],
735
- ['Mycoplasma1.5_mixed_pdb_fixed.cpr', 'Mycoplasma simple'],
736
- ['MycoplasmaModel.json', 'Mycoplasma WholeCell model'],
873
+ ['MycoplasmaGenitalium.json', 'Mycoplasma Genitalium curated model'],
737
874
  ], { description: 'Download the model definition with `id` from the server at `baseUrl.`' }),
738
- 'file': param_definition_1.ParamDefinition.File({ accept: '.json,.cpr,.zip', description: 'Open model definition from .json/.cpr file or open .zip file containing model definition plus ingredients.' }),
875
+ 'file': param_definition_1.ParamDefinition.File({ accept: '.json,.cpr,.zip', description: 'Open model definition from .json/.cpr file or open .zip file containing model definition plus ingredients.', label: 'Recipe file' }),
739
876
  }, { options: [['id', 'Id'], ['file', 'File']] }),
740
877
  baseUrl: param_definition_1.ParamDefinition.Text(state_1.DefaultCellPackBaseUrl),
741
- membrane: param_definition_1.ParamDefinition.Boolean(true),
742
- ingredients: param_definition_1.ParamDefinition.FileList({ accept: '.cif,.bcif,.pdb', label: 'Ingredients' }),
878
+ results: param_definition_1.ParamDefinition.File({ accept: '.bin', description: 'open results file in binary format from cellpackgpu for the specified recipe', label: 'Results file' }),
879
+ membrane: param_definition_1.ParamDefinition.Select('lipids', param_definition_1.ParamDefinition.arrayToOptions(['lipids', 'geometry', 'none'])),
880
+ ingredients: param_definition_1.ParamDefinition.FileList({ accept: '.cif,.bcif,.pdb', label: 'Ingredient files' }),
743
881
  preset: param_definition_1.ParamDefinition.Group({
744
882
  traceOnly: param_definition_1.ParamDefinition.Boolean(false),
745
883
  representation: param_definition_1.ParamDefinition.Select('gaussian-surface', param_definition_1.ParamDefinition.arrayToOptions(['spacefill', 'gaussian-surface', 'point', 'orientation']))