molstar 3.8.2 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (516) hide show
  1. package/build/viewer/index.html +4 -1
  2. package/build/viewer/molstar.js +1 -1
  3. package/lib/apps/viewer/app.d.ts +1 -1
  4. package/lib/apps/viewer/app.js +1 -1
  5. package/lib/apps/viewer/index.html +4 -1
  6. package/lib/cli/cif2bcif/converter.js +1 -1
  7. package/lib/commonjs/apps/viewer/app.d.ts +1 -1
  8. package/lib/commonjs/apps/viewer/app.js +2 -1
  9. package/lib/commonjs/cli/cif2bcif/converter.js +1 -1
  10. package/lib/commonjs/examples/alpha-orbitals/index.d.ts +1 -1
  11. package/lib/commonjs/examples/alpha-orbitals/index.js +4 -1
  12. package/lib/commonjs/examples/basic-wrapper/custom-theme.js +1 -1
  13. package/lib/commonjs/examples/proteopedia-wrapper/coloring.js +3 -3
  14. package/lib/commonjs/extensions/alpha-orbitals/density.d.ts +1 -1
  15. package/lib/commonjs/extensions/alpha-orbitals/density.js +6 -2
  16. package/lib/commonjs/extensions/alpha-orbitals/orbitals.d.ts +1 -1
  17. package/lib/commonjs/extensions/alpha-orbitals/orbitals.js +6 -3
  18. package/lib/commonjs/extensions/anvil/algorithm.js +1 -1
  19. package/lib/commonjs/extensions/cellpack/color/generate.js +1 -1
  20. package/lib/commonjs/extensions/cellpack/color/provided.js +1 -1
  21. package/lib/commonjs/extensions/cellpack/state.js +1 -1
  22. package/lib/commonjs/extensions/dnatco/confal-pyramids/color.js +1 -1
  23. package/lib/commonjs/extensions/g3d/model.js +1 -1
  24. package/lib/commonjs/extensions/model-archive/quality-assessment/color/plddt.js +1 -1
  25. package/lib/commonjs/extensions/model-archive/quality-assessment/color/qmean.js +1 -1
  26. package/lib/commonjs/extensions/pdbe/structure-quality-report/color.js +1 -1
  27. package/lib/commonjs/extensions/rcsb/assembly-symmetry/color.js +4 -4
  28. package/lib/commonjs/extensions/rcsb/validation-report/color/density-fit.js +1 -1
  29. package/lib/commonjs/extensions/rcsb/validation-report/color/geometry-quality.js +2 -2
  30. package/lib/commonjs/extensions/rcsb/validation-report/color/random-coil-index.js +1 -1
  31. package/lib/commonjs/extensions/rcsb/validation-report/representation.js +2 -2
  32. package/lib/commonjs/mol-canvas3d/canvas3d.js +4 -0
  33. package/lib/commonjs/mol-canvas3d/controls/trackball.js +7 -7
  34. package/lib/commonjs/mol-canvas3d/helper/camera-helper.js +14 -14
  35. package/lib/commonjs/mol-canvas3d/helper/interaction-events.js +5 -5
  36. package/lib/commonjs/mol-canvas3d/passes/draw.js +34 -5
  37. package/lib/commonjs/mol-canvas3d/passes/fxaa.js +5 -0
  38. package/lib/commonjs/mol-canvas3d/passes/marking.js +5 -0
  39. package/lib/commonjs/mol-canvas3d/passes/multi-sample.js +9 -0
  40. package/lib/commonjs/mol-canvas3d/passes/pick.d.ts +18 -5
  41. package/lib/commonjs/mol-canvas3d/passes/pick.js +125 -24
  42. package/lib/commonjs/mol-canvas3d/passes/postprocessing.js +5 -0
  43. package/lib/commonjs/mol-canvas3d/passes/smaa.js +4 -0
  44. package/lib/commonjs/mol-canvas3d/passes/wboit.js +4 -0
  45. package/lib/commonjs/mol-data/db/column.js +5 -5
  46. package/lib/commonjs/mol-data/db/table.js +2 -2
  47. package/lib/commonjs/mol-data/util/array.d.ts +1 -1
  48. package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.js +13 -0
  49. package/lib/commonjs/mol-gl/compute/grid3d.d.ts +2 -2
  50. package/lib/commonjs/mol-gl/compute/grid3d.js +30 -8
  51. package/lib/commonjs/mol-gl/compute/histogram-pyramid/reduction.d.ts +1 -1
  52. package/lib/commonjs/mol-gl/compute/histogram-pyramid/reduction.js +6 -1
  53. package/lib/commonjs/mol-gl/compute/histogram-pyramid/sum.d.ts +1 -1
  54. package/lib/commonjs/mol-gl/compute/histogram-pyramid/sum.js +6 -1
  55. package/lib/commonjs/mol-gl/compute/marching-cubes/active-voxels.d.ts +1 -1
  56. package/lib/commonjs/mol-gl/compute/marching-cubes/active-voxels.js +6 -1
  57. package/lib/commonjs/mol-gl/compute/marching-cubes/isosurface.d.ts +1 -1
  58. package/lib/commonjs/mol-gl/compute/marching-cubes/isosurface.js +10 -10
  59. package/lib/commonjs/mol-gl/renderer.js +77 -32
  60. package/lib/commonjs/mol-gl/scene.js +2 -0
  61. package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
  62. package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
  63. package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
  64. package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
  65. package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.d.ts +1 -1
  66. package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.js +1 -1
  67. package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
  68. package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.js +1 -1
  69. package/lib/commonjs/mol-gl/shader/cylinders.frag.d.ts +1 -1
  70. package/lib/commonjs/mol-gl/shader/cylinders.frag.js +1 -1
  71. package/lib/commonjs/mol-gl/shader/direct-volume.frag.d.ts +1 -1
  72. package/lib/commonjs/mol-gl/shader/direct-volume.frag.js +1 -1
  73. package/lib/commonjs/mol-gl/shader/image.frag.d.ts +1 -1
  74. package/lib/commonjs/mol-gl/shader/image.frag.js +1 -1
  75. package/lib/commonjs/mol-gl/shader/lines.frag.d.ts +1 -1
  76. package/lib/commonjs/mol-gl/shader/lines.frag.js +1 -1
  77. package/lib/commonjs/mol-gl/shader/mesh.frag.d.ts +1 -1
  78. package/lib/commonjs/mol-gl/shader/mesh.frag.js +1 -1
  79. package/lib/commonjs/mol-gl/shader/points.frag.d.ts +1 -1
  80. package/lib/commonjs/mol-gl/shader/points.frag.js +1 -1
  81. package/lib/commonjs/mol-gl/shader/spheres.frag.d.ts +1 -1
  82. package/lib/commonjs/mol-gl/shader/spheres.frag.js +1 -1
  83. package/lib/commonjs/mol-gl/shader/text.frag.d.ts +1 -1
  84. package/lib/commonjs/mol-gl/shader/text.frag.js +1 -1
  85. package/lib/commonjs/mol-gl/shader-code.d.ts +1 -1
  86. package/lib/commonjs/mol-gl/shader-code.js +41 -9
  87. package/lib/commonjs/mol-gl/webgl/compat.d.ts +34 -1
  88. package/lib/commonjs/mol-gl/webgl/compat.js +50 -2
  89. package/lib/commonjs/mol-gl/webgl/context.d.ts +2 -0
  90. package/lib/commonjs/mol-gl/webgl/context.js +3 -0
  91. package/lib/commonjs/mol-gl/webgl/extensions.d.ts +3 -2
  92. package/lib/commonjs/mol-gl/webgl/extensions.js +6 -1
  93. package/lib/commonjs/mol-gl/webgl/timer.d.ts +22 -0
  94. package/lib/commonjs/mol-gl/webgl/timer.js +169 -0
  95. package/lib/commonjs/mol-io/common/binary-cif/array-encoder.js +18 -18
  96. package/lib/commonjs/mol-io/common/binary-cif/decoder.js +16 -16
  97. package/lib/commonjs/mol-io/common/binary-cif/encoding.js +9 -9
  98. package/lib/commonjs/mol-io/reader/cif/binary/field.js +3 -3
  99. package/lib/commonjs/mol-io/reader/cif/data-model.js +14 -14
  100. package/lib/commonjs/mol-io/reader/cif/schema.js +1 -1
  101. package/lib/commonjs/mol-io/reader/cif/text/parser.js +23 -23
  102. package/lib/commonjs/mol-io/reader/common/text/column/fixed.js +1 -1
  103. package/lib/commonjs/mol-io/reader/common/text/column/token.js +1 -1
  104. package/lib/commonjs/mol-io/reader/common/text/number-parser.js +6 -6
  105. package/lib/commonjs/mol-io/reader/csv/parser.js +8 -8
  106. package/lib/commonjs/mol-io/writer/cif/encoder/binary.js +10 -10
  107. package/lib/commonjs/mol-io/writer/cif/encoder/text.js +7 -7
  108. package/lib/commonjs/mol-io/writer/cif/encoder.js +8 -8
  109. package/lib/commonjs/mol-io/writer/mol2/encoder.js +4 -4
  110. package/lib/commonjs/mol-math/geometry/gaussian-density/gpu.js +13 -2
  111. package/lib/commonjs/mol-model/sequence/alignment/sequence.js +3 -3
  112. package/lib/commonjs/mol-model/sequence/sequence.js +9 -9
  113. package/lib/commonjs/mol-model/structure/export/categories/atom_site_operator_mapping.js +3 -3
  114. package/lib/commonjs/mol-model/structure/export/categories/secondary-structure.js +2 -2
  115. package/lib/commonjs/mol-model/structure/export/categories/utils.js +1 -1
  116. package/lib/commonjs/mol-model/structure/model/model.js +2 -2
  117. package/lib/commonjs/mol-model/structure/model/properties/custom/indexed.js +6 -6
  118. package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-ranges.js +1 -1
  119. package/lib/commonjs/mol-model/structure/model/types.js +116 -116
  120. package/lib/commonjs/mol-model/structure/query/context.js +1 -1
  121. package/lib/commonjs/mol-model/structure/query/queries/generators.js +5 -5
  122. package/lib/commonjs/mol-model/structure/query/queries/internal.js +4 -4
  123. package/lib/commonjs/mol-model/structure/query/queries/modifiers.js +4 -4
  124. package/lib/commonjs/mol-model/structure/query/utils/structure-distance.d.ts +5 -54
  125. package/lib/commonjs/mol-model/structure/query/utils/structure-distance.js +9 -9
  126. package/lib/commonjs/mol-model/structure/structure/carbohydrates/constants.js +106 -106
  127. package/lib/commonjs/mol-model/structure/structure/element/loci.js +5 -5
  128. package/lib/commonjs/mol-model/structure/structure/element/stats.js +5 -5
  129. package/lib/commonjs/mol-model/structure/structure/properties.js +5 -5
  130. package/lib/commonjs/mol-model/structure/structure/structure.js +11 -11
  131. package/lib/commonjs/mol-model/structure/structure/unit/bonds/inter-compute.js +5 -5
  132. package/lib/commonjs/mol-model/structure/structure/unit/bonds/intra-compute.js +4 -4
  133. package/lib/commonjs/mol-model/structure/structure/unit/bonds.js +2 -2
  134. package/lib/commonjs/mol-model/structure/structure/unit/resonance.js +1 -1
  135. package/lib/commonjs/mol-model/structure/structure/unit/rings/compute.js +6 -6
  136. package/lib/commonjs/mol-model/structure/structure/unit/rings.js +6 -6
  137. package/lib/commonjs/mol-model/structure/structure/unit.js +16 -16
  138. package/lib/commonjs/mol-model/structure/structure/util/superposition-sifts-mapping.js +1 -1
  139. package/lib/commonjs/mol-model/structure/util.js +4 -4
  140. package/lib/commonjs/mol-model-formats/structure/basic/atomic.js +2 -2
  141. package/lib/commonjs/mol-model-formats/structure/basic/parser.js +4 -4
  142. package/lib/commonjs/mol-model-formats/structure/basic/properties.js +1 -1
  143. package/lib/commonjs/mol-model-formats/structure/basic/sort.js +1 -1
  144. package/lib/commonjs/mol-model-formats/structure/basic/util.js +1 -1
  145. package/lib/commonjs/mol-model-formats/structure/cif-core.js +6 -6
  146. package/lib/commonjs/mol-model-formats/structure/common/entity.js +1 -1
  147. package/lib/commonjs/mol-model-formats/structure/cube.js +1 -1
  148. package/lib/commonjs/mol-model-formats/structure/gro.js +1 -1
  149. package/lib/commonjs/mol-model-formats/structure/mol.js +1 -1
  150. package/lib/commonjs/mol-model-formats/structure/mol2.js +4 -4
  151. package/lib/commonjs/mol-model-formats/structure/prmtop.js +1 -1
  152. package/lib/commonjs/mol-model-formats/structure/property/bonds/chem_comp.js +3 -3
  153. package/lib/commonjs/mol-model-formats/structure/property/bonds/index-pair.js +1 -1
  154. package/lib/commonjs/mol-model-formats/structure/property/bonds/struct_conn.js +6 -6
  155. package/lib/commonjs/mol-model-formats/structure/property/secondary-structure.js +8 -8
  156. package/lib/commonjs/mol-model-formats/structure/psf.js +1 -1
  157. package/lib/commonjs/mol-model-formats/structure/top.js +1 -1
  158. package/lib/commonjs/mol-model-formats/structure/xyz.js +1 -1
  159. package/lib/commonjs/mol-model-props/computed/accessible-surface-area/shrake-rupley/radii.js +2 -2
  160. package/lib/commonjs/mol-model-props/computed/accessible-surface-area/shrake-rupley.js +3 -3
  161. package/lib/commonjs/mol-model-props/computed/accessible-surface-area.js +2 -2
  162. package/lib/commonjs/mol-model-props/computed/chemistry/functional-group.js +31 -31
  163. package/lib/commonjs/mol-model-props/computed/chemistry/geometry.js +22 -22
  164. package/lib/commonjs/mol-model-props/computed/chemistry/valence-model.js +32 -32
  165. package/lib/commonjs/mol-model-props/computed/interactions/charged.js +39 -39
  166. package/lib/commonjs/mol-model-props/computed/interactions/common.js +34 -34
  167. package/lib/commonjs/mol-model-props/computed/interactions/contacts-builder.js +1 -1
  168. package/lib/commonjs/mol-model-props/computed/interactions/contacts.js +1 -1
  169. package/lib/commonjs/mol-model-props/computed/interactions/halogen-bonds.js +12 -12
  170. package/lib/commonjs/mol-model-props/computed/interactions/hydrogen-bonds.js +32 -32
  171. package/lib/commonjs/mol-model-props/computed/interactions/hydrophobic.js +9 -9
  172. package/lib/commonjs/mol-model-props/computed/interactions/metal.js +26 -26
  173. package/lib/commonjs/mol-model-props/computed/interactions/refine.js +20 -20
  174. package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.js +2 -2
  175. package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.js +2 -2
  176. package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/bends.js +1 -1
  177. package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/bridges.js +12 -12
  178. package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/helices.js +6 -6
  179. package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/ladders.js +3 -3
  180. package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/sheets.js +11 -11
  181. package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/turns.js +3 -3
  182. package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp.js +30 -30
  183. package/lib/commonjs/mol-model-props/computed/themes/accessible-surface-area.js +1 -1
  184. package/lib/commonjs/mol-model-props/computed/themes/interaction-type.js +10 -10
  185. package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/color.js +1 -1
  186. package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/format.js +3 -3
  187. package/lib/commonjs/mol-model-props/sequence/sifts-mapping.js +1 -1
  188. package/lib/commonjs/mol-model-props/sequence/themes/sifts-mapping.js +1 -1
  189. package/lib/commonjs/mol-plugin/animation-loop.d.ts +2 -1
  190. package/lib/commonjs/mol-plugin/animation-loop.js +18 -5
  191. package/lib/commonjs/mol-plugin/behavior/dynamic/camera.js +12 -12
  192. package/lib/commonjs/mol-plugin/behavior/dynamic/representation.js +7 -7
  193. package/lib/commonjs/mol-plugin/context.d.ts +2 -2
  194. package/lib/commonjs/mol-plugin/state.d.ts +1 -14
  195. package/lib/commonjs/mol-plugin-state/formats/volume.d.ts +12 -11
  196. package/lib/commonjs/mol-plugin-state/formats/volume.js +20 -13
  197. package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.js +5 -5
  198. package/lib/commonjs/mol-plugin-state/transforms/representation.js +2 -2
  199. package/lib/commonjs/mol-plugin-ui/controls/parameters.d.ts +1 -1
  200. package/lib/commonjs/mol-plugin-ui/sequence/polymer.js +1 -1
  201. package/lib/commonjs/mol-plugin-ui/sequence/sequence.js +1 -1
  202. package/lib/commonjs/mol-plugin-ui/structure/focus.js +1 -1
  203. package/lib/commonjs/mol-plugin-ui/viewport.d.ts +2 -2
  204. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.js +10 -10
  205. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-line.js +10 -10
  206. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.js +12 -12
  207. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.js +12 -12
  208. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.js +16 -16
  209. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.js +1 -1
  210. package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.js +9 -0
  211. package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.js +4 -4
  212. package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.js +1 -1
  213. package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.js +2 -2
  214. package/lib/commonjs/mol-repr/structure/visual/util/bond.js +2 -2
  215. package/lib/commonjs/mol-repr/structure/visual/util/common.js +3 -3
  216. package/lib/commonjs/mol-repr/structure/visual/util/link.js +30 -30
  217. package/lib/commonjs/mol-repr/structure/visual/util/polymer/backbone.js +6 -6
  218. package/lib/commonjs/mol-repr/structure/visual/util/polymer/gap-iterator.js +3 -3
  219. package/lib/commonjs/mol-repr/structure/visual/util/polymer/trace-iterator.js +20 -20
  220. package/lib/commonjs/mol-repr/structure/visual/util/polymer.js +6 -6
  221. package/lib/commonjs/mol-script/language/symbol-table/core.d.ts +2 -2
  222. package/lib/commonjs/mol-script/runtime/query/table.js +13 -13
  223. package/lib/commonjs/mol-state/object.d.ts +3 -3
  224. package/lib/commonjs/mol-task/util/user-timing.js +1 -1
  225. package/lib/commonjs/mol-theme/clipping.js +19 -19
  226. package/lib/commonjs/mol-theme/color/atom-id.js +1 -1
  227. package/lib/commonjs/mol-theme/color/carbohydrate-symbol.js +1 -1
  228. package/lib/commonjs/mol-theme/color/chain-id.js +4 -4
  229. package/lib/commonjs/mol-theme/color/element-index.js +1 -1
  230. package/lib/commonjs/mol-theme/color/element-symbol.js +1 -1
  231. package/lib/commonjs/mol-theme/color/entity-id.js +4 -4
  232. package/lib/commonjs/mol-theme/color/entity-source.js +5 -4
  233. package/lib/commonjs/mol-theme/color/hydrophobicity.js +1 -1
  234. package/lib/commonjs/mol-theme/color/illustrative.js +1 -1
  235. package/lib/commonjs/mol-theme/color/model-index.js +1 -1
  236. package/lib/commonjs/mol-theme/color/molecule-type.js +8 -8
  237. package/lib/commonjs/mol-theme/color/occupancy.js +1 -1
  238. package/lib/commonjs/mol-theme/color/operator-hkl.js +1 -1
  239. package/lib/commonjs/mol-theme/color/operator-name.js +1 -1
  240. package/lib/commonjs/mol-theme/color/partial-charge.js +1 -1
  241. package/lib/commonjs/mol-theme/color/polymer-id.js +4 -4
  242. package/lib/commonjs/mol-theme/color/polymer-index.js +1 -1
  243. package/lib/commonjs/mol-theme/color/residue-name.js +1 -1
  244. package/lib/commonjs/mol-theme/color/secondary-structure.js +12 -12
  245. package/lib/commonjs/mol-theme/color/sequence-id.js +7 -7
  246. package/lib/commonjs/mol-theme/color/shape-group.js +1 -1
  247. package/lib/commonjs/mol-theme/color/uncertainty.js +1 -1
  248. package/lib/commonjs/mol-theme/color/uniform.js +1 -1
  249. package/lib/commonjs/mol-theme/color/unit-index.js +1 -1
  250. package/lib/commonjs/mol-theme/color/volume-value.js +1 -1
  251. package/lib/commonjs/mol-theme/label.js +3 -3
  252. package/lib/commonjs/mol-util/binding.js +4 -4
  253. package/lib/commonjs/mol-util/debug.d.ts +6 -1
  254. package/lib/commonjs/mol-util/debug.js +11 -1
  255. package/lib/commonjs/mol-util/input/input-observer.js +20 -20
  256. package/lib/commonjs/mol-util/string-builder.js +1 -1
  257. package/lib/commonjs/servers/model/preprocess/converter.js +1 -1
  258. package/lib/commonjs/servers/model/server/query.js +1 -1
  259. package/lib/commonjs/servers/model/utils/fetch-retry.js +3 -2
  260. package/lib/commonjs/servers/volume/server/algebra/coordinate.js +6 -6
  261. package/lib/commonjs/servers/volume/server/query/encode.js +1 -1
  262. package/lib/examples/alpha-orbitals/index.d.ts +1 -1
  263. package/lib/examples/alpha-orbitals/index.html +11 -0
  264. package/lib/examples/alpha-orbitals/index.js +4 -1
  265. package/lib/examples/basic-wrapper/custom-theme.js +1 -1
  266. package/lib/examples/proteopedia-wrapper/coloring.js +3 -3
  267. package/lib/extensions/alpha-orbitals/density.d.ts +1 -1
  268. package/lib/extensions/alpha-orbitals/density.js +6 -2
  269. package/lib/extensions/alpha-orbitals/orbitals.d.ts +1 -1
  270. package/lib/extensions/alpha-orbitals/orbitals.js +6 -3
  271. package/lib/extensions/anvil/algorithm.js +1 -1
  272. package/lib/extensions/cellpack/color/generate.js +1 -1
  273. package/lib/extensions/cellpack/color/provided.js +1 -1
  274. package/lib/extensions/cellpack/state.js +1 -1
  275. package/lib/extensions/dnatco/confal-pyramids/color.js +1 -1
  276. package/lib/extensions/g3d/model.js +1 -1
  277. package/lib/extensions/model-archive/quality-assessment/color/plddt.js +1 -1
  278. package/lib/extensions/model-archive/quality-assessment/color/qmean.js +1 -1
  279. package/lib/extensions/pdbe/structure-quality-report/color.js +1 -1
  280. package/lib/extensions/rcsb/assembly-symmetry/color.js +4 -4
  281. package/lib/extensions/rcsb/validation-report/color/density-fit.js +1 -1
  282. package/lib/extensions/rcsb/validation-report/color/geometry-quality.js +2 -2
  283. package/lib/extensions/rcsb/validation-report/color/random-coil-index.js +1 -1
  284. package/lib/extensions/rcsb/validation-report/representation.js +2 -2
  285. package/lib/mol-canvas3d/canvas3d.js +5 -1
  286. package/lib/mol-canvas3d/controls/trackball.js +7 -7
  287. package/lib/mol-canvas3d/helper/camera-helper.js +14 -14
  288. package/lib/mol-canvas3d/helper/interaction-events.js +5 -5
  289. package/lib/mol-canvas3d/passes/draw.js +34 -5
  290. package/lib/mol-canvas3d/passes/fxaa.js +5 -0
  291. package/lib/mol-canvas3d/passes/marking.js +5 -0
  292. package/lib/mol-canvas3d/passes/multi-sample.js +9 -0
  293. package/lib/mol-canvas3d/passes/pick.d.ts +18 -5
  294. package/lib/mol-canvas3d/passes/pick.js +125 -24
  295. package/lib/mol-canvas3d/passes/postprocessing.js +5 -0
  296. package/lib/mol-canvas3d/passes/smaa.js +5 -1
  297. package/lib/mol-canvas3d/passes/wboit.js +5 -1
  298. package/lib/mol-data/db/column.js +5 -5
  299. package/lib/mol-data/db/table.js +2 -2
  300. package/lib/mol-data/util/array.d.ts +1 -1
  301. package/lib/mol-geo/geometry/texture-mesh/color-smoothing.js +13 -0
  302. package/lib/mol-gl/compute/grid3d.d.ts +2 -2
  303. package/lib/mol-gl/compute/grid3d.js +30 -8
  304. package/lib/mol-gl/compute/histogram-pyramid/reduction.d.ts +1 -1
  305. package/lib/mol-gl/compute/histogram-pyramid/reduction.js +6 -1
  306. package/lib/mol-gl/compute/histogram-pyramid/sum.d.ts +1 -1
  307. package/lib/mol-gl/compute/histogram-pyramid/sum.js +6 -1
  308. package/lib/mol-gl/compute/marching-cubes/active-voxels.d.ts +1 -1
  309. package/lib/mol-gl/compute/marching-cubes/active-voxels.js +6 -1
  310. package/lib/mol-gl/compute/marching-cubes/isosurface.d.ts +1 -1
  311. package/lib/mol-gl/compute/marching-cubes/isosurface.js +10 -10
  312. package/lib/mol-gl/renderer.js +77 -32
  313. package/lib/mol-gl/scene.js +2 -0
  314. package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
  315. package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
  316. package/lib/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
  317. package/lib/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
  318. package/lib/mol-gl/shader/chunks/color-frag-params.glsl.d.ts +1 -1
  319. package/lib/mol-gl/shader/chunks/color-frag-params.glsl.js +1 -1
  320. package/lib/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
  321. package/lib/mol-gl/shader/chunks/color-vert-params.glsl.js +1 -1
  322. package/lib/mol-gl/shader/cylinders.frag.d.ts +1 -1
  323. package/lib/mol-gl/shader/cylinders.frag.js +1 -1
  324. package/lib/mol-gl/shader/direct-volume.frag.d.ts +1 -1
  325. package/lib/mol-gl/shader/direct-volume.frag.js +1 -1
  326. package/lib/mol-gl/shader/image.frag.d.ts +1 -1
  327. package/lib/mol-gl/shader/image.frag.js +1 -1
  328. package/lib/mol-gl/shader/lines.frag.d.ts +1 -1
  329. package/lib/mol-gl/shader/lines.frag.js +1 -1
  330. package/lib/mol-gl/shader/mesh.frag.d.ts +1 -1
  331. package/lib/mol-gl/shader/mesh.frag.js +1 -1
  332. package/lib/mol-gl/shader/points.frag.d.ts +1 -1
  333. package/lib/mol-gl/shader/points.frag.js +1 -1
  334. package/lib/mol-gl/shader/spheres.frag.d.ts +1 -1
  335. package/lib/mol-gl/shader/spheres.frag.js +1 -1
  336. package/lib/mol-gl/shader/text.frag.d.ts +1 -1
  337. package/lib/mol-gl/shader/text.frag.js +1 -1
  338. package/lib/mol-gl/shader-code.d.ts +1 -1
  339. package/lib/mol-gl/shader-code.js +41 -9
  340. package/lib/mol-gl/webgl/compat.d.ts +34 -1
  341. package/lib/mol-gl/webgl/compat.js +48 -1
  342. package/lib/mol-gl/webgl/context.d.ts +2 -0
  343. package/lib/mol-gl/webgl/context.js +3 -0
  344. package/lib/mol-gl/webgl/extensions.d.ts +3 -2
  345. package/lib/mol-gl/webgl/extensions.js +7 -2
  346. package/lib/mol-gl/webgl/timer.d.ts +22 -0
  347. package/lib/mol-gl/webgl/timer.js +164 -0
  348. package/lib/mol-io/common/binary-cif/array-encoder.js +18 -18
  349. package/lib/mol-io/common/binary-cif/decoder.js +16 -16
  350. package/lib/mol-io/common/binary-cif/encoding.js +9 -9
  351. package/lib/mol-io/reader/cif/binary/field.js +3 -3
  352. package/lib/mol-io/reader/cif/data-model.js +14 -14
  353. package/lib/mol-io/reader/cif/schema.js +1 -1
  354. package/lib/mol-io/reader/cif/text/parser.js +23 -23
  355. package/lib/mol-io/reader/common/text/column/fixed.js +1 -1
  356. package/lib/mol-io/reader/common/text/column/token.js +1 -1
  357. package/lib/mol-io/reader/common/text/number-parser.js +6 -6
  358. package/lib/mol-io/reader/csv/parser.js +8 -8
  359. package/lib/mol-io/writer/cif/encoder/binary.js +10 -10
  360. package/lib/mol-io/writer/cif/encoder/text.js +7 -7
  361. package/lib/mol-io/writer/cif/encoder.js +8 -8
  362. package/lib/mol-io/writer/mol2/encoder.js +4 -4
  363. package/lib/mol-math/geometry/gaussian-density/gpu.js +13 -2
  364. package/lib/mol-model/sequence/alignment/sequence.js +3 -3
  365. package/lib/mol-model/sequence/sequence.js +9 -9
  366. package/lib/mol-model/structure/export/categories/atom_site_operator_mapping.js +3 -3
  367. package/lib/mol-model/structure/export/categories/secondary-structure.js +2 -2
  368. package/lib/mol-model/structure/export/categories/utils.js +1 -1
  369. package/lib/mol-model/structure/model/model.js +2 -2
  370. package/lib/mol-model/structure/model/properties/custom/indexed.js +6 -6
  371. package/lib/mol-model/structure/model/properties/utils/atomic-ranges.js +1 -1
  372. package/lib/mol-model/structure/model/types.js +116 -116
  373. package/lib/mol-model/structure/query/context.js +1 -1
  374. package/lib/mol-model/structure/query/queries/generators.js +5 -5
  375. package/lib/mol-model/structure/query/queries/internal.js +4 -4
  376. package/lib/mol-model/structure/query/queries/modifiers.js +4 -4
  377. package/lib/mol-model/structure/query/utils/structure-distance.d.ts +5 -54
  378. package/lib/mol-model/structure/query/utils/structure-distance.js +9 -9
  379. package/lib/mol-model/structure/structure/carbohydrates/constants.js +106 -106
  380. package/lib/mol-model/structure/structure/element/loci.js +5 -5
  381. package/lib/mol-model/structure/structure/element/stats.js +5 -5
  382. package/lib/mol-model/structure/structure/properties.js +5 -5
  383. package/lib/mol-model/structure/structure/structure.js +11 -11
  384. package/lib/mol-model/structure/structure/unit/bonds/inter-compute.js +5 -5
  385. package/lib/mol-model/structure/structure/unit/bonds/intra-compute.js +4 -4
  386. package/lib/mol-model/structure/structure/unit/bonds.js +2 -2
  387. package/lib/mol-model/structure/structure/unit/resonance.js +1 -1
  388. package/lib/mol-model/structure/structure/unit/rings/compute.js +6 -6
  389. package/lib/mol-model/structure/structure/unit/rings.js +6 -6
  390. package/lib/mol-model/structure/structure/unit.js +16 -16
  391. package/lib/mol-model/structure/structure/util/superposition-sifts-mapping.js +1 -1
  392. package/lib/mol-model/structure/util.js +4 -4
  393. package/lib/mol-model-formats/structure/basic/atomic.js +2 -2
  394. package/lib/mol-model-formats/structure/basic/parser.js +4 -4
  395. package/lib/mol-model-formats/structure/basic/properties.js +1 -1
  396. package/lib/mol-model-formats/structure/basic/sort.js +1 -1
  397. package/lib/mol-model-formats/structure/basic/util.js +1 -1
  398. package/lib/mol-model-formats/structure/cif-core.js +6 -6
  399. package/lib/mol-model-formats/structure/common/entity.js +1 -1
  400. package/lib/mol-model-formats/structure/cube.js +1 -1
  401. package/lib/mol-model-formats/structure/gro.js +1 -1
  402. package/lib/mol-model-formats/structure/mol.js +1 -1
  403. package/lib/mol-model-formats/structure/mol2.js +4 -4
  404. package/lib/mol-model-formats/structure/prmtop.js +1 -1
  405. package/lib/mol-model-formats/structure/property/bonds/chem_comp.js +3 -3
  406. package/lib/mol-model-formats/structure/property/bonds/index-pair.js +1 -1
  407. package/lib/mol-model-formats/structure/property/bonds/struct_conn.js +6 -6
  408. package/lib/mol-model-formats/structure/property/secondary-structure.js +8 -8
  409. package/lib/mol-model-formats/structure/psf.js +1 -1
  410. package/lib/mol-model-formats/structure/top.js +1 -1
  411. package/lib/mol-model-formats/structure/xyz.js +1 -1
  412. package/lib/mol-model-props/computed/accessible-surface-area/shrake-rupley/radii.js +2 -2
  413. package/lib/mol-model-props/computed/accessible-surface-area/shrake-rupley.js +3 -3
  414. package/lib/mol-model-props/computed/accessible-surface-area.js +2 -2
  415. package/lib/mol-model-props/computed/chemistry/functional-group.js +31 -31
  416. package/lib/mol-model-props/computed/chemistry/geometry.js +22 -22
  417. package/lib/mol-model-props/computed/chemistry/valence-model.js +32 -32
  418. package/lib/mol-model-props/computed/interactions/charged.js +39 -39
  419. package/lib/mol-model-props/computed/interactions/common.js +34 -34
  420. package/lib/mol-model-props/computed/interactions/contacts-builder.js +1 -1
  421. package/lib/mol-model-props/computed/interactions/contacts.js +1 -1
  422. package/lib/mol-model-props/computed/interactions/halogen-bonds.js +12 -12
  423. package/lib/mol-model-props/computed/interactions/hydrogen-bonds.js +32 -32
  424. package/lib/mol-model-props/computed/interactions/hydrophobic.js +9 -9
  425. package/lib/mol-model-props/computed/interactions/metal.js +26 -26
  426. package/lib/mol-model-props/computed/interactions/refine.js +20 -20
  427. package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.js +2 -2
  428. package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.js +2 -2
  429. package/lib/mol-model-props/computed/secondary-structure/dssp/bends.js +1 -1
  430. package/lib/mol-model-props/computed/secondary-structure/dssp/bridges.js +12 -12
  431. package/lib/mol-model-props/computed/secondary-structure/dssp/helices.js +6 -6
  432. package/lib/mol-model-props/computed/secondary-structure/dssp/ladders.js +3 -3
  433. package/lib/mol-model-props/computed/secondary-structure/dssp/sheets.js +11 -11
  434. package/lib/mol-model-props/computed/secondary-structure/dssp/turns.js +3 -3
  435. package/lib/mol-model-props/computed/secondary-structure/dssp.js +30 -30
  436. package/lib/mol-model-props/computed/themes/accessible-surface-area.js +1 -1
  437. package/lib/mol-model-props/computed/themes/interaction-type.js +10 -10
  438. package/lib/mol-model-props/integrative/cross-link-restraint/color.js +1 -1
  439. package/lib/mol-model-props/integrative/cross-link-restraint/format.js +3 -3
  440. package/lib/mol-model-props/sequence/sifts-mapping.js +1 -1
  441. package/lib/mol-model-props/sequence/themes/sifts-mapping.js +1 -1
  442. package/lib/mol-plugin/animation-loop.d.ts +2 -1
  443. package/lib/mol-plugin/animation-loop.js +18 -5
  444. package/lib/mol-plugin/behavior/dynamic/camera.js +12 -12
  445. package/lib/mol-plugin/behavior/dynamic/representation.js +7 -7
  446. package/lib/mol-plugin/context.d.ts +2 -2
  447. package/lib/mol-plugin/state.d.ts +1 -14
  448. package/lib/mol-plugin/version.js +2 -2
  449. package/lib/mol-plugin-state/formats/volume.d.ts +12 -11
  450. package/lib/mol-plugin-state/formats/volume.js +20 -13
  451. package/lib/mol-plugin-state/helpers/structure-selection-query.js +5 -5
  452. package/lib/mol-plugin-state/transforms/representation.js +2 -2
  453. package/lib/mol-plugin-ui/controls/parameters.d.ts +1 -1
  454. package/lib/mol-plugin-ui/sequence/polymer.js +1 -1
  455. package/lib/mol-plugin-ui/sequence/sequence.js +1 -1
  456. package/lib/mol-plugin-ui/structure/focus.js +1 -1
  457. package/lib/mol-plugin-ui/viewport.d.ts +2 -2
  458. package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.js +10 -10
  459. package/lib/mol-repr/structure/visual/bond-inter-unit-line.js +10 -10
  460. package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.js +12 -12
  461. package/lib/mol-repr/structure/visual/bond-intra-unit-line.js +12 -12
  462. package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.js +16 -16
  463. package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.js +1 -1
  464. package/lib/mol-repr/structure/visual/gaussian-surface-mesh.js +9 -0
  465. package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.js +4 -4
  466. package/lib/mol-repr/structure/visual/polymer-direction-wedge.js +1 -1
  467. package/lib/mol-repr/structure/visual/polymer-trace-mesh.js +2 -2
  468. package/lib/mol-repr/structure/visual/util/bond.js +2 -2
  469. package/lib/mol-repr/structure/visual/util/common.js +3 -3
  470. package/lib/mol-repr/structure/visual/util/link.js +30 -30
  471. package/lib/mol-repr/structure/visual/util/polymer/backbone.js +6 -6
  472. package/lib/mol-repr/structure/visual/util/polymer/gap-iterator.js +3 -3
  473. package/lib/mol-repr/structure/visual/util/polymer/trace-iterator.js +20 -20
  474. package/lib/mol-repr/structure/visual/util/polymer.js +6 -6
  475. package/lib/mol-script/language/symbol-table/core.d.ts +2 -2
  476. package/lib/mol-script/runtime/query/table.js +13 -13
  477. package/lib/mol-state/object.d.ts +3 -3
  478. package/lib/mol-task/util/user-timing.js +1 -1
  479. package/lib/mol-theme/clipping.js +19 -19
  480. package/lib/mol-theme/color/atom-id.js +1 -1
  481. package/lib/mol-theme/color/carbohydrate-symbol.js +1 -1
  482. package/lib/mol-theme/color/chain-id.js +4 -4
  483. package/lib/mol-theme/color/element-index.js +1 -1
  484. package/lib/mol-theme/color/element-symbol.js +1 -1
  485. package/lib/mol-theme/color/entity-id.js +4 -4
  486. package/lib/mol-theme/color/entity-source.js +5 -4
  487. package/lib/mol-theme/color/hydrophobicity.js +1 -1
  488. package/lib/mol-theme/color/illustrative.js +1 -1
  489. package/lib/mol-theme/color/model-index.js +1 -1
  490. package/lib/mol-theme/color/molecule-type.js +8 -8
  491. package/lib/mol-theme/color/occupancy.js +1 -1
  492. package/lib/mol-theme/color/operator-hkl.js +1 -1
  493. package/lib/mol-theme/color/operator-name.js +1 -1
  494. package/lib/mol-theme/color/partial-charge.js +1 -1
  495. package/lib/mol-theme/color/polymer-id.js +4 -4
  496. package/lib/mol-theme/color/polymer-index.js +1 -1
  497. package/lib/mol-theme/color/residue-name.js +1 -1
  498. package/lib/mol-theme/color/secondary-structure.js +12 -12
  499. package/lib/mol-theme/color/sequence-id.js +7 -7
  500. package/lib/mol-theme/color/shape-group.js +1 -1
  501. package/lib/mol-theme/color/uncertainty.js +1 -1
  502. package/lib/mol-theme/color/uniform.js +1 -1
  503. package/lib/mol-theme/color/unit-index.js +1 -1
  504. package/lib/mol-theme/color/volume-value.js +1 -1
  505. package/lib/mol-theme/label.js +3 -3
  506. package/lib/mol-util/binding.js +4 -4
  507. package/lib/mol-util/debug.d.ts +6 -1
  508. package/lib/mol-util/debug.js +9 -1
  509. package/lib/mol-util/input/input-observer.js +20 -20
  510. package/lib/mol-util/string-builder.js +1 -1
  511. package/lib/servers/model/preprocess/converter.js +1 -1
  512. package/lib/servers/model/server/query.js +1 -1
  513. package/lib/servers/model/utils/fetch-retry.js +3 -2
  514. package/lib/servers/volume/server/algebra/coordinate.js +6 -6
  515. package/lib/servers/volume/server/query/encode.js +1 -1
  516. package/package.json +8 -8
