molstar 3.0.0-dev.6 → 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 (367) hide show
  1. package/build/viewer/molstar.js +1 -1
  2. package/lib/commonjs/extensions/anvil/behavior.d.ts +4 -0
  3. package/lib/commonjs/extensions/anvil/representation.d.ts +50 -0
  4. package/lib/commonjs/extensions/cellpack/representation.d.ts +10 -0
  5. package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +30 -0
  6. package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +4 -0
  7. package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.d.ts +10 -0
  8. package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +50 -0
  9. package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +2 -8
  10. package/lib/commonjs/mol-canvas3d/canvas3d.js +2 -1
  11. package/lib/commonjs/mol-canvas3d/helper/bounding-sphere-helper.js +3 -2
  12. package/lib/commonjs/mol-canvas3d/helper/camera-helper.d.ts +4 -0
  13. package/lib/commonjs/mol-canvas3d/helper/camera-helper.js +2 -2
  14. package/lib/commonjs/mol-canvas3d/helper/handle-helper.d.ts +4 -0
  15. package/lib/commonjs/mol-canvas3d/helper/handle-helper.js +2 -2
  16. package/lib/commonjs/mol-canvas3d/helper/helper.d.ts +2 -0
  17. package/lib/commonjs/mol-canvas3d/passes/image.d.ts +1 -0
  18. package/lib/commonjs/mol-canvas3d/passes/pick.js +9 -9
  19. package/lib/commonjs/mol-canvas3d/passes/postprocessing.js +3 -3
  20. package/lib/commonjs/mol-canvas3d/passes/smaa.js +1 -1
  21. package/lib/commonjs/mol-geo/geometry/base.d.ts +18 -0
  22. package/lib/commonjs/mol-geo/geometry/base.js +18 -1
  23. package/lib/commonjs/mol-geo/geometry/clipping-data.d.ts +1 -3
  24. package/lib/commonjs/mol-geo/geometry/clipping-data.js +3 -8
  25. package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +10 -0
  26. package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.js +2 -2
  27. package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.d.ts +10 -0
  28. package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.js +2 -2
  29. package/lib/commonjs/mol-geo/geometry/image/image.d.ts +10 -0
  30. package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +10 -0
  31. package/lib/commonjs/mol-geo/geometry/lines/lines.js +1 -1
  32. package/lib/commonjs/mol-geo/geometry/marker-data.d.ts +0 -1
  33. package/lib/commonjs/mol-geo/geometry/marker-data.js +0 -4
  34. package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +10 -0
  35. package/lib/commonjs/mol-geo/geometry/mesh/mesh.js +2 -2
  36. package/lib/commonjs/mol-geo/geometry/points/points.d.ts +10 -0
  37. package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +10 -0
  38. package/lib/commonjs/mol-geo/geometry/spheres/spheres.js +2 -2
  39. package/lib/commonjs/mol-geo/geometry/text/text.d.ts +10 -0
  40. package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +10 -0
  41. package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js +2 -2
  42. package/lib/commonjs/mol-gl/render-object.d.ts +2 -1
  43. package/lib/commonjs/mol-gl/render-object.js +10 -10
  44. package/lib/commonjs/mol-gl/renderable/cylinders.d.ts +10 -5
  45. package/lib/commonjs/mol-gl/renderable/cylinders.js +3 -3
  46. package/lib/commonjs/mol-gl/renderable/direct-volume.d.ts +10 -5
  47. package/lib/commonjs/mol-gl/renderable/direct-volume.js +3 -3
  48. package/lib/commonjs/mol-gl/renderable/image.d.ts +9 -4
  49. package/lib/commonjs/mol-gl/renderable/image.js +2 -2
  50. package/lib/commonjs/mol-gl/renderable/lines.d.ts +38 -33
  51. package/lib/commonjs/mol-gl/renderable/lines.js +3 -3
  52. package/lib/commonjs/mol-gl/renderable/mesh.d.ts +10 -5
  53. package/lib/commonjs/mol-gl/renderable/mesh.js +3 -3
  54. package/lib/commonjs/mol-gl/renderable/points.d.ts +9 -4
  55. package/lib/commonjs/mol-gl/renderable/points.js +2 -2
  56. package/lib/commonjs/mol-gl/renderable/schema.d.ts +9 -11
  57. package/lib/commonjs/mol-gl/renderable/schema.js +3 -9
  58. package/lib/commonjs/mol-gl/renderable/spheres.d.ts +10 -5
  59. package/lib/commonjs/mol-gl/renderable/spheres.js +3 -3
  60. package/lib/commonjs/mol-gl/renderable/text.d.ts +9 -4
  61. package/lib/commonjs/mol-gl/renderable/text.js +2 -2
  62. package/lib/commonjs/mol-gl/renderable/texture-mesh.d.ts +10 -5
  63. package/lib/commonjs/mol-gl/renderable/texture-mesh.js +3 -3
  64. package/lib/commonjs/mol-gl/renderable.d.ts +0 -1
  65. package/lib/commonjs/mol-gl/renderer.d.ts +12 -12
  66. package/lib/commonjs/mol-gl/renderer.js +12 -74
  67. package/lib/commonjs/mol-gl/scene.d.ts +2 -2
  68. package/lib/commonjs/mol-gl/scene.js +7 -5
  69. package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +1 -1
  70. package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.js +1 -1
  71. package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
  72. package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
  73. package/lib/commonjs/mol-gl/shader/chunks/assign-marker-varying.glsl.d.ts +1 -1
  74. package/lib/commonjs/mol-gl/shader/chunks/assign-marker-varying.glsl.js +1 -1
  75. package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
  76. package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
  77. package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.d.ts +1 -1
  78. package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.js +1 -1
  79. package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
  80. package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.js +1 -1
  81. package/lib/commonjs/mol-gl/shader/chunks/common-frag-params.glsl.d.ts +1 -1
  82. package/lib/commonjs/mol-gl/shader/chunks/common-frag-params.glsl.js +1 -1
  83. package/lib/commonjs/mol-gl/shader/chunks/common-vert-params.glsl.d.ts +1 -1
  84. package/lib/commonjs/mol-gl/shader/chunks/common-vert-params.glsl.js +1 -1
  85. package/lib/commonjs/mol-gl/shader/chunks/common.glsl.d.ts +1 -1
  86. package/lib/commonjs/mol-gl/shader/chunks/common.glsl.js +1 -1
  87. package/lib/commonjs/mol-gl/shader/cylinders.frag.d.ts +1 -1
  88. package/lib/commonjs/mol-gl/shader/cylinders.frag.js +1 -1
  89. package/lib/commonjs/mol-gl/shader/direct-volume.frag.d.ts +1 -1
  90. package/lib/commonjs/mol-gl/shader/direct-volume.frag.js +1 -1
  91. package/lib/commonjs/mol-gl/shader/image.frag.d.ts +1 -1
  92. package/lib/commonjs/mol-gl/shader/image.frag.js +1 -1
  93. package/lib/commonjs/mol-gl/shader/mesh.frag.d.ts +1 -1
  94. package/lib/commonjs/mol-gl/shader/mesh.frag.js +1 -1
  95. package/lib/commonjs/mol-gl/shader/mesh.vert.d.ts +1 -1
  96. package/lib/commonjs/mol-gl/shader/mesh.vert.js +1 -1
  97. package/lib/commonjs/mol-gl/shader/spheres.frag.d.ts +1 -1
  98. package/lib/commonjs/mol-gl/shader/spheres.frag.js +1 -1
  99. package/lib/commonjs/mol-gl/shader-code.d.ts +3 -1
  100. package/lib/commonjs/mol-gl/shader-code.js +42 -13
  101. package/lib/commonjs/mol-gl/webgl/render-item.d.ts +7 -6
  102. package/lib/commonjs/mol-gl/webgl/render-item.js +10 -8
  103. package/lib/commonjs/mol-gl/webgl/resources.js +8 -1
  104. package/lib/commonjs/mol-math/linear-algebra/3d/quat.d.ts +9 -1
  105. package/lib/commonjs/mol-math/linear-algebra/3d/quat.js +20 -1
  106. package/lib/commonjs/mol-model-formats/shape/ply.d.ts +20 -0
  107. package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +10 -0
  108. package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +10 -0
  109. package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +30 -0
  110. package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +40 -0
  111. package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +11 -0
  112. package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js +3 -1
  113. package/lib/commonjs/mol-plugin/commands.d.ts +1 -4
  114. package/lib/commonjs/mol-plugin/spec.js +1 -0
  115. package/lib/commonjs/mol-plugin/util/viewport-screenshot.d.ts +12 -0
  116. package/lib/commonjs/mol-plugin-state/helpers/structure-clipping.d.ts +1 -1
  117. package/lib/commonjs/mol-plugin-state/helpers/structure-clipping.js +1 -1
  118. package/lib/commonjs/mol-plugin-state/manager/structure/component.d.ts +13 -1
  119. package/lib/commonjs/mol-plugin-state/manager/structure/component.js +13 -8
  120. package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +32 -0
  121. package/lib/commonjs/mol-plugin-ui/viewport/simple-settings.js +2 -6
  122. package/lib/commonjs/mol-repr/shape/loci/angle.d.ts +10 -0
  123. package/lib/commonjs/mol-repr/shape/loci/common.d.ts +10 -0
  124. package/lib/commonjs/mol-repr/shape/loci/dihedral.d.ts +10 -0
  125. package/lib/commonjs/mol-repr/shape/loci/distance.d.ts +10 -0
  126. package/lib/commonjs/mol-repr/shape/loci/label.d.ts +10 -0
  127. package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +10 -0
  128. package/lib/commonjs/mol-repr/shape/loci/plane.d.ts +10 -0
  129. package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +10 -0
  130. package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +60 -0
  131. package/lib/commonjs/mol-repr/structure/params.d.ts +80 -0
  132. package/lib/commonjs/mol-repr/structure/registry.d.ts +140 -0
  133. package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +30 -0
  134. package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +30 -0
  135. package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +30 -0
  136. package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +30 -0
  137. package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +30 -0
  138. package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +30 -0
  139. package/lib/commonjs/mol-repr/structure/representation/gaussian-volume.d.ts +30 -0
  140. package/lib/commonjs/mol-repr/structure/representation/label.d.ts +30 -0
  141. package/lib/commonjs/mol-repr/structure/representation/line.d.ts +30 -0
  142. package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +30 -0
  143. package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +30 -0
  144. package/lib/commonjs/mol-repr/structure/representation/point.d.ts +30 -0
  145. package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +30 -0
  146. package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +30 -0
  147. package/lib/commonjs/mol-repr/structure/units-visual.d.ts +80 -0
  148. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +20 -0
  149. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-line.d.ts +10 -0
  150. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +20 -0
  151. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.d.ts +10 -0
  152. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +10 -0
  153. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +10 -0
  154. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +10 -0
  155. package/lib/commonjs/mol-repr/structure/visual/element-cross.d.ts +10 -0
  156. package/lib/commonjs/mol-repr/structure/visual/element-point.d.ts +10 -0
  157. package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +20 -0
  158. package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +10 -0
  159. package/lib/commonjs/mol-repr/structure/visual/gaussian-density-volume.d.ts +20 -0
  160. package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +40 -0
  161. package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +10 -0
  162. package/lib/commonjs/mol-repr/structure/visual/label-text.d.ts +10 -0
  163. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +10 -0
  164. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +10 -0
  165. package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +10 -0
  166. package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +10 -0
  167. package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +10 -0
  168. package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +20 -0
  169. package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +20 -0
  170. package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +10 -0
  171. package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +10 -0
  172. package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +10 -0
  173. package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +10 -0
  174. package/lib/commonjs/mol-repr/visual.js +11 -7
  175. package/lib/commonjs/mol-repr/volume/direct-volume.d.ts +30 -0
  176. package/lib/commonjs/mol-repr/volume/isosurface.d.ts +60 -0
  177. package/lib/commonjs/mol-repr/volume/registry.d.ts +30 -0
  178. package/lib/commonjs/mol-repr/volume/representation.d.ts +10 -0
  179. package/lib/commonjs/mol-repr/volume/slice.d.ts +30 -0
  180. package/lib/commonjs/mol-theme/clipping.d.ts +7 -15
  181. package/lib/commonjs/mol-theme/clipping.js +5 -12
  182. package/lib/commonjs/mol-util/clip.d.ts +49 -0
  183. package/lib/commonjs/mol-util/clip.js +97 -0
  184. package/lib/extensions/anvil/behavior.d.ts +4 -0
  185. package/lib/extensions/anvil/representation.d.ts +50 -0
  186. package/lib/extensions/cellpack/representation.d.ts +10 -0
  187. package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +30 -0
  188. package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +4 -0
  189. package/lib/extensions/rcsb/assembly-symmetry/representation.d.ts +10 -0
  190. package/lib/extensions/rcsb/validation-report/representation.d.ts +50 -0
  191. package/lib/mol-canvas3d/canvas3d.d.ts +2 -8
  192. package/lib/mol-canvas3d/canvas3d.js +2 -1
  193. package/lib/mol-canvas3d/helper/bounding-sphere-helper.js +3 -2
  194. package/lib/mol-canvas3d/helper/camera-helper.d.ts +4 -0
  195. package/lib/mol-canvas3d/helper/camera-helper.js +2 -2
  196. package/lib/mol-canvas3d/helper/handle-helper.d.ts +4 -0
  197. package/lib/mol-canvas3d/helper/handle-helper.js +2 -2
  198. package/lib/mol-canvas3d/helper/helper.d.ts +2 -0
  199. package/lib/mol-canvas3d/passes/image.d.ts +1 -0
  200. package/lib/mol-canvas3d/passes/pick.js +9 -9
  201. package/lib/mol-canvas3d/passes/postprocessing.js +3 -3
  202. package/lib/mol-canvas3d/passes/smaa.js +1 -1
  203. package/lib/mol-geo/geometry/base.d.ts +18 -0
  204. package/lib/mol-geo/geometry/base.js +18 -1
  205. package/lib/mol-geo/geometry/clipping-data.d.ts +1 -3
  206. package/lib/mol-geo/geometry/clipping-data.js +3 -8
  207. package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +10 -0
  208. package/lib/mol-geo/geometry/cylinders/cylinders.js +2 -2
  209. package/lib/mol-geo/geometry/direct-volume/direct-volume.d.ts +10 -0
  210. package/lib/mol-geo/geometry/direct-volume/direct-volume.js +2 -2
  211. package/lib/mol-geo/geometry/image/image.d.ts +10 -0
  212. package/lib/mol-geo/geometry/lines/lines.d.ts +10 -0
  213. package/lib/mol-geo/geometry/lines/lines.js +1 -1
  214. package/lib/mol-geo/geometry/marker-data.d.ts +0 -1
  215. package/lib/mol-geo/geometry/marker-data.js +0 -4
  216. package/lib/mol-geo/geometry/mesh/mesh.d.ts +10 -0
  217. package/lib/mol-geo/geometry/mesh/mesh.js +2 -2
  218. package/lib/mol-geo/geometry/points/points.d.ts +10 -0
  219. package/lib/mol-geo/geometry/spheres/spheres.d.ts +10 -0
  220. package/lib/mol-geo/geometry/spheres/spheres.js +2 -2
  221. package/lib/mol-geo/geometry/text/text.d.ts +10 -0
  222. package/lib/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +10 -0
  223. package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js +2 -2
  224. package/lib/mol-gl/render-object.d.ts +2 -1
  225. package/lib/mol-gl/render-object.js +10 -10
  226. package/lib/mol-gl/renderable/cylinders.d.ts +10 -5
  227. package/lib/mol-gl/renderable/cylinders.js +3 -3
  228. package/lib/mol-gl/renderable/direct-volume.d.ts +10 -5
  229. package/lib/mol-gl/renderable/direct-volume.js +3 -3
  230. package/lib/mol-gl/renderable/image.d.ts +9 -4
  231. package/lib/mol-gl/renderable/image.js +2 -2
  232. package/lib/mol-gl/renderable/lines.d.ts +38 -33
  233. package/lib/mol-gl/renderable/lines.js +4 -4
  234. package/lib/mol-gl/renderable/mesh.d.ts +10 -5
  235. package/lib/mol-gl/renderable/mesh.js +3 -3
  236. package/lib/mol-gl/renderable/points.d.ts +9 -4
  237. package/lib/mol-gl/renderable/points.js +2 -2
  238. package/lib/mol-gl/renderable/schema.d.ts +9 -11
  239. package/lib/mol-gl/renderable/schema.js +3 -9
  240. package/lib/mol-gl/renderable/spheres.d.ts +10 -5
  241. package/lib/mol-gl/renderable/spheres.js +3 -3
  242. package/lib/mol-gl/renderable/text.d.ts +9 -4
  243. package/lib/mol-gl/renderable/text.js +2 -2
  244. package/lib/mol-gl/renderable/texture-mesh.d.ts +10 -5
  245. package/lib/mol-gl/renderable/texture-mesh.js +3 -3
  246. package/lib/mol-gl/renderable.d.ts +0 -1
  247. package/lib/mol-gl/renderer.d.ts +12 -12
  248. package/lib/mol-gl/renderer.js +13 -75
  249. package/lib/mol-gl/scene.d.ts +2 -2
  250. package/lib/mol-gl/scene.js +7 -5
  251. package/lib/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +1 -1
  252. package/lib/mol-gl/shader/chunks/apply-light-color.glsl.js +1 -1
  253. package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
  254. package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
  255. package/lib/mol-gl/shader/chunks/assign-marker-varying.glsl.d.ts +1 -1
  256. package/lib/mol-gl/shader/chunks/assign-marker-varying.glsl.js +1 -1
  257. package/lib/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
  258. package/lib/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
  259. package/lib/mol-gl/shader/chunks/color-frag-params.glsl.d.ts +1 -1
  260. package/lib/mol-gl/shader/chunks/color-frag-params.glsl.js +1 -1
  261. package/lib/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
  262. package/lib/mol-gl/shader/chunks/color-vert-params.glsl.js +1 -1
  263. package/lib/mol-gl/shader/chunks/common-frag-params.glsl.d.ts +1 -1
  264. package/lib/mol-gl/shader/chunks/common-frag-params.glsl.js +1 -1
  265. package/lib/mol-gl/shader/chunks/common-vert-params.glsl.d.ts +1 -1
  266. package/lib/mol-gl/shader/chunks/common-vert-params.glsl.js +1 -1
  267. package/lib/mol-gl/shader/chunks/common.glsl.d.ts +1 -1
  268. package/lib/mol-gl/shader/chunks/common.glsl.js +1 -1
  269. package/lib/mol-gl/shader/cylinders.frag.d.ts +1 -1
  270. package/lib/mol-gl/shader/cylinders.frag.js +1 -1
  271. package/lib/mol-gl/shader/direct-volume.frag.d.ts +1 -1
  272. package/lib/mol-gl/shader/direct-volume.frag.js +1 -1
  273. package/lib/mol-gl/shader/image.frag.d.ts +1 -1
  274. package/lib/mol-gl/shader/image.frag.js +1 -1
  275. package/lib/mol-gl/shader/mesh.frag.d.ts +1 -1
  276. package/lib/mol-gl/shader/mesh.frag.js +1 -1
  277. package/lib/mol-gl/shader/mesh.vert.d.ts +1 -1
  278. package/lib/mol-gl/shader/mesh.vert.js +1 -1
  279. package/lib/mol-gl/shader/spheres.frag.d.ts +1 -1
  280. package/lib/mol-gl/shader/spheres.frag.js +1 -1
  281. package/lib/mol-gl/shader-code.d.ts +3 -1
  282. package/lib/mol-gl/shader-code.js +42 -13
  283. package/lib/mol-gl/webgl/render-item.d.ts +7 -6
  284. package/lib/mol-gl/webgl/render-item.js +8 -6
  285. package/lib/mol-gl/webgl/resources.js +8 -1
  286. package/lib/mol-math/linear-algebra/3d/quat.d.ts +9 -1
  287. package/lib/mol-math/linear-algebra/3d/quat.js +20 -1
  288. package/lib/mol-model-formats/shape/ply.d.ts +20 -0
  289. package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +10 -0
  290. package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +10 -0
  291. package/lib/mol-model-props/computed/representations/interactions.d.ts +30 -0
  292. package/lib/mol-model-props/integrative/cross-link-restraint/representation.d.ts +40 -0
  293. package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +11 -0
  294. package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js +3 -1
  295. package/lib/mol-plugin/commands.d.ts +1 -4
  296. package/lib/mol-plugin/spec.js +1 -0
  297. package/lib/mol-plugin/util/viewport-screenshot.d.ts +12 -0
  298. package/lib/mol-plugin/version.js +2 -2
  299. package/lib/mol-plugin-state/helpers/structure-clipping.d.ts +1 -1
  300. package/lib/mol-plugin-state/helpers/structure-clipping.js +1 -1
  301. package/lib/mol-plugin-state/manager/structure/component.d.ts +13 -1
  302. package/lib/mol-plugin-state/manager/structure/component.js +13 -8
  303. package/lib/mol-plugin-state/transforms/representation.d.ts +32 -0
  304. package/lib/mol-plugin-ui/viewport/simple-settings.js +2 -6
  305. package/lib/mol-repr/shape/loci/angle.d.ts +10 -0
  306. package/lib/mol-repr/shape/loci/common.d.ts +10 -0
  307. package/lib/mol-repr/shape/loci/dihedral.d.ts +10 -0
  308. package/lib/mol-repr/shape/loci/distance.d.ts +10 -0
  309. package/lib/mol-repr/shape/loci/label.d.ts +10 -0
  310. package/lib/mol-repr/shape/loci/orientation.d.ts +10 -0
  311. package/lib/mol-repr/shape/loci/plane.d.ts +10 -0
  312. package/lib/mol-repr/shape/model/unitcell.d.ts +10 -0
  313. package/lib/mol-repr/structure/complex-visual.d.ts +60 -0
  314. package/lib/mol-repr/structure/params.d.ts +80 -0
  315. package/lib/mol-repr/structure/registry.d.ts +140 -0
  316. package/lib/mol-repr/structure/representation/backbone.d.ts +30 -0
  317. package/lib/mol-repr/structure/representation/ball-and-stick.d.ts +30 -0
  318. package/lib/mol-repr/structure/representation/carbohydrate.d.ts +30 -0
  319. package/lib/mol-repr/structure/representation/cartoon.d.ts +30 -0
  320. package/lib/mol-repr/structure/representation/ellipsoid.d.ts +30 -0
  321. package/lib/mol-repr/structure/representation/gaussian-surface.d.ts +30 -0
  322. package/lib/mol-repr/structure/representation/gaussian-volume.d.ts +30 -0
  323. package/lib/mol-repr/structure/representation/label.d.ts +30 -0
  324. package/lib/mol-repr/structure/representation/line.d.ts +30 -0
  325. package/lib/mol-repr/structure/representation/molecular-surface.d.ts +30 -0
  326. package/lib/mol-repr/structure/representation/orientation.d.ts +30 -0
  327. package/lib/mol-repr/structure/representation/point.d.ts +30 -0
  328. package/lib/mol-repr/structure/representation/putty.d.ts +30 -0
  329. package/lib/mol-repr/structure/representation/spacefill.d.ts +30 -0
  330. package/lib/mol-repr/structure/units-visual.d.ts +80 -0
  331. package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +20 -0
  332. package/lib/mol-repr/structure/visual/bond-inter-unit-line.d.ts +10 -0
  333. package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +20 -0
  334. package/lib/mol-repr/structure/visual/bond-intra-unit-line.d.ts +10 -0
  335. package/lib/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +10 -0
  336. package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +10 -0
  337. package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +10 -0
  338. package/lib/mol-repr/structure/visual/element-cross.d.ts +10 -0
  339. package/lib/mol-repr/structure/visual/element-point.d.ts +10 -0
  340. package/lib/mol-repr/structure/visual/element-sphere.d.ts +20 -0
  341. package/lib/mol-repr/structure/visual/ellipsoid-mesh.d.ts +10 -0
  342. package/lib/mol-repr/structure/visual/gaussian-density-volume.d.ts +20 -0
  343. package/lib/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +40 -0
  344. package/lib/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +10 -0
  345. package/lib/mol-repr/structure/visual/label-text.d.ts +10 -0
  346. package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +10 -0
  347. package/lib/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +10 -0
  348. package/lib/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +10 -0
  349. package/lib/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +10 -0
  350. package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +10 -0
  351. package/lib/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +20 -0
  352. package/lib/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +20 -0
  353. package/lib/mol-repr/structure/visual/polymer-direction-wedge.d.ts +10 -0
  354. package/lib/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +10 -0
  355. package/lib/mol-repr/structure/visual/polymer-trace-mesh.d.ts +10 -0
  356. package/lib/mol-repr/structure/visual/polymer-tube-mesh.d.ts +10 -0
  357. package/lib/mol-repr/visual.js +11 -7
  358. package/lib/mol-repr/volume/direct-volume.d.ts +30 -0
  359. package/lib/mol-repr/volume/isosurface.d.ts +60 -0
  360. package/lib/mol-repr/volume/registry.d.ts +30 -0
  361. package/lib/mol-repr/volume/representation.d.ts +10 -0
  362. package/lib/mol-repr/volume/slice.d.ts +30 -0
  363. package/lib/mol-theme/clipping.d.ts +7 -15
  364. package/lib/mol-theme/clipping.js +5 -12
  365. package/lib/mol-util/clip.d.ts +49 -0
  366. package/lib/mol-util/clip.js +93 -0
  367. package/package.json +1 -1
