molstar 2.4.0 → 2.4.1

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 (305) hide show
  1. package/build/viewer/molstar.js +1 -1
  2. package/lib/apps/docking-viewer/viewport.d.ts +2 -2
  3. package/lib/cli/chem-comp-dict/util.d.ts +4 -4
  4. package/lib/commonjs/apps/docking-viewer/viewport.d.ts +2 -2
  5. package/lib/commonjs/apps/viewer/index.d.ts +2 -2
  6. package/lib/commonjs/cli/chem-comp-dict/util.d.ts +4 -4
  7. package/lib/commonjs/extensions/alpha-orbitals/transforms.d.ts +1 -1
  8. package/lib/commonjs/extensions/anvil/behavior.d.ts +2 -2
  9. package/lib/commonjs/extensions/anvil/representation.d.ts +5 -5
  10. package/lib/commonjs/extensions/cellpack/representation.d.ts +2 -2
  11. package/lib/commonjs/extensions/dnatco/confal-pyramids/behavior.d.ts +1 -1
  12. package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +6 -6
  13. package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +6 -6
  14. package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.d.ts +1 -1
  15. package/lib/commonjs/extensions/rcsb/validation-report/behavior.d.ts +3 -3
  16. package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +10 -10
  17. package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +4 -4
  18. package/lib/commonjs/mol-canvas3d/helper/camera-helper.d.ts +1 -1
  19. package/lib/commonjs/mol-canvas3d/helper/handle-helper.d.ts +1 -1
  20. package/lib/commonjs/mol-geo/geometry/base.d.ts +3 -3
  21. package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +1 -1
  22. package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.d.ts +1 -1
  23. package/lib/commonjs/mol-geo/geometry/image/image.d.ts +3 -3
  24. package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +1 -1
  25. package/lib/commonjs/mol-geo/geometry/mesh/builder/tube.js +18 -8
  26. package/lib/commonjs/mol-geo/geometry/mesh/builder/tube.js.map +1 -1
  27. package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +1 -1
  28. package/lib/commonjs/mol-geo/geometry/points/points.d.ts +3 -3
  29. package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +1 -1
  30. package/lib/commonjs/mol-geo/geometry/text/text.d.ts +1 -1
  31. package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +1 -1
  32. package/lib/commonjs/mol-gl/renderer.d.ts +2 -2
  33. package/lib/commonjs/mol-gl/webgl/context.d.ts +1 -1
  34. package/lib/commonjs/mol-io/common/typed-array.d.ts +1 -1
  35. package/lib/commonjs/mol-io/reader/cif/schema/ccd.d.ts +2 -2
  36. package/lib/commonjs/mol-io/reader/cif/schema/density-server.d.ts +3 -3
  37. package/lib/commonjs/mol-io/reader/cif/schema/mmcif-extras.d.ts +3 -3
  38. package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +14 -14
  39. package/lib/commonjs/mol-io/reader/ply/schema.d.ts +1 -1
  40. package/lib/commonjs/mol-model/loci.d.ts +20 -20
  41. package/lib/commonjs/mol-model/shape/shape.d.ts +1 -1
  42. package/lib/commonjs/mol-model/structure/query/utils/structure-distance.d.ts +54 -5
  43. package/lib/commonjs/mol-model/structure/structure/properties.d.ts +2 -2
  44. package/lib/commonjs/mol-model/structure/structure/unit.d.ts +2 -2
  45. package/lib/commonjs/mol-model-formats/shape/ply.d.ts +6 -6
  46. package/lib/commonjs/mol-model-formats/structure/basic/schema.d.ts +5 -5
  47. package/lib/commonjs/mol-model-formats/structure/common/component.d.ts +8 -8
  48. package/lib/commonjs/mol-model-props/computed/interactions/hydrogen-bonds.d.ts +1 -1
  49. package/lib/commonjs/mol-model-props/computed/interactions/hydrogen-bonds.js +1 -7
  50. package/lib/commonjs/mol-model-props/computed/interactions/hydrogen-bonds.js.map +1 -1
  51. package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +2 -2
  52. package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +2 -2
  53. package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +6 -6
  54. package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +8 -8
  55. package/lib/commonjs/mol-plugin/behavior/behavior.d.ts +1 -1
  56. package/lib/commonjs/mol-plugin/behavior/dynamic/representation.d.ts +2 -2
  57. package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +1 -1
  58. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/behavior.d.ts +4 -4
  59. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/transformers.d.ts +2 -2
  60. package/lib/commonjs/mol-plugin/commands.d.ts +2 -2
  61. package/lib/commonjs/mol-plugin/config.d.ts +1 -1
  62. package/lib/commonjs/mol-plugin/layout.d.ts +4 -4
  63. package/lib/commonjs/mol-plugin/util/viewport-screenshot.d.ts +3 -3
  64. package/lib/commonjs/mol-plugin-state/actions/structure.d.ts +2 -2
  65. package/lib/commonjs/mol-plugin-state/animation/built-in/model-index.d.ts +3 -3
  66. package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +5 -5
  67. package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy.d.ts +5 -5
  68. package/lib/commonjs/mol-plugin-state/builder/structure/representation-preset.d.ts +15 -15
  69. package/lib/commonjs/mol-plugin-state/builder/structure/representation.d.ts +1 -1
  70. package/lib/commonjs/mol-plugin-state/formats/volume.d.ts +10 -10
  71. package/lib/commonjs/mol-plugin-state/helpers/root-structure.d.ts +5 -5
  72. package/lib/commonjs/mol-plugin-state/helpers/structure-component.d.ts +1 -1
  73. package/lib/commonjs/mol-plugin-state/manager/interactivity.d.ts +1 -1
  74. package/lib/commonjs/mol-plugin-state/manager/structure/component.d.ts +3 -3
  75. package/lib/commonjs/mol-plugin-state/transforms/data.d.ts +1 -1
  76. package/lib/commonjs/mol-plugin-state/transforms/model.d.ts +7 -7
  77. package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +10 -10
  78. package/lib/commonjs/mol-plugin-ui/controls/parameters.d.ts +2 -2
  79. package/lib/commonjs/mol-plugin-ui/sequence/polymer.d.ts +1 -1
  80. package/lib/commonjs/mol-plugin-ui/structure/measurements.d.ts +1 -1
  81. package/lib/commonjs/mol-repr/shape/loci/angle.d.ts +1 -1
  82. package/lib/commonjs/mol-repr/shape/loci/common.d.ts +1 -1
  83. package/lib/commonjs/mol-repr/shape/loci/dihedral.d.ts +1 -1
  84. package/lib/commonjs/mol-repr/shape/loci/distance.d.ts +1 -1
  85. package/lib/commonjs/mol-repr/shape/loci/label.d.ts +1 -1
  86. package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +2 -2
  87. package/lib/commonjs/mol-repr/shape/loci/plane.d.ts +1 -1
  88. package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +2 -2
  89. package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +12 -12
  90. package/lib/commonjs/mol-repr/structure/params.d.ts +11 -11
  91. package/lib/commonjs/mol-repr/structure/registry.d.ts +41 -41
  92. package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +6 -6
  93. package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +15 -15
  94. package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +6 -6
  95. package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +9 -9
  96. package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +15 -15
  97. package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +6 -6
  98. package/lib/commonjs/mol-repr/structure/representation/gaussian-volume.d.ts +6 -6
  99. package/lib/commonjs/mol-repr/structure/representation/label.d.ts +9 -9
  100. package/lib/commonjs/mol-repr/structure/representation/line.d.ts +18 -18
  101. package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +6 -6
  102. package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +6 -6
  103. package/lib/commonjs/mol-repr/structure/representation/point.d.ts +9 -9
  104. package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +6 -6
  105. package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +6 -6
  106. package/lib/commonjs/mol-repr/structure/units-visual.d.ts +17 -17
  107. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +10 -10
  108. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-line.d.ts +5 -5
  109. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +10 -10
  110. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.d.ts +5 -5
  111. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +2 -2
  112. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +2 -2
  113. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +2 -2
  114. package/lib/commonjs/mol-repr/structure/visual/element-cross.d.ts +2 -2
  115. package/lib/commonjs/mol-repr/structure/visual/element-point.d.ts +3 -3
  116. package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +4 -4
  117. package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +2 -2
  118. package/lib/commonjs/mol-repr/structure/visual/gaussian-density-volume.d.ts +4 -4
  119. package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +8 -8
  120. package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +2 -2
  121. package/lib/commonjs/mol-repr/structure/visual/label-text.d.ts +3 -3
  122. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +2 -2
  123. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +2 -2
  124. package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +2 -2
  125. package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +2 -2
  126. package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +2 -2
  127. package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +4 -4
  128. package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +4 -4
  129. package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +2 -2
  130. package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +2 -2
  131. package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +5 -5
  132. package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +2 -2
  133. package/lib/commonjs/mol-repr/structure/visual/util/bond.d.ts +18 -18
  134. package/lib/commonjs/mol-repr/structure/visual/util/common.d.ts +2 -2
  135. package/lib/commonjs/mol-repr/volume/direct-volume.d.ts +8 -8
  136. package/lib/commonjs/mol-repr/volume/isosurface.d.ts +12 -12
  137. package/lib/commonjs/mol-repr/volume/registry.d.ts +8 -8
  138. package/lib/commonjs/mol-repr/volume/representation.d.ts +1 -1
  139. package/lib/commonjs/mol-repr/volume/slice.d.ts +12 -12
  140. package/lib/commonjs/mol-theme/color/element-symbol.d.ts +4 -4
  141. package/lib/commonjs/mol-theme/color.d.ts +2 -2
  142. package/lib/commonjs/mol-util/color/lists.d.ts +3 -3
  143. package/lib/commonjs/mol-util/color/names.d.ts +1 -1
  144. package/lib/commonjs/mol-util/color/palette.d.ts +1 -1
  145. package/lib/commonjs/mol-util/color/scale.d.ts +1 -1
  146. package/lib/commonjs/servers/model/config.d.ts +2 -2
  147. package/lib/extensions/anvil/behavior.d.ts +2 -2
  148. package/lib/extensions/anvil/representation.d.ts +5 -5
  149. package/lib/extensions/cellpack/representation.d.ts +2 -2
  150. package/lib/extensions/dnatco/confal-pyramids/behavior.d.ts +1 -1
  151. package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +6 -6
  152. package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +6 -6
  153. package/lib/extensions/rcsb/assembly-symmetry/representation.d.ts +1 -1
  154. package/lib/extensions/rcsb/validation-report/behavior.d.ts +3 -3
  155. package/lib/extensions/rcsb/validation-report/representation.d.ts +10 -10
  156. package/lib/mol-canvas3d/canvas3d.d.ts +4 -4
  157. package/lib/mol-canvas3d/helper/camera-helper.d.ts +1 -1
  158. package/lib/mol-canvas3d/helper/handle-helper.d.ts +1 -1
  159. package/lib/mol-data/int/impl/ordered-set.d.ts +3 -3
  160. package/lib/mol-geo/geometry/base.d.ts +3 -3
  161. package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +1 -1
  162. package/lib/mol-geo/geometry/direct-volume/direct-volume.d.ts +1 -1
  163. package/lib/mol-geo/geometry/image/image.d.ts +3 -3
  164. package/lib/mol-geo/geometry/lines/lines.d.ts +1 -1
  165. package/lib/mol-geo/geometry/mesh/builder/tube.js +19 -9
  166. package/lib/mol-geo/geometry/mesh/builder/tube.js.map +1 -1
  167. package/lib/mol-geo/geometry/mesh/mesh.d.ts +1 -1
  168. package/lib/mol-geo/geometry/points/points.d.ts +3 -3
  169. package/lib/mol-geo/geometry/spheres/spheres.d.ts +1 -1
  170. package/lib/mol-geo/geometry/text/text.d.ts +1 -1
  171. package/lib/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +1 -1
  172. package/lib/mol-gl/renderer.d.ts +2 -2
  173. package/lib/mol-io/common/typed-array.d.ts +1 -1
  174. package/lib/mol-io/reader/cif/schema/ccd.d.ts +2 -2
  175. package/lib/mol-io/reader/cif/schema/density-server.d.ts +3 -3
  176. package/lib/mol-io/reader/cif/schema/mmcif-extras.d.ts +3 -3
  177. package/lib/mol-io/reader/cif/schema/mmcif.d.ts +14 -14
  178. package/lib/mol-io/reader/ply/schema.d.ts +1 -1
  179. package/lib/mol-model/loci.d.ts +20 -20
  180. package/lib/mol-model/shape/shape.d.ts +1 -1
  181. package/lib/mol-model/structure/structure/properties.d.ts +2 -2
  182. package/lib/mol-model/structure/structure/unit.d.ts +2 -2
  183. package/lib/mol-model-formats/shape/ply.d.ts +6 -6
  184. package/lib/mol-model-formats/structure/basic/schema.d.ts +5 -5
  185. package/lib/mol-model-formats/structure/common/component.d.ts +8 -8
  186. package/lib/mol-model-props/computed/interactions/hydrogen-bonds.d.ts +1 -1
  187. package/lib/mol-model-props/computed/interactions/hydrogen-bonds.js +1 -7
  188. package/lib/mol-model-props/computed/interactions/hydrogen-bonds.js.map +1 -1
  189. package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +2 -2
  190. package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +2 -2
  191. package/lib/mol-model-props/computed/representations/interactions.d.ts +6 -6
  192. package/lib/mol-model-props/integrative/cross-link-restraint/representation.d.ts +8 -8
  193. package/lib/mol-plugin/behavior/behavior.d.ts +1 -1
  194. package/lib/mol-plugin/behavior/dynamic/representation.d.ts +2 -2
  195. package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +1 -1
  196. package/lib/mol-plugin/behavior/dynamic/volume-streaming/behavior.d.ts +4 -4
  197. package/lib/mol-plugin/behavior/dynamic/volume-streaming/transformers.d.ts +2 -2
  198. package/lib/mol-plugin/commands.d.ts +2 -2
  199. package/lib/mol-plugin/layout.d.ts +4 -4
  200. package/lib/mol-plugin/util/viewport-screenshot.d.ts +3 -3
  201. package/lib/mol-plugin/version.js +2 -2
  202. package/lib/mol-plugin-state/actions/structure.d.ts +1 -1
  203. package/lib/mol-plugin-state/animation/built-in/model-index.d.ts +3 -3
  204. package/lib/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +5 -5
  205. package/lib/mol-plugin-state/builder/structure/hierarchy.d.ts +5 -5
  206. package/lib/mol-plugin-state/builder/structure/representation-preset.d.ts +15 -15
  207. package/lib/mol-plugin-state/builder/structure/representation.d.ts +1 -1
  208. package/lib/mol-plugin-state/formats/volume.d.ts +10 -10
  209. package/lib/mol-plugin-state/helpers/root-structure.d.ts +5 -5
  210. package/lib/mol-plugin-state/helpers/structure-component.d.ts +1 -1
  211. package/lib/mol-plugin-state/manager/interactivity.d.ts +1 -1
  212. package/lib/mol-plugin-state/manager/structure/component.d.ts +3 -3
  213. package/lib/mol-plugin-state/transforms/data.d.ts +1 -1
  214. package/lib/mol-plugin-state/transforms/model.d.ts +7 -7
  215. package/lib/mol-plugin-state/transforms/representation.d.ts +10 -10
  216. package/lib/mol-plugin-ui/structure/measurements.d.ts +1 -1
  217. package/lib/mol-plugin-ui/structure/selection.d.ts +1 -1
  218. package/lib/mol-repr/shape/loci/angle.d.ts +1 -1
  219. package/lib/mol-repr/shape/loci/common.d.ts +1 -1
  220. package/lib/mol-repr/shape/loci/dihedral.d.ts +1 -1
  221. package/lib/mol-repr/shape/loci/distance.d.ts +1 -1
  222. package/lib/mol-repr/shape/loci/label.d.ts +1 -1
  223. package/lib/mol-repr/shape/loci/orientation.d.ts +2 -2
  224. package/lib/mol-repr/shape/loci/plane.d.ts +1 -1
  225. package/lib/mol-repr/shape/model/unitcell.d.ts +2 -2
  226. package/lib/mol-repr/structure/complex-visual.d.ts +12 -12
  227. package/lib/mol-repr/structure/params.d.ts +11 -11
  228. package/lib/mol-repr/structure/registry.d.ts +41 -41
  229. package/lib/mol-repr/structure/representation/backbone.d.ts +6 -6
  230. package/lib/mol-repr/structure/representation/ball-and-stick.d.ts +15 -15
  231. package/lib/mol-repr/structure/representation/carbohydrate.d.ts +6 -6
  232. package/lib/mol-repr/structure/representation/cartoon.d.ts +9 -9
  233. package/lib/mol-repr/structure/representation/ellipsoid.d.ts +15 -15
  234. package/lib/mol-repr/structure/representation/gaussian-surface.d.ts +6 -6
  235. package/lib/mol-repr/structure/representation/gaussian-volume.d.ts +6 -6
  236. package/lib/mol-repr/structure/representation/label.d.ts +9 -9
  237. package/lib/mol-repr/structure/representation/line.d.ts +18 -18
  238. package/lib/mol-repr/structure/representation/molecular-surface.d.ts +6 -6
  239. package/lib/mol-repr/structure/representation/orientation.d.ts +6 -6
  240. package/lib/mol-repr/structure/representation/point.d.ts +9 -9
  241. package/lib/mol-repr/structure/representation/putty.d.ts +6 -6
  242. package/lib/mol-repr/structure/representation/spacefill.d.ts +6 -6
  243. package/lib/mol-repr/structure/units-visual.d.ts +17 -17
  244. package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +10 -10
  245. package/lib/mol-repr/structure/visual/bond-inter-unit-line.d.ts +5 -5
  246. package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +10 -10
  247. package/lib/mol-repr/structure/visual/bond-intra-unit-line.d.ts +5 -5
  248. package/lib/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +2 -2
  249. package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +2 -2
  250. package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +2 -2
  251. package/lib/mol-repr/structure/visual/element-cross.d.ts +2 -2
  252. package/lib/mol-repr/structure/visual/element-point.d.ts +3 -3
  253. package/lib/mol-repr/structure/visual/element-sphere.d.ts +4 -4
  254. package/lib/mol-repr/structure/visual/ellipsoid-mesh.d.ts +2 -2
  255. package/lib/mol-repr/structure/visual/gaussian-density-volume.d.ts +4 -4
  256. package/lib/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +8 -8
  257. package/lib/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +2 -2
  258. package/lib/mol-repr/structure/visual/label-text.d.ts +3 -3
  259. package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +2 -2
  260. package/lib/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +2 -2
  261. package/lib/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +2 -2
  262. package/lib/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +2 -2
  263. package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +2 -2
  264. package/lib/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +4 -4
  265. package/lib/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +4 -4
  266. package/lib/mol-repr/structure/visual/polymer-direction-wedge.d.ts +2 -2
  267. package/lib/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +2 -2
  268. package/lib/mol-repr/structure/visual/polymer-trace-mesh.d.ts +5 -5
  269. package/lib/mol-repr/structure/visual/polymer-tube-mesh.d.ts +2 -2
  270. package/lib/mol-repr/structure/visual/util/bond.d.ts +18 -18
  271. package/lib/mol-repr/structure/visual/util/common.d.ts +2 -2
  272. package/lib/mol-repr/volume/direct-volume.d.ts +8 -8
  273. package/lib/mol-repr/volume/isosurface.d.ts +12 -12
  274. package/lib/mol-repr/volume/registry.d.ts +8 -8
  275. package/lib/mol-repr/volume/representation.d.ts +1 -1
  276. package/lib/mol-repr/volume/slice.d.ts +12 -12
  277. package/lib/mol-theme/color/element-symbol.d.ts +4 -4
  278. package/lib/mol-theme/color.d.ts +2 -2
  279. package/lib/mol-util/color/names.d.ts +1 -1
  280. package/lib/mol-util/color/palette.d.ts +1 -1
  281. package/lib/mol-util/color/scale.d.ts +1 -1
  282. package/lib/servers/model/config.d.ts +2 -2
  283. package/lib/tsconfig.commonjs.tsbuildinfo +1 -1
  284. package/package.json +1 -1
  285. package/lib/commonjs/mol-repr/structure/visual/util/color.d.ts +0 -24
  286. package/lib/commonjs/mol-repr/structure/visual/util/color.js +0 -100
  287. package/lib/commonjs/mol-repr/structure/visual/util/color.js.map +0 -1
  288. package/lib/mol-gl/_spec/shader.spec.d.ts +0 -0
  289. package/lib/mol-gl/_spec/shader.spec.js +0 -2
  290. package/lib/mol-gl/_spec/shader.spec.js.map +0 -1
  291. package/lib/mol-gl/compute/copy.d.ts +0 -20
  292. package/lib/mol-gl/compute/copy.js +0 -24
  293. package/lib/mol-gl/compute/copy.js.map +0 -1
  294. package/lib/mol-repr/structure/visual/orientation-axes-mesh.d.ts +0 -35
  295. package/lib/mol-repr/structure/visual/orientation-axes-mesh.js +0 -43
  296. package/lib/mol-repr/structure/visual/orientation-axes-mesh.js.map +0 -1
  297. package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh copy.d.ts +0 -31
  298. package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh copy.js +0 -48
  299. package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh copy.js.map +0 -1
  300. package/lib/mol-repr/structure/visual/util/color.d.ts +0 -24
  301. package/lib/mol-repr/structure/visual/util/color.js +0 -94
  302. package/lib/mol-repr/structure/visual/util/color.js.map +0 -1
  303. package/lib/mol-repr/structure/visual/util/orientation.d.ts +0 -17
  304. package/lib/mol-repr/structure/visual/util/orientation.js +0 -71
  305. package/lib/mol-repr/structure/visual/util/orientation.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "molstar",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "A comprehensive macromolecular library.",
