molstar 3.0.0-dev.3 → 3.0.0-dev.7

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 (552) hide show
  1. package/build/viewer/embedded.html +5 -5
  2. package/build/viewer/index.html +25 -17
  3. package/build/viewer/molstar.css +1 -1
  4. package/build/viewer/molstar.js +1 -1
  5. package/lib/apps/docking-viewer/index.d.ts +2 -1
  6. package/lib/apps/docking-viewer/index.html +8 -8
  7. package/lib/apps/docking-viewer/index.js +87 -74
  8. package/lib/apps/docking-viewer/viewport.js +2 -1
  9. package/lib/apps/viewer/embedded.html +5 -5
  10. package/lib/apps/viewer/index.d.ts +36 -215
  11. package/lib/apps/viewer/index.html +25 -17
  12. package/lib/apps/viewer/index.js +139 -52
  13. package/lib/cli/cifschema/index.d.ts +1 -1
  14. package/lib/cli/cifschema/index.js +15 -35
  15. package/lib/commonjs/apps/docking-viewer/index.d.ts +2 -1
  16. package/lib/commonjs/apps/docking-viewer/index.js +86 -73
  17. package/lib/commonjs/apps/docking-viewer/viewport.js +2 -1
  18. package/lib/commonjs/apps/viewer/index.d.ts +36 -215
  19. package/lib/commonjs/apps/viewer/index.js +139 -52
  20. package/lib/commonjs/cli/cifschema/index.d.ts +1 -1
  21. package/lib/commonjs/cli/cifschema/index.js +15 -35
  22. package/lib/commonjs/examples/alpha-orbitals/index.js +2 -3
  23. package/lib/commonjs/examples/basic-wrapper/index.js +23 -11
  24. package/lib/commonjs/examples/lighting/index.d.ts +1 -1
  25. package/lib/commonjs/examples/lighting/index.js +58 -41
  26. package/lib/commonjs/examples/proteopedia-wrapper/index.js +26 -14
  27. package/lib/commonjs/extensions/alpha-orbitals/transforms.d.ts +0 -1
  28. package/lib/commonjs/extensions/alpha-orbitals/transforms.js +1 -14
  29. package/lib/commonjs/extensions/anvil/behavior.d.ts +7 -0
  30. package/lib/commonjs/extensions/anvil/representation.d.ts +63 -0
  31. package/lib/commonjs/extensions/cellpack/representation.d.ts +13 -0
  32. package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +39 -0
  33. package/lib/commonjs/extensions/model-archive/quality-assessment/behavior.d.ts +68 -0
  34. package/lib/commonjs/extensions/model-archive/quality-assessment/behavior.js +236 -0
  35. package/lib/commonjs/extensions/model-archive/quality-assessment/color/plddt.d.ts +14 -0
  36. package/lib/commonjs/extensions/model-archive/quality-assessment/color/plddt.js +125 -0
  37. package/lib/commonjs/extensions/model-archive/quality-assessment/color/qmean.d.ts +12 -0
  38. package/lib/commonjs/extensions/model-archive/quality-assessment/color/qmean.js +111 -0
  39. package/lib/commonjs/extensions/model-archive/quality-assessment/prop.d.ts +28 -0
  40. package/lib/commonjs/extensions/model-archive/quality-assessment/prop.js +130 -0
  41. package/lib/commonjs/extensions/mp4-export/controls.d.ts +1 -0
  42. package/lib/commonjs/extensions/mp4-export/controls.js +9 -7
  43. package/lib/commonjs/extensions/pdbe/structure-quality-report/prop.js +1 -1
  44. package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +7 -0
  45. package/lib/commonjs/extensions/rcsb/assembly-symmetry/prop.js +1 -1
  46. package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.d.ts +13 -0
  47. package/lib/commonjs/extensions/rcsb/validation-report/prop.js +1 -1
  48. package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +65 -0
  49. package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +8 -8
  50. package/lib/commonjs/mol-canvas3d/canvas3d.js +12 -4
  51. package/lib/commonjs/mol-canvas3d/helper/bounding-sphere-helper.js +3 -2
  52. package/lib/commonjs/mol-canvas3d/helper/camera-helper.d.ts +7 -0
  53. package/lib/commonjs/mol-canvas3d/helper/camera-helper.js +2 -2
  54. package/lib/commonjs/mol-canvas3d/helper/handle-helper.d.ts +7 -0
  55. package/lib/commonjs/mol-canvas3d/helper/handle-helper.js +2 -2
  56. package/lib/commonjs/mol-canvas3d/helper/helper.d.ts +6 -0
  57. package/lib/commonjs/mol-canvas3d/passes/image.d.ts +4 -0
  58. package/lib/commonjs/mol-canvas3d/passes/multi-sample.d.ts +2 -1
  59. package/lib/commonjs/mol-canvas3d/passes/multi-sample.js +4 -2
  60. package/lib/commonjs/mol-canvas3d/passes/pick.js +9 -9
  61. package/lib/commonjs/mol-canvas3d/passes/postprocessing.d.ts +1 -0
  62. package/lib/commonjs/mol-canvas3d/passes/postprocessing.js +6 -4
  63. package/lib/commonjs/mol-canvas3d/passes/smaa.js +1 -1
  64. package/lib/commonjs/mol-geo/geometry/base.d.ts +20 -0
  65. package/lib/commonjs/mol-geo/geometry/base.js +20 -1
  66. package/lib/commonjs/mol-geo/geometry/clipping-data.d.ts +1 -3
  67. package/lib/commonjs/mol-geo/geometry/clipping-data.js +3 -8
  68. package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +14 -1
  69. package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.js +5 -3
  70. package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.d.ts +11 -0
  71. package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.js +2 -2
  72. package/lib/commonjs/mol-geo/geometry/image/image.d.ts +11 -0
  73. package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +12 -0
  74. package/lib/commonjs/mol-geo/geometry/lines/lines.js +1 -1
  75. package/lib/commonjs/mol-geo/geometry/marker-data.d.ts +0 -1
  76. package/lib/commonjs/mol-geo/geometry/marker-data.js +0 -4
  77. package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.js +1 -1
  78. package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +13 -0
  79. package/lib/commonjs/mol-geo/geometry/mesh/mesh.js +5 -3
  80. package/lib/commonjs/mol-geo/geometry/points/points.d.ts +11 -0
  81. package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +13 -0
  82. package/lib/commonjs/mol-geo/geometry/spheres/spheres.js +5 -3
  83. package/lib/commonjs/mol-geo/geometry/substance-data.js +3 -3
  84. package/lib/commonjs/mol-geo/geometry/text/text.d.ts +11 -0
  85. package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.js +3 -3
  86. package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +13 -0
  87. package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js +5 -3
  88. package/lib/commonjs/mol-gl/render-object.d.ts +2 -1
  89. package/lib/commonjs/mol-gl/render-object.js +10 -10
  90. package/lib/commonjs/mol-gl/renderable/cylinders.d.ts +41 -33
  91. package/lib/commonjs/mol-gl/renderable/cylinders.js +4 -4
  92. package/lib/commonjs/mol-gl/renderable/direct-volume.d.ts +11 -5
  93. package/lib/commonjs/mol-gl/renderable/direct-volume.js +3 -3
  94. package/lib/commonjs/mol-gl/renderable/image.d.ts +10 -4
  95. package/lib/commonjs/mol-gl/renderable/image.js +2 -2
  96. package/lib/commonjs/mol-gl/renderable/lines.d.ts +38 -32
  97. package/lib/commonjs/mol-gl/renderable/lines.js +3 -3
  98. package/lib/commonjs/mol-gl/renderable/mesh.d.ts +38 -30
  99. package/lib/commonjs/mol-gl/renderable/mesh.js +4 -4
  100. package/lib/commonjs/mol-gl/renderable/points.d.ts +10 -4
  101. package/lib/commonjs/mol-gl/renderable/points.js +2 -2
  102. package/lib/commonjs/mol-gl/renderable/schema.d.ts +10 -11
  103. package/lib/commonjs/mol-gl/renderable/schema.js +6 -12
  104. package/lib/commonjs/mol-gl/renderable/spheres.d.ts +41 -33
  105. package/lib/commonjs/mol-gl/renderable/spheres.js +4 -4
  106. package/lib/commonjs/mol-gl/renderable/text.d.ts +10 -4
  107. package/lib/commonjs/mol-gl/renderable/text.js +2 -2
  108. package/lib/commonjs/mol-gl/renderable/texture-mesh.d.ts +13 -5
  109. package/lib/commonjs/mol-gl/renderable/texture-mesh.js +3 -3
  110. package/lib/commonjs/mol-gl/renderable.d.ts +0 -1
  111. package/lib/commonjs/mol-gl/renderer.d.ts +12 -12
  112. package/lib/commonjs/mol-gl/renderer.js +12 -74
  113. package/lib/commonjs/mol-gl/scene.d.ts +2 -2
  114. package/lib/commonjs/mol-gl/scene.js +7 -5
  115. package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +1 -1
  116. package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.js +1 -1
  117. package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
  118. package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
  119. package/lib/commonjs/mol-gl/shader/chunks/assign-marker-varying.glsl.d.ts +1 -1
  120. package/lib/commonjs/mol-gl/shader/chunks/assign-marker-varying.glsl.js +1 -1
  121. package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
  122. package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
  123. package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.d.ts +1 -1
  124. package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.js +1 -1
  125. package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
  126. package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.js +1 -1
  127. package/lib/commonjs/mol-gl/shader/chunks/common-frag-params.glsl.d.ts +1 -1
  128. package/lib/commonjs/mol-gl/shader/chunks/common-frag-params.glsl.js +1 -1
  129. package/lib/commonjs/mol-gl/shader/chunks/common-vert-params.glsl.d.ts +1 -1
  130. package/lib/commonjs/mol-gl/shader/chunks/common-vert-params.glsl.js +1 -1
  131. package/lib/commonjs/mol-gl/shader/chunks/common.glsl.d.ts +1 -1
  132. package/lib/commonjs/mol-gl/shader/chunks/common.glsl.js +1 -1
  133. package/lib/commonjs/mol-gl/shader/chunks/light-frag-params.glsl.d.ts +1 -1
  134. package/lib/commonjs/mol-gl/shader/chunks/light-frag-params.glsl.js +1 -1
  135. package/lib/commonjs/mol-gl/shader/cylinders.frag.d.ts +1 -1
  136. package/lib/commonjs/mol-gl/shader/cylinders.frag.js +1 -1
  137. package/lib/commonjs/mol-gl/shader/direct-volume.frag.d.ts +1 -1
  138. package/lib/commonjs/mol-gl/shader/direct-volume.frag.js +1 -1
  139. package/lib/commonjs/mol-gl/shader/image.frag.d.ts +1 -1
  140. package/lib/commonjs/mol-gl/shader/image.frag.js +1 -1
  141. package/lib/commonjs/mol-gl/shader/mesh.frag.d.ts +1 -1
  142. package/lib/commonjs/mol-gl/shader/mesh.frag.js +1 -1
  143. package/lib/commonjs/mol-gl/shader/mesh.vert.d.ts +1 -1
  144. package/lib/commonjs/mol-gl/shader/mesh.vert.js +1 -1
  145. package/lib/commonjs/mol-gl/shader/postprocessing.frag.d.ts +1 -1
  146. package/lib/commonjs/mol-gl/shader/postprocessing.frag.js +1 -1
  147. package/lib/commonjs/mol-gl/shader/spheres.frag.d.ts +1 -1
  148. package/lib/commonjs/mol-gl/shader/spheres.frag.js +1 -1
  149. package/lib/commonjs/mol-gl/shader-code.d.ts +3 -1
  150. package/lib/commonjs/mol-gl/shader-code.js +42 -13
  151. package/lib/commonjs/mol-gl/webgl/render-item.d.ts +7 -6
  152. package/lib/commonjs/mol-gl/webgl/render-item.js +10 -8
  153. package/lib/commonjs/mol-gl/webgl/resources.js +8 -1
  154. package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +326 -1
  155. package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +326 -1
  156. package/lib/commonjs/mol-math/geometry/symmetry-operator.js +3 -2
  157. package/lib/commonjs/mol-math/linear-algebra/3d/quat.d.ts +9 -1
  158. package/lib/commonjs/mol-math/linear-algebra/3d/quat.js +20 -1
  159. package/lib/commonjs/mol-model/structure/model/model.d.ts +1 -0
  160. package/lib/commonjs/mol-model/structure/model/model.js +15 -5
  161. package/lib/commonjs/mol-model/structure/model/properties/atomic/hierarchy.d.ts +6 -1
  162. package/lib/commonjs/mol-model/structure/model/properties/atomic/hierarchy.js +1 -1
  163. package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-derived.d.ts +1 -1
  164. package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-derived.js +4 -1
  165. package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-index.d.ts +1 -1
  166. package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-index.js +12 -1
  167. package/lib/commonjs/mol-model/structure/model/types.js +9 -0
  168. package/lib/commonjs/mol-model/structure/structure/unit/rings.js +2 -0
  169. package/lib/commonjs/mol-model-formats/shape/ply.d.ts +26 -0
  170. package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +13 -0
  171. package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +13 -0
  172. package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +39 -0
  173. package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +52 -0
  174. package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +12 -0
  175. package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js +3 -1
  176. package/lib/commonjs/mol-plugin/commands.d.ts +4 -4
  177. package/lib/commonjs/mol-plugin/config.d.ts +2 -0
  178. package/lib/commonjs/mol-plugin/config.js +10 -3
  179. package/lib/commonjs/mol-plugin/spec.js +1 -0
  180. package/lib/commonjs/mol-plugin/util/viewport-screenshot.d.ts +21 -0
  181. package/lib/commonjs/mol-plugin-state/actions/structure.d.ts +7 -1
  182. package/lib/commonjs/mol-plugin-state/actions/structure.js +150 -72
  183. package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +5 -355
  184. package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy-preset.js +13 -8
  185. package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy.d.ts +1 -71
  186. package/lib/commonjs/mol-plugin-state/helpers/structure-clipping.d.ts +1 -1
  187. package/lib/commonjs/mol-plugin-state/helpers/structure-clipping.js +1 -1
  188. package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.js +33 -19
  189. package/lib/commonjs/mol-plugin-state/manager/structure/component.d.ts +15 -1
  190. package/lib/commonjs/mol-plugin-state/manager/structure/component.js +13 -8
  191. package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +54 -0
  192. package/lib/commonjs/mol-plugin-ui/controls/parameters.d.ts +3 -2
  193. package/lib/commonjs/mol-plugin-ui/controls/parameters.js +11 -6
  194. package/lib/commonjs/mol-plugin-ui/hooks/use-behavior.d.ts +1 -1
  195. package/lib/commonjs/mol-plugin-ui/hooks/use-behavior.js +8 -17
  196. package/lib/commonjs/mol-plugin-ui/index.d.ts +4 -4
  197. package/lib/commonjs/mol-plugin-ui/index.js +13 -16
  198. package/lib/commonjs/mol-plugin-ui/plugin.d.ts +1 -1
  199. package/lib/commonjs/mol-plugin-ui/plugin.js +76 -10
  200. package/lib/commonjs/mol-plugin-ui/viewport/simple-settings.js +2 -6
  201. package/lib/commonjs/mol-repr/shape/loci/angle.d.ts +13 -0
  202. package/lib/commonjs/mol-repr/shape/loci/common.d.ts +11 -0
  203. package/lib/commonjs/mol-repr/shape/loci/dihedral.d.ts +13 -0
  204. package/lib/commonjs/mol-repr/shape/loci/distance.d.ts +11 -0
  205. package/lib/commonjs/mol-repr/shape/loci/label.d.ts +11 -0
  206. package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +13 -0
  207. package/lib/commonjs/mol-repr/shape/loci/plane.d.ts +13 -0
  208. package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +13 -0
  209. package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +72 -0
  210. package/lib/commonjs/mol-repr/structure/params.d.ts +96 -0
  211. package/lib/commonjs/mol-repr/structure/registry.d.ts +175 -1
  212. package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +39 -0
  213. package/lib/commonjs/mol-repr/structure/representation/backbone.js +2 -1
  214. package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +39 -0
  215. package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.js +2 -1
  216. package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +39 -0
  217. package/lib/commonjs/mol-repr/structure/representation/carbohydrate.js +2 -1
  218. package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +39 -0
  219. package/lib/commonjs/mol-repr/structure/representation/cartoon.js +2 -1
  220. package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +39 -0
  221. package/lib/commonjs/mol-repr/structure/representation/ellipsoid.js +2 -1
  222. package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +39 -0
  223. package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.js +2 -1
  224. package/lib/commonjs/mol-repr/structure/representation/gaussian-volume.d.ts +33 -0
  225. package/lib/commonjs/mol-repr/structure/representation/label.d.ts +36 -3
  226. package/lib/commonjs/mol-repr/structure/representation/line.d.ts +33 -0
  227. package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +39 -0
  228. package/lib/commonjs/mol-repr/structure/representation/molecular-surface.js +2 -1
  229. package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +39 -0
  230. package/lib/commonjs/mol-repr/structure/representation/orientation.js +2 -1
  231. package/lib/commonjs/mol-repr/structure/representation/point.d.ts +33 -0
  232. package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +39 -0
  233. package/lib/commonjs/mol-repr/structure/representation/putty.js +2 -1
  234. package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +39 -0
  235. package/lib/commonjs/mol-repr/structure/representation/spacefill.js +2 -1
  236. package/lib/commonjs/mol-repr/structure/units-visual.d.ts +96 -0
  237. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +26 -0
  238. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-line.d.ts +11 -0
  239. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +26 -0
  240. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.js +2 -2
  241. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.d.ts +11 -0
  242. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.js +2 -2
  243. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +13 -0
  244. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +13 -0
  245. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +13 -0
  246. package/lib/commonjs/mol-repr/structure/visual/element-cross.d.ts +11 -0
  247. package/lib/commonjs/mol-repr/structure/visual/element-point.d.ts +11 -0
  248. package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +26 -0
  249. package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +13 -0
  250. package/lib/commonjs/mol-repr/structure/visual/gaussian-density-volume.d.ts +22 -0
  251. package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +52 -0
  252. package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +11 -0
  253. package/lib/commonjs/mol-repr/structure/visual/label-text.d.ts +13 -2
  254. package/lib/commonjs/mol-repr/structure/visual/label-text.js +2 -2
  255. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +13 -0
  256. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +11 -0
  257. package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +13 -0
  258. package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +13 -0
  259. package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +13 -0
  260. package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +26 -0
  261. package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +26 -0
  262. package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +13 -0
  263. package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +13 -0
  264. package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +13 -0
  265. package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.js +1 -1
  266. package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +13 -0
  267. package/lib/commonjs/mol-repr/structure/visual/util/bond.js +1 -1
  268. package/lib/commonjs/mol-repr/visual.js +11 -7
  269. package/lib/commonjs/mol-repr/volume/direct-volume.d.ts +33 -0
  270. package/lib/commonjs/mol-repr/volume/isosurface.d.ts +76 -0
  271. package/lib/commonjs/mol-repr/volume/isosurface.js +2 -1
  272. package/lib/commonjs/mol-repr/volume/registry.d.ts +35 -0
  273. package/lib/commonjs/mol-repr/volume/representation.d.ts +11 -0
  274. package/lib/commonjs/mol-repr/volume/slice.d.ts +33 -0
  275. package/lib/commonjs/mol-theme/clipping.d.ts +7 -15
  276. package/lib/commonjs/mol-theme/clipping.js +5 -12
  277. package/lib/commonjs/mol-theme/color/illustrative.d.ts +2 -0
  278. package/lib/commonjs/mol-theme/color/illustrative.js +2 -2
  279. package/lib/commonjs/mol-theme/color.d.ts +1 -0
  280. package/lib/commonjs/mol-util/clip.d.ts +49 -0
  281. package/lib/commonjs/mol-util/clip.js +97 -0
  282. package/lib/commonjs/mol-util/material.d.ts +5 -1
  283. package/lib/commonjs/mol-util/material.js +9 -7
  284. package/lib/examples/alpha-orbitals/index.html +1 -0
  285. package/lib/examples/alpha-orbitals/index.js +3 -4
  286. package/lib/examples/basic-wrapper/index.html +3 -2
  287. package/lib/examples/basic-wrapper/index.js +24 -12
  288. package/lib/examples/lighting/index.d.ts +1 -1
  289. package/lib/examples/lighting/index.html +4 -2
  290. package/lib/examples/lighting/index.js +59 -42
  291. package/lib/examples/proteopedia-wrapper/index.html +4 -3
  292. package/lib/examples/proteopedia-wrapper/index.js +27 -15
  293. package/lib/extensions/alpha-orbitals/transforms.d.ts +0 -1
  294. package/lib/extensions/alpha-orbitals/transforms.js +1 -14
  295. package/lib/extensions/anvil/behavior.d.ts +7 -0
  296. package/lib/extensions/anvil/representation.d.ts +63 -0
  297. package/lib/extensions/cellpack/representation.d.ts +13 -0
  298. package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +39 -0
  299. package/lib/extensions/model-archive/quality-assessment/behavior.d.ts +68 -0
  300. package/lib/extensions/model-archive/quality-assessment/behavior.js +233 -0
  301. package/lib/extensions/model-archive/quality-assessment/color/plddt.d.ts +14 -0
  302. package/lib/extensions/model-archive/quality-assessment/color/plddt.js +120 -0
  303. package/lib/extensions/model-archive/quality-assessment/color/qmean.d.ts +12 -0
  304. package/lib/extensions/model-archive/quality-assessment/color/qmean.js +106 -0
  305. package/lib/extensions/model-archive/quality-assessment/prop.d.ts +28 -0
  306. package/lib/extensions/model-archive/quality-assessment/prop.js +127 -0
  307. package/lib/extensions/mp4-export/controls.d.ts +1 -0
  308. package/lib/extensions/mp4-export/controls.js +9 -7
  309. package/lib/extensions/pdbe/structure-quality-report/prop.js +1 -1
  310. package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +7 -0
  311. package/lib/extensions/rcsb/assembly-symmetry/prop.js +1 -1
  312. package/lib/extensions/rcsb/assembly-symmetry/representation.d.ts +13 -0
  313. package/lib/extensions/rcsb/validation-report/prop.js +1 -1
  314. package/lib/extensions/rcsb/validation-report/representation.d.ts +65 -0
  315. package/lib/mol-canvas3d/canvas3d.d.ts +8 -8
  316. package/lib/mol-canvas3d/canvas3d.js +12 -4
  317. package/lib/mol-canvas3d/helper/bounding-sphere-helper.js +3 -2
  318. package/lib/mol-canvas3d/helper/camera-helper.d.ts +7 -0
  319. package/lib/mol-canvas3d/helper/camera-helper.js +2 -2
  320. package/lib/mol-canvas3d/helper/handle-helper.d.ts +7 -0
  321. package/lib/mol-canvas3d/helper/handle-helper.js +2 -2
  322. package/lib/mol-canvas3d/helper/helper.d.ts +6 -0
  323. package/lib/mol-canvas3d/passes/image.d.ts +4 -0
  324. package/lib/mol-canvas3d/passes/multi-sample.d.ts +2 -1
  325. package/lib/mol-canvas3d/passes/multi-sample.js +4 -2
  326. package/lib/mol-canvas3d/passes/pick.js +9 -9
  327. package/lib/mol-canvas3d/passes/postprocessing.d.ts +1 -0
  328. package/lib/mol-canvas3d/passes/postprocessing.js +6 -4
  329. package/lib/mol-canvas3d/passes/smaa.js +1 -1
  330. package/lib/mol-geo/geometry/base.d.ts +20 -0
  331. package/lib/mol-geo/geometry/base.js +20 -1
  332. package/lib/mol-geo/geometry/clipping-data.d.ts +1 -3
  333. package/lib/mol-geo/geometry/clipping-data.js +3 -8
  334. package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +14 -1
  335. package/lib/mol-geo/geometry/cylinders/cylinders.js +5 -3
  336. package/lib/mol-geo/geometry/direct-volume/direct-volume.d.ts +11 -0
  337. package/lib/mol-geo/geometry/direct-volume/direct-volume.js +2 -2
  338. package/lib/mol-geo/geometry/image/image.d.ts +11 -0
  339. package/lib/mol-geo/geometry/lines/lines.d.ts +12 -0
  340. package/lib/mol-geo/geometry/lines/lines.js +1 -1
  341. package/lib/mol-geo/geometry/marker-data.d.ts +0 -1
  342. package/lib/mol-geo/geometry/marker-data.js +0 -4
  343. package/lib/mol-geo/geometry/mesh/color-smoothing.js +1 -1
  344. package/lib/mol-geo/geometry/mesh/mesh.d.ts +13 -0
  345. package/lib/mol-geo/geometry/mesh/mesh.js +5 -3
  346. package/lib/mol-geo/geometry/points/points.d.ts +11 -0
  347. package/lib/mol-geo/geometry/spheres/spheres.d.ts +13 -0
  348. package/lib/mol-geo/geometry/spheres/spheres.js +5 -3
  349. package/lib/mol-geo/geometry/substance-data.js +3 -3
  350. package/lib/mol-geo/geometry/text/text.d.ts +11 -0
  351. package/lib/mol-geo/geometry/texture-mesh/color-smoothing.js +3 -3
  352. package/lib/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +13 -0
  353. package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js +5 -3
  354. package/lib/mol-gl/render-object.d.ts +2 -1
  355. package/lib/mol-gl/render-object.js +10 -10
  356. package/lib/mol-gl/renderable/cylinders.d.ts +41 -33
  357. package/lib/mol-gl/renderable/cylinders.js +5 -5
  358. package/lib/mol-gl/renderable/direct-volume.d.ts +11 -5
  359. package/lib/mol-gl/renderable/direct-volume.js +3 -3
  360. package/lib/mol-gl/renderable/image.d.ts +10 -4
  361. package/lib/mol-gl/renderable/image.js +2 -2
  362. package/lib/mol-gl/renderable/lines.d.ts +38 -32
  363. package/lib/mol-gl/renderable/lines.js +4 -4
  364. package/lib/mol-gl/renderable/mesh.d.ts +38 -30
  365. package/lib/mol-gl/renderable/mesh.js +5 -5
  366. package/lib/mol-gl/renderable/points.d.ts +10 -4
  367. package/lib/mol-gl/renderable/points.js +2 -2
  368. package/lib/mol-gl/renderable/schema.d.ts +10 -11
  369. package/lib/mol-gl/renderable/schema.js +6 -12
  370. package/lib/mol-gl/renderable/spheres.d.ts +41 -33
  371. package/lib/mol-gl/renderable/spheres.js +5 -5
  372. package/lib/mol-gl/renderable/text.d.ts +10 -4
  373. package/lib/mol-gl/renderable/text.js +2 -2
  374. package/lib/mol-gl/renderable/texture-mesh.d.ts +13 -5
  375. package/lib/mol-gl/renderable/texture-mesh.js +3 -3
  376. package/lib/mol-gl/renderable.d.ts +0 -1
  377. package/lib/mol-gl/renderer.d.ts +12 -12
  378. package/lib/mol-gl/renderer.js +13 -75
  379. package/lib/mol-gl/scene.d.ts +2 -2
  380. package/lib/mol-gl/scene.js +7 -5
  381. package/lib/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +1 -1
  382. package/lib/mol-gl/shader/chunks/apply-light-color.glsl.js +1 -1
  383. package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
  384. package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
  385. package/lib/mol-gl/shader/chunks/assign-marker-varying.glsl.d.ts +1 -1
  386. package/lib/mol-gl/shader/chunks/assign-marker-varying.glsl.js +1 -1
  387. package/lib/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
  388. package/lib/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
  389. package/lib/mol-gl/shader/chunks/color-frag-params.glsl.d.ts +1 -1
  390. package/lib/mol-gl/shader/chunks/color-frag-params.glsl.js +1 -1
  391. package/lib/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
  392. package/lib/mol-gl/shader/chunks/color-vert-params.glsl.js +1 -1
  393. package/lib/mol-gl/shader/chunks/common-frag-params.glsl.d.ts +1 -1
  394. package/lib/mol-gl/shader/chunks/common-frag-params.glsl.js +1 -1
  395. package/lib/mol-gl/shader/chunks/common-vert-params.glsl.d.ts +1 -1
  396. package/lib/mol-gl/shader/chunks/common-vert-params.glsl.js +1 -1
  397. package/lib/mol-gl/shader/chunks/common.glsl.d.ts +1 -1
  398. package/lib/mol-gl/shader/chunks/common.glsl.js +1 -1
  399. package/lib/mol-gl/shader/chunks/light-frag-params.glsl.d.ts +1 -1
  400. package/lib/mol-gl/shader/chunks/light-frag-params.glsl.js +1 -1
  401. package/lib/mol-gl/shader/cylinders.frag.d.ts +1 -1
  402. package/lib/mol-gl/shader/cylinders.frag.js +1 -1
  403. package/lib/mol-gl/shader/direct-volume.frag.d.ts +1 -1
  404. package/lib/mol-gl/shader/direct-volume.frag.js +1 -1
  405. package/lib/mol-gl/shader/image.frag.d.ts +1 -1
  406. package/lib/mol-gl/shader/image.frag.js +1 -1
  407. package/lib/mol-gl/shader/mesh.frag.d.ts +1 -1
  408. package/lib/mol-gl/shader/mesh.frag.js +1 -1
  409. package/lib/mol-gl/shader/mesh.vert.d.ts +1 -1
  410. package/lib/mol-gl/shader/mesh.vert.js +1 -1
  411. package/lib/mol-gl/shader/postprocessing.frag.d.ts +1 -1
  412. package/lib/mol-gl/shader/postprocessing.frag.js +1 -1
  413. package/lib/mol-gl/shader/spheres.frag.d.ts +1 -1
  414. package/lib/mol-gl/shader/spheres.frag.js +1 -1
  415. package/lib/mol-gl/shader-code.d.ts +3 -1
  416. package/lib/mol-gl/shader-code.js +42 -13
  417. package/lib/mol-gl/webgl/render-item.d.ts +7 -6
  418. package/lib/mol-gl/webgl/render-item.js +8 -6
  419. package/lib/mol-gl/webgl/resources.js +8 -1
  420. package/lib/mol-io/reader/cif/schema/mmcif.d.ts +326 -1
  421. package/lib/mol-io/reader/cif/schema/mmcif.js +326 -1
  422. package/lib/mol-math/geometry/symmetry-operator.js +3 -2
  423. package/lib/mol-math/linear-algebra/3d/quat.d.ts +9 -1
  424. package/lib/mol-math/linear-algebra/3d/quat.js +20 -1
  425. package/lib/mol-model/structure/model/model.d.ts +1 -0
  426. package/lib/mol-model/structure/model/model.js +15 -5
  427. package/lib/mol-model/structure/model/properties/atomic/hierarchy.d.ts +6 -1
  428. package/lib/mol-model/structure/model/properties/atomic/hierarchy.js +1 -1
  429. package/lib/mol-model/structure/model/properties/utils/atomic-derived.d.ts +1 -1
  430. package/lib/mol-model/structure/model/properties/utils/atomic-derived.js +5 -2
  431. package/lib/mol-model/structure/model/properties/utils/atomic-index.d.ts +1 -1
  432. package/lib/mol-model/structure/model/properties/utils/atomic-index.js +12 -1
  433. package/lib/mol-model/structure/model/types.js +9 -0
  434. package/lib/mol-model/structure/structure/unit/rings.js +2 -0
  435. package/lib/mol-model-formats/shape/ply.d.ts +26 -0
  436. package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +13 -0
  437. package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +13 -0
  438. package/lib/mol-model-props/computed/representations/interactions.d.ts +39 -0
  439. package/lib/mol-model-props/integrative/cross-link-restraint/representation.d.ts +52 -0
  440. package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +12 -0
  441. package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js +3 -1
  442. package/lib/mol-plugin/commands.d.ts +4 -4
  443. package/lib/mol-plugin/config.d.ts +2 -0
  444. package/lib/mol-plugin/config.js +9 -3
  445. package/lib/mol-plugin/spec.js +1 -0
  446. package/lib/mol-plugin/util/viewport-screenshot.d.ts +21 -0
  447. package/lib/mol-plugin/version.js +2 -2
  448. package/lib/mol-plugin-state/actions/structure.d.ts +7 -1
  449. package/lib/mol-plugin-state/actions/structure.js +150 -72
  450. package/lib/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +5 -355
  451. package/lib/mol-plugin-state/builder/structure/hierarchy-preset.js +14 -9
  452. package/lib/mol-plugin-state/builder/structure/hierarchy.d.ts +1 -71
  453. package/lib/mol-plugin-state/helpers/structure-clipping.d.ts +1 -1
  454. package/lib/mol-plugin-state/helpers/structure-clipping.js +1 -1
  455. package/lib/mol-plugin-state/helpers/structure-selection-query.js +34 -20
  456. package/lib/mol-plugin-state/manager/structure/component.d.ts +15 -1
  457. package/lib/mol-plugin-state/manager/structure/component.js +14 -9
  458. package/lib/mol-plugin-state/transforms/representation.d.ts +54 -0
  459. package/lib/mol-plugin-ui/controls/parameters.d.ts +3 -2
  460. package/lib/mol-plugin-ui/controls/parameters.js +12 -7
  461. package/lib/mol-plugin-ui/hooks/use-behavior.d.ts +1 -1
  462. package/lib/mol-plugin-ui/hooks/use-behavior.js +9 -18
  463. package/lib/mol-plugin-ui/index.d.ts +4 -4
  464. package/lib/mol-plugin-ui/index.js +11 -13
  465. package/lib/mol-plugin-ui/plugin.d.ts +1 -1
  466. package/lib/mol-plugin-ui/plugin.js +76 -10
  467. package/lib/mol-plugin-ui/skin/base/components/misc.scss +27 -0
  468. package/lib/mol-plugin-ui/viewport/simple-settings.js +2 -6
  469. package/lib/mol-repr/shape/loci/angle.d.ts +13 -0
  470. package/lib/mol-repr/shape/loci/common.d.ts +11 -0
  471. package/lib/mol-repr/shape/loci/dihedral.d.ts +13 -0
  472. package/lib/mol-repr/shape/loci/distance.d.ts +11 -0
  473. package/lib/mol-repr/shape/loci/label.d.ts +11 -0
  474. package/lib/mol-repr/shape/loci/orientation.d.ts +13 -0
  475. package/lib/mol-repr/shape/loci/plane.d.ts +13 -0
  476. package/lib/mol-repr/shape/model/unitcell.d.ts +13 -0
  477. package/lib/mol-repr/structure/complex-visual.d.ts +72 -0
  478. package/lib/mol-repr/structure/params.d.ts +96 -0
  479. package/lib/mol-repr/structure/registry.d.ts +175 -1
  480. package/lib/mol-repr/structure/representation/backbone.d.ts +39 -0
  481. package/lib/mol-repr/structure/representation/backbone.js +2 -1
  482. package/lib/mol-repr/structure/representation/ball-and-stick.d.ts +39 -0
  483. package/lib/mol-repr/structure/representation/ball-and-stick.js +2 -1
  484. package/lib/mol-repr/structure/representation/carbohydrate.d.ts +39 -0
  485. package/lib/mol-repr/structure/representation/carbohydrate.js +2 -1
  486. package/lib/mol-repr/structure/representation/cartoon.d.ts +39 -0
  487. package/lib/mol-repr/structure/representation/cartoon.js +2 -1
  488. package/lib/mol-repr/structure/representation/ellipsoid.d.ts +39 -0
  489. package/lib/mol-repr/structure/representation/ellipsoid.js +2 -1
  490. package/lib/mol-repr/structure/representation/gaussian-surface.d.ts +39 -0
  491. package/lib/mol-repr/structure/representation/gaussian-surface.js +2 -1
  492. package/lib/mol-repr/structure/representation/gaussian-volume.d.ts +33 -0
  493. package/lib/mol-repr/structure/representation/label.d.ts +36 -3
  494. package/lib/mol-repr/structure/representation/line.d.ts +33 -0
  495. package/lib/mol-repr/structure/representation/molecular-surface.d.ts +39 -0
  496. package/lib/mol-repr/structure/representation/molecular-surface.js +2 -1
  497. package/lib/mol-repr/structure/representation/orientation.d.ts +39 -0
  498. package/lib/mol-repr/structure/representation/orientation.js +2 -1
  499. package/lib/mol-repr/structure/representation/point.d.ts +33 -0
  500. package/lib/mol-repr/structure/representation/putty.d.ts +39 -0
  501. package/lib/mol-repr/structure/representation/putty.js +2 -1
  502. package/lib/mol-repr/structure/representation/spacefill.d.ts +39 -0
  503. package/lib/mol-repr/structure/representation/spacefill.js +2 -1
  504. package/lib/mol-repr/structure/units-visual.d.ts +96 -0
  505. package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +26 -0
  506. package/lib/mol-repr/structure/visual/bond-inter-unit-line.d.ts +11 -0
  507. package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +26 -0
  508. package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.js +2 -2
  509. package/lib/mol-repr/structure/visual/bond-intra-unit-line.d.ts +11 -0
  510. package/lib/mol-repr/structure/visual/bond-intra-unit-line.js +2 -2
  511. package/lib/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +13 -0
  512. package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +13 -0
  513. package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +13 -0
  514. package/lib/mol-repr/structure/visual/element-cross.d.ts +11 -0
  515. package/lib/mol-repr/structure/visual/element-point.d.ts +11 -0
  516. package/lib/mol-repr/structure/visual/element-sphere.d.ts +26 -0
  517. package/lib/mol-repr/structure/visual/ellipsoid-mesh.d.ts +13 -0
  518. package/lib/mol-repr/structure/visual/gaussian-density-volume.d.ts +22 -0
  519. package/lib/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +52 -0
  520. package/lib/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +11 -0
  521. package/lib/mol-repr/structure/visual/label-text.d.ts +13 -2
  522. package/lib/mol-repr/structure/visual/label-text.js +2 -2
  523. package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +13 -0
  524. package/lib/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +11 -0
  525. package/lib/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +13 -0
  526. package/lib/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +13 -0
  527. package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +13 -0
  528. package/lib/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +26 -0
  529. package/lib/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +26 -0
  530. package/lib/mol-repr/structure/visual/polymer-direction-wedge.d.ts +13 -0
  531. package/lib/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +13 -0
  532. package/lib/mol-repr/structure/visual/polymer-trace-mesh.d.ts +13 -0
  533. package/lib/mol-repr/structure/visual/polymer-trace-mesh.js +1 -1
  534. package/lib/mol-repr/structure/visual/polymer-tube-mesh.d.ts +13 -0
  535. package/lib/mol-repr/structure/visual/util/bond.js +1 -1
  536. package/lib/mol-repr/visual.js +11 -7
  537. package/lib/mol-repr/volume/direct-volume.d.ts +33 -0
  538. package/lib/mol-repr/volume/isosurface.d.ts +76 -0
  539. package/lib/mol-repr/volume/isosurface.js +2 -1
  540. package/lib/mol-repr/volume/registry.d.ts +35 -0
  541. package/lib/mol-repr/volume/representation.d.ts +11 -0
  542. package/lib/mol-repr/volume/slice.d.ts +33 -0
  543. package/lib/mol-theme/clipping.d.ts +7 -15
  544. package/lib/mol-theme/clipping.js +5 -12
  545. package/lib/mol-theme/color/illustrative.d.ts +2 -0
  546. package/lib/mol-theme/color/illustrative.js +2 -2
  547. package/lib/mol-theme/color.d.ts +1 -0
  548. package/lib/mol-util/clip.d.ts +49 -0
  549. package/lib/mol-util/clip.js +93 -0
  550. package/lib/mol-util/material.d.ts +5 -1
  551. package/lib/mol-util/material.js +9 -7
  552. package/package.json +5 -3