@@ -43,6 +43,16 @@ export declare const VolumeParams: {
43
43
  roughness: number;
44
44
  bumpiness: number;
45
45
  }>>;
46
+ clip: PD.Group<PD.Normalize<{
47
+ variant: import("../../mol-util/clip").Clip.Variant;
48
+ objects: PD.Normalize<{
49
+ type: any;
50
+ invert: any;
51
+ position: any;
52
+ rotation: any;
53
+ scale: any;
54
+ }>[];
55
+ }>>;
46
56
  };
47
57
  export declare type VolumeParams = typeof VolumeParams;
48
58
  export declare function VolumeRepresentation<P extends VolumeParams>(label: string, ctx: RepresentationContext, getParams: RepresentationParamsGetter<Volume, P>, visualCtor: (materialId: number, volume: Volume, props: PD.Values<P>, webgl?: WebGLContext) => VolumeVisual<P>, getLoci: (volume: Volume, props: PD.Values<P>) => Loci): VolumeRepresentation<P>;
@@ -65,6 +65,16 @@ export declare const SliceParams: {
65
65
  roughness: number;
66
66
  bumpiness: number;
67
67
  }>>;
68
+ clip: PD.Group<PD.Normalize<{
69
+ variant: import("../../mol-util/clip").Clip.Variant;
70
+ objects: PD.Normalize<{
71
+ type: any;
72
+ invert: any;
73
+ position: any;
74
+ rotation: any;
75
+ scale: any;
76
+ }>[];
77
+ }>>;
68
78
  };