@@ -18,13 +18,13 @@ var M = ModifiersKeys;
18
18
  var Trigger = Binding.Trigger;
19
19
  var DefaultFocusLociBindings = {
20
20
  clickCenterFocus: Binding([
21
- Trigger(1 /* Primary */, M.create()),
22
- Trigger(2 /* Secondary */, M.create()),
23
- Trigger(1 /* Primary */, M.create({ control: true }))
21
+ Trigger(1 /* B.Flag.Primary */, M.create()),
22
+ Trigger(2 /* B.Flag.Secondary */, M.create()),
23
+ Trigger(1 /* B.Flag.Primary */, M.create({ control: true }))
24
24
  ], 'Camera center and focus', 'Click element using ${triggers}'),
25
25
  clickCenterFocusSelectMode: Binding([
26
- Trigger(2 /* Secondary */, M.create()),
27
- Trigger(1 /* Primary */, M.create({ control: true }))
26
+ Trigger(2 /* B.Flag.Secondary */, M.create()),
27
+ Trigger(1 /* B.Flag.Primary */, M.create({ control: true }))
28
28
  ], 'Camera center and focus', 'Click element using ${triggers}'),
29
29
  };
30
30
  var FocusLociParams = {
@@ -75,22 +75,22 @@ export var CameraAxisHelper = PluginBehavior.create({
75
75
  }
76
76
  class_2.prototype.register = function () {
77
77
  var _this = this;
78
- var lastPlane = 0 /* None */;
78
+ var lastPlane = 0 /* CameraHelperAxis.None */;
79
79
  var state = 0;
80
80
  this.subscribeObservable(this.ctx.behaviors.interaction.click, function (_a) {
81
81
  var current = _a.current;
82
82
  if (!_this.ctx.canvas3d || !isCameraAxesLoci(current.loci))
83
83
  return;
84
84
  var axis = current.loci.elements[0].groupId;
85
- if (axis === 0 /* None */) {
86
- lastPlane = 0 /* None */;
85
+ if (axis === 0 /* CameraHelperAxis.None */) {
86
+ lastPlane = 0 /* CameraHelperAxis.None */;
87
87
  state = 0;
88
88
  return;
89
89
  }
90
90
  var camera = _this.ctx.canvas3d.camera;
91
91
  var dir, up;
92
- if (axis >= 1 /* X */ && axis <= 3 /* Z */) {
93
- lastPlane = 0 /* None */;
92
+ if (axis >= 1 /* CameraHelperAxis.X */ && axis <= 3 /* CameraHelperAxis.Z */) {
93
+ lastPlane = 0 /* CameraHelperAxis.None */;
94
94
  state = 0;
95
95
  var d = Vec3.sub(Vec3(), camera.target, camera.position);
96
96
  var c = Vec3.cross(Vec3(), d, camera.up);
@@ -108,11 +108,11 @@ export var CameraAxisHelper = PluginBehavior.create({
108
108
  lastPlane = axis;
109
109
  state = 0;
110
110
  }
111
- if (axis === 4 /* XY */) {
111
+ if (axis === 4 /* CameraHelperAxis.XY */) {
112
112
  up = state ? Vec3.unitX : Vec3.unitY;
113
113
  dir = Vec3.negUnitZ;
114
114
  }
115
- else if (axis === 5 /* XZ */) {
115
+ else if (axis === 5 /* CameraHelperAxis.XZ */) {
116
116
  up = state ? Vec3.unitX : Vec3.unitZ;
117
117
  dir = Vec3.negUnitY;
118
118
  }
@@ -22,8 +22,8 @@ var M = ModifiersKeys;
22
22
  var Trigger = Binding.Trigger;
23
23
  //
24
24
  var DefaultHighlightLociBindings = {
25
- hoverHighlightOnly: Binding([Trigger(0 /* None */)], 'Highlight', 'Hover element using ${triggers}'),
26
- hoverHighlightOnlyExtend: Binding([Trigger(0 /* None */, M.create({ shift: true }))], 'Extend highlight', 'From selected to hovered element along polymer using ${triggers}'),
25
+ hoverHighlightOnly: Binding([Trigger(0 /* B.Flag.None */)], 'Highlight', 'Hover element using ${triggers}'),
26
+ hoverHighlightOnlyExtend: Binding([Trigger(0 /* B.Flag.None */, M.create({ shift: true }))], 'Extend highlight', 'From selected to hovered element along polymer using ${triggers}'),
27
27
  };
28
28
  var HighlightLociParams = {
29
29
  bindings: PD.Value(DefaultHighlightLociBindings, { isHidden: true }),
@@ -89,11 +89,11 @@ export var HighlightLoci = PluginBehavior.create({
89
89
  //
90
90
  var DefaultSelectLociBindings = {
91
91
  clickSelect: Binding.Empty,
92
- clickToggleExtend: Binding([Trigger(1 /* Primary */, M.create({ shift: true }))], 'Toggle extended selection', '${triggers} to extend selection along polymer'),
92
+ clickToggleExtend: Binding([Trigger(1 /* B.Flag.Primary */, M.create({ shift: true }))], 'Toggle extended selection', '${triggers} to extend selection along polymer'),
93
93
  clickSelectOnly: Binding.Empty,
94
- clickToggle: Binding([Trigger(1 /* Primary */, M.create())], 'Toggle selection', '${triggers} on element'),
94
+ clickToggle: Binding([Trigger(1 /* B.Flag.Primary */, M.create())], 'Toggle selection', '${triggers} on element'),
95
95
  clickDeselect: Binding.Empty,
96
- clickDeselectAllOnEmpty: Binding([Trigger(1 /* Primary */, M.create())], 'Deselect all', 'Click on nothing using ${triggers}'),
96
+ clickDeselectAllOnEmpty: Binding([Trigger(1 /* B.Flag.Primary */, M.create())], 'Deselect all', 'Click on nothing using ${triggers}'),
97
97
  };
98
98
  var SelectLociParams = {
99
99
  bindings: PD.Value(DefaultSelectLociBindings, { isHidden: true }),
@@ -240,10 +240,10 @@ export var DefaultLociLabelProvider = PluginBehavior.create({
240
240
  //
241
241
  var DefaultFocusLociBindings = {
242
242
  clickFocus: Binding([
243
- Trigger(1 /* Primary */, M.create()),
243
+ Trigger(1 /* B.Flag.Primary */, M.create()),
244
244
  ], 'Representation Focus', 'Click element using ${triggers}'),
245
245
  clickFocusAdd: Binding([
246
- Trigger(1 /* Primary */, M.create({ shift: true })),
246
+ Trigger(1 /* B.Flag.Primary */, M.create({ shift: true })),
247
247
  ], 'Representation Focus Add', 'Click element using ${triggers}'),
248
248
  clickFocusSelectMode: Binding([
249
249
  // default is empty
@@ -45,8 +45,8 @@ import { ViewportScreenshotHelper } from './util/viewport-screenshot';
45
45
  export declare class PluginContext {
46
46
  spec: PluginSpec;
47
47
  runTask: <T>(task: Task<T>, params?: {
48
- useOverlay?: boolean | undefined;
49
- } | undefined) => Promise<T>;
48
+ useOverlay?: boolean;
49
+ }) => Promise<T>;
50
50
  resolveTask: <T>(object: T | Task<T> | undefined) => T | Promise<T> | undefined;
51
51
  protected subs: Subscription[];
52
52
  private disposed;
@@ -61,20 +61,7 @@ declare class PluginState extends PluginComponent {
61
61
  durationInMs: number;
62
62
  }>, "animate"> | PD.NamedParams<PD.Normalize<unknown>, "instant">>;
63
63
  }>>>;
64
- setSnapshotParams: (params?: Partial<PD.Values<{
65
- durationInMs: PD.Numeric;
66
- data: PD.BooleanParam;
67
- behavior: PD.BooleanParam;
68
- componentManager: PD.BooleanParam;
69
- animation: PD.BooleanParam;
70
- startAnimation: PD.BooleanParam;
71
- canvas3d: PD.BooleanParam;
72
- interactivity: PD.BooleanParam;
73
- camera: PD.BooleanParam;
74
- cameraTransition: PD.Mapped<PD.NamedParams<PD.Normalize<{
75
- durationInMs: number;
76
- }>, "animate"> | PD.NamedParams<PD.Normalize<unknown>, "instant">>;
77
- }>> | undefined) => void;
64
+ setSnapshotParams: (params?: PluginState.SnapshotParams) => void;
78
65
  getSnapshot(params?: PluginState.SnapshotParams): PluginState.Snapshot;
79
66
  setSnapshot(snapshot: PluginState.Snapshot): Promise<void>;
80
67
  updateTransform(state: State, a: StateTransform.Ref, params: any, canUndo?: string | boolean): Promise<void>;
@@ -1,2 +1,2 @@
1
- export var PLUGIN_VERSION = '3.8.2';
2
- export var PLUGIN_VERSION_DATE = new Date(typeof __MOLSTAR_DEBUG_TIMESTAMP__ !== 'undefined' ? __MOLSTAR_DEBUG_TIMESTAMP__ : 1653233699685);
1
+ export var PLUGIN_VERSION = '3.9.0';
2
+ export var PLUGIN_VERSION_DATE = new Date(typeof __MOLSTAR_DEBUG_TIMESTAMP__ !== 'undefined' ? __MOLSTAR_DEBUG_TIMESTAMP__ : 1653936303170);
@@ -1,8 +1,9 @@
1
1
  /**
2
- * Copyright (c) 2018-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
3
  *
4
4
  * @author David Sehnal <david.sehnal@gmail.com>
5
5
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
6
+ * @author Aliaksei Chareshneu <chareshneu.tech@gmail.com>
6
7
  */
7
8
  import { PluginContext } from '../../mol-plugin/context';
8
9
  import { StateObjectSelector } from '../../mol-state';
@@ -20,7 +21,7 @@ export declare const Ccp4Provider: {
20
21
  description: string;
21
22
  category: string;
22
23
  binaryExtensions: string[];
23
- parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params | undefined) => Promise<{
24
+ parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params) => Promise<{
24
25
  format: StateObjectSelector<PluginStateObject.Format.Ccp4, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Data.Binary, PluginStateObject.Format.Ccp4, import("../../mol-util/param-definition").ParamDefinition.Normalize<{}>>>;
25
26
  volume: StateObjectSelector<PluginStateObject.Volume.Data, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Format.Ccp4, PluginStateObject.Volume.Data, import("../../mol-util/param-definition").ParamDefinition.Normalize<{
26
27
  voxelSize: import("../../mol-math/linear-algebra/3d/vec3").Vec3;
@@ -35,7 +36,7 @@ export declare const Dsn6Provider: {
35
36
  description: string;
36
37
  category: string;
37
38
  binaryExtensions: string[];
38
- parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params | undefined) => Promise<{
39
+ parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params) => Promise<{
39
40
  format: StateObjectSelector<PluginStateObject.Format.Dsn6, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Data.Binary, PluginStateObject.Format.Dsn6, import("../../mol-util/param-definition").ParamDefinition.Normalize<{}>>>;
40
41
  volume: StateObjectSelector<PluginStateObject.Volume.Data, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Format.Dsn6, PluginStateObject.Volume.Data, import("../../mol-util/param-definition").ParamDefinition.Normalize<{
41
42
  voxelSize: import("../../mol-math/linear-algebra/3d/vec3").Vec3;
@@ -50,7 +51,7 @@ export declare const DxProvider: {
50
51
  category: string;
51
52
  stringExtensions: string[];
52
53
  binaryExtensions: string[];
53
- parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params | undefined) => Promise<{
54
+ parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params) => Promise<{
54
55
  volume: StateObjectSelector<PluginStateObject.Volume.Data, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Format.Dx, PluginStateObject.Volume.Data, import("../../mol-util/param-definition").ParamDefinition.Normalize<{}>>>;
55
56
  }>;
56
57
  visuals: typeof defaultVisuals;
@@ -60,7 +61,7 @@ export declare const CubeProvider: {
60
61
  description: string;
61
62
  category: string;
62
63
  stringExtensions: string[];
63
- parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params | undefined) => Promise<{
64
+ parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params) => Promise<{
64
65
  format: StateObjectSelector<PluginStateObject.Format.Cube, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Data.String, PluginStateObject.Format.Cube, import("../../mol-util/param-definition").ParamDefinition.Normalize<{}>>>;
65
66
  volume: StateObjectSelector<PluginStateObject.Volume.Data, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Format.Cube, PluginStateObject.Volume.Data, import("../../mol-util/param-definition").ParamDefinition.Normalize<{
66
67
  dataIndex: number;
@@ -102,7 +103,7 @@ export declare const DscifProvider: {
102
103
  stringExtensions: string[];
103
104
  binaryExtensions: string[];
104
105
  isApplicable: (info: import("../../mol-util/file-info").FileInfo, data: string | Uint8Array) => boolean;
105
- parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: DsCifParams | undefined) => Promise<{
106
+ parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: DsCifParams) => Promise<{
106
107
  volumes: StateObjectSelector<PluginStateObject.Volume.Data, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>[];
107
108
  }>;
108
109
  visuals: (plugin: PluginContext, data: {
@@ -114,7 +115,7 @@ export declare const BuiltInVolumeFormats: readonly [readonly ["ccp4", {
114
115
  description: string;
115
116
  category: string;
116
117
  binaryExtensions: string[];
117
- parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params | undefined) => Promise<{
118
+ parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params) => Promise<{
118
119
  format: StateObjectSelector<PluginStateObject.Format.Ccp4, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Data.Binary, PluginStateObject.Format.Ccp4, import("../../mol-util/param-definition").ParamDefinition.Normalize<{}>>>;
119
120
  volume: StateObjectSelector<PluginStateObject.Volume.Data, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Format.Ccp4, PluginStateObject.Volume.Data, import("../../mol-util/param-definition").ParamDefinition.Normalize<{
120
121
  voxelSize: import("../../mol-math/linear-algebra/3d/vec3").Vec3;
@@ -128,7 +129,7 @@ export declare const BuiltInVolumeFormats: readonly [readonly ["ccp4", {
128
129
  description: string;
129
130
  category: string;
130
131
  binaryExtensions: string[];
131
- parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params | undefined) => Promise<{
132
+ parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params) => Promise<{
132
133
  format: StateObjectSelector<PluginStateObject.Format.Dsn6, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Data.Binary, PluginStateObject.Format.Dsn6, import("../../mol-util/param-definition").ParamDefinition.Normalize<{}>>>;
133
134
  volume: StateObjectSelector<PluginStateObject.Volume.Data, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Format.Dsn6, PluginStateObject.Volume.Data, import("../../mol-util/param-definition").ParamDefinition.Normalize<{
134
135
  voxelSize: import("../../mol-math/linear-algebra/3d/vec3").Vec3;
@@ -141,7 +142,7 @@ export declare const BuiltInVolumeFormats: readonly [readonly ["ccp4", {
141
142
  description: string;
142
143
  category: string;
143
144
  stringExtensions: string[];
144
- parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params | undefined) => Promise<{
145
+ parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params) => Promise<{
145
146
  format: StateObjectSelector<PluginStateObject.Format.Cube, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Data.String, PluginStateObject.Format.Cube, import("../../mol-util/param-definition").ParamDefinition.Normalize<{}>>>;
146
147
  volume: StateObjectSelector<PluginStateObject.Volume.Data, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Format.Cube, PluginStateObject.Volume.Data, import("../../mol-util/param-definition").ParamDefinition.Normalize<{
147
148
  dataIndex: number;
@@ -178,7 +179,7 @@ export declare const BuiltInVolumeFormats: readonly [readonly ["ccp4", {
178
179
  category: string;
179
180
  stringExtensions: string[];
180
181
  binaryExtensions: string[];
181
- parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params | undefined) => Promise<{
182
+ parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params) => Promise<{
182
183
  volume: StateObjectSelector<PluginStateObject.Volume.Data, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Format.Dx, PluginStateObject.Volume.Data, import("../../mol-util/param-definition").ParamDefinition.Normalize<{}>>>;
183
184
  }>;
184
185
  visuals: typeof defaultVisuals;
@@ -189,7 +190,7 @@ export declare const BuiltInVolumeFormats: readonly [readonly ["ccp4", {
189
190
  stringExtensions: string[];
190
191
  binaryExtensions: string[];
191
192
  isApplicable: (info: import("../../mol-util/file-info").FileInfo, data: string | Uint8Array) => boolean;
192
- parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: DsCifParams | undefined) => Promise<{
193
+ parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: DsCifParams) => Promise<{
193
194
  volumes: StateObjectSelector<PluginStateObject.Volume.Data, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>[];
194
195
  }>;
195
196
  visuals: (plugin: PluginContext, data: {
@@ -1,8 +1,9 @@
1
1
  /**
2
- * Copyright (c) 2018-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
3
  *
4
4
  * @author David Sehnal <david.sehnal@gmail.com>
5
5
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
6
+ * @author Aliaksei Chareshneu <chareshneu.tech@gmail.com>
6
7
  */
7
8
  import { __awaiter, __generator, __spreadArray } from "tslib";
8
9
  import { StateTransforms } from '../transforms';
@@ -243,35 +244,41 @@ export var DscifProvider = DataFormatProvider({
243
244
  },
244
245
  parse: function (plugin, data, params) { return __awaiter(void 0, void 0, void 0, function () {
245
246
  var cifCell, b, blocks, volumes, i, _i, blocks_1, block, entryId, _a, volumes_1, v;
246
- return __generator(this, function (_b) {
247
- switch (_b.label) {
247
+ var _b;
248
+ return __generator(this, function (_c) {
249
+ switch (_c.label) {
248
250
  case 0: return [4 /*yield*/, plugin.build().to(data).apply(StateTransforms.Data.ParseCif).commit()];
249
251
  case 1:
250
- cifCell = _b.sent();
252
+ cifCell = _c.sent();
251
253
  b = plugin.build().to(cifCell);
252
- blocks = cifCell.obj.data.blocks.slice(1);
253
- if (blocks.length !== 1 && blocks.length !== 2)
254
- throw new Error('unknown number of blocks');
254
+ blocks = cifCell.obj.data.blocks;
255
+ if (blocks.length === 0)
256
+ throw new Error('no data blocks');
255
257
  volumes = [];
256
258
  i = 0;
257
259
  for (_i = 0, blocks_1 = blocks; _i < blocks_1.length; _i++) {
258
260
  block = blocks_1[_i];
261
+ // Skip "server" data block.
262
+ if (block.header.toUpperCase() === 'SERVER')
263
+ continue;
259
264
  entryId = Array.isArray(params === null || params === void 0 ? void 0 : params.entryId) ? params === null || params === void 0 ? void 0 : params.entryId[i] : params === null || params === void 0 ? void 0 : params.entryId;
260
- volumes.push(b.apply(StateTransforms.Volume.VolumeFromDensityServerCif, { blockHeader: block.header, entryId: entryId }).selector);
261
- i++;
265
+ if (((_b = block.categories['volume_data_3d_info']) === null || _b === void 0 ? void 0 : _b.rowCount) > 0) {
266
+ volumes.push(b.apply(StateTransforms.Volume.VolumeFromDensityServerCif, { blockHeader: block.header, entryId: entryId }).selector);
267
+ i++;
268
+ }
262
269
  }
263
270
  return [4 /*yield*/, b.commit()];
264
271
  case 2:
265
- _b.sent();
272
+ _c.sent();
266
273
  _a = 0, volumes_1 = volumes;
267
- _b.label = 3;
274
+ _c.label = 3;
268
275
  case 3:
269
276
  if (!(_a < volumes_1.length)) return [3 /*break*/, 6];
270
277
  v = volumes_1[_a];
271
278
  return [4 /*yield*/, tryObtainRecommendedIsoValue(plugin, v.data)];
272
279
  case 4:
273
- _b.sent();
274
- _b.label = 5;
280
+ _c.sent();
281
+ _c.label = 5;
275
282
  case 5:
276
283
  _a++;
277
284
  return [3 /*break*/, 3];
@@ -221,7 +221,7 @@ var helix = StructureSelectionQuery('Helix', MS.struct.modifier.union([
221
221
  'entity-test': _proteinEntityTest,
222
222
  'residue-test': MS.core.flags.hasAny([
223
223
  MS.ammp('secondaryStructureFlags'),
224
- MS.core.type.bitflags([2 /* Helix */])
224
+ MS.core.type.bitflags([2 /* SecondaryStructureType.Flag.Helix */])
225
225
  ])
226
226
  })
227
227
  ]), {
@@ -235,7 +235,7 @@ var beta = StructureSelectionQuery('Beta Strand/Sheet', MS.struct.modifier.union
235
235
  'entity-test': _proteinEntityTest,
236
236
  'residue-test': MS.core.flags.hasAny([
237
237
  MS.ammp('secondaryStructureFlags'),
238
- MS.core.type.bitflags([4 /* Beta */])
238
+ MS.core.type.bitflags([4 /* SecondaryStructureType.Flag.Beta */])
239
239
  ])
240
240
  })
241
241
  ]), {
@@ -338,7 +338,7 @@ var ligandPlusConnected = StructureSelectionQuery('Ligand with Connected', MS.st
338
338
  'bond-test': MS.core.flags.hasAny([
339
339
  MS.struct.bondProperty.flags(),
340
340
  MS.core.type.bitflags([
341
- 1 /* Covalent */ | 2 /* MetallicCoordination */
341
+ 1 /* BondType.Flag.Covalent */ | 2 /* BondType.Flag.MetallicCoordination */
342
342
  ])
343
343
  ])
344
344
  })
@@ -382,7 +382,7 @@ var disulfideBridges = StructureSelectionQuery('Disulfide Bridges', MS.struct.mo
382
382
  MS.struct.generator.bondedAtomicPairs({
383
383
  0: MS.core.flags.hasAny([
384
384
  MS.struct.bondProperty.flags(),
385
- MS.core.type.bitflags([8 /* Disulfide */])
385
+ MS.core.type.bitflags([8 /* BondType.Flag.Disulfide */])
386
386
  ])
387
387
  })
388
388
  ])
@@ -500,7 +500,7 @@ var covalentlyOrMetallicBonded = StructureSelectionQuery('Residues with Cov. or
500
500
  'bond-test': MS.core.flags.hasAny([
501
501
  MS.struct.bondProperty.flags(),
502
502
  MS.core.type.bitflags([
503
- 1 /* Covalent */ | 2 /* MetallicCoordination */
503
+ 1 /* BondType.Flag.Covalent */ | 2 /* BondType.Flag.MetallicCoordination */
504
504
  ])
505
505
  ])
506
506
  })
@@ -657,7 +657,7 @@ var ClippingStructureRepresentation3DFromScript = PluginStateTransform.BuiltIn({
657
657
  }, function (e) { return "".concat(Clipping.Groups.toNames(e.groups).length, " group(s)"); }, {
658
658
  defaultValue: [{
659
659
  script: Script('(sel.atom.all)', 'mol-script'),
660
- groups: 0 /* None */,
660
+ groups: 0 /* Clipping.Groups.Flag.None */,
661
661
  }]
662
662
  }),
663
663
  }); }
@@ -705,7 +705,7 @@ var ClippingStructureRepresentation3DFromBundle = PluginStateTransform.BuiltIn({
705
705
  }, function (e) { return "".concat(Clipping.Groups.toNames(e.groups).length, " group(s)"); }, {
706
706
  defaultValue: [{
707
707
  bundle: StructureElement.Bundle.Empty,
708
- groups: 0 /* None */,
708
+ groups: 0 /* Clipping.Groups.Flag.None */,
709
709
  }],
710
710
  isHidden: true
711
711
  }),
@@ -94,7 +94,7 @@ export declare class LineGraphControl extends React.PureComponent<ParamProps<PD.
94
94
  isOverPoint: boolean;
95
95
  message: string;
96
96
  };
97
- onHover: (point?: Vec2 | undefined) => void;
97
+ onHover: (point?: Vec2) => void;
98
98
  onDrag: (point: Vec2) => void;
99
99
  onChange: (value: PD.LineGraph['defaultValue']) => void;
100
100
  toggleExpanded: (e: React.MouseEvent<HTMLButtonElement>) => void;
@@ -94,7 +94,7 @@ function createResidueQuery(chainGroupId, operatorName, label_seq_id) {
94
94
  SP.unit.operator_name(ctx.element) === operatorName);
95
95
  },
96
96
  residueTest: function (ctx) {
97
- if (ctx.element.unit.kind === 0 /* Atomic */) {
97
+ if (ctx.element.unit.kind === 0 /* Unit.Kind.Atomic */) {
98
98
  return SP.residue.label_seq_id(ctx.element) === label_seq_id;
99
99
  }
100
100
  else {
@@ -93,7 +93,7 @@ var Sequence = /** @class */ (function (_super) {
93
93
  _this.lastMouseOverSeqIdx = seqIdx;
94
94
  if (_this.mouseDownLoci !== undefined) {
95
95
  var loci = _this.getLoci(seqIdx);
96
- _this.hover(loci, 0 /* None */, 0 /* None */, __assign(__assign({}, modifiers), { shift: true }));
96
+ _this.hover(loci, 0 /* ButtonsType.Flag.None */, 0 /* ButtonsType.Flag.None */, __assign(__assign({}, modifiers), { shift: true }));
97
97
  }
98
98
  else {
99
99
  _this.highlightQueue.next({ seqIdx: seqIdx, buttons: buttons, button: button, modifiers: modifiers });
@@ -51,7 +51,7 @@ function getFocusEntries(structure) {
51
51
  continue;
52
52
  l.unit = ug.units[0];
53
53
  l.element = ug.elements[0];
54
- var isMultiChain = Unit.Traits.is(l.unit.traits, 1 /* MultiChain */);
54
+ var isMultiChain = Unit.Traits.is(l.unit.traits, 1 /* Unit.Trait.MultiChain */);
55
55
  var entityType = StructureProperties.entity.type(l);
56
56
  var isNonPolymer = entityType === 'non-polymer';
57
57
  var isBranched = entityType === 'branched';
@@ -18,8 +18,8 @@ export declare class ViewportControls extends PluginUIComponent<ViewportControls
18
18
  state: ViewportControlsState;
19
19
  resetCamera: () => void;
20
20
  private toggle;
21
- toggleSettingsExpanded: (e?: React.MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void;
22
- toggleScreenshotExpanded: (e?: React.MouseEvent<HTMLButtonElement, MouseEvent> | undefined) => void;
21
+ toggleSettingsExpanded: (e?: React.MouseEvent<HTMLButtonElement>) => void;
22
+ toggleScreenshotExpanded: (e?: React.MouseEvent<HTMLButtonElement>) => void;
23
23
  toggleControls: () => void;
24
24
  toggleExpanded: () => void;
25
25
  setSettings: (p: {
@@ -115,21 +115,21 @@ function getInterUnitBondCylinderBuilderProps(structure, theme, props) {
115
115
  style: function (edgeIndex) {
116
116
  var o = edges[edgeIndex].props.order;
117
117
  var f = BitFlags.create(edges[edgeIndex].props.flag);
118
- if (BondType.is(f, 2 /* MetallicCoordination */) || BondType.is(f, 4 /* HydrogenBond */)) {
118
+ if (BondType.is(f, 2 /* BondType.Flag.MetallicCoordination */) || BondType.is(f, 4 /* BondType.Flag.HydrogenBond */)) {
119
119
  // show metallic coordinations and hydrogen bonds with dashed cylinders
120
- return 1 /* Dashed */;
120
+ return 1 /* LinkStyle.Dashed */;
121
121
  }
122
122
  else if (o === 3) {
123
- return mbOff ? 0 /* Solid */ :
124
- mbSymmetric ? 4 /* Triple */ :
125
- 5 /* OffsetTriple */;
123
+ return mbOff ? 0 /* LinkStyle.Solid */ :
124
+ mbSymmetric ? 4 /* LinkStyle.Triple */ :
125
+ 5 /* LinkStyle.OffsetTriple */;
126
126
  }
127
- else if (aromaticBonds && BondType.is(f, 16 /* Aromatic */)) {
128
- return 7 /* Aromatic */;
127
+ else if (aromaticBonds && BondType.is(f, 16 /* BondType.Flag.Aromatic */)) {
128
+ return 7 /* LinkStyle.Aromatic */;
129
129
  }
130
- return (o !== 2 || mbOff) ? 0 /* Solid */ :
131
- mbSymmetric ? 2 /* Double */ :
132
- 3 /* OffsetDouble */;
130
+ return (o !== 2 || mbOff) ? 0 /* LinkStyle.Solid */ :
131
+ mbSymmetric ? 2 /* LinkStyle.Double */ :
132
+ 3 /* LinkStyle.OffsetDouble */;
133
133
  },
134
134
  radius: function (edgeIndex) {
135
135
  return radius(edgeIndex) * sizeAspectRatio;
@@ -67,21 +67,21 @@ function createInterUnitBondLines(ctx, structure, theme, props, lines) {
67
67
  style: function (edgeIndex) {
68
68
  var o = edges[edgeIndex].props.order;
69
69
  var f = BitFlags.create(edges[edgeIndex].props.flag);
70
- if (BondType.is(f, 2 /* MetallicCoordination */) || BondType.is(f, 4 /* HydrogenBond */)) {
70
+ if (BondType.is(f, 2 /* BondType.Flag.MetallicCoordination */) || BondType.is(f, 4 /* BondType.Flag.HydrogenBond */)) {
71
71
  // show metallic coordinations and hydrogen bonds with dashed cylinders
72
- return 1 /* Dashed */;
72
+ return 1 /* LinkStyle.Dashed */;
73
73
  }
74
74
  else if (o === 3) {
75
- return mbOff ? 0 /* Solid */ :
76
- mbSymmetric ? 4 /* Triple */ :
77
- 5 /* OffsetTriple */;
75
+ return mbOff ? 0 /* LinkStyle.Solid */ :
76
+ mbSymmetric ? 4 /* LinkStyle.Triple */ :
77
+ 5 /* LinkStyle.OffsetTriple */;
78
78
  }
79
- else if (aromaticBonds && BondType.is(f, 16 /* Aromatic */)) {
80
- return 7 /* Aromatic */;
79
+ else if (aromaticBonds && BondType.is(f, 16 /* BondType.Flag.Aromatic */)) {
80
+ return 7 /* LinkStyle.Aromatic */;
81
81
  }
82
- return (o !== 2 || mbOff) ? 0 /* Solid */ :
83
- mbSymmetric ? 2 /* Double */ :
84
- 3 /* OffsetDouble */;
82
+ return (o !== 2 || mbOff) ? 0 /* LinkStyle.Solid */ :
83
+ mbSymmetric ? 2 /* LinkStyle.Double */ :
84
+ 3 /* LinkStyle.OffsetDouble */;
85
85
  },
86
86
  radius: function (edgeIndex) {
87
87
  var b = edges[edgeIndex];
@@ -31,7 +31,7 @@ function getIntraUnitBondCylinderBuilderProps(unit, structure, theme, props) {
31
31
  var mbSymmetric = multipleBonds === 'symmetric';
32
32
  var include = BondType.fromNames(includeTypes);
33
33
  var exclude = BondType.fromNames(excludeTypes);
34
- var ignoreComputedAromatic = ignoreBondType(include, exclude, 32 /* Computed */);
34
+ var ignoreComputedAromatic = ignoreBondType(include, exclude, 32 /* BondType.Flag.Computed */);
35
35
  var vRef = Vec3(), delta = Vec3();
36
36
  var pos = unit.conformation.invariantPosition;
37
37
  var stub;
@@ -115,35 +115,35 @@ function getIntraUnitBondCylinderBuilderProps(unit, structure, theme, props) {
115
115
  style: function (edgeIndex) {
116
116
  var o = _order[edgeIndex];
117
117
  var f = _flags[edgeIndex];
118
- if (isBondType(f, 2 /* MetallicCoordination */) || isBondType(f, 4 /* HydrogenBond */)) {
118
+ if (isBondType(f, 2 /* BondType.Flag.MetallicCoordination */) || isBondType(f, 4 /* BondType.Flag.HydrogenBond */)) {
119
119
  // show metallic coordinations and hydrogen bonds with dashed cylinders
120
- return 1 /* Dashed */;
120
+ return 1 /* LinkStyle.Dashed */;
121
121
  }
122
122
  else if (o === 3) {
123
- return mbOff ? 0 /* Solid */ :
124
- mbSymmetric ? 4 /* Triple */ :
125
- 5 /* OffsetTriple */;
123
+ return mbOff ? 0 /* LinkStyle.Solid */ :
124
+ mbSymmetric ? 4 /* LinkStyle.Triple */ :
125
+ 5 /* LinkStyle.OffsetTriple */;
126
126
  }
127
127
  else if (aromaticBonds) {
128
128
  var aI = a[edgeIndex], bI = b[edgeIndex];
129
129
  var aR = elementAromaticRingIndices.get(aI);
130
130
  var bR = elementAromaticRingIndices.get(bI);
131
131
  var arCount = (aR && bR) ? arrayIntersectionSize(aR, bR) : 0;
132
- if (isBondType(f, 16 /* Aromatic */) || (arCount && !ignoreComputedAromatic)) {
132
+ if (isBondType(f, 16 /* BondType.Flag.Aromatic */) || (arCount && !ignoreComputedAromatic)) {
133
133
  if (arCount === 2) {
134
- return 8 /* MirroredAromatic */;
134
+ return 8 /* LinkStyle.MirroredAromatic */;
135
135
  }
136
136
  else if (arCount === 1 || (deloTriplets === null || deloTriplets === void 0 ? void 0 : deloTriplets.getThirdElement(aI, bI))) {
137
- return 7 /* Aromatic */;
137
+ return 7 /* LinkStyle.Aromatic */;
138
138
  }
139
139
  else {
140
140
  // case for bonds between two aromatic rings
141
141
  }
142
142
  }
143
143
  }
144
- return (o !== 2 || mbOff) ? 0 /* Solid */ :
145
- mbSymmetric ? 2 /* Double */ :
146
- 3 /* OffsetDouble */;
144
+ return (o !== 2 || mbOff) ? 0 /* LinkStyle.Solid */ :
145
+ mbSymmetric ? 2 /* LinkStyle.Double */ :
146
+ 3 /* LinkStyle.OffsetDouble */;
147
147
  },
148
148
  radius: function (edgeIndex) {
149
149
  return radius(edgeIndex) * sizeAspectRatio;
@@ -37,7 +37,7 @@ function createIntraUnitBondLines(ctx, unit, structure, theme, props, lines) {
37
37
  var mbSymmetric = multipleBonds === 'symmetric';
38
38
  var include = BondType.fromNames(includeTypes);
39
39
  var exclude = BondType.fromNames(excludeTypes);
40
- var ignoreComputedAromatic = ignoreBondType(include, exclude, 32 /* Computed */);
40
+ var ignoreComputedAromatic = ignoreBondType(include, exclude, 32 /* BondType.Flag.Computed */);
41
41
  var vRef = Vec3();
42
42
  var pos = unit.conformation.invariantPosition;
43
43
  var _a = unit.rings, elementRingIndices = _a.elementRingIndices, elementAromaticRingIndices = _a.elementAromaticRingIndices;
@@ -83,35 +83,35 @@ function createIntraUnitBondLines(ctx, unit, structure, theme, props, lines) {
83
83
  style: function (edgeIndex) {
84
84
  var o = _order[edgeIndex];
85
85
  var f = _flags[edgeIndex];
86
- if (isBondType(f, 2 /* MetallicCoordination */) || isBondType(f, 4 /* HydrogenBond */)) {
86
+ if (isBondType(f, 2 /* BondType.Flag.MetallicCoordination */) || isBondType(f, 4 /* BondType.Flag.HydrogenBond */)) {
87
87
  // show metallic coordinations and hydrogen bonds with dashed cylinders
88
- return 1 /* Dashed */;
88
+ return 1 /* LinkStyle.Dashed */;
89
89
  }
90
90
  else if (o === 3) {
91
- return mbOff ? 0 /* Solid */ :
92
- mbSymmetric ? 4 /* Triple */ :
93
- 5 /* OffsetTriple */;
91
+ return mbOff ? 0 /* LinkStyle.Solid */ :
92
+ mbSymmetric ? 4 /* LinkStyle.Triple */ :
93
+ 5 /* LinkStyle.OffsetTriple */;
94
94
  }
95
95
  else if (aromaticBonds) {
96
96
  var aI = a[edgeIndex], bI = b[edgeIndex];
97
97
  var aR = elementAromaticRingIndices.get(aI);
98
98
  var bR = elementAromaticRingIndices.get(bI);
99
99
  var arCount = (aR && bR) ? arrayIntersectionSize(aR, bR) : 0;
100
- if (isBondType(f, 16 /* Aromatic */) || (arCount && !ignoreComputedAromatic)) {
100
+ if (isBondType(f, 16 /* BondType.Flag.Aromatic */) || (arCount && !ignoreComputedAromatic)) {
101
101
  if (arCount === 2) {
102
- return 8 /* MirroredAromatic */;
102
+ return 8 /* LinkStyle.MirroredAromatic */;
103
103
  }
104
104
  else if (arCount === 1 || (deloTriplets === null || deloTriplets === void 0 ? void 0 : deloTriplets.getThirdElement(aI, bI))) {
105
- return 7 /* Aromatic */;
105
+ return 7 /* LinkStyle.Aromatic */;
106
106
  }
107
107
  else {
108
108
  // case for bonds between two aromatic rings
109
109
  }
110
110
  }
111
111
  }
112
- return (o !== 2 || mbOff) ? 0 /* Solid */ :
113
- mbSymmetric ? 2 /* Double */ :
114
- 3 /* OffsetDouble */;
112
+ return (o !== 2 || mbOff) ? 0 /* LinkStyle.Solid */ :
113
+ mbSymmetric ? 2 /* LinkStyle.Double */ :
114
+ 3 /* LinkStyle.OffsetDouble */;
115
115
  },
116
116
  radius: function (edgeIndex) {
117
117
  location.element = elements[a[edgeIndex]];