@@ -0,0 +1,127 @@
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, __awaiter, __generator } from "tslib";
7
+ import { ParamDefinition as PD } from '../../../mol-util/param-definition';
8
+ import { Unit } from '../../../mol-model/structure';
9
+ import { CustomModelProperty } from '../../../mol-model-props/common/custom-model-property';
10
+ import { QuerySymbolRuntime } from '../../../mol-script/runtime/query/compiler';
11
+ import { CustomPropSymbol } from '../../../mol-script/language/symbol';
12
+ import { Type } from '../../../mol-script/language/type';
13
+ import { CustomPropertyDescriptor } from '../../../mol-model/custom-property';
14
+ import { MmcifFormat } from '../../../mol-model-formats/structure/mmcif';
15
+ export { QualityAssessment };
16
+ var QualityAssessment;
17
+ (function (QualityAssessment) {
18
+ var Empty = {
19
+ value: {
20
+ localMetrics: new Map()
21
+ }
22
+ };
23
+ function isApplicable(model, localMetricName) {
24
+ if (!model || !MmcifFormat.is(model.sourceData))
25
+ return false;
26
+ var db = model.sourceData.data.db;
27
+ var hasLocalMetric = (db.ma_qa_metric.id.isDefined &&
28
+ db.ma_qa_metric_local.ordinal_id.isDefined);
29
+ if (localMetricName && hasLocalMetric) {
30
+ for (var i = 0, il = db.ma_qa_metric._rowCount; i < il; i++) {
31
+ if (db.ma_qa_metric.mode.value(i) !== 'local')
32
+ continue;
33
+ if (localMetricName === db.ma_qa_metric.name.value(i))
34
+ return true;
35
+ }
36
+ return false;
37
+ }
38
+ else {
39
+ return hasLocalMetric;
40
+ }
41
+ }
42
+ QualityAssessment.isApplicable = isApplicable;
43
+ function obtain(ctx, model, props) {
44
+ return __awaiter(this, void 0, void 0, function () {
45
+ var _a, ma_qa_metric, ma_qa_metric_local, model_id, label_asym_id, label_seq_id, metric_id, metric_value, index, localMetrics, localNames, i, il, name_1, i, il, labelAsymId, entityIndex, rI, name_2;
46
+ return __generator(this, function (_b) {
47
+ if (!model || !MmcifFormat.is(model.sourceData))
48
+ return [2 /*return*/, Empty];
49
+ _a = model.sourceData.data.db, ma_qa_metric = _a.ma_qa_metric, ma_qa_metric_local = _a.ma_qa_metric_local;
50
+ model_id = ma_qa_metric_local.model_id, label_asym_id = ma_qa_metric_local.label_asym_id, label_seq_id = ma_qa_metric_local.label_seq_id, metric_id = ma_qa_metric_local.metric_id, metric_value = ma_qa_metric_local.metric_value;
51
+ index = model.atomicHierarchy.index;
52
+ localMetrics = new Map();
53
+ localNames = new Map();
54
+ for (i = 0, il = ma_qa_metric._rowCount; i < il; i++) {
55
+ if (ma_qa_metric.mode.value(i) !== 'local')
56
+ continue;
57
+ name_1 = ma_qa_metric.name.value(i);
58
+ if (localMetrics.has(name_1)) {
59
+ console.warn("local ma_qa_metric with name '".concat(name_1, "' already added"));
60
+ continue;
61
+ }
62
+ localMetrics.set(name_1, new Map());
63
+ localNames.set(ma_qa_metric.id.value(i), name_1);
64
+ }
65
+ for (i = 0, il = ma_qa_metric_local._rowCount; i < il; i++) {
66
+ if (model_id.value(i) !== model.modelNum)
67
+ continue;
68
+ labelAsymId = label_asym_id.value(i);
69
+ entityIndex = index.findEntity(labelAsymId);
70
+ rI = index.findResidue(model.entities.data.id.value(entityIndex), labelAsymId, label_seq_id.value(i));
71
+ name_2 = localNames.get(metric_id.value(i));
72
+ localMetrics.get(name_2).set(rI, metric_value.value(i));
73
+ }
74
+ return [2 /*return*/, {
75
+ value: {
76
+ localMetrics: localMetrics,
77
+ pLDDT: localMetrics.get('pLDDT'),
78
+ qmean: localMetrics.get('qmean'),
79
+ }
80
+ }];
81
+ });
82
+ });
83
+ }
84
+ QualityAssessment.obtain = obtain;
85
+ QualityAssessment.symbols = {
86
+ pLDDT: QuerySymbolRuntime.Dynamic(CustomPropSymbol('ma', 'quality-assessment.pLDDT', Type.Num), function (ctx) {
87
+ var _a, _b;
88
+ var _c = ctx.element, unit = _c.unit, element = _c.element;
89
+ if (!Unit.isAtomic(unit))
90
+ return -1;
91
+ var qualityAssessment = QualityAssessmentProvider.get(unit.model).value;
92
+ return (_b = (_a = qualityAssessment === null || qualityAssessment === void 0 ? void 0 : qualityAssessment.pLDDT) === null || _a === void 0 ? void 0 : _a.get(unit.model.atomicHierarchy.residueAtomSegments.index[element])) !== null && _b !== void 0 ? _b : -1;
93
+ }),
94
+ qmean: QuerySymbolRuntime.Dynamic(CustomPropSymbol('ma', 'quality-assessment.qmean', Type.Num), function (ctx) {
95
+ var _a, _b;
96
+ var _c = ctx.element, unit = _c.unit, element = _c.element;
97
+ if (!Unit.isAtomic(unit))
98
+ return -1;
99
+ var qualityAssessment = QualityAssessmentProvider.get(unit.model).value;
100
+ return (_b = (_a = qualityAssessment === null || qualityAssessment === void 0 ? void 0 : qualityAssessment.qmean) === null || _a === void 0 ? void 0 : _a.get(unit.model.atomicHierarchy.residueAtomSegments.index[element])) !== null && _b !== void 0 ? _b : -1;
101
+ }),
102
+ };
103
+ })(QualityAssessment || (QualityAssessment = {}));
104
+ export var QualityAssessmentParams = {};
105
+ export var QualityAssessmentProvider = CustomModelProperty.createProvider({
106
+ label: 'QualityAssessment',
107
+ descriptor: CustomPropertyDescriptor({
108
+ name: 'ma_quality_assessment',
109
+ symbols: QualityAssessment.symbols
110
+ }),
111
+ type: 'static',
112
+ defaultParams: QualityAssessmentParams,
113
+ getParams: function (data) { return QualityAssessmentParams; },
114
+ isApplicable: function (data) { return QualityAssessment.isApplicable(data); },
115
+ obtain: function (ctx, data, props) { return __awaiter(void 0, void 0, void 0, function () {
116
+ var p;
117
+ return __generator(this, function (_a) {
118
+ switch (_a.label) {
119
+ case 0:
120
+ p = __assign(__assign({}, PD.getDefaultValues(QualityAssessmentParams)), props);
121
+ return [4 /*yield*/, QualityAssessment.obtain(ctx, data, p)];
122
+ case 1: return [2 /*return*/, _a.sent()];
123
+ }
124
+ });
125
+ }); }
126
+ });
127
+ //# sourceMappingURL=prop.js.map
@@ -46,5 +46,6 @@ export declare class Mp4Controls extends PluginComponent {
46
46
  private syncInfo;
47
47
  private sync;
48
48
  private init;
49
+ private updateCanApply;
49
50
  constructor(plugin: PluginContext);
50
51
  }