69
79
  export declare type SliceParams = typeof SliceParams;
70
80
  export declare function getSliceParams(ctx: ThemeRegistryContext, volume: Volume): {
@@ -121,6 +131,16 @@ export declare function getSliceParams(ctx: ThemeRegistryContext, volume: Volume
121
131
  roughness: number;
122
132
  bumpiness: number;
123
133
  }>>;
134
+ clip: PD.Group<PD.Normalize<{
135
+ variant: import("../../mol-util/clip").Clip.Variant;
136
+ objects: PD.Normalize<{
137
+ type: any;
138
+ invert: any;
139
+ position: any;
140
+ rotation: any;
141
+ scale: any;
142
+ }>[];
143
+ }>>;
124
144
  };
125
145
  export declare function SliceVisual(materialId: number): VolumeVisual<SliceParams>;
126
146
  export declare function SliceRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter<Volume, SliceParams>): VolumeRepresentation<SliceParams>;
@@ -178,4 +198,14 @@ export declare const SliceRepresentationProvider: VolumeRepresentationProvider<{
178
198
  roughness: number;
179
199
  bumpiness: number;
180
200
  }>>;
201
+ clip: PD.Group<PD.Normalize<{
202
+ variant: import("../../mol-util/clip").Clip.Variant;
203
+ objects: PD.Normalize<{
204
+ type: any;
205
+ invert: any;
206
+ position: any;
207
+ rotation: any;
208
+ scale: any;
209
+ }>[];
210
+ }>>;
181
211
  }, "slice">;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2020-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