5
5
  "homepage": "https://github.com/molstar/molstar#readme",
6
6
  "repository": {
@@ -1,24 +0,0 @@
1
- /**
2
- * Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
- *
4
- * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
- */
6
- import { MeshValues } from '../../../../mol-gl/renderable/mesh';
7
- import { TextureMeshValues } from '../../../../mol-gl/renderable/texture-mesh';
8
- import { WebGLContext } from '../../../../mol-gl/webgl/context';
9
- import { Texture } from '../../../../mol-gl/webgl/texture';
10
- import { Theme } from '../../../../mol-theme/theme';
11
- import { ParamDefinition as PD } from '../../../../mol-util/param-definition';
12
- export declare const ColorSmoothingParams: {
13
- smoothColors: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "off"> | PD.NamedParams<PD.Normalize<unknown>, "auto"> | PD.NamedParams<PD.Normalize<{
14
- resolutionFactor: number;
15
- sampleStride: number;
16
- }>, "on">>;
17
- };
18
- export declare type ColorSmoothingParams = typeof ColorSmoothingParams;
19
- export declare function getColorSmoothingProps(props: PD.Values<ColorSmoothingParams>, theme: Theme, resolution?: number): {
20
- resolution: number;
21
- stride: number;
22
- } | undefined;
23
- export declare function applyMeshColorSmoothing(values: MeshValues, resolution: number, stride: number, webgl?: WebGLContext, colorTexture?: Texture): void;
24
- export declare function applyTextureMeshColorSmoothing(values: TextureMeshValues, resolution: number, stride: number, webgl: WebGLContext, colorTexture?: Texture): void;
@@ -1,100 +0,0 @@
1
- "use strict";
2
- /**
3
- * Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
4
- *
5
- * @author Alexander Rose <alexander.rose@weirdbyte.de>
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.applyTextureMeshColorSmoothing = exports.applyMeshColorSmoothing = exports.getColorSmoothingProps = exports.ColorSmoothingParams = void 0;
9
- var color_smoothing_1 = require("../../../../mol-geo/geometry/mesh/color-smoothing");
10
- var color_smoothing_2 = require("../../../../mol-geo/geometry/texture-mesh/color-smoothing");
11
- var interpolate_1 = require("../../../../mol-math/interpolate");
12
- var mol_util_1 = require("../../../../mol-util");
13
- var param_definition_1 = require("../../../../mol-util/param-definition");
14
- exports.ColorSmoothingParams = {
15
- smoothColors: param_definition_1.ParamDefinition.MappedStatic('auto', {
16
- auto: param_definition_1.ParamDefinition.Group({}),
17
- on: param_definition_1.ParamDefinition.Group({
18
- resolutionFactor: param_definition_1.ParamDefinition.Numeric(2, { min: 0.5, max: 6, step: 0.1 }),
19
- sampleStride: param_definition_1.ParamDefinition.Numeric(3, { min: 1, max: 12, step: 1 }),
20
- }),
21
- off: param_definition_1.ParamDefinition.Group({})
22
- }),
23
- };
24
- function getColorSmoothingProps(props, theme, resolution) {
25
- if ((props.smoothColors.name === 'on' || (props.smoothColors.name === 'auto' && theme.color.preferSmoothing)) && resolution && resolution < 3) {
26
- var stride = 3;
27
- if (props.smoothColors.name === 'on') {
28
- resolution *= props.smoothColors.params.resolutionFactor;
29
- stride = props.smoothColors.params.sampleStride;
30
- }
31
- else {
32
- // https://graphtoy.com/?f1(x,t)=(2-smoothstep(0,1.1,x))*x&coords=0.7,0.6,1.8
33
- resolution *= 2 - (0, interpolate_1.smoothstep)(0, 1.1, resolution);
34
- resolution = Math.max(0.5, resolution);
35
- if (resolution > 1.2)
36
- stride = 2;
37
- }
38
- return { resolution: resolution, stride: stride };
39
- }
40
- ;
41
- }
42
- exports.getColorSmoothingProps = getColorSmoothingProps;
43
- function isSupportedColorType(x) {
44
- return x === 'group' || x === 'groupInstance';
45
- }
46
- function applyMeshColorSmoothing(values, resolution, stride, webgl, colorTexture) {
47
- if (!isSupportedColorType(values.dColorType.ref.value))
48
- return;
49
- var smoothingData = (0, color_smoothing_1.calcMeshColorSmoothing)({
50
- vertexCount: values.uVertexCount.ref.value,
51
- instanceCount: values.uInstanceCount.ref.value,
52
- groupCount: values.uGroupCount.ref.value,
53
- transformBuffer: values.aTransform.ref.value,
54
- instanceBuffer: values.aInstance.ref.value,
55
- positionBuffer: values.aPosition.ref.value,
56
- groupBuffer: values.aGroup.ref.value,
57
- colorData: values.tColor.ref.value,
58
- colorType: values.dColorType.ref.value,
59
- boundingSphere: values.boundingSphere.ref.value,
60
- invariantBoundingSphere: values.invariantBoundingSphere.ref.value,
61
- }, resolution, stride, webgl, colorTexture);
62
- if (smoothingData.kind === 'volume') {
63
- mol_util_1.ValueCell.updateIfChanged(values.dColorType, smoothingData.type);
64
- mol_util_1.ValueCell.update(values.tColorGrid, smoothingData.texture);
65
- mol_util_1.ValueCell.update(values.uColorTexDim, smoothingData.gridTexDim);
66
- mol_util_1.ValueCell.update(values.uColorGridDim, smoothingData.gridDim);
67
- mol_util_1.ValueCell.update(values.uColorGridTransform, smoothingData.gridTransform);
68
- }
69
- else if (smoothingData.kind === 'vertex') {
70
- mol_util_1.ValueCell.updateIfChanged(values.dColorType, smoothingData.type);
71
- mol_util_1.ValueCell.update(values.tColor, smoothingData.texture);
72
- mol_util_1.ValueCell.update(values.uColorTexDim, smoothingData.texDim);
73
- }
74
- }
75
- exports.applyMeshColorSmoothing = applyMeshColorSmoothing;
76
- function applyTextureMeshColorSmoothing(values, resolution, stride, webgl, colorTexture) {
77
- if (!isSupportedColorType(values.dColorType.ref.value))
78
- return;
79
- stride *= 3; // triple because TextureMesh is never indexed (no elements buffer)
80
- var smoothingData = (0, color_smoothing_2.calcTextureMeshColorSmoothing)({
81
- vertexCount: values.uVertexCount.ref.value,
82
- instanceCount: values.uInstanceCount.ref.value,
83
- groupCount: values.uGroupCount.ref.value,
84
- transformBuffer: values.aTransform.ref.value,
85
- instanceBuffer: values.aInstance.ref.value,
86
- positionTexture: values.tPosition.ref.value,
87
- groupTexture: values.tGroup.ref.value,
88
- colorData: values.tColor.ref.value,
89
- colorType: values.dColorType.ref.value,
90
- boundingSphere: values.boundingSphere.ref.value,
91
- invariantBoundingSphere: values.invariantBoundingSphere.ref.value,
92
- }, resolution, stride, webgl, colorTexture);
93
- mol_util_1.ValueCell.updateIfChanged(values.dColorType, smoothingData.type);
94
- mol_util_1.ValueCell.update(values.tColorGrid, smoothingData.texture);
95
- mol_util_1.ValueCell.update(values.uColorTexDim, smoothingData.gridTexDim);
96
- mol_util_1.ValueCell.update(values.uColorGridDim, smoothingData.gridDim);
97
- mol_util_1.ValueCell.update(values.uColorGridTransform, smoothingData.gridTransform);
98
- }
99
- exports.applyTextureMeshColorSmoothing = applyTextureMeshColorSmoothing;
100
- //# sourceMappingURL=color.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"color.js","sourceRoot":"","sources":["../../../../../../src/mol-repr/structure/visual/util/color.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,qFAA2F;AAC3F,6FAA0G;AAK1G,gEAA8D;AAE9D,iDAAiD;AACjD,0EAA8E;AAEjE,QAAA,oBAAoB,GAAG;IAChC,YAAY,EAAE,kCAAE,CAAC,YAAY,CAAC,MAAM,EAAE;QAClC,IAAI,EAAE,kCAAE,CAAC,KAAK,CAAC,EAAE,CAAC;QAClB,EA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CAAC,SAAS,CAAC,GAAG,CAAC,KAAK;QAC1C,eAAe,EAAE,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK;QAC3C,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK;QACrC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK;QAClC,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK;QACtC,cAAc,EAAE,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,KAAK;QAC/C,uBAAuB,EAAE,MAAM,CAAC,uBAAuB,CAAC,GAAG,CAAC,KAAK;KACpE,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC;IAE5C,oBAAS,CAAC,eAAe,CAAC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;IACjE,oBAAS,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC3D,oBAAS,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IAChE,oBAAS,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC9D,oBAAS,CAAC,MAAM,CAAC,MAAM,CAAC,mBAAmB,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;AAC9E,CAAC;AAxBD,wEAwBC"}
File without changes
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=shader.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shader.spec.js","sourceRoot":"","sources":["../../../src/mol-gl/_spec/shader.spec.ts"],"names":[],"mappings":""}
@@ -1,20 +0,0 @@
1
- /**
2
- * Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
- *
4
- * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
- */
6
- import { WebGLContext } from '../../mol-gl/webgl/context';
7
- import { Texture } from '../../mol-gl/webgl/texture';
8
- import { TextureSpec, UniformSpec, Values } from '../../mol-gl/renderable/schema';
9
- import { ComputeRenderable } from '../../mol-gl/renderable';
10
- declare const CopySchema: {
11
- tColor: TextureSpec<"texture">;
12
- uTexSize: UniformSpec<"v2">;
13
- drawCount: import("../../mol-gl/renderable/schema").ValueSpec<"number">;
14
- instanceCount: import("../../mol-gl/renderable/schema").ValueSpec<"number">;
15
- aPosition: import("../../mol-gl/renderable/schema").AttributeSpec<"float32">;
16
- uQuadScale: UniformSpec<"v2">;
17
- };
18
- export declare type CopyRenderable = ComputeRenderable<Values<typeof CopySchema>>;
19
- export declare function getCopyRenderable(ctx: WebGLContext, colorTexture: Texture): CopyRenderable;
20
- export {};
@@ -1,24 +0,0 @@
1
- /**
2
- * Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
- *
4
- * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
- */
6
- import { __assign } from "tslib";
7
- import { QuadSchema, QuadValues } from '../../mol-gl/compute/util';
8
- import { TextureSpec, UniformSpec } from '../../mol-gl/renderable/schema';
9
- import { createComputeRenderable } from '../../mol-gl/renderable';
10
- import { ShaderCode } from '../../mol-gl/shader-code';
11
- import { createComputeRenderItem } from '../../mol-gl/webgl/render-item';
12
- import { ValueCell } from '../../mol-util';
13
- import { Vec2 } from '../../mol-math/linear-algebra';
14
- import { quad_vert } from '../../mol-gl/shader/quad.vert';
15
- import { copy_frag } from '../../mol-gl/shader/copy.frag';
16
- var CopySchema = __assign(__assign({}, QuadSchema), { tColor: TextureSpec('texture', 'rgba', 'ubyte', 'nearest'), uTexSize: UniformSpec('v2') });
17
- var CopyShaderCode = ShaderCode('copy', quad_vert, copy_frag);
18
- export function getCopyRenderable(ctx, colorTexture) {
19
- var values = __assign(__assign({}, QuadValues), { tColor: ValueCell.create(colorTexture), uTexSize: ValueCell.create(Vec2.create(colorTexture.getWidth(), colorTexture.getHeight())) });
20
- var schema = __assign({}, CopySchema);
21
- var renderItem = createComputeRenderItem(ctx, 'triangles', CopyShaderCode, schema, values);
22
- return createComputeRenderable(renderItem, values);
23
- }
24
- //# sourceMappingURL=copy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"copy.js","sourceRoot":"","sources":["../../../src/mol-gl/compute/copy.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAIH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAU,MAAM,gCAAgC,CAAC;AAClF,OAAO,EAAqB,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE1D,IAAM,UAAU,yBACT,UAAU,KACb,MAAM,EAAE,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,CAAC,EAC1D,QAAQ,EAAE,WAAW,CAAC,IAAI,CAAC,GAC9B,CAAC;AACF,IAAM,cAAc,GAAG,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;AAGhE,MAAM,UAAU,iBAAiB,CAAC,GAAiB,EAAE,YAAqB;IACtE,IAAM,MAAM,yBACL,UAAU,KACb,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,EACtC,QAAQ,EAAE,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,EAAE,YAAY,CAAC,SAAS,EAAE,CAAC,CAAC,GAC7F,CAAC;IAEF,IAAM,MAAM,gBAAQ,UAAU,CAAE,CAAC;IACjC,IAAM,UAAU,GAAG,uBAAuB,CAAC,GAAG,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAE7F,OAAO,uBAAuB,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AACvD,CAAC"}
@@ -1,35 +0,0 @@
1
- /**
2
- * Copyright (c) 2019-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
- *
4
- * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
- */
6
- import { ParamDefinition as PD } from '../../../mol-util/param-definition';
7
- import { UnitsVisual } from '../units-visual';
8
- import { VisualContext } from '../../visual';
9
- import { Unit, Structure } from '../../../mol-model/structure';
10
- import { Theme } from '../../../mol-theme/theme';
11
- import { Mesh } from '../../../mol-geo/geometry/mesh/mesh';
12
- export declare const OrientationAxesMeshParams: {
13
- sizeFactor: PD.Numeric;
14
- axesScale: PD.Numeric;
15
- radialSegments: PD.Numeric;
16
- detail: PD.Numeric;
17
- unitKinds: PD.MultiSelect<"atomic" | "spheres" | "gaussians">;
18
- includeParent: PD.BooleanParam;
19
- doubleSided: PD.BooleanParam;
20
- flipSided: PD.BooleanParam;
21
- flatShaded: PD.BooleanParam;
22
- ignoreLight: PD.BooleanParam;
23
- xrayShaded: PD.BooleanParam;
24
- alpha: PD.Numeric;
25
- quality: PD.Select<"custom" | "auto" | "highest" | "higher" | "high" | "medium" | "low" | "lower" | "lowest">;
26
- };
27
- export declare type OrientationAxesMeshParams = typeof OrientationAxesMeshParams;
28
- export declare function OrientationAxesMeshVisual(materialId: number): UnitsVisual<OrientationAxesMeshParams>;
29
- export interface OrientationAxesMeshProps {
30
- detail: number;
31
- radialSegments: number;
32
- sizeFactor: number;
33
- axesScale: number;
34
- }
35
- export declare function createOrientationAxesMesh(ctx: VisualContext, unit: Unit, structure: Structure, theme: Theme, props: OrientationAxesMeshProps, mesh?: Mesh): Mesh;
@@ -1,43 +0,0 @@
1
- /**
2
- * Copyright (c) 2019-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
- *
4
- * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
- */
6
- import { __assign } from "tslib";
7
- import { ParamDefinition as PD } from '../../../mol-util/param-definition';
8
- import { UnitsMeshParams, UnitsMeshVisual } from '../units-visual';
9
- import { Mesh } from '../../../mol-geo/geometry/mesh/mesh';
10
- import { MeshBuilder } from '../../../mol-geo/geometry/mesh/mesh-builder';
11
- import { addAxes } from '../../../mol-geo/geometry/mesh/builder/axes';
12
- import { Sphere3D } from '../../../mol-math/geometry';
13
- import { BaseGeometry } from '../../../mol-geo/geometry/base';
14
- import { eachUnit, getUnitLoci, isUnitApplicable, UnitIterator } from './util/orientation';
15
- export var OrientationAxesMeshParams = __assign(__assign({}, UnitsMeshParams), { sizeFactor: PD.Numeric(1, { min: 0, max: 2, step: 0.1 }), axesScale: PD.Numeric(1, { min: 0, max: 20, step: 0.1 }), radialSegments: PD.Numeric(16, { min: 2, max: 56, step: 2 }, BaseGeometry.CustomQualityParamInfo), detail: PD.Numeric(0, { min: 0, max: 3, step: 1 }, BaseGeometry.CustomQualityParamInfo) });
16
- export function OrientationAxesMeshVisual(materialId) {
17
- return UnitsMeshVisual({
18
- defaultProps: PD.getDefaultValues(OrientationAxesMeshParams),
19
- createGeometry: createOrientationAxesMesh,
20
- createLocationIterator: UnitIterator,
21
- getLoci: getUnitLoci,
22
- eachLocation: eachUnit,
23
- setUpdateState: function (state, newProps, currentProps) {
24
- state.createGeometry = (newProps.sizeFactor !== currentProps.sizeFactor ||
25
- newProps.detail !== currentProps.detail);
26
- }
27
- }, materialId);
28
- }
29
- export function createOrientationAxesMesh(ctx, unit, structure, theme, props, mesh) {
30
- if (!isUnitApplicable(unit))
31
- return Mesh.createEmpty(mesh);
32
- var detail = props.detail, sizeFactor = props.sizeFactor, radialSegments = props.radialSegments, axesScale = props.axesScale;
33
- var vertexCount = 256;
34
- var builderState = MeshBuilder.createState(vertexCount, vertexCount / 2, mesh);
35
- var axes = unit.principalAxes.momentsAxes;
36
- builderState.currentGroup = 0;
37
- addAxes(builderState, axes, axesScale, detail, radialSegments);
38
- var m = MeshBuilder.getMesh(builderState);
39
- var sphere = Sphere3D.expand(Sphere3D(), unit.boundary.sphere, 1 * props.sizeFactor);
40
- m.setBoundingSphere(sphere);
41
- return m;
42
- }
43
- //# sourceMappingURL=orientation-axes-mesh.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"orientation-axes-mesh.js","sourceRoot":"","sources":["../../../../src/mol-repr/structure/visual/orientation-axes-mesh.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,EAAE,eAAe,IAAI,EAAE,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAe,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAKhF,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,MAAM,6CAA6C,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAE3F,MAAM,CAAC,IAAM,yBAAyB,yBAC/B,eAAe,KAClB,UAAU,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,EACxD,SAAS,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,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B,IAAM,YAAY,GAAG,WAAW,CAAC,WAAW,CAAC,WAAW,EAAE,WAAW,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;IACjF,IAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;IAE5C,YAAY,CAAC,YAAY,GAAG,CAAC,CAAC;IAC9B,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;IAE/D,IAAM,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IAE5C,IAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;IACvF,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAE5B,OAAO,CAAC,CAAC;AACb,CAAC"}
@@ -1,31 +0,0 @@
1
- /**
2
- * Copyright (c) 2019-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
- *
4
- * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
- */
6
- import { ParamDefinition as PD } from '../../../mol-util/param-definition';
7
- import { UnitsVisual } from '../../../mol-repr/structure/units-visual';
8
- import { VisualContext } from '../../../mol-repr/visual';
9
- import { Unit, Structure } from '../../../mol-model/structure';
10
- import { Theme } from '../../../mol-theme/theme';
11
- import { Mesh } from '../../../mol-geo/geometry/mesh/mesh';
12
- export declare const OrientationEllipsoidMeshParams: {
13
- sizeFactor: PD.Numeric;
14
- detail: PD.Numeric;
15
- unitKinds: PD.MultiSelect<"atomic" | "spheres" | "gaussians">;
16
- includeParent: PD.BooleanParam;
17
- doubleSided: PD.BooleanParam;
18
- flipSided: PD.BooleanParam;
19
- flatShaded: PD.BooleanParam;
20
- ignoreLight: PD.BooleanParam;
21
- xrayShaded: PD.BooleanParam;
22
- alpha: PD.Numeric;
23
- quality: PD.Select<"custom" | "auto" | "highest" | "higher" | "high" | "medium" | "low" | "lower" | "lowest">;
24
- };
25
- export declare type OrientationEllipsoidMeshParams = typeof OrientationEllipsoidMeshParams;
26
- export declare function OrientationEllipsoidMeshVisual(materialId: number): UnitsVisual<OrientationEllipsoidMeshParams>;
27
- export interface OrientationEllipsoidMeshProps {
28
- detail: number;
29
- sizeFactor: number;
30
- }
31
- export declare function createOrientationEllipsoidMesh(ctx: VisualContext, unit: Unit, structure: Structure, theme: Theme, props: OrientationEllipsoidMeshProps, mesh?: Mesh): Mesh;
@@ -1,48 +0,0 @@
1
- /**
2
- * Copyright (c) 2019-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
- *
4
- * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
- */
6
- import { __assign } from "tslib";
7
- import { ParamDefinition as PD } from '../../../mol-util/param-definition';
8
- import { UnitsMeshParams, UnitsMeshVisual } from '../../../mol-repr/structure/units-visual';
9
- import { Mesh } from '../../../mol-geo/geometry/mesh/mesh';
10
- import { MeshBuilder } from '../../../mol-geo/geometry/mesh/mesh-builder';
11
- import { Vec3 } from '../../../mol-math/linear-algebra';
12
- import { addEllipsoid } from '../../../mol-geo/geometry/mesh/builder/ellipsoid';
13
- import { Axes3D, Sphere3D } from '../../../mol-math/geometry';
14
- import { BaseGeometry } from '../../../mol-geo/geometry/base';
15
- import { eachUnit, getUnitLoci, isUnitApplicable, UnitIterator } from './util/orientation';
16
- export var OrientationEllipsoidMeshParams = __assign(__assign({}, UnitsMeshParams), { sizeFactor: PD.Numeric(1, { min: 0, max: 2, step: 0.1 }), detail: PD.Numeric(0, { min: 0, max: 3, step: 1 }, BaseGeometry.CustomQualityParamInfo) });
17
- export function OrientationEllipsoidMeshVisual(materialId) {
18
- return UnitsMeshVisual({
19
- defaultProps: PD.getDefaultValues(OrientationEllipsoidMeshParams),
20
- createGeometry: createOrientationEllipsoidMesh,
21
- createLocationIterator: UnitIterator,
22
- getLoci: getUnitLoci,
23
- eachLocation: eachUnit,
24
- setUpdateState: function (state, newProps, currentProps) {
25
- state.createGeometry = (newProps.sizeFactor !== currentProps.sizeFactor ||
26
- newProps.detail !== currentProps.detail);
27
- }
28
- }, materialId);
29
- }
30
- export function createOrientationEllipsoidMesh(ctx, unit, structure, theme, props, mesh) {
31
- if (!isUnitApplicable(unit))
32
- return Mesh.createEmpty(mesh);
33
- var detail = props.detail, sizeFactor = props.sizeFactor;
34
- var vertexCount = 256;
35
- var builderState = MeshBuilder.createState(vertexCount, vertexCount / 2, mesh);
36
- var axes = unit.principalAxes.boxAxes;
37
- var origin = axes.origin, dirA = axes.dirA, dirB = axes.dirB;
38
- var size = Axes3D.size(Vec3(), axes);
39
- Vec3.scale(size, size, sizeFactor / 2);
40
- var radiusScale = Vec3.create(size[2], size[1], size[0]);
41
- builderState.currentGroup = 0;
42
- addEllipsoid(builderState, origin, dirA, dirB, radiusScale, detail + 1);
43
- var m = MeshBuilder.getMesh(builderState);
44
- var sphere = Sphere3D.expand(Sphere3D(), unit.boundary.sphere, 1 * props.sizeFactor);
45
- m.setBoundingSphere(sphere);
46
- return m;
47
- }
48
- //# sourceMappingURL=orientation-ellipsoid-mesh%20copy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"orientation-ellipsoid-mesh copy.js","sourceRoot":"","sources":["../../../../src/mol-repr/structure/visual/orientation-ellipsoid-mesh copy.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAEH,OAAO,EAAE,eAAe,IAAI,EAAE,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAe,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAKzG,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,kDAAkD,CAAC;AAChF,OAAO,EAAE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3
- *
4
- * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
- */
6
- import { MeshValues } from '../../../../mol-gl/renderable/mesh';
7
- import { TextureMeshValues } from '../../../../mol-gl/renderable/texture-mesh';
8
- import { WebGLContext } from '../../../../mol-gl/webgl/context';
9
- import { Texture } from '../../../../mol-gl/webgl/texture';
10
- import { Theme } from '../../../../mol-theme/theme';
11
- import { ParamDefinition as PD } from '../../../../mol-util/param-definition';
12
- export declare const ColorSmoothingParams: {
13
- smoothColors: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "off"> | PD.NamedParams<PD.Normalize<{
14
- resolutionFactor: number;
15
- sampleStride: number;
16
- }>, "on"> | PD.NamedParams<PD.Normalize<unknown>, "auto">>;
17
- };
18
- export declare type ColorSmoothingParams = typeof ColorSmoothingParams;
19
- export declare function getColorSmoothingProps(props: PD.Values<ColorSmoothingParams>, theme: Theme, resolution?: number): {
20
- resolution: number;
21
- stride: number;
22
- } | undefined;
23
- export declare function applyMeshColorSmoothing(values: MeshValues, resolution: number, stride: number, webgl?: WebGLContext, colorTexture?: Texture): void;
24
- export declare function applyTextureMeshColorSmoothing(values: TextureMeshValues, resolution: number, stride: number, webgl: WebGLContext, colorTexture?: Texture): void;
@@ -1,94 +0,0 @@
1
- /**
2
- * Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
- *
4
- * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
- */
6
- import { calcMeshColorSmoothing } from '../../../../mol-geo/geometry/mesh/color-smoothing';
7
- import { calcTextureMeshColorSmoothing } from '../../../../mol-geo/geometry/texture-mesh/color-smoothing';
8
- import { smoothstep } from '../../../../mol-math/interpolate';
9
- import { ValueCell } from '../../../../mol-util';
10
- import { ParamDefinition as PD } from '../../../../mol-util/param-definition';
11
- export var ColorSmoothingParams = {
12
- smoothColors: PD.MappedStatic('auto', {
13
- auto: PD.Group({}),
14
- on: PD.Group({
15
- resolutionFactor: PD.Numeric(2, { min: 0.5, max: 6, step: 0.1 }),
16
- sampleStride: PD.Numeric(3, { min: 1, max: 12, step: 1 }),
17
- }),
18
- off: PD.Group({})
19
- }),
20
- };
21
- export function getColorSmoothingProps(props, theme, resolution) {
22
- if ((props.smoothColors.name === 'on' || (props.smoothColors.name === 'auto' && theme.color.preferSmoothing)) && resolution && resolution < 3) {
23
- var stride = 3;
24
- if (props.smoothColors.name === 'on') {
25
- resolution *= props.smoothColors.params.resolutionFactor;
26
- stride = props.smoothColors.params.sampleStride;
27
- }
28
- else {
29
- // https://graphtoy.com/?f1(x,t)=(2-smoothstep(0,1.1,x))*x&coords=0.7,0.6,1.8
30
- resolution *= 2 - smoothstep(0, 1.1, resolution);
31
- resolution = Math.max(0.5, resolution);
32
- if (resolution > 1.2)
33
- stride = 2;
34
- }
35
- return { resolution: resolution, stride: stride };
36
- }
37
- ;
38
- }
39
- function isSupportedColorType(x) {
40
- return x === 'group' || x === 'groupInstance';
41
- }
42
- export function applyMeshColorSmoothing(values, resolution, stride, webgl, colorTexture) {
43
- if (!isSupportedColorType(values.dColorType.ref.value))
44
- return;
45
- var smoothingData = calcMeshColorSmoothing({
46
- vertexCount: values.uVertexCount.ref.value,
47
- instanceCount: values.uInstanceCount.ref.value,
48
- groupCount: values.uGroupCount.ref.value,
49
- transformBuffer: values.aTransform.ref.value,
50
- instanceBuffer: values.aInstance.ref.value,
51
- positionBuffer: values.aPosition.ref.value,
52
- groupBuffer: values.aGroup.ref.value,
53
- colorData: values.tColor.ref.value,
54
- colorType: values.dColorType.ref.value,
55
- boundingSphere: values.boundingSphere.ref.value,
56
- invariantBoundingSphere: values.invariantBoundingSphere.ref.value,
57
- }, resolution, stride, webgl, colorTexture);
58
- if (smoothingData.kind === 'volume') {
59
- ValueCell.updateIfChanged(values.dColorType, smoothingData.type);
60
- ValueCell.update(values.tColorGrid, smoothingData.texture);
61
- ValueCell.update(values.uColorTexDim, smoothingData.gridTexDim);
62
- ValueCell.update(values.uColorGridDim, smoothingData.gridDim);
63
- ValueCell.update(values.uColorGridTransform, smoothingData.gridTransform);
64
- }
65
- else if (smoothingData.kind === 'vertex') {
66
- ValueCell.updateIfChanged(values.dColorType, smoothingData.type);
67
- ValueCell.update(values.tColor, smoothingData.texture);
68
- ValueCell.update(values.uColorTexDim, smoothingData.texDim);
69
- }
70
- }
71
- export function applyTextureMeshColorSmoothing(values, resolution, stride, webgl, colorTexture) {
72
- if (!isSupportedColorType(values.dColorType.ref.value))
73
- return;
74
- stride *= 3; // triple because TextureMesh is never indexed (no elements buffer)
75
- var smoothingData = calcTextureMeshColorSmoothing({
76
- vertexCount: values.uVertexCount.ref.value,
77
- instanceCount: values.uInstanceCount.ref.value,
78
- groupCount: values.uGroupCount.ref.value,
79
- transformBuffer: values.aTransform.ref.value,
80
- instanceBuffer: values.aInstance.ref.value,
81
- positionTexture: values.tPosition.ref.value,
82
- groupTexture: values.tGroup.ref.value,
83
- colorData: values.tColor.ref.value,
84
- colorType: values.dColorType.ref.value,
85
- boundingSphere: values.boundingSphere.ref.value,
86
- invariantBoundingSphere: values.invariantBoundingSphere.ref.value,
87
- }, resolution, stride, webgl, colorTexture);
88
- ValueCell.updateIfChanged(values.dColorType, smoothingData.type);
89
- ValueCell.update(values.tColorGrid, smoothingData.texture);
90
- ValueCell.update(values.uColorTexDim, smoothingData.gridTexDim);
91
- ValueCell.update(values.uColorGridDim, smoothingData.gridDim);
92
- ValueCell.update(values.uColorGridTransform, smoothingData.gridTransform);
93
- }
94
- //# sourceMappingURL=color.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"color.js","sourceRoot":"","sources":["../../../../../src/mol-repr/structure/visual/util/color.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAC;AAC3F,OAAO,EAAE,6BAA6B,EAAE,MAAM,2DAA2D,CAAC;AAK1G,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAE,MA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
6
- import { Unit, StructureElement } from '../../../../mol-model/structure';
7
- import { PickingId } from '../../../../mol-geo/geometry/picking';
8
- import { Interval } from '../../../../mol-data/int';
9
- import { Loci } from '../../../../mol-model/loci';
10
- import { LocationIterator } from '../../../../mol-geo/util/location-iterator';
11
- import { StructureGroup } from './common';
12
- export declare function isUnitApplicable(unit: Unit): boolean;
13
- export declare function UnitIterator(structureGroup: StructureGroup): LocationIterator;
14
- export declare function getUnitLoci(pickingId: PickingId, structureGroup: StructureGroup, id: number): StructureElement.Loci | {
15
- kind: "empty-loci";
16
- };
17
- export declare function eachUnit(loci: Loci, structureGroup: StructureGroup, apply: (interval: Interval) => boolean): boolean;
@@ -1,71 +0,0 @@
1
- /**
2
- * Copyright (c) 2019-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
- *
4
- * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
- */
6
- import { Unit, Structure, StructureElement } from '../../../../mol-model/structure';
7
- import { OrderedSet, Interval } from '../../../../mol-data/int';
8
- import { EmptyLoci } from '../../../../mol-model/loci';
9
- import { LocationIterator } from '../../../../mol-geo/util/location-iterator';
10
- export function isUnitApplicable(unit) {
11
- if (Unit.Traits.is(unit.traits, 1 /* MultiChain */))
12
- return false;
13
- if (Unit.Traits.is(unit.traits, 2 /* Partitioned */))
14
- return false;
15
- if (Unit.isCoarse(unit))
16
- return true;
17
- if (unit.elements.length === 0)
18
- return false;
19
- unit.model.atomicHierarchy.derived.residue.moleculeType;
20
- var rI = unit.residueIndex[unit.elements[0]];
21
- var mt = unit.model.atomicHierarchy.derived.residue.moleculeType[rI];
22
- if (mt === 3 /* Ion */)
23
- return false;
24
- if (mt === 2 /* Water */)
25
- return false;
26
- return true;
27
- }
28
- export function UnitIterator(structureGroup) {
29
- var group = structureGroup.group, structure = structureGroup.structure;
30
- var groupCount = 1;
31
- var instanceCount = group.units.length;
32
- var location = StructureElement.Location.create(structure);
33
- var getLocation = function (groupIndex, instanceIndex) {
34
- var unit = group.units[instanceIndex];
35
- location.unit = unit;
36
- location.element = unit.elements[groupIndex];
37
- return location;
38
- };
39
- return LocationIterator(groupCount, instanceCount, 1, getLocation);
40
- }
41
- export function getUnitLoci(pickingId, structureGroup, id) {
42
- var objectId = pickingId.objectId, instanceId = pickingId.instanceId;
43
- if (id === objectId) {
44
- var structure = structureGroup.structure, group = structureGroup.group;
45
- var unit = group.units[instanceId];
46
- var indices = OrderedSet.ofBounds(0, unit.elements.length);
47
- return StructureElement.Loci(structure, [{ unit: unit, indices: indices }]);
48
- }
49
- return EmptyLoci;
50
- }
51
- export function eachUnit(loci, structureGroup, apply) {
52
- var changed = false;
53
- if (!StructureElement.Loci.is(loci))
54
- return false;
55
- var structure = structureGroup.structure, group = structureGroup.group;
56
- if (!Structure.areEquivalent(loci.structure, structure))
57
- return false;
58
- var elementCount = group.elements.length;
59
- for (var _i = 0, _a = loci.elements; _i < _a.length; _i++) {
60
- var e = _a[_i];
61
- var unitIdx = group.unitIndexMap.get(e.unit.id);
62
- if (unitIdx !== undefined) {
63
- if (OrderedSet.size(e.indices) === elementCount) {
64
- if (apply(Interval.ofSingleton(unitIdx)))
65
- changed = true;
66
- }
67
- }
68
- }
69
- return changed;
70
- }
71
- //# sourceMappingURL=orientation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"orientation.js","sourceRoot":"","sources":["../../../../../src/mol-repr/structure/visual/util/orientation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEpF,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAQ,MAAM,4BAA4B,CAAC;AAE7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAI9E,MAAM,UAAU,gBAAgB,CAAC,IAAU;IACvC,IAAI,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,I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