@@ -121,16 +121,18 @@ var Mp4Controls = /** @class */ (function (_super) {
121
121
  });
122
122
  this.subscribe((_a = this.plugin.canvas3d) === null || _a === void 0 ? void 0 : _a.resized, function () { return _this.syncInfo(); });
123
123
  this.subscribe((_b = this.plugin.helpers.viewportScreenshot) === null || _b === void 0 ? void 0 : _b.events.previewed, function () { return _this.syncInfo(); });
124
- this.subscribe(this.plugin.behaviors.state.isBusy, function (b) {
125
- var _a, _b, _c;
126
- var anim = _this.current;
127
- if (!b && anim) {
128
- _this.behaviors.canApply.next((_c = (_b = (_a = anim.anim).canApply) === null || _b === void 0 ? void 0 : _b.call(_a, _this.plugin)) !== null && _c !== void 0 ? _c : { canApply: true });
129
- }
130
- });
124
+ this.subscribe(this.plugin.behaviors.state.isBusy, function (b) { return _this.updateCanApply(b); });
125
+ this.subscribe(this.plugin.managers.snapshot.events.changed, function (b) { return _this.updateCanApply(b); });
131
126
  this.sync();
132
127
  this.syncInfo();
133
128
  };
129
+ Mp4Controls.prototype.updateCanApply = function (b) {
130
+ var _a, _b, _c;
131
+ var anim = this.current;
132
+ if (!b && anim) {
133
+ this.behaviors.canApply.next((_c = (_b = (_a = anim.anim).canApply) === null || _b === void 0 ? void 0 : _b.call(_a, this.plugin)) !== null && _c !== void 0 ? _c : { canApply: true });
134
+ }
135
+ };
134
136
  return Mp4Controls;