@@ -10,7 +10,7 @@ export { Clipping };
10
10
  declare type Clipping = {
11
11
  readonly layers: ReadonlyArray<Clipping.Layer>;
12
12
  };
13
- declare function Clipping(layers: ReadonlyArray<Clipping.Layer>): Clipping;
13
+ declare function Clipping(layers: Clipping['layers']): Clipping;
14
14
  declare namespace Clipping {
15
15
  type Layer = {
16
16
  readonly loci: StructureElement.Loci;
@@ -44,22 +44,14 @@ declare namespace Clipping {
44
44
  function fromNames(names: Names[]): Flag;
45
45
  function toNames(groups: Groups): Names[];
46
46
  }
47
- /** Clip object types */
48
- const Type: {
49
- none: number;
50
- plane: number;
51
- sphere: number;
52
- cube: number;
53
- cylinder: number;
54
- infiniteCone: number;
55
- };
56
- type Variant = 'instance' | 'pixel';
57
47
  function areEqual(cA: Clipping, cB: Clipping): boolean;
48
+ /** Check if layers empty */
58
49
  function isEmpty(clipping: Clipping): boolean;
59
- function remap(clipping: Clipping, structure: Structure): {
60
- layers: Layer[];
61
- };
50
+ /** Remap layers */
51
+ function remap(clipping: Clipping, structure: Structure): Clipping;
52
+ /** Merge layers */
62
53
  function merge(clipping: Clipping): Clipping;
54
+ /** Filter layers */
63
55
  function filter(clipping: Clipping, filter: Structure): Clipping;
64
56
  type ScriptLayer = {
65
57
  script: Script;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
+ * Copyright (c) 2020-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
4
4
  *
5
5
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
6
6
  */
@@ -72,18 +72,7 @@ exports.Clipping = Clipping;
72
72
  }
73
73
  Groups.toNames = toNames;
74
74
  })(Groups = Clipping.Groups || (Clipping.Groups = {}));
75
- /** Clip object types */
76
- Clipping.Type = {
77
- none: 0,
78
- plane: 1,
79
- sphere: 2,
80
- cube: 3,
81
- cylinder: 4,
82
- infiniteCone: 5,
83
- };
84
75
  function areEqual(cA, cB) {
85
- if (cA.layers.length === 0 && cB.layers.length === 0)
86
- return true;
87
76
  if (cA.layers.length !== cB.layers.length)
88
77
  return false;
89
78
  for (var i = 0, il = cA.layers.length; i < il; ++i) {
@@ -95,10 +84,12 @@ exports.Clipping = Clipping;
95
84
  return true;
96
85
  }
97
86
  Clipping.areEqual = areEqual;
87
+ /** Check if layers empty */
98
88
  function isEmpty(clipping) {
99
89
  return clipping.layers.length === 0;
100
90
  }
101
91
  Clipping.isEmpty = isEmpty;
92
+ /** Remap layers */
102
93
  function remap(clipping, structure) {
103
94
  var layers = [];
104
95
  for (var _i = 0, _a = clipping.layers; _i < _a.length; _i++) {
@@ -112,6 +103,7 @@ exports.Clipping = Clipping;
112
103
  return { layers: layers };
113
104
  }
114
105
  Clipping.remap = remap;
106
+ /** Merge layers */
115
107
  function merge(clipping) {
116
108
  if (isEmpty(clipping))
117
109
  return clipping;
@@ -136,6 +128,7 @@ exports.Clipping = Clipping;
136
128
  return { layers: layers };
137
129
  }
138
130
  Clipping.merge = merge;
131
+ /** Filter layers */
139
132
  function filter(clipping, filter) {
140
133
  if (isEmpty(clipping))
141
134
  return clipping;
@@ -0,0 +1,49 @@
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 { Vec3 } from '../mol-math/linear-algebra';
7
+ import { ParamDefinition as PD } from './param-definition';
8
+ export interface Clip {
9
+ variant: Clip.Variant;
10
+ objects: Clip.Objects;
11
+ }
12
+ export declare function Clip(): void;
13
+ export declare namespace Clip {
14
+ /** Clip object types */
15
+ const Type: {
16
+ none: number;
17
+ plane: number;
18
+ sphere: number;
19
+ cube: number;
20
+ cylinder: number;
21
+ infiniteCone: number;
22
+ };
23
+ type Variant = 'instance' | 'pixel';
24
+ type Objects = {
25
+ count: number;
26
+ type: number[];
27
+ invert: boolean[];
28
+ position: number[];
29
+ rotation: number[];
30
+ scale: number[];
31
+ };
32
+ const Params: {
33
+ variant: PD.Select<Variant>;
34
+ objects: PD.ObjectList<PD.Normalize<{
35
+ type: "none" | "sphere" | "cube" | "plane" | "cylinder" | "infiniteCone";
36
+ invert: boolean;
37
+ position: Vec3;
38
+ rotation: PD.Normalize<{
39
+ axis: any;
40
+ angle: any;
41
+ }>;
42
+ scale: Vec3;
43
+ }>>;
44
+ };
45
+ type Params = typeof Params;
46
+ type Props = PD.Values<Params>;
47
+ function getClip(props: Props, clip?: Clip): Clip;
48
+ function areEqual(cA: Clip, cB: Clip): boolean;
49
+ }
@@ -0,0 +1,97 @@
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.Clip = void 0;
9
+ var linear_algebra_1 = require("../mol-math/linear-algebra");
10
+ var misc_1 = require("../mol-math/misc");
11
+ var param_definition_1 = require("./param-definition");
12
+ var string_1 = require("./string");
13
+ function Clip() {
14
+ }
15
+ exports.Clip = Clip;
16
+ (function (Clip) {
17
+ /** Clip object types */
18
+ Clip.Type = {
19
+ none: 0,
20
+ plane: 1,
21
+ sphere: 2,
22
+ cube: 3,
23
+ cylinder: 4,
24
+ infiniteCone: 5,
25
+ };
26
+ Clip.Params = {
27
+ variant: param_definition_1.ParamDefinition.Select('pixel', param_definition_1.ParamDefinition.arrayToOptions(['instance', 'pixel'])),
28
+ objects: param_definition_1.ParamDefinition.ObjectList({
29
+ type: param_definition_1.ParamDefinition.Select('plane', param_definition_1.ParamDefinition.objectToOptions(Clip.Type, function (t) { return (0, string_1.stringToWords)(t); })),
30
+ invert: param_definition_1.ParamDefinition.Boolean(false),
31
+ position: param_definition_1.ParamDefinition.Vec3((0, linear_algebra_1.Vec3)()),
32
+ rotation: param_definition_1.ParamDefinition.Group({
33
+ axis: param_definition_1.ParamDefinition.Vec3(linear_algebra_1.Vec3.create(1, 0, 0)),
34
+ angle: param_definition_1.ParamDefinition.Numeric(0, { min: -180, max: 180, step: 1 }, { description: 'Angle in Degrees' }),
35
+ }, { isExpanded: true }),
36
+ scale: param_definition_1.ParamDefinition.Vec3(linear_algebra_1.Vec3.create(1, 1, 1)),
37
+ }, function (o) { return (0, string_1.stringToWords)(o.type); })
38
+ };
39
+ function createClipObjects() {
40
+ return {
41
+ count: 0,
42
+ type: (new Array(5)).fill(1),
43
+ invert: (new Array(5)).fill(false),
44
+ position: (new Array(5 * 3)).fill(0),
45
+ rotation: (new Array(5 * 4)).fill(0),
46
+ scale: (new Array(5 * 3)).fill(1),
47
+ };
48
+ }
49
+ var qA = (0, linear_algebra_1.Quat)();
50
+ var qB = (0, linear_algebra_1.Quat)();
51
+ var vA = (0, linear_algebra_1.Vec3)();
52
+ var vB = (0, linear_algebra_1.Vec3)();
53
+ function getClip(props, clip) {
54
+ var _a = (clip === null || clip === void 0 ? void 0 : clip.objects) || createClipObjects(), type = _a.type, invert = _a.invert, position = _a.position, rotation = _a.rotation, scale = _a.scale;
55
+ for (var i = 0, il = props.objects.length; i < il; ++i) {
56
+ var p = props.objects[i];
57
+ type[i] = Clip.Type[p.type];
58
+ invert[i] = p.invert;
59
+ linear_algebra_1.Vec3.toArray(p.position, position, i * 3);
60
+ linear_algebra_1.Quat.toArray(linear_algebra_1.Quat.setAxisAngle(qA, p.rotation.axis, (0, misc_1.degToRad)(p.rotation.angle)), rotation, i * 4);
61
+ linear_algebra_1.Vec3.toArray(p.scale, scale, i * 3);
62
+ }
63
+ return {
64
+ variant: props.variant,
65
+ objects: { count: props.objects.length, type: type, invert: invert, position: position, rotation: rotation, scale: scale }
66
+ };
67
+ }
68
+ Clip.getClip = getClip;
69
+ function areEqual(cA, cB) {
70
+ if (cA.variant !== cB.variant)
71
+ return false;
72
+ if (cA.objects.count !== cB.objects.count)
73
+ return false;
74
+ var oA = cA.objects, oB = cB.objects;
75
+ for (var i = 0, il = oA.count; i < il; ++i) {
76
+ if (oA.invert[i] !== oB.invert[i])
77
+ return false;
78
+ if (oA.type[i] !== oB.type[i])
79
+ return false;
80
+ linear_algebra_1.Vec3.fromArray(vA, oA.position, i * 3);
81
+ linear_algebra_1.Vec3.fromArray(vB, oB.position, i * 3);
82
+ if (!linear_algebra_1.Vec3.equals(vA, vB))
83
+ return false;
84
+ linear_algebra_1.Vec3.fromArray(vA, oA.scale, i * 3);
85
+ linear_algebra_1.Vec3.fromArray(vB, oB.scale, i * 3);
86
+ if (!linear_algebra_1.Vec3.equals(vA, vB))
87
+ return false;
88
+ linear_algebra_1.Quat.fromArray(qA, oA.rotation, i * 4);
89
+ linear_algebra_1.Quat.fromArray(qB, oB.rotation, i * 4);
90
+ if (!linear_algebra_1.Quat.equals(qA, qB))
91
+ return false;
92
+ }
93
+ return true;
94
+ }
95
+ Clip.areEqual = areEqual;
96
+ })(Clip = exports.Clip || (exports.Clip = {}));
97
+ //# sourceMappingURL=clip.js.map
@@ -32,6 +32,10 @@ declare const MembraneOrientation3D: StateTransformer<PluginStateObject.Molecule
32
32
  roughness: number;
33
33
  bumpiness: number;
34
34
  }>;
35
+ clip: PD.Normalize<{
36
+ variant: any;
37
+ objects: any;
38
+ }>;
35
39
  sectorOpacity: number;
36
40
  doubleSided: boolean;
37
41
  flipSided: boolean;
@@ -27,6 +27,16 @@ declare const BilayerPlanesParams: {
27
27
  roughness: number;
28
28
  bumpiness: number;
29
29
  }>>;
30
+ clip: PD.Group<PD.Normalize<{
31
+ variant: import("../../mol-util/clip").Clip.Variant;
32
+ objects: PD.Normalize<{
33
+ type: any;
34
+ invert: any;
35
+ position: any;
36
+ rotation: any;
37
+ scale: any;
38
+ }>[];
39
+ }>>;
30
40
  };
31
41
  export declare type BilayerPlanesParams = typeof BilayerPlanesParams;
32
42
  export declare type BilayerPlanesProps = PD.Values<BilayerPlanesParams>;
@@ -44,6 +54,16 @@ declare const BilayerRimsParams: {
44
54
  roughness: number;
45
55
  bumpiness: number;
46
56
  }>>;
57
+ clip: PD.Group<PD.Normalize<{
58
+ variant: import("../../mol-util/clip").Clip.Variant;
59
+ objects: PD.Normalize<{
60
+ type: any;
61
+ invert: any;
62
+ position: any;
63
+ rotation: any;
64
+ scale: any;
65
+ }>[];
66
+ }>>;
47
67
  };