135
137
  }(PluginComponent));
136
138
  export { Mp4Controls };
@@ -30,7 +30,7 @@ var StructureQualityReport;
30
30
  }
31
31
  StructureQualityReport.getEntryUrl = getEntryUrl;
32
32
  function isApplicable(model) {
33
- return !!model && Model.isFromPdbArchive(model);
33
+ return !!model && Model.hasPdbId(model);
34
34
  }
35
35
  StructureQualityReport.isApplicable = isApplicable;
36
36
  StructureQualityReport.Schema = {
@@ -24,11 +24,18 @@ declare const AssemblySymmetry3D: StateTransformer<PluginStateObject.Molecule.St
24
24
  flatShaded: boolean;
25
25
  ignoreLight: boolean;
26
26
  xrayShaded: boolean;
27
+ bumpFrequency: number;
28
+ bumpAmplitude: number;
27
29
  alpha: number;
28
30
  quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest";
29
31
  material: PD.Normalize<{
30
32
  metalness: number;
31
33
  roughness: number;
34
+ bumpiness: number;
35
+ }>;
36
+ clip: PD.Normalize<{
37
+ variant: any;
38
+ objects: any;
32
39
  }>;
33
40
  axesColor: PD.NamedParams<PD.Normalize<{
34
41
  colorValue: any;
@@ -49,7 +49,7 @@ export var AssemblySymmetry;
49
49
  AssemblySymmetry.DefaultServerUrl = 'https://data.rcsb.org/graphql';
50
50
  function isApplicable(structure) {
51
51
  return (!!structure && structure.models.length === 1 &&
52
- Model.isFromPdbArchive(structure.models[0]) &&
52
+ Model.hasPdbId(structure.models[0]) &&
53
53
  isBiologicalAssembly(structure));
54
54
  }
55
55
  AssemblySymmetry.isApplicable = isApplicable;
@@ -16,11 +16,24 @@ export declare const AssemblySymmetryParams: {
16
16
  flatShaded: PD.BooleanParam;
17
17
  ignoreLight: PD.BooleanParam;
18
18
  xrayShaded: PD.BooleanParam;
19
+ bumpFrequency: PD.Numeric;
20
+ bumpAmplitude: PD.Numeric;
19
21
  alpha: PD.Numeric;
20
22
  quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
21
23
  material: PD.Group<PD.Normalize<{
22
24
  metalness: number;
23
25
  roughness: number;
26
+ bumpiness: number;
27
+ }>>;
28
+ clip: PD.Group<PD.Normalize<{
29
+ variant: import("../../../mol-util/clip").Clip.Variant;
30
+ objects: PD.Normalize<{
31
+ type: any;
32
+ invert: any;
33
+ position: any;
34
+ rotation: any;
35
+ scale: any;
36
+ }>[];
24
37
  }>>;
25
38
  axesColor: PD.Mapped<PD.NamedParams<PD.Normalize<{
26
39
  colorValue: Color;
@@ -37,7 +37,7 @@ var ValidationReport;
37
37
  }
38
38
  ValidationReport.getEntryUrl = getEntryUrl;
39
39
  function isApplicable(model) {
40
- return !!model && Model.isFromPdbArchive(model);
40
+ return !!model && Model.hasPdbId(model);
41
41
  }
42
42
  ValidationReport.isApplicable = isApplicable;
43
43
  function fromXml(xml, model) {
@@ -31,11 +31,24 @@ export declare const IntraUnitClashParams: {
31
31
  flatShaded: PD.BooleanParam;
32
32
  ignoreLight: PD.BooleanParam;
33
33
  xrayShaded: PD.BooleanParam;
34
+ bumpFrequency: PD.Numeric;
35
+ bumpAmplitude: PD.Numeric;
34
36
  alpha: PD.Numeric;
35
37
  quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
36
38
  material: PD.Group<PD.Normalize<{
37
39
  metalness: number;
38
40
  roughness: number;
41
+ bumpiness: number;
42
+ }>>;
43
+ clip: PD.Group<PD.Normalize<{
44
+ variant: import("../../../mol-util/clip").Clip.Variant;
45
+ objects: PD.Normalize<{
46
+ type: any;
47
+ invert: any;
48
+ position: any;
49
+ rotation: any;
50
+ scale: any;
51
+ }>[];
39
52
  }>>;
40
53
  };
41
54
  export declare type IntraUnitClashParams = typeof IntraUnitClashParams;
@@ -60,11 +73,24 @@ export declare const InterUnitClashParams: {
60
73
  flatShaded: PD.BooleanParam;
61
74
  ignoreLight: PD.BooleanParam;
62
75
  xrayShaded: PD.BooleanParam;
76
+ bumpFrequency: PD.Numeric;
77
+ bumpAmplitude: PD.Numeric;
63
78
  alpha: PD.Numeric;
64
79
  quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
65
80
  material: PD.Group<PD.Normalize<{
66
81
  metalness: number;
67
82
  roughness: number;
83
+ bumpiness: number;
84
+ }>>;
85
+ clip: PD.Group<PD.Normalize<{
86
+ variant: import("../../../mol-util/clip").Clip.Variant;
87
+ objects: PD.Normalize<{
88
+ type: any;
89
+ invert: any;
90
+ position: any;
91
+ rotation: any;
92
+ scale: any;
93
+ }>[];
68
94
  }>>;
69
95
  };
70
96
  export declare type InterUnitClashParams = typeof InterUnitClashParams;
@@ -90,11 +116,24 @@ export declare const ClashesParams: {
90
116
  flatShaded: PD.BooleanParam;
91
117
  ignoreLight: PD.BooleanParam;
92
118
  xrayShaded: PD.BooleanParam;
119
+ bumpFrequency: PD.Numeric;
120
+ bumpAmplitude: PD.Numeric;
93
121
  alpha: PD.Numeric;
94
122
  quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
95
123
  material: PD.Group<PD.Normalize<{
96
124
  metalness: number;
97
125
  roughness: number;
126
+ bumpiness: number;
127
+ }>>;
128
+ clip: PD.Group<PD.Normalize<{
129
+ variant: import("../../../mol-util/clip").Clip.Variant;
130
+ objects: PD.Normalize<{
131
+ type: any;
132
+ invert: any;
133
+ position: any;
134
+ rotation: any;
135
+ scale: any;
136
+ }>[];
98
137
  }>>;
99
138
  };
100
139
  export declare type ClashesParams = typeof ClashesParams;
@@ -119,11 +158,24 @@ export declare function getClashesParams(ctx: ThemeRegistryContext, structure: S
119
158
  flatShaded: PD.BooleanParam;
120
159
  ignoreLight: PD.BooleanParam;
121
160
  xrayShaded: PD.BooleanParam;
161
+ bumpFrequency: PD.Numeric;
162
+ bumpAmplitude: PD.Numeric;
122
163
  alpha: PD.Numeric;
123
164
  quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
124
165
  material: PD.Group<PD.Normalize<{
125
166
  metalness: number;
126
167
  roughness: number;
168
+ bumpiness: number;
169
+ }>>;
170
+ clip: PD.Group<PD.Normalize<{
171
+ variant: import("../../../mol-util/clip").Clip.Variant;
172
+ objects: PD.Normalize<{
173
+ type: any;
174
+ invert: any;
175
+ position: any;
176
+ rotation: any;
177
+ scale: any;
178
+ }>[];
127
179
  }>>;
128
180
  };
129
181
  export declare type ClashesRepresentation = StructureRepresentation<ClashesParams>;
@@ -149,10 +201,23 @@ export declare const ClashesRepresentationProvider: StructureRepresentationProvi
149
201
  flatShaded: PD.BooleanParam;
150
202
  ignoreLight: PD.BooleanParam;
151
203
  xrayShaded: PD.BooleanParam;
204
+ bumpFrequency: PD.Numeric;
205
+ bumpAmplitude: PD.Numeric;
152
206
  alpha: PD.Numeric;
153
207
  quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
154
208
  material: PD.Group<PD.Normalize<{
155
209
  metalness: number;
156
210
  roughness: number;
211
+ bumpiness: number;
212
+ }>>;
213
+ clip: PD.Group<PD.Normalize<{
214
+ variant: import("../../../mol-util/clip").Clip.Variant;
215
+ objects: PD.Normalize<{
216
+ type: any;
217
+ invert: any;
218
+ position: any;
219
+ rotation: any;
220
+ scale: any;
221
+ }>[];
157
222
  }>>;
158
223
  }, ValidationReport.Tag.Clashes>;
@@ -67,6 +67,7 @@ export declare const Canvas3DParams: {
67
67
  outline: PD.NamedParams<PD.Normalize<unknown>, "off"> | PD.NamedParams<PD.Normalize<{
68
68
  scale: any;
69
69
  threshold: any;
70
+ color: any;
70
71
  }>, "on">;
71
72
  antialiasing: PD.NamedParams<PD.Normalize<unknown>, "off"> | PD.NamedParams<PD.Normalize<{
72
73
  edgeThreshold: any;
@@ -106,10 +107,6 @@ export declare const Canvas3DParams: {
106
107
  }>[];
107
108
  ambientColor: import("../mol-util/color").Color;
108
109
  ambientIntensity: number;
109
- clip: PD.Normalize<{
110
- variant: any;
111
- objects: any;
112
- }>;
113
110
  }>>;
114
111
  trackball: PD.Group<PD.Normalize<{
115
112
  noScroll: boolean;
@@ -164,8 +161,11 @@ export declare const Canvas3DParams: {
164
161
  flipSided: any;
165
162
  flatShaded: any;
166
163
  xrayShaded: any;
164
+ bumpFrequency: any;
165
+ bumpAmplitude: any;
167
166
  quality: any;
168
167
  material: any;
168
+ clip: any;
169
169
  }>, "on">;
170
170
  }>>;
171
171
  };
@@ -215,6 +215,7 @@ export declare const DefaultCanvas3DParams: PD.Values<{
215
215
  outline: PD.NamedParams<PD.Normalize<unknown>, "off"> | PD.NamedParams<PD.Normalize<{
216
216
  scale: any;
217
217
  threshold: any;
218
+ color: any;
218
219
  }>, "on">;
219
220
  antialiasing: PD.NamedParams<PD.Normalize<unknown>, "off"> | PD.NamedParams<PD.Normalize<{
220
221
  edgeThreshold: any;
@@ -254,10 +255,6 @@ export declare const DefaultCanvas3DParams: PD.Values<{
254
255
  }>[];
255
256
  ambientColor: import("../mol-util/color").Color;
256
257
  ambientIntensity: number;
257
- clip: PD.Normalize<{
258
- variant: any;
259
- objects: any;
260
- }>;
261
258
  }>>;
262
259
  trackball: PD.Group<PD.Normalize<{
263
260
  noScroll: boolean;
@@ -312,8 +309,11 @@ export declare const DefaultCanvas3DParams: PD.Values<{
312
309
  flipSided: any;
313
310
  flatShaded: any;
314
311
  xrayShaded: any;
312
+ bumpFrequency: any;
313
+ bumpAmplitude: any;
315
314
  quality: any;
316
315
  material: any;
316
+ clip: any;
317
317
  }>, "on">;
318
318
  }>>;
319
319
  }>;
@@ -35,6 +35,7 @@ import { Helper } from './helper/helper';
35
35
  import { Passes } from './passes/passes';
36
36
  import { shallowEqual } from '../mol-util';
37
37
  import { MarkingParams } from './passes/marking';
38
+ import { GraphicsRenderVariantsBlended, GraphicsRenderVariantsWboit } from '../mol-gl/webgl/render-item';
38
39
  export var Canvas3DParams = {
39
40
  camera: PD.Group({
40
41
  mode: PD.Select('perspective', PD.arrayToOptions(['perspective', 'orthographic']), { label: 'Camera' }),
@@ -200,7 +201,7 @@ var Canvas3D;
200
201
  var width = 128;
201
202
  var height = 128;
202
203
  updateViewport();
203
- var scene = Scene.create(webgl);
204
+ var scene = Scene.create(webgl, passes.draw.wboitEnabled ? GraphicsRenderVariantsWboit : GraphicsRenderVariantsBlended);
204
205
  var camera = new Camera({
205
206
  position: Vec3.create(0, 0, 100),
206
207
  mode: p.camera.mode,
@@ -286,7 +287,13 @@ var Canvas3D;
286
287
  cam = stereoCamera;
287
288
  }
288
289
  if (MultiSamplePass.isEnabled(p.multiSample)) {
289
- multiSampleHelper.render(renderer, cam, scene, helper, true, p.transparentBackground, p);
290
+ if (!cameraChanged) {
291
+ while (!multiSampleHelper.render(renderer, cam, scene, helper, true, p.transparentBackground, p))
292
+ ;
293
+ }
294
+ else {
295
+ multiSampleHelper.render(renderer, cam, scene, helper, true, p.transparentBackground, p);
296
+ }
290
297
  }
291
298
  else {
292
299
  passes.draw.render(renderer, cam, scene, helper, true, p.transparentBackground, p.postprocessing, p.marking);
@@ -391,7 +398,7 @@ var Canvas3D;
391
398
  return true;
392
399
  if (camera.transition.inTransition || nextCameraResetSnapshot)
393
400
  return false;
394
- var cameraSphereOverlapsNone = true;
401
+ var cameraSphereOverlapsNone = true, isEmpty = true;
395
402
  Sphere3D.set(cameraSphere, camera.state.target, camera.state.radius);
396
403
  // check if any renderable has moved outside of the old bounding sphere
397
404
  // and if no renderable is overlapping with the camera sphere
@@ -402,13 +409,14 @@ var Canvas3D;
402
409
  var b = r.values.boundingSphere.ref.value;
403
410
  if (!b.radius)
404
411
  continue;
412
+ isEmpty = false;
405
413
  var cameraDist = Vec3.distance(cameraSphere.center, b.center);
406
414
  if ((cameraDist > cameraSphere.radius || cameraDist > b.radius || b.radius > camera.state.radiusMax) && !Sphere3D.includes(oldBoundingSphereVisible, b))
407
415
  return true;
408
416
  if (Sphere3D.overlaps(cameraSphere, b))
409
417
  cameraSphereOverlapsNone = false;
410
418
  }
411
- return cameraSphereOverlapsNone;
419
+ return cameraSphereOverlapsNone || (!isEmpty && cameraSphere.radius <= 0.1);
412
420
  }
413
421
  var sceneCommitTimeoutMs = 250;
414
422
  function commitScene(isSynchronous) {
@@ -15,6 +15,7 @@ import { ColorNames } from '../../mol-util/color/names';
15
15
  import { sphereVertexCount } from '../../mol-geo/primitive/sphere';
16
16
  import { ValueCell } from '../../mol-util';
17
17
  import { Geometry } from '../../mol-geo/geometry/geometry';
18
+ import { GraphicsRenderVariantsBlended } from '../../mol-gl/webgl/render-item';
18
19
  export var DebugHelperParams = {
19
20
  sceneBoundingSpheres: PD.Boolean(false, { description: 'Show full scene bounding spheres.' }),
20
21
  visibleSceneBoundingSpheres: PD.Boolean(false, { description: 'Show visible scene bounding spheres.' }),
@@ -25,7 +26,7 @@ var BoundingSphereHelper = /** @class */ (function () {
25
26
  function BoundingSphereHelper(ctx, parent, props) {
26
27
  this.objectsData = new Map();
27
28
  this.instancesData = new Map();
28
- this.scene = Scene.create(ctx);
29
+ this.scene = Scene.create(ctx, GraphicsRenderVariantsBlended);
29
30
  this.parent = parent;
30
31
  this._props = __assign(__assign({}, PD.getDefaultValues(DebugHelperParams)), props);
31
32
  }
@@ -148,6 +149,6 @@ var objectMaterialId = getNextMaterialId();
148
149
  var instanceMaterialId = getNextMaterialId();
149
150
  function createBoundingSphereRenderObject(mesh, color, materialId, transform) {
150
151
  var values = Mesh.Utils.createValuesSimple(mesh, { alpha: 0.1, doubleSided: false }, color, 1, transform);
151
- return createRenderObject('mesh', values, { disposed: false, visible: true, alphaFactor: 1, pickable: false, colorOnly: false, opaque: false, writeDepth: false, noClip: false }, materialId);
152
+ return createRenderObject('mesh', values, { disposed: false, visible: true, alphaFactor: 1, pickable: false, colorOnly: false, opaque: false, writeDepth: false }, materialId);
152
153
  }
153
154
  //# sourceMappingURL=bounding-sphere-helper.js.map
@@ -22,10 +22,17 @@ export declare const CameraHelperParams: {
22
22
  flipSided: boolean;
23
23
  flatShaded: boolean;
24
24
  xrayShaded: boolean;
25
+ bumpFrequency: number;
26
+ bumpAmplitude: number;
25
27
  quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest";
26
28
  material: PD.Normalize<{
27
29
  metalness: number;
28
30
  roughness: number;
31
+ bumpiness: number;
32
+ }>;
33
+ clip: PD.Normalize<{
34
+ variant: any;
35
+ objects: any;
29
36
  }>;
30
37
  }>, "on">>;
31
38
  };
@@ -11,6 +11,7 @@ import { addSphere } from '../../mol-geo/geometry/mesh/builder/sphere';
11
11
  import { Mesh } from '../../mol-geo/geometry/mesh/mesh';
12
12
  import { MeshBuilder } from '../../mol-geo/geometry/mesh/mesh-builder';
13
13
  import { Scene } from '../../mol-gl/scene';
14
+ import { GraphicsRenderVariantsBlended } from '../../mol-gl/webgl/render-item';
14
15
  import { Sphere3D } from '../../mol-math/geometry';
15
16
  import { Mat4, Vec3 } from '../../mol-math/linear-algebra';
16
17
  import { DataLoci, EmptyLoci } from '../../mol-model/loci';
@@ -52,7 +53,7 @@ var CameraHelper = /** @class */ (function () {
52
53
  }
53
54
  return changed;
54
55
  };
55
- this.scene = Scene.create(webgl);
56
+ this.scene = Scene.create(webgl, GraphicsRenderVariantsBlended);
56
57
  this.camera = new Camera();
57
58
  Vec3.set(this.camera.up, 0, 1, 0);
58
59
  Vec3.set(this.camera.target, 0, 0, 0);
@@ -67,7 +68,6 @@ var CameraHelper = /** @class */ (function () {
67
68
  _this.scene.clear();
68
69
  var params = __assign(__assign({}, props.axes.params), { scale: props.axes.params.scale * _this.webgl.pixelRatio });
69
70
  _this.renderObject = createAxesRenderObject(params);
70
- _this.renderObject.state.noClip = true;
71
71
  _this.scene.add(_this.renderObject);
72
72
  _this.scene.commit();
73
73
  Vec3.set(_this.camera.position, 0, 0, params.scale * 200);
@@ -24,10 +24,17 @@ export declare const HandleHelperParams: {
24
24
  flipSided: boolean;
25
25
  flatShaded: boolean;
26
26
  xrayShaded: boolean;
27
+ bumpFrequency: number;
28
+ bumpAmplitude: number;
27
29
  quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest";
28
30
  material: PD.Normalize<{
29
31
  metalness: number;
30
32
  roughness: number;
33
+ bumpiness: number;
34
+ }>;
35
+ clip: PD.Normalize<{
36
+ variant: any;
37
+ objects: any;
31
38
  }>;
32
39
  }>, "on">>;
33
40
  };
@@ -20,6 +20,7 @@ import { DataLoci, EmptyLoci } from '../../mol-model/loci';
20
20
  import { MarkerActions } from '../../mol-util/marker-action';
21
21
  import { Visual } from '../../mol-repr/visual';
22
22
  import { Interval } from '../../mol-data/int';
23
+ import { GraphicsRenderVariantsBlended } from '../../mol-gl/webgl/render-item';
23
24
  var HandleParams = __assign(__assign({}, Mesh.Params), { alpha: __assign(__assign({}, Mesh.Params.alpha), { defaultValue: 1 }), ignoreLight: __assign(__assign({}, Mesh.Params.ignoreLight), { defaultValue: true }), colorX: PD.Color(ColorNames.red, { isEssential: true }), colorY: PD.Color(ColorNames.green, { isEssential: true }), colorZ: PD.Color(ColorNames.blue, { isEssential: true }), scale: PD.Numeric(0.33, { min: 0.1, max: 2, step: 0.1 }, { isEssential: true }) });
24
25
  export var HandleHelperParams = {
25
26
  handle: PD.MappedStatic('off', {
@@ -52,7 +53,7 @@ var HandleHelper = /** @class */ (function () {
52
53
  }
53
54
  return changed;
54
55
  };
55
- this.scene = Scene.create(webgl);
56
+ this.scene = Scene.create(webgl, GraphicsRenderVariantsBlended);
56
57
  this.setProps(props);
57
58
  }
58
59
  HandleHelper.prototype.getBoundingSphere = function (out, instanceId) {
@@ -72,7 +73,6 @@ var HandleHelper = /** @class */ (function () {
72
73
  _this.scene.clear();
73
74
  var params = __assign(__assign({}, props.handle.params), { scale: props.handle.params.scale * _this.webgl.pixelRatio });
74
75
  _this.renderObject = createHandleRenderObject(params);
75
- _this.renderObject.state.noClip = true;
76
76
  _this.scene.add(_this.renderObject);
77
77
  _this.scene.commit();
78
78
  p.handle.params = __assign({}, props.handle.params);
@@ -33,8 +33,11 @@ export declare const HelperParams: {
33
33
  flipSided: any;
34
34
  flatShaded: any;
35
35
  xrayShaded: any;
36
+ bumpFrequency: any;
37
+ bumpAmplitude: any;
36
38
  quality: any;
37
39
  material: any;
40
+ clip: any;
38
41
  }>, "on">;
39
42
  }>>;
40
43
  };
@@ -62,8 +65,11 @@ export declare const DefaultHelperProps: PD.Values<{
62
65
  flipSided: any;
63
66
  flatShaded: any;
64
67
  xrayShaded: any;
68
+ bumpFrequency: any;
69
+ bumpAmplitude: any;
65
70
  quality: any;
66
71
  material: any;
72
+ clip: any;
67
73
  }>, "on">;
68
74
  }>>;
69
75
  }>;
@@ -27,6 +27,7 @@ export declare const ImageParams: {
27
27
  outline: PD.NamedParams<PD.Normalize<unknown>, "off"> | PD.NamedParams<PD.Normalize<{
28
28
  scale: any;
29
29
  threshold: any;
30
+ color: any;
30
31
  }>, "on">;
31
32
  antialiasing: PD.NamedParams<PD.Normalize<unknown>, "off"> | PD.NamedParams<PD.Normalize<{
32
33
  edgeThreshold: any;
@@ -58,8 +59,11 @@ export declare const ImageParams: {
58
59
  flipSided: any;
59
60
  flatShaded: any;
60
61
  xrayShaded: any;
62
+ bumpFrequency: any;
63
+ bumpAmplitude: any;
61
64
  quality: any;
62
65
  material: any;
66
+ clip: any;
63
67
  }>, "on">;
64
68
  }>>;
65
69
  };
@@ -43,7 +43,8 @@ export declare class MultiSampleHelper {
43
43
  private multiSamplePass;
44
44
  private sampleIndex;
45
45
  update(changed: boolean, props: MultiSampleProps): boolean;
46
- render(renderer: Renderer, camera: Camera | StereoCamera, scene: Scene, helper: Helper, toDrawingBuffer: boolean, transparentBackground: boolean, props: Props): void;
46
+ /** Return `true` while more samples are needed */
47
+ render(renderer: Renderer, camera: Camera | StereoCamera, scene: Scene, helper: Helper, toDrawingBuffer: boolean, transparentBackground: boolean, props: Props): boolean;
47
48
  constructor(multiSamplePass: MultiSamplePass);
48
49
  }
49
50
  export {};