48
68
  export declare type BilayerRimsParams = typeof BilayerRimsParams;
49
69
  export declare type BilayerRimsProps = PD.Values<BilayerRimsParams>;
@@ -62,6 +82,16 @@ export declare const MembraneOrientationParams: {
62
82
  roughness: number;
63
83
  bumpiness: number;
64
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
+ }>[];
94
+ }>>;
65
95
  sectorOpacity: PD.Numeric;
66
96
  doubleSided: PD.BooleanParam;
67
97
  flipSided: PD.BooleanParam;
@@ -88,6 +118,16 @@ export declare function getMembraneOrientationParams(ctx: ThemeRegistryContext,
88
118
  roughness: number;
89
119
  bumpiness: number;
90
120
  }>>;
121
+ clip: PD.Group<PD.Normalize<{
122
+ variant: import("../../mol-util/clip").Clip.Variant;
123
+ objects: PD.Normalize<{
124
+ type: any;
125
+ invert: any;
126
+ position: any;
127
+ rotation: any;
128
+ scale: any;
129
+ }>[];
130
+ }>>;
91
131
  sectorOpacity: PD.Numeric;
92
132
  doubleSided: PD.BooleanParam;
93
133
  flipSided: PD.BooleanParam;
@@ -114,6 +154,16 @@ export declare const MembraneOrientationRepresentationProvider: StructureReprese
114
154
  roughness: number;
115
155
  bumpiness: number;
116
156
  }>>;
157
+ clip: PD.Group<PD.Normalize<{
158
+ variant: import("../../mol-util/clip").Clip.Variant;
159
+ objects: PD.Normalize<{
160
+ type: any;
161
+ invert: any;
162
+ position: any;
163
+ rotation: any;
164
+ scale: any;
165
+ }>[];
166
+ }>>;
117
167
  sectorOpacity: PD.Numeric;
118
168
  doubleSided: PD.BooleanParam;
119
169
  flipSided: PD.BooleanParam;
@@ -52,6 +52,16 @@ export declare const MBParams: {
52
52
  roughness: number;
53
53
  bumpiness: number;
54
54
  }>>;
55
+ clip: PD.Group<PD.Normalize<{
56
+ variant: import("../../mol-util/clip").Clip.Variant;
57
+ objects: PD.Normalize<{
58
+ type: any;
59
+ invert: any;
60
+ position: any;
61
+ rotation: any;
62
+ scale: any;
63
+ }>[];
64
+ }>>;
55
65
  };
56
66
  export declare type MBParams = typeof MBParams;
57
67
  export declare type UnitcellProps = PD.Values<MBParams>;
@@ -26,6 +26,16 @@ export declare const ConfalPyramidsParams: {
26
26
  roughness: number;
27
27
  bumpiness: number;
28
28
  }>>;
29
+ clip: PD.Group<PD.Normalize<{
30
+ variant: import("../../../mol-util/clip").Clip.Variant;
31
+ objects: PD.Normalize<{
32
+ type: any;
33
+ invert: any;
34
+ position: any;
35
+ rotation: any;
36
+ scale: any;
37
+ }>[];
38
+ }>>;
29
39
  };
30
40
  export declare type ConfalPyramidsParams = typeof ConfalPyramidsParams;
31
41
  export declare function getConfalPyramidsParams(ctx: ThemeRegistryContext, structure: Structure): {
@@ -45,6 +55,16 @@ export declare function getConfalPyramidsParams(ctx: ThemeRegistryContext, struc
45
55
  roughness: number;
46
56
  bumpiness: number;
47
57
  }>>;
58
+ clip: PD.Group<PD.Normalize<{
59
+ variant: import("../../../mol-util/clip").Clip.Variant;
60
+ objects: PD.Normalize<{
61
+ type: any;
62
+ invert: any;
63
+ position: any;
64
+ rotation: any;
65
+ scale: any;
66
+ }>[];
67
+ }>>;
48
68
  };
49
69
  export declare type ConfalPyramidsRepresentation = StructureRepresentation<ConfalPyramidsParams>;
50
70
  export declare function ConfalPyramidsRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter<Structure, ConfalPyramidsParams>): ConfalPyramidsRepresentation;
@@ -65,4 +85,14 @@ export declare const ConfalPyramidsRepresentationProvider: StructureRepresentati
65
85
  roughness: number;
66
86
  bumpiness: number;
67
87
  }>>;
88
+ clip: PD.Group<PD.Normalize<{
89
+ variant: import("../../../mol-util/clip").Clip.Variant;
90
+ objects: PD.Normalize<{
91
+ type: any;
92
+ invert: any;
93
+ position: any;
94
+ rotation: any;
95
+ scale: any;
96
+ }>[];
97
+ }>>;
68
98
  }, "confal-pyramids">;
@@ -33,6 +33,10 @@ declare const AssemblySymmetry3D: StateTransformer<PluginStateObject.Molecule.St
33
33
  roughness: number;
34
34
  bumpiness: number;
35
35
  }>;
36
+ clip: PD.Normalize<{
37
+ variant: any;
38
+ objects: any;
39
+ }>;
36
40
  axesColor: PD.NamedParams<PD.Normalize<{
37
41
  colorValue: any;
38
42
  }>, "uniform"> | PD.NamedParams<PD.Normalize<unknown>, "byOrder">;
@@ -25,6 +25,16 @@ export declare const AssemblySymmetryParams: {
25
25
  roughness: number;
26
26
  bumpiness: number;
27
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
+ }>[];
37
+ }>>;
28
38
  axesColor: PD.Mapped<PD.NamedParams<PD.Normalize<{
29
39
  colorValue: Color;
30
40
  }>, "uniform"> | PD.NamedParams<PD.Normalize<unknown>, "byOrder">>;
@@ -40,6 +40,16 @@ export declare const IntraUnitClashParams: {
40
40
  roughness: number;
41
41
  bumpiness: number;
42
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
+ }>[];
52
+ }>>;
43
53
  };
44
54
  export declare type IntraUnitClashParams = typeof IntraUnitClashParams;
45
55
  export declare function IntraUnitClashVisual(materialId: number): UnitsVisual<IntraUnitClashParams>;
@@ -72,6 +82,16 @@ export declare const InterUnitClashParams: {
72
82
  roughness: number;
73
83
  bumpiness: number;
74
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
+ }>[];
94
+ }>>;
75
95
  };
76
96
  export declare type InterUnitClashParams = typeof InterUnitClashParams;
77
97
  export declare function InterUnitClashVisual(materialId: number): ComplexVisual<InterUnitClashParams>;
@@ -105,6 +125,16 @@ export declare const ClashesParams: {
105
125
  roughness: number;
106
126
  bumpiness: number;
107
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
+ }>[];
137
+ }>>;
108
138
  };
109
139
  export declare type ClashesParams = typeof ClashesParams;
110
140
  export declare function getClashesParams(ctx: ThemeRegistryContext, structure: Structure): {
@@ -137,6 +167,16 @@ export declare function getClashesParams(ctx: ThemeRegistryContext, structure: S
137
167
  roughness: number;
138
168
  bumpiness: number;
139
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
+ }>[];
179
+ }>>;
140
180
  };
141
181
  export declare type ClashesRepresentation = StructureRepresentation<ClashesParams>;
142
182
  export declare function ClashesRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter<Structure, ClashesParams>): ClashesRepresentation;
@@ -170,4 +210,14 @@ export declare const ClashesRepresentationProvider: StructureRepresentationProvi
170
210
  roughness: number;
171
211
  bumpiness: number;
172
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
+ }>[];
222
+ }>>;
173
223
  }, ValidationReport.Tag.Clashes>;
@@ -107,10 +107,6 @@ export declare const Canvas3DParams: {
107
107
  }>[];
108
108
  ambientColor: import("../mol-util/color").Color;
109
109
  ambientIntensity: number;
110
- clip: PD.Normalize<{
111
- variant: any;
112
- objects: any;
113
- }>;
114
110
  }>>;
115
111
  trackball: PD.Group<PD.Normalize<{
116
112
  noScroll: boolean;
@@ -169,6 +165,7 @@ export declare const Canvas3DParams: {
169
165
  bumpAmplitude: any;
170
166
  quality: any;
171
167
  material: any;
168
+ clip: any;
172
169
  }>, "on">;
173
170
  }>>;
174
171
  };
@@ -258,10 +255,6 @@ export declare const DefaultCanvas3DParams: PD.Values<{
258
255
  }>[];
259
256
  ambientColor: import("../mol-util/color").Color;
260
257
  ambientIntensity: number;
261
- clip: PD.Normalize<{
262
- variant: any;
263
- objects: any;
264
- }>;
265
258
  }>>;
266
259
  trackball: PD.Group<PD.Normalize<{
267
260
  noScroll: boolean;
@@ -320,6 +313,7 @@ export declare const DefaultCanvas3DParams: PD.Values<{
320
313
  bumpAmplitude: any;
321
314
  quality: any;
322
315
  material: any;
316
+ clip: any;
323
317
  }>, "on">;
324
318
  }>>;
325
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,
@@ -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
@@ -30,6 +30,10 @@ export declare const CameraHelperParams: {
30
30
  roughness: number;
31
31
  bumpiness: number;
32
32
  }>;
33
+ clip: PD.Normalize<{
34
+ variant: any;
35
+ objects: any;
36
+ }>;
33
37
  }>, "on">>;
34
38
  };
35
39
  export declare type CameraHelperParams = typeof CameraHelperParams;