molstar 3.4.0 → 3.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (401) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +202 -197
  3. package/build/viewer/embedded.html +43 -43
  4. package/build/viewer/index.html +106 -106
  5. package/build/viewer/molstar.js +1 -1
  6. package/build/viewer/molstar.js.LICENSE.txt +12 -14
  7. package/lib/apps/docking-viewer/index.html +36 -36
  8. package/lib/apps/docking-viewer/index.js +1 -1
  9. package/lib/apps/viewer/app.js +1 -1
  10. package/lib/apps/viewer/embedded.html +43 -43
  11. package/lib/apps/viewer/index.html +106 -106
  12. package/lib/cli/chem-comp-dict/util.d.ts +20 -20
  13. package/lib/cli/cif2bcif/converter.js +1 -1
  14. package/lib/cli/cif2bcif/index.js +4 -4
  15. package/lib/cli/cifschema/util/cif-dic.d.ts +1 -1
  16. package/lib/cli/cifschema/util/cif-dic.js +7 -5
  17. package/lib/cli/cifschema/util/generate.d.ts +1 -1
  18. package/lib/cli/cifschema/util/generate.js +12 -3
  19. package/lib/cli/cifschema/util/schema.d.ts +3 -3
  20. package/lib/cli/cifschema/util/schema.js +1 -1
  21. package/lib/commonjs/apps/docking-viewer/index.js +2 -2
  22. package/lib/commonjs/apps/viewer/app.js +2 -2
  23. package/lib/commonjs/cli/chem-comp-dict/util.d.ts +20 -20
  24. package/lib/commonjs/cli/cif2bcif/converter.js +1 -1
  25. package/lib/commonjs/cli/cif2bcif/index.js +4 -4
  26. package/lib/commonjs/cli/cifschema/util/cif-dic.d.ts +1 -1
  27. package/lib/commonjs/cli/cifschema/util/cif-dic.js +7 -5
  28. package/lib/commonjs/cli/cifschema/util/generate.d.ts +1 -1
  29. package/lib/commonjs/cli/cifschema/util/generate.js +12 -3
  30. package/lib/commonjs/cli/cifschema/util/schema.d.ts +3 -3
  31. package/lib/commonjs/cli/cifschema/util/schema.js +1 -1
  32. package/lib/commonjs/examples/alpha-orbitals/index.js +2 -2
  33. package/lib/commonjs/examples/basic-wrapper/index.js +2 -2
  34. package/lib/commonjs/examples/lighting/index.js +2 -2
  35. package/lib/commonjs/examples/proteopedia-wrapper/index.js +2 -2
  36. package/lib/commonjs/extensions/anvil/behavior.d.ts +1 -0
  37. package/lib/commonjs/extensions/anvil/representation.d.ts +4 -0
  38. package/lib/commonjs/extensions/cellpack/representation.d.ts +1 -0
  39. package/lib/commonjs/extensions/dnatco/confal-pyramids/color.d.ts +397 -2
  40. package/lib/commonjs/extensions/dnatco/confal-pyramids/color.js +223 -131
  41. package/lib/commonjs/extensions/dnatco/confal-pyramids/property.js +1 -3
  42. package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +3 -0
  43. package/lib/commonjs/extensions/dnatco/confal-pyramids/util.js +18 -19
  44. package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +1 -0
  45. package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.d.ts +1 -0
  46. package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +5 -0
  47. package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +2 -0
  48. package/lib/commonjs/mol-canvas3d/helper/camera-helper.d.ts +1 -0
  49. package/lib/commonjs/mol-canvas3d/helper/handle-helper.d.ts +1 -0
  50. package/lib/commonjs/mol-canvas3d/helper/helper.d.ts +2 -0
  51. package/lib/commonjs/mol-canvas3d/passes/image.d.ts +1 -0
  52. package/lib/commonjs/mol-data/db/column.d.ts +10 -3
  53. package/lib/commonjs/mol-data/db/column.js +39 -17
  54. package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +4 -2
  55. package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.js +2 -2
  56. package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +0 -1
  57. package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.d.ts +1 -1
  58. package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.js +5 -3
  59. package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +2 -1
  60. package/lib/commonjs/mol-geo/geometry/mesh/mesh.js +2 -2
  61. package/lib/commonjs/mol-geo/geometry/points/points.d.ts +1 -1
  62. package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +2 -1
  63. package/lib/commonjs/mol-geo/geometry/spheres/spheres.js +2 -2
  64. package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.d.ts +1 -1
  65. package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.js +6 -4
  66. package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +2 -1
  67. package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js +2 -2
  68. package/lib/commonjs/mol-gl/shader/chunks/wboit-write.glsl.d.ts +2 -2
  69. package/lib/commonjs/mol-gl/shader/chunks/wboit-write.glsl.js +2 -2
  70. package/lib/commonjs/mol-gl/shader/direct-volume.frag.d.ts +1 -1
  71. package/lib/commonjs/mol-gl/shader/direct-volume.frag.js +1 -1
  72. package/lib/commonjs/mol-gl/shader/image.frag.d.ts +2 -2
  73. package/lib/commonjs/mol-gl/shader/image.frag.js +2 -2
  74. package/lib/commonjs/mol-gl/shader/lines.frag.d.ts +2 -2
  75. package/lib/commonjs/mol-gl/shader/lines.frag.js +2 -2
  76. package/lib/commonjs/mol-gl/shader/points.frag.d.ts +2 -2
  77. package/lib/commonjs/mol-gl/shader/points.frag.js +2 -2
  78. package/lib/commonjs/mol-gl/shader/text.frag.d.ts +2 -2
  79. package/lib/commonjs/mol-gl/shader/text.frag.js +2 -2
  80. package/lib/commonjs/mol-gl/webgl/buffer.d.ts +2 -2
  81. package/lib/commonjs/mol-gl/webgl/buffer.js +12 -12
  82. package/lib/commonjs/mol-gl/webgl/context.d.ts +1 -1
  83. package/lib/commonjs/mol-gl/webgl/context.js +2 -2
  84. package/lib/commonjs/mol-gl/webgl/program.d.ts +1 -1
  85. package/lib/commonjs/mol-gl/webgl/program.js +10 -4
  86. package/lib/commonjs/mol-io/reader/cif/schema/bird.d.ts +8 -8
  87. package/lib/commonjs/mol-io/reader/cif/schema/bird.js +12 -11
  88. package/lib/commonjs/mol-io/reader/cif/schema/ccd-extras.d.ts +1 -1
  89. package/lib/commonjs/mol-io/reader/cif/schema/ccd.d.ts +12 -12
  90. package/lib/commonjs/mol-io/reader/cif/schema/ccd.js +13 -12
  91. package/lib/commonjs/mol-io/reader/cif/schema/mmcif-extras.d.ts +5 -5
  92. package/lib/commonjs/mol-io/reader/cif/schema/mmcif-extras.js +2 -2
  93. package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +30 -26
  94. package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +44 -39
  95. package/lib/commonjs/mol-io/reader/cif/schema.d.ts +1 -1
  96. package/lib/commonjs/mol-io/reader/cif/schema.js +22 -2
  97. package/lib/commonjs/mol-io/writer/mol/encoder.js +1 -1
  98. package/lib/commonjs/mol-math/geometry/common.d.ts +2 -1
  99. package/lib/commonjs/mol-math/geometry/common.js +1 -1
  100. package/lib/commonjs/mol-math/geometry/gaussian-density/cpu.d.ts +1 -1
  101. package/lib/commonjs/mol-math/geometry/gaussian-density/cpu.js +2 -2
  102. package/lib/commonjs/mol-math/geometry/gaussian-density/gpu.d.ts +1 -1
  103. package/lib/commonjs/mol-math/geometry/gaussian-density/gpu.js +7 -7
  104. package/lib/commonjs/mol-math/geometry/gaussian-density.d.ts +2 -2
  105. package/lib/commonjs/mol-math/geometry/gaussian-density.js +1 -1
  106. package/lib/commonjs/mol-math/geometry/molecular-surface.d.ts +2 -1
  107. package/lib/commonjs/mol-math/geometry/molecular-surface.js +2 -2
  108. package/lib/commonjs/mol-math/geometry/primitives/box3d.js +2 -1
  109. package/lib/commonjs/mol-math/geometry/primitives/sphere3d.js +12 -6
  110. package/lib/commonjs/mol-model/structure/model/model.js +14 -6
  111. package/lib/commonjs/mol-model/structure/model/properties/common.js +1 -1
  112. package/lib/commonjs/mol-model/structure/model/types.d.ts +19 -17
  113. package/lib/commonjs/mol-model/structure/model/types.js +30 -31
  114. package/lib/commonjs/mol-model/structure/query/queries/generators.js +1 -1
  115. package/lib/commonjs/mol-model/structure/structure/properties.d.ts +1 -1
  116. package/lib/commonjs/mol-model/structure/structure/unit/bonds/inter-compute.js +2 -4
  117. package/lib/commonjs/mol-model/structure/structure/unit/bonds/intra-compute.js +1 -3
  118. package/lib/commonjs/mol-model/structure/structure/unit/rings.js +3 -0
  119. package/lib/commonjs/mol-model-formats/shape/ply.d.ts +2 -0
  120. package/lib/commonjs/mol-model-formats/structure/basic/entities.js +1 -1
  121. package/lib/commonjs/mol-model-formats/structure/basic/schema.d.ts +2 -2
  122. package/lib/commonjs/mol-model-formats/structure/common/component.d.ts +3 -3
  123. package/lib/commonjs/mol-model-formats/structure/common/component.js +46 -46
  124. package/lib/commonjs/mol-model-formats/structure/pdb/atom-site.d.ts +2 -2
  125. package/lib/commonjs/mol-model-formats/structure/pdb/atom-site.js +72 -7
  126. package/lib/commonjs/mol-model-formats/structure/pdb/secondary-structure.js +11 -11
  127. package/lib/commonjs/mol-model-formats/structure/pdb/to-cif.js +7 -2
  128. package/lib/commonjs/mol-model-formats/structure/property/bonds/chem_comp.js +1 -1
  129. package/lib/commonjs/mol-model-formats/structure/property/bonds/struct_conn.js +1 -1
  130. package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -0
  131. package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +1 -0
  132. package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +3 -0
  133. package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +4 -0
  134. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
  135. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/util.js +4 -2
  136. package/lib/commonjs/mol-plugin/commands.d.ts +1 -0
  137. package/lib/commonjs/mol-plugin/util/viewport-screenshot.d.ts +3 -0
  138. package/lib/commonjs/mol-plugin-state/actions/structure.d.ts +6 -6
  139. package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.d.ts +1 -1
  140. package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.js +1 -1
  141. package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +6 -0
  142. package/lib/commonjs/mol-plugin-ui/react18.d.ts +11 -0
  143. package/lib/commonjs/mol-plugin-ui/react18.js +38 -0
  144. package/lib/commonjs/mol-plugin-ui/state/common.js +6 -7
  145. package/lib/commonjs/mol-plugin-ui/structure/focus.d.ts +1 -1
  146. package/lib/commonjs/mol-plugin-ui/structure/focus.js +2 -2
  147. package/lib/commonjs/mol-plugin-ui/task.d.ts +2 -21
  148. package/lib/commonjs/mol-plugin-ui/task.js +39 -43
  149. package/lib/commonjs/mol-repr/shape/loci/angle.d.ts +1 -0
  150. package/lib/commonjs/mol-repr/shape/loci/dihedral.d.ts +1 -0
  151. package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +1 -0
  152. package/lib/commonjs/mol-repr/shape/loci/plane.d.ts +1 -0
  153. package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +1 -0
  154. package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +3 -0
  155. package/lib/commonjs/mol-repr/structure/params.d.ts +4 -0
  156. package/lib/commonjs/mol-repr/structure/registry.d.ts +10 -0
  157. package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +3 -0
  158. package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +3 -0
  159. package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +3 -0
  160. package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +3 -0
  161. package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +3 -0
  162. package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +3 -0
  163. package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +3 -0
  164. package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +3 -0
  165. package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +3 -0
  166. package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +3 -0
  167. package/lib/commonjs/mol-repr/structure/units-visual.d.ts +4 -0
  168. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +2 -0
  169. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +2 -0
  170. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +1 -0
  171. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -0
  172. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +1 -0
  173. package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +2 -0
  174. package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -0
  175. package/lib/commonjs/mol-repr/structure/visual/gaussian-density-volume.js +2 -3
  176. package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +5 -1
  177. package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.js +9 -9
  178. package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +1 -1
  179. package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-wireframe.js +4 -5
  180. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -0
  181. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.js +3 -3
  182. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +1 -1
  183. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-wireframe.js +4 -4
  184. package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -0
  185. package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -0
  186. package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -0
  187. package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +2 -0
  188. package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -0
  189. package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -0
  190. package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -0
  191. package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +1 -0
  192. package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -0
  193. package/lib/commonjs/mol-repr/structure/visual/util/common.d.ts +1 -3
  194. package/lib/commonjs/mol-repr/structure/visual/util/common.js +2 -27
  195. package/lib/commonjs/mol-repr/util.d.ts +2 -1
  196. package/lib/commonjs/mol-repr/util.js +2 -2
  197. package/lib/commonjs/mol-repr/volume/isosurface.d.ts +5 -0
  198. package/lib/commonjs/mol-repr/volume/registry.d.ts +1 -0
  199. package/lib/commonjs/mol-script/language/builder.d.ts +1 -0
  200. package/lib/examples/alpha-orbitals/index.html +61 -61
  201. package/lib/examples/alpha-orbitals/index.js +1 -1
  202. package/lib/examples/basic-wrapper/index.html +137 -137
  203. package/lib/examples/basic-wrapper/index.js +1 -1
  204. package/lib/examples/lighting/index.html +88 -88
  205. package/lib/examples/lighting/index.js +1 -1
  206. package/lib/examples/proteopedia-wrapper/index.html +236 -236
  207. package/lib/examples/proteopedia-wrapper/index.js +1 -1
  208. package/lib/extensions/anvil/behavior.d.ts +1 -0
  209. package/lib/extensions/anvil/representation.d.ts +4 -0
  210. package/lib/extensions/cellpack/representation.d.ts +1 -0
  211. package/lib/extensions/dnatco/confal-pyramids/color.d.ts +397 -2
  212. package/lib/extensions/dnatco/confal-pyramids/color.js +224 -132
  213. package/lib/extensions/dnatco/confal-pyramids/property.js +1 -3
  214. package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +3 -0
  215. package/lib/extensions/dnatco/confal-pyramids/util.js +19 -20
  216. package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +1 -0
  217. package/lib/extensions/rcsb/assembly-symmetry/representation.d.ts +1 -0
  218. package/lib/extensions/rcsb/validation-report/representation.d.ts +5 -0
  219. package/lib/mol-canvas3d/canvas3d.d.ts +2 -0
  220. package/lib/mol-canvas3d/helper/camera-helper.d.ts +1 -0
  221. package/lib/mol-canvas3d/helper/handle-helper.d.ts +1 -0
  222. package/lib/mol-canvas3d/helper/helper.d.ts +2 -0
  223. package/lib/mol-canvas3d/passes/image.d.ts +1 -0
  224. package/lib/mol-data/db/column.d.ts +10 -3
  225. package/lib/mol-data/db/column.js +39 -18
  226. package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +4 -2
  227. package/lib/mol-geo/geometry/cylinders/cylinders.js +2 -2
  228. package/lib/mol-geo/geometry/lines/lines.d.ts +0 -1
  229. package/lib/mol-geo/geometry/mesh/color-smoothing.d.ts +1 -1
  230. package/lib/mol-geo/geometry/mesh/color-smoothing.js +5 -3
  231. package/lib/mol-geo/geometry/mesh/mesh.d.ts +2 -1
  232. package/lib/mol-geo/geometry/mesh/mesh.js +2 -2
  233. package/lib/mol-geo/geometry/points/points.d.ts +1 -1
  234. package/lib/mol-geo/geometry/spheres/spheres.d.ts +2 -1
  235. package/lib/mol-geo/geometry/spheres/spheres.js +2 -2
  236. package/lib/mol-geo/geometry/texture-mesh/color-smoothing.d.ts +1 -1
  237. package/lib/mol-geo/geometry/texture-mesh/color-smoothing.js +6 -4
  238. package/lib/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +2 -1
  239. package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js +2 -2
  240. package/lib/mol-gl/shader/chunks/wboit-write.glsl.d.ts +2 -2
  241. package/lib/mol-gl/shader/chunks/wboit-write.glsl.js +2 -2
  242. package/lib/mol-gl/shader/direct-volume.frag.d.ts +1 -1
  243. package/lib/mol-gl/shader/direct-volume.frag.js +1 -1
  244. package/lib/mol-gl/shader/image.frag.d.ts +2 -2
  245. package/lib/mol-gl/shader/image.frag.js +2 -2
  246. package/lib/mol-gl/shader/lines.frag.d.ts +2 -2
  247. package/lib/mol-gl/shader/lines.frag.js +2 -2
  248. package/lib/mol-gl/shader/points.frag.d.ts +2 -2
  249. package/lib/mol-gl/shader/points.frag.js +2 -2
  250. package/lib/mol-gl/shader/text.frag.d.ts +2 -2
  251. package/lib/mol-gl/shader/text.frag.js +2 -2
  252. package/lib/mol-gl/webgl/buffer.d.ts +2 -2
  253. package/lib/mol-gl/webgl/buffer.js +12 -12
  254. package/lib/mol-gl/webgl/context.d.ts +1 -1
  255. package/lib/mol-gl/webgl/context.js +2 -2
  256. package/lib/mol-gl/webgl/program.d.ts +1 -1
  257. package/lib/mol-gl/webgl/program.js +10 -4
  258. package/lib/mol-io/reader/cif/schema/bird.d.ts +8 -8
  259. package/lib/mol-io/reader/cif/schema/bird.js +12 -11
  260. package/lib/mol-io/reader/cif/schema/ccd-extras.d.ts +1 -1
  261. package/lib/mol-io/reader/cif/schema/ccd.d.ts +12 -12
  262. package/lib/mol-io/reader/cif/schema/ccd.js +13 -12
  263. package/lib/mol-io/reader/cif/schema/mmcif-extras.d.ts +5 -5
  264. package/lib/mol-io/reader/cif/schema/mmcif-extras.js +2 -2
  265. package/lib/mol-io/reader/cif/schema/mmcif.d.ts +30 -26
  266. package/lib/mol-io/reader/cif/schema/mmcif.js +44 -39
  267. package/lib/mol-io/reader/cif/schema.d.ts +1 -1
  268. package/lib/mol-io/reader/cif/schema.js +22 -2
  269. package/lib/mol-io/writer/mol/encoder.js +1 -1
  270. package/lib/mol-math/geometry/common.d.ts +2 -1
  271. package/lib/mol-math/geometry/common.js +1 -1
  272. package/lib/mol-math/geometry/gaussian-density/cpu.d.ts +1 -1
  273. package/lib/mol-math/geometry/gaussian-density/cpu.js +2 -2
  274. package/lib/mol-math/geometry/gaussian-density/gpu.d.ts +1 -1
  275. package/lib/mol-math/geometry/gaussian-density/gpu.js +7 -7
  276. package/lib/mol-math/geometry/gaussian-density.d.ts +2 -2
  277. package/lib/mol-math/geometry/gaussian-density.js +1 -1
  278. package/lib/mol-math/geometry/molecular-surface.d.ts +2 -1
  279. package/lib/mol-math/geometry/molecular-surface.js +2 -2
  280. package/lib/mol-math/geometry/primitives/box3d.js +2 -1
  281. package/lib/mol-math/geometry/primitives/sphere3d.js +12 -6
  282. package/lib/mol-model/structure/model/model.js +14 -6
  283. package/lib/mol-model/structure/model/properties/common.js +1 -1
  284. package/lib/mol-model/structure/model/types.d.ts +19 -17
  285. package/lib/mol-model/structure/model/types.js +30 -31
  286. package/lib/mol-model/structure/query/queries/generators.js +1 -1
  287. package/lib/mol-model/structure/structure/properties.d.ts +1 -1
  288. package/lib/mol-model/structure/structure/unit/bonds/inter-compute.js +2 -4
  289. package/lib/mol-model/structure/structure/unit/bonds/intra-compute.js +1 -3
  290. package/lib/mol-model/structure/structure/unit/rings.js +3 -0
  291. package/lib/mol-model-formats/shape/ply.d.ts +2 -0
  292. package/lib/mol-model-formats/structure/basic/entities.js +1 -1
  293. package/lib/mol-model-formats/structure/basic/schema.d.ts +2 -2
  294. package/lib/mol-model-formats/structure/common/component.d.ts +3 -3
  295. package/lib/mol-model-formats/structure/common/component.js +46 -46
  296. package/lib/mol-model-formats/structure/pdb/atom-site.d.ts +2 -2
  297. package/lib/mol-model-formats/structure/pdb/atom-site.js +72 -7
  298. package/lib/mol-model-formats/structure/pdb/secondary-structure.js +11 -11
  299. package/lib/mol-model-formats/structure/pdb/to-cif.js +7 -2
  300. package/lib/mol-model-formats/structure/property/bonds/chem_comp.js +1 -1
  301. package/lib/mol-model-formats/structure/property/bonds/struct_conn.js +1 -1
  302. package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -0
  303. package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +1 -0
  304. package/lib/mol-model-props/computed/representations/interactions.d.ts +3 -0
  305. package/lib/mol-model-props/integrative/cross-link-restraint/representation.d.ts +4 -0
  306. package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
  307. package/lib/mol-plugin/behavior/dynamic/volume-streaming/util.js +4 -2
  308. package/lib/mol-plugin/commands.d.ts +1 -0
  309. package/lib/mol-plugin/util/viewport-screenshot.d.ts +3 -0
  310. package/lib/mol-plugin/version.js +2 -2
  311. package/lib/mol-plugin-state/actions/structure.d.ts +6 -6
  312. package/lib/mol-plugin-state/helpers/structure-selection-query.d.ts +1 -1
  313. package/lib/mol-plugin-state/helpers/structure-selection-query.js +1 -1
  314. package/lib/mol-plugin-state/transforms/representation.d.ts +6 -0
  315. package/lib/mol-plugin-ui/react18.d.ts +11 -0
  316. package/lib/mol-plugin-ui/react18.js +34 -0
  317. package/lib/mol-plugin-ui/skin/base/base.scss +32 -32
  318. package/lib/mol-plugin-ui/skin/base/components/controls-base.scss +333 -333
  319. package/lib/mol-plugin-ui/skin/base/components/controls.scss +418 -418
  320. package/lib/mol-plugin-ui/skin/base/components/help.scss +27 -27
  321. package/lib/mol-plugin-ui/skin/base/components/line-graph.scss +67 -67
  322. package/lib/mol-plugin-ui/skin/base/components/log.scss +100 -100
  323. package/lib/mol-plugin-ui/skin/base/components/misc.scss +643 -643
  324. package/lib/mol-plugin-ui/skin/base/components/sequence.scss +125 -125
  325. package/lib/mol-plugin-ui/skin/base/components/slider.scss +165 -165
  326. package/lib/mol-plugin-ui/skin/base/components/tasks.scss +99 -99
  327. package/lib/mol-plugin-ui/skin/base/components/toast.scss +83 -83
  328. package/lib/mol-plugin-ui/skin/base/components/transformer.scss +163 -163
  329. package/lib/mol-plugin-ui/skin/base/components/viewport.scss +128 -128
  330. package/lib/mol-plugin-ui/skin/base/layout/common.scss +71 -71
  331. package/lib/mol-plugin-ui/skin/base/layout/controls-landscape.scss +89 -89
  332. package/lib/mol-plugin-ui/skin/base/layout/controls-outside.scss +98 -98
  333. package/lib/mol-plugin-ui/skin/base/layout/controls-portrait.scss +108 -108
  334. package/lib/mol-plugin-ui/skin/base/layout.scss +40 -40
  335. package/lib/mol-plugin-ui/skin/base/logo.scss +12 -12
  336. package/lib/mol-plugin-ui/skin/base/normalize.scss +209 -209
  337. package/lib/mol-plugin-ui/skin/base/ui.scss +40 -40
  338. package/lib/mol-plugin-ui/skin/base/variables.scss +85 -85
  339. package/lib/mol-plugin-ui/skin/blue.scss +1 -1
  340. package/lib/mol-plugin-ui/skin/colors/blue.scss +23 -23
  341. package/lib/mol-plugin-ui/skin/colors/dark.scss +23 -23
  342. package/lib/mol-plugin-ui/skin/colors/light.scss +29 -29
  343. package/lib/mol-plugin-ui/skin/dark.scss +1 -1
  344. package/lib/mol-plugin-ui/skin/light.scss +1 -1
  345. package/lib/mol-plugin-ui/state/common.js +7 -8
  346. package/lib/mol-plugin-ui/structure/focus.d.ts +1 -1
  347. package/lib/mol-plugin-ui/structure/focus.js +2 -2
  348. package/lib/mol-plugin-ui/task.d.ts +2 -21
  349. package/lib/mol-plugin-ui/task.js +40 -46
  350. package/lib/mol-repr/shape/loci/angle.d.ts +1 -0
  351. package/lib/mol-repr/shape/loci/dihedral.d.ts +1 -0
  352. package/lib/mol-repr/shape/loci/orientation.d.ts +1 -0
  353. package/lib/mol-repr/shape/loci/plane.d.ts +1 -0
  354. package/lib/mol-repr/shape/model/unitcell.d.ts +1 -0
  355. package/lib/mol-repr/structure/complex-visual.d.ts +3 -0
  356. package/lib/mol-repr/structure/params.d.ts +4 -0
  357. package/lib/mol-repr/structure/registry.d.ts +10 -0
  358. package/lib/mol-repr/structure/representation/backbone.d.ts +3 -0
  359. package/lib/mol-repr/structure/representation/ball-and-stick.d.ts +3 -0
  360. package/lib/mol-repr/structure/representation/carbohydrate.d.ts +3 -0
  361. package/lib/mol-repr/structure/representation/cartoon.d.ts +3 -0
  362. package/lib/mol-repr/structure/representation/ellipsoid.d.ts +3 -0
  363. package/lib/mol-repr/structure/representation/gaussian-surface.d.ts +3 -0
  364. package/lib/mol-repr/structure/representation/molecular-surface.d.ts +3 -0
  365. package/lib/mol-repr/structure/representation/orientation.d.ts +3 -0
  366. package/lib/mol-repr/structure/representation/putty.d.ts +3 -0
  367. package/lib/mol-repr/structure/representation/spacefill.d.ts +3 -0
  368. package/lib/mol-repr/structure/units-visual.d.ts +4 -0
  369. package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +2 -0
  370. package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +2 -0
  371. package/lib/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +1 -0
  372. package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -0
  373. package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +1 -0
  374. package/lib/mol-repr/structure/visual/element-sphere.d.ts +2 -0
  375. package/lib/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -0
  376. package/lib/mol-repr/structure/visual/gaussian-density-volume.js +2 -3
  377. package/lib/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +5 -1
  378. package/lib/mol-repr/structure/visual/gaussian-surface-mesh.js +10 -10
  379. package/lib/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +1 -1
  380. package/lib/mol-repr/structure/visual/gaussian-surface-wireframe.js +4 -5
  381. package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -0
  382. package/lib/mol-repr/structure/visual/molecular-surface-mesh.js +4 -4
  383. package/lib/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +1 -1
  384. package/lib/mol-repr/structure/visual/molecular-surface-wireframe.js +5 -5
  385. package/lib/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -0
  386. package/lib/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -0
  387. package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -0
  388. package/lib/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +2 -0
  389. package/lib/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -0
  390. package/lib/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -0
  391. package/lib/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -0
  392. package/lib/mol-repr/structure/visual/polymer-trace-mesh.d.ts +1 -0
  393. package/lib/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -0
  394. package/lib/mol-repr/structure/visual/util/common.d.ts +1 -3
  395. package/lib/mol-repr/structure/visual/util/common.js +1 -24
  396. package/lib/mol-repr/util.d.ts +2 -1
  397. package/lib/mol-repr/util.js +2 -2
  398. package/lib/mol-repr/volume/isosurface.d.ts +5 -0
  399. package/lib/mol-repr/volume/registry.d.ts +1 -0
  400. package/lib/mol-script/language/builder.d.ts +1 -0
  401. package/package.json +162 -160
@@ -19,6 +19,7 @@ export declare const CartoonParams: {
19
19
  flatShaded: PD.BooleanParam;
20
20
  ignoreLight: PD.BooleanParam;
21
21
  xrayShaded: PD.BooleanParam;
22
+ allowTransparentBackfaces: PD.BooleanParam;
22
23
  bumpAmplitude: PD.Numeric;
23
24
  alpha: PD.Numeric;
24
25
  quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
@@ -57,6 +58,7 @@ export declare function getCartoonParams(ctx: ThemeRegistryContext, structure: S
57
58
  flatShaded: PD.BooleanParam;
58
59
  ignoreLight: PD.BooleanParam;
59
60
  xrayShaded: PD.BooleanParam;
61
+ allowTransparentBackfaces: PD.BooleanParam;
60
62
  bumpAmplitude: PD.Numeric;
61
63
  alpha: PD.Numeric;
62
64
  quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
@@ -96,6 +98,7 @@ export declare const CartoonRepresentationProvider: StructureRepresentationProvi
96
98
  flatShaded: PD.BooleanParam;
97
99
  ignoreLight: PD.BooleanParam;
98
100
  xrayShaded: PD.BooleanParam;
101
+ allowTransparentBackfaces: PD.BooleanParam;
99
102
  bumpAmplitude: PD.Numeric;
100
103
  alpha: PD.Numeric;
101
104
  quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
@@ -36,6 +36,7 @@ export declare const EllipsoidParams: {
36
36
  doubleSided: PD.BooleanParam;
37
37
  ignoreLight: PD.BooleanParam;
38
38
  xrayShaded: PD.BooleanParam;
39
+ allowTransparentBackfaces: PD.BooleanParam;
39
40
  bumpAmplitude: PD.Numeric;
40
41
  alpha: PD.Numeric;
41
42
  quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
@@ -87,6 +88,7 @@ export declare function getEllipsoidParams(ctx: ThemeRegistryContext, structure:
87
88
  doubleSided: PD.BooleanParam;
88
89
  ignoreLight: PD.BooleanParam;
89
90
  xrayShaded: PD.BooleanParam;
91
+ allowTransparentBackfaces: PD.BooleanParam;
90
92
  bumpAmplitude: PD.Numeric;
91
93
  alpha: PD.Numeric;
92
94
  quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
@@ -139,6 +141,7 @@ export declare const EllipsoidRepresentationProvider: StructureRepresentationPro
139
141
  doubleSided: PD.BooleanParam;
140
142
  ignoreLight: PD.BooleanParam;
141
143
  xrayShaded: PD.BooleanParam;
144
+ allowTransparentBackfaces: PD.BooleanParam;
142
145
  bumpAmplitude: PD.Numeric;
143
146
  alpha: PD.Numeric;
144
147
  quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
@@ -47,6 +47,7 @@ export declare const GaussianSurfaceParams: {
47
47
  flatShaded: PD.BooleanParam;
48
48
  ignoreLight: PD.BooleanParam;
49
49
  xrayShaded: PD.BooleanParam;
50
+ allowTransparentBackfaces: PD.BooleanParam;
50
51
  bumpAmplitude: PD.Numeric;
51
52
  };
52
53
  export declare type GaussianSurfaceParams = typeof GaussianSurfaceParams;
@@ -89,6 +90,7 @@ export declare function getGaussianSurfaceParams(ctx: ThemeRegistryContext, stru
89
90
  flatShaded: PD.BooleanParam;
90
91
  ignoreLight: PD.BooleanParam;
91
92
  xrayShaded: PD.BooleanParam;
93
+ allowTransparentBackfaces: PD.BooleanParam;
92
94
  bumpAmplitude: PD.Numeric;
93
95
  };
94
96
  export declare type GaussianSurfaceRepresentation = StructureRepresentation<GaussianSurfaceParams>;
@@ -132,5 +134,6 @@ export declare const GaussianSurfaceRepresentationProvider: StructureRepresentat
132
134
  flatShaded: PD.BooleanParam;
133
135
  ignoreLight: PD.BooleanParam;
134
136
  xrayShaded: PD.BooleanParam;
137
+ allowTransparentBackfaces: PD.BooleanParam;
135
138
  bumpAmplitude: PD.Numeric;
136
139
  }, "gaussian-surface">;
@@ -46,6 +46,7 @@ export declare const MolecularSurfaceParams: {
46
46
  flatShaded: PD.BooleanParam;
47
47
  ignoreLight: PD.BooleanParam;
48
48
  xrayShaded: PD.BooleanParam;
49
+ allowTransparentBackfaces: PD.BooleanParam;
49
50
  bumpAmplitude: PD.Numeric;
50
51
  };
51
52
  export declare type MolecularSurfaceParams = typeof MolecularSurfaceParams;
@@ -87,6 +88,7 @@ export declare function getMolecularSurfaceParams(ctx: ThemeRegistryContext, str
87
88
  flatShaded: PD.BooleanParam;
88
89
  ignoreLight: PD.BooleanParam;
89
90
  xrayShaded: PD.BooleanParam;
91
+ allowTransparentBackfaces: PD.BooleanParam;
90
92
  bumpAmplitude: PD.Numeric;
91
93
  };
92
94
  export declare type MolecularSurfaceRepresentation = StructureRepresentation<MolecularSurfaceParams>;
@@ -129,5 +131,6 @@ export declare const MolecularSurfaceRepresentationProvider: StructureRepresenta
129
131
  flatShaded: PD.BooleanParam;
130
132
  ignoreLight: PD.BooleanParam;
131
133
  xrayShaded: PD.BooleanParam;
134
+ allowTransparentBackfaces: PD.BooleanParam;
132
135
  bumpAmplitude: PD.Numeric;
133
136
  }, "molecular-surface">;
@@ -20,6 +20,7 @@ export declare const OrientationParams: {
20
20
  flatShaded: PD.BooleanParam;
21
21
  ignoreLight: PD.BooleanParam;
22
22
  xrayShaded: PD.BooleanParam;
23
+ allowTransparentBackfaces: PD.BooleanParam;
23
24
  bumpAmplitude: PD.Numeric;
24
25
  alpha: PD.Numeric;
25
26
  quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
@@ -52,6 +53,7 @@ export declare function getOrientationParams(ctx: ThemeRegistryContext, structur
52
53
  flatShaded: PD.BooleanParam;
53
54
  ignoreLight: PD.BooleanParam;
54
55
  xrayShaded: PD.BooleanParam;
56
+ allowTransparentBackfaces: PD.BooleanParam;
55
57
  bumpAmplitude: PD.Numeric;
56
58
  alpha: PD.Numeric;
57
59
  quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
@@ -85,6 +87,7 @@ export declare const OrientationRepresentationProvider: StructureRepresentationP
85
87
  flatShaded: PD.BooleanParam;
86
88
  ignoreLight: PD.BooleanParam;
87
89
  xrayShaded: PD.BooleanParam;
90
+ allowTransparentBackfaces: PD.BooleanParam;
88
91
  bumpAmplitude: PD.Numeric;
89
92
  alpha: PD.Numeric;
90
93
  quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
@@ -20,6 +20,7 @@ export declare const PuttyParams: {
20
20
  flatShaded: PD.BooleanParam;
21
21
  ignoreLight: PD.BooleanParam;
22
22
  xrayShaded: PD.BooleanParam;
23
+ allowTransparentBackfaces: PD.BooleanParam;
23
24
  bumpAmplitude: PD.Numeric;
24
25
  alpha: PD.Numeric;
25
26
  quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
@@ -54,6 +55,7 @@ export declare function getPuttyParams(ctx: ThemeRegistryContext, structure: Str
54
55
  flatShaded: PD.BooleanParam;
55
56
  ignoreLight: PD.BooleanParam;
56
57
  xrayShaded: PD.BooleanParam;
58
+ allowTransparentBackfaces: PD.BooleanParam;
57
59
  bumpAmplitude: PD.Numeric;
58
60
  alpha: PD.Numeric;
59
61
  quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
@@ -89,6 +91,7 @@ export declare const PuttyRepresentationProvider: StructureRepresentationProvide
89
91
  flatShaded: PD.BooleanParam;
90
92
  ignoreLight: PD.BooleanParam;
91
93
  xrayShaded: PD.BooleanParam;
94
+ allowTransparentBackfaces: PD.BooleanParam;
92
95
  bumpAmplitude: PD.Numeric;
93
96
  alpha: PD.Numeric;
94
97
  quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
@@ -20,6 +20,7 @@ export declare const SpacefillParams: {
20
20
  doubleSided: PD.BooleanParam;
21
21
  ignoreLight: PD.BooleanParam;
22
22
  xrayShaded: PD.BooleanParam;
23
+ allowTransparentBackfaces: PD.BooleanParam;
23
24
  bumpAmplitude: PD.Numeric;
24
25
  alpha: PD.Numeric;
25
26
  quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
@@ -54,6 +55,7 @@ export declare function getSpacefillParams(ctx: ThemeRegistryContext, structure:
54
55
  doubleSided: PD.BooleanParam;
55
56
  ignoreLight: PD.BooleanParam;
56
57
  xrayShaded: PD.BooleanParam;
58
+ allowTransparentBackfaces: PD.BooleanParam;
57
59
  bumpAmplitude: PD.Numeric;
58
60
  alpha: PD.Numeric;
59
61
  quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
@@ -89,6 +91,7 @@ export declare const SpacefillRepresentationProvider: StructureRepresentationPro
89
91
  doubleSided: PD.BooleanParam;
90
92
  ignoreLight: PD.BooleanParam;
91
93
  xrayShaded: PD.BooleanParam;
94
+ allowTransparentBackfaces: PD.BooleanParam;
92
95
  bumpAmplitude: PD.Numeric;
93
96
  alpha: PD.Numeric;
94
97
  quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
@@ -51,6 +51,7 @@ export declare const UnitsMeshParams: {
51
51
  flatShaded: PD.BooleanParam;
52
52
  ignoreLight: PD.BooleanParam;
53
53
  xrayShaded: PD.BooleanParam;
54
+ allowTransparentBackfaces: PD.BooleanParam;
54
55
  bumpFrequency: PD.Numeric;
55
56
  bumpAmplitude: PD.Numeric;
56
57
  alpha: PD.Numeric;
@@ -82,6 +83,7 @@ export declare const UnitsSpheresParams: {
82
83
  doubleSided: PD.BooleanParam;
83
84
  ignoreLight: PD.BooleanParam;
84
85
  xrayShaded: PD.BooleanParam;
86
+ allowTransparentBackfaces: PD.BooleanParam;
85
87
  bumpFrequency: PD.Numeric;
86
88
  bumpAmplitude: PD.Numeric;
87
89
  alpha: PD.Numeric;
@@ -114,6 +116,7 @@ export declare const UnitsCylindersParams: {
114
116
  doubleSided: PD.BooleanParam;
115
117
  ignoreLight: PD.BooleanParam;
116
118
  xrayShaded: PD.BooleanParam;
119
+ allowTransparentBackfaces: PD.BooleanParam;
117
120
  bumpFrequency: PD.Numeric;
118
121
  bumpAmplitude: PD.Numeric;
119
122
  alpha: PD.Numeric;
@@ -275,6 +278,7 @@ export declare const UnitsTextureMeshParams: {
275
278
  flatShaded: PD.BooleanParam;
276
279
  ignoreLight: PD.BooleanParam;
277
280
  xrayShaded: PD.BooleanParam;
281
+ allowTransparentBackfaces: PD.BooleanParam;
278
282
  bumpFrequency: PD.Numeric;
279
283
  bumpAmplitude: PD.Numeric;
280
284
  alpha: PD.Numeric;
@@ -33,6 +33,7 @@ export declare const InterUnitBondCylinderParams: {
33
33
  doubleSided: PD.BooleanParam;
34
34
  ignoreLight: PD.BooleanParam;
35
35
  xrayShaded: PD.BooleanParam;
36
+ allowTransparentBackfaces: PD.BooleanParam;
36
37
  bumpFrequency: PD.Numeric;
37
38
  bumpAmplitude: PD.Numeric;
38
39
  alpha: PD.Numeric;
@@ -82,6 +83,7 @@ export declare function InterUnitBondCylinderVisual(materialId: number, structur
82
83
  doubleSided: PD.BooleanParam;
83
84
  ignoreLight: PD.BooleanParam;
84
85
  xrayShaded: PD.BooleanParam;
86
+ allowTransparentBackfaces: PD.BooleanParam;
85
87
  bumpFrequency: PD.Numeric;
86
88
  bumpAmplitude: PD.Numeric;
87
89
  alpha: PD.Numeric;
@@ -34,6 +34,7 @@ export declare const IntraUnitBondCylinderParams: {
34
34
  doubleSided: PD.BooleanParam;
35
35
  ignoreLight: PD.BooleanParam;
36
36
  xrayShaded: PD.BooleanParam;
37
+ allowTransparentBackfaces: PD.BooleanParam;
37
38
  bumpFrequency: PD.Numeric;
38
39
  bumpAmplitude: PD.Numeric;
39
40
  alpha: PD.Numeric;
@@ -83,6 +84,7 @@ export declare function IntraUnitBondCylinderVisual(materialId: number, structur
83
84
  doubleSided: PD.BooleanParam;
84
85
  ignoreLight: PD.BooleanParam;
85
86
  xrayShaded: PD.BooleanParam;
87
+ allowTransparentBackfaces: PD.BooleanParam;
86
88
  bumpFrequency: PD.Numeric;
87
89
  bumpAmplitude: PD.Numeric;
88
90
  alpha: PD.Numeric;
@@ -25,6 +25,7 @@ export declare const CarbohydrateLinkParams: {
25
25
  flatShaded: PD.BooleanParam;
26
26
  ignoreLight: PD.BooleanParam;
27
27
  xrayShaded: PD.BooleanParam;
28
+ allowTransparentBackfaces: PD.BooleanParam;
28
29
  bumpFrequency: PD.Numeric;
29
30
  bumpAmplitude: PD.Numeric;
30
31
  alpha: PD.Numeric;
@@ -15,6 +15,7 @@ export declare const CarbohydrateSymbolParams: {
15
15
  flatShaded: PD.BooleanParam;
16
16
  ignoreLight: PD.BooleanParam;
17
17
  xrayShaded: PD.BooleanParam;
18
+ allowTransparentBackfaces: PD.BooleanParam;
18
19
  bumpFrequency: PD.Numeric;
19
20
  bumpAmplitude: PD.Numeric;
20
21
  alpha: PD.Numeric;
@@ -25,6 +25,7 @@ export declare const CarbohydrateTerminalLinkParams: {
25
25
  flatShaded: PD.BooleanParam;
26
26
  ignoreLight: PD.BooleanParam;
27
27
  xrayShaded: PD.BooleanParam;
28
+ allowTransparentBackfaces: PD.BooleanParam;
28
29
  bumpFrequency: PD.Numeric;
29
30
  bumpAmplitude: PD.Numeric;
30
31
  alpha: PD.Numeric;
@@ -19,6 +19,7 @@ export declare const ElementSphereParams: {
19
19
  doubleSided: PD.BooleanParam;
20
20
  ignoreLight: PD.BooleanParam;
21
21
  xrayShaded: PD.BooleanParam;
22
+ allowTransparentBackfaces: PD.BooleanParam;
22
23
  bumpFrequency: PD.Numeric;
23
24
  bumpAmplitude: PD.Numeric;
24
25
  alpha: PD.Numeric;
@@ -53,6 +54,7 @@ export declare function ElementSphereVisual(materialId: number, structure: Struc
53
54
  doubleSided: PD.BooleanParam;
54
55
  ignoreLight: PD.BooleanParam;
55
56
  xrayShaded: PD.BooleanParam;
57
+ allowTransparentBackfaces: PD.BooleanParam;
56
58
  bumpFrequency: PD.Numeric;
57
59
  bumpAmplitude: PD.Numeric;
58
60
  alpha: PD.Numeric;
@@ -20,6 +20,7 @@ export declare const EllipsoidMeshParams: {
20
20
  flatShaded: PD.BooleanParam;
21
21
  ignoreLight: PD.BooleanParam;
22
22
  xrayShaded: PD.BooleanParam;
23
+ allowTransparentBackfaces: PD.BooleanParam;
23
24
  bumpFrequency: PD.Numeric;
24
25
  bumpAmplitude: PD.Numeric;
25
26
  alpha: PD.Numeric;
@@ -12,7 +12,6 @@ import { Mat4, Vec3 } from '../../../mol-math/linear-algebra';
12
12
  import { eachElement, eachSerialElement, ElementIterator, getElementLoci, getSerialElementLoci } from './util/element';
13
13
  import { Sphere3D } from '../../../mol-math/geometry';
14
14
  import { UnitsDirectVolumeParams, UnitsDirectVolumeVisual } from '../units-visual';
15
- import { getStructureExtraRadius, getUnitExtraRadius } from './util/common';
16
15
  function createGaussianDensityVolume(ctx, structure, theme, props, directVolume) {
17
16
  return __awaiter(this, void 0, void 0, function () {
18
17
  var runtime, webgl, oldTexture, densityTextureData, transform, texture, bbox, gridDim, stats, unitToCartn, cellDim, axisOrder, vol, sphere;
@@ -33,7 +32,7 @@ function createGaussianDensityVolume(ctx, structure, theme, props, directVolume)
33
32
  cellDim = Mat4.getScaling(Vec3(), transform);
34
33
  axisOrder = Vec3.create(0, 1, 2);
35
34
  vol = DirectVolume.create(bbox, gridDim, transform, unitToCartn, cellDim, texture, stats, true, axisOrder, directVolume);
36
- sphere = Sphere3D.expand(Sphere3D(), structure.boundary.sphere, props.radiusOffset + getStructureExtraRadius(structure));
35
+ sphere = Sphere3D.expand(Sphere3D(), structure.boundary.sphere, densityTextureData.maxRadius);
37
36
  vol.setBoundingSphere(sphere);
38
37
  return [2 /*return*/, vol];
39
38
  }
@@ -91,7 +90,7 @@ function createUnitsGaussianDensityVolume(ctx, unit, structure, theme, props, di
91
90
  cellDim = Mat4.getScaling(Vec3(), transform);
92
91
  axisOrder = Vec3.create(0, 1, 2);
93
92
  vol = DirectVolume.create(bbox, gridDim, transform, unitToCartn, cellDim, texture, stats, true, axisOrder, directVolume);
94
- sphere = Sphere3D.expand(Sphere3D(), unit.boundary.sphere, props.radiusOffset + getUnitExtraRadius(unit));
93
+ sphere = Sphere3D.expand(Sphere3D(), unit.boundary.sphere, densityTextureData.maxRadius);
95
94
  vol.setBoundingSphere(sphere);
96
95
  return [2 /*return*/, vol];
97
96
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2018-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
@@ -26,6 +26,7 @@ export declare const GaussianSurfaceMeshParams: {
26
26
  flatShaded: PD.BooleanParam;
27
27
  ignoreLight: PD.BooleanParam;
28
28
  xrayShaded: PD.BooleanParam;
29
+ allowTransparentBackfaces: PD.BooleanParam;
29
30
  bumpFrequency: PD.Numeric;
30
31
  bumpAmplitude: PD.Numeric;
31
32
  alpha: PD.Numeric;
@@ -65,6 +66,7 @@ export declare const StructureGaussianSurfaceMeshParams: {
65
66
  flatShaded: PD.BooleanParam;
66
67
  ignoreLight: PD.BooleanParam;
67
68
  xrayShaded: PD.BooleanParam;
69
+ allowTransparentBackfaces: PD.BooleanParam;
68
70
  bumpFrequency: PD.Numeric;
69
71
  bumpAmplitude: PD.Numeric;
70
72
  alpha: PD.Numeric;
@@ -104,6 +106,7 @@ export declare function GaussianSurfaceVisual(materialId: number, structure: Str
104
106
  flatShaded: PD.BooleanParam;
105
107
  ignoreLight: PD.BooleanParam;
106
108
  xrayShaded: PD.BooleanParam;
109
+ allowTransparentBackfaces: PD.BooleanParam;
107
110
  bumpFrequency: PD.Numeric;
108
111
  bumpAmplitude: PD.Numeric;
109
112
  alpha: PD.Numeric;
@@ -142,6 +145,7 @@ export declare function StructureGaussianSurfaceVisual(materialId: number, struc
142
145
  flatShaded: PD.BooleanParam;
143
146
  ignoreLight: PD.BooleanParam;
144
147
  xrayShaded: PD.BooleanParam;
148
+ allowTransparentBackfaces: PD.BooleanParam;
145
149
  bumpFrequency: PD.Numeric;
146
150
  bumpAmplitude: PD.Numeric;
147
151
  alpha: PD.Numeric;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2018-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
@@ -14,7 +14,7 @@ import { TextureMesh } from '../../../mol-geo/geometry/texture-mesh/texture-mesh
14
14
  import { extractIsosurface } from '../../../mol-gl/compute/marching-cubes/isosurface';
15
15
  import { Sphere3D } from '../../../mol-math/geometry';
16
16
  import { ComplexMeshParams, ComplexMeshVisual, ComplexTextureMeshVisual, ComplexTextureMeshParams } from '../complex-visual';
17
- import { getUnitExtraRadius, getStructureExtraRadius, getVolumeSliceInfo } from './util/common';
17
+ import { getVolumeSliceInfo } from './util/common';
18
18
  import { applyMeshColorSmoothing } from '../../../mol-geo/geometry/mesh/color-smoothing';
19
19
  import { applyTextureMeshColorSmoothing } from '../../../mol-geo/geometry/texture-mesh/color-smoothing';
20
20
  import { ColorSmoothingParams, getColorSmoothingProps } from '../../../mol-geo/geometry/base';
@@ -51,14 +51,14 @@ export function StructureGaussianSurfaceVisual(materialId, structure, props, web
51
51
  //
52
52
  function createGaussianSurfaceMesh(ctx, unit, structure, theme, props, mesh) {
53
53
  return __awaiter(this, void 0, void 0, function () {
54
- var smoothness, _a, transform, field, idField, radiusFactor, resolution, params, surface, sphere;
54
+ var smoothness, _a, transform, field, idField, radiusFactor, resolution, maxRadius, params, surface, sphere;
55
55
  return __generator(this, function (_b) {
56
56
  switch (_b.label) {
57
57
  case 0:
58
58
  smoothness = props.smoothness;
59
59
  return [4 /*yield*/, computeUnitGaussianDensity(structure, unit, theme.size, props).runInContext(ctx.runtime)];
60
60
  case 1:
61
- _a = _b.sent(), transform = _a.transform, field = _a.field, idField = _a.idField, radiusFactor = _a.radiusFactor, resolution = _a.resolution;
61
+ _a = _b.sent(), transform = _a.transform, field = _a.field, idField = _a.idField, radiusFactor = _a.radiusFactor, resolution = _a.resolution, maxRadius = _a.maxRadius;
62
62
  params = {
63
63
  isoLevel: Math.exp(-smoothness) / radiusFactor,
64
64
  scalarField: field,
@@ -71,7 +71,7 @@ function createGaussianSurfaceMesh(ctx, unit, structure, theme, props, mesh) {
71
71
  Mesh.transform(surface, transform);
72
72
  if (ctx.webgl && !ctx.webgl.isWebGL2)
73
73
  Mesh.uniformTriangleGroup(surface);
74
- sphere = Sphere3D.expand(Sphere3D(), unit.boundary.sphere, props.radiusOffset + getUnitExtraRadius(unit));
74
+ sphere = Sphere3D.expand(Sphere3D(), unit.boundary.sphere, maxRadius);
75
75
  surface.setBoundingSphere(sphere);
76
76
  return [2 /*return*/, surface];
77
77
  }
@@ -128,14 +128,14 @@ export function GaussianSurfaceMeshVisual(materialId) {
128
128
  //
129
129
  function createStructureGaussianSurfaceMesh(ctx, structure, theme, props, mesh) {
130
130
  return __awaiter(this, void 0, void 0, function () {
131
- var smoothness, _a, transform, field, idField, radiusFactor, resolution, params, surface, sphere;
131
+ var smoothness, _a, transform, field, idField, radiusFactor, resolution, maxRadius, params, surface, sphere;
132
132
  return __generator(this, function (_b) {
133
133
  switch (_b.label) {
134
134
  case 0:
135
135
  smoothness = props.smoothness;
136
136
  return [4 /*yield*/, computeStructureGaussianDensity(structure, theme.size, props).runInContext(ctx.runtime)];
137
137
  case 1:
138
- _a = _b.sent(), transform = _a.transform, field = _a.field, idField = _a.idField, radiusFactor = _a.radiusFactor, resolution = _a.resolution;
138
+ _a = _b.sent(), transform = _a.transform, field = _a.field, idField = _a.idField, radiusFactor = _a.radiusFactor, resolution = _a.resolution, maxRadius = _a.maxRadius;
139
139
  params = {
140
140
  isoLevel: Math.exp(-smoothness) / radiusFactor,
141
141
  scalarField: field,
@@ -148,7 +148,7 @@ function createStructureGaussianSurfaceMesh(ctx, structure, theme, props, mesh)
148
148
  Mesh.transform(surface, transform);
149
149
  if (ctx.webgl && !ctx.webgl.isWebGL2)
150
150
  Mesh.uniformTriangleGroup(surface);
151
- sphere = Sphere3D.expand(Sphere3D(), structure.boundary.sphere, props.radiusOffset + getStructureExtraRadius(structure));
151
+ sphere = Sphere3D.expand(Sphere3D(), structure.boundary.sphere, maxRadius);
152
152
  surface.setBoundingSphere(sphere);
153
153
  return [2 /*return*/, surface];
154
154
  }
@@ -225,7 +225,7 @@ function createGaussianSurfaceTextureMesh(ctx, unit, structure, theme, props, te
225
225
  axisOrder = Vec3.create(0, 1, 2);
226
226
  buffer = textureMesh === null || textureMesh === void 0 ? void 0 : textureMesh.doubleBuffer.get();
227
227
  gv = extractIsosurface(ctx.webgl, densityTextureData.texture, densityTextureData.gridDim, densityTextureData.gridTexDim, densityTextureData.gridTexScale, densityTextureData.transform, isoLevel, false, true, axisOrder, buffer === null || buffer === void 0 ? void 0 : buffer.vertex, buffer === null || buffer === void 0 ? void 0 : buffer.group, buffer === null || buffer === void 0 ? void 0 : buffer.normal);
228
- boundingSphere = Sphere3D.expand(Sphere3D(), unit.boundary.sphere, props.radiusOffset + getStructureExtraRadius(structure));
228
+ boundingSphere = Sphere3D.expand(Sphere3D(), unit.boundary.sphere, densityTextureData.maxRadius);
229
229
  surface = TextureMesh.create(gv.vertexCount, 1, gv.vertexTexture, gv.groupTexture, gv.normalTexture, boundingSphere, textureMesh);
230
230
  surface.meta.resolution = densityTextureData.resolution;
231
231
  return [2 /*return*/, surface];
@@ -308,7 +308,7 @@ function createStructureGaussianSurfaceTextureMesh(ctx, structure, theme, props,
308
308
  axisOrder = Vec3.create(0, 1, 2);
309
309
  buffer = textureMesh === null || textureMesh === void 0 ? void 0 : textureMesh.doubleBuffer.get();
310
310
  gv = extractIsosurface(ctx.webgl, densityTextureData.texture, densityTextureData.gridDim, densityTextureData.gridTexDim, densityTextureData.gridTexScale, densityTextureData.transform, isoLevel, false, true, axisOrder, buffer === null || buffer === void 0 ? void 0 : buffer.vertex, buffer === null || buffer === void 0 ? void 0 : buffer.group, buffer === null || buffer === void 0 ? void 0 : buffer.normal);
311
- boundingSphere = Sphere3D.expand(Sphere3D(), structure.boundary.sphere, props.radiusOffset + getStructureExtraRadius(structure));
311
+ boundingSphere = Sphere3D.expand(Sphere3D(), structure.boundary.sphere, densityTextureData.maxRadius);
312
312
  surface = TextureMesh.create(gv.vertexCount, 1, gv.vertexTexture, gv.groupTexture, gv.normalTexture, boundingSphere, textureMesh);
313
313
  surface.meta.resolution = densityTextureData.resolution;
314
314
  return [2 /*return*/, surface];
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2018-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2018-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
@@ -11,17 +11,16 @@ import { computeMarchingCubesLines } from '../../../mol-geo/util/marching-cubes/
11
11
  import { UnitsLinesParams, UnitsLinesVisual } from '../units-visual';
12
12
  import { ElementIterator, getElementLoci, eachElement } from './util/element';
13
13
  import { Sphere3D } from '../../../mol-math/geometry';
14
- import { getUnitExtraRadius } from './util/common';
15
14
  function createGaussianWireframe(ctx, unit, structure, theme, props, lines) {
16
15
  return __awaiter(this, void 0, void 0, function () {
17
- var smoothness, _a, transform, field, idField, params, wireframe, sphere;
16
+ var smoothness, _a, transform, field, idField, maxRadius, params, wireframe, sphere;
18
17
  return __generator(this, function (_b) {
19
18
  switch (_b.label) {
20
19
  case 0:
21
20
  smoothness = props.smoothness;
22
21
  return [4 /*yield*/, computeUnitGaussianDensity(structure, unit, theme.size, props).runInContext(ctx.runtime)];
23
22
  case 1:
24
- _a = _b.sent(), transform = _a.transform, field = _a.field, idField = _a.idField;
23
+ _a = _b.sent(), transform = _a.transform, field = _a.field, idField = _a.idField, maxRadius = _a.maxRadius;
25
24
  params = {
26
25
  isoLevel: Math.exp(-smoothness),
27
26
  scalarField: field,
@@ -31,7 +30,7 @@ function createGaussianWireframe(ctx, unit, structure, theme, props, lines) {
31
30
  case 2:
32
31
  wireframe = _b.sent();
33
32
  Lines.transform(wireframe, transform);
34
- sphere = Sphere3D.expand(Sphere3D(), unit.boundary.sphere, props.radiusOffset + getUnitExtraRadius(unit));
33
+ sphere = Sphere3D.expand(Sphere3D(), unit.boundary.sphere, maxRadius);
35
34
  wireframe.setBoundingSphere(sphere);
36
35
  return [2 /*return*/, wireframe];
37
36
  }
@@ -22,6 +22,7 @@ export declare const MolecularSurfaceMeshParams: {
22
22
  flatShaded: PD.BooleanParam;
23
23
  ignoreLight: PD.BooleanParam;
24
24
  xrayShaded: PD.BooleanParam;
25
+ allowTransparentBackfaces: PD.BooleanParam;
25
26
  bumpFrequency: PD.Numeric;
26
27
  bumpAmplitude: PD.Numeric;
27
28
  alpha: PD.Numeric;
@@ -11,7 +11,7 @@ import { Mesh } from '../../../mol-geo/geometry/mesh/mesh';
11
11
  import { computeUnitMolecularSurface } from './util/molecular-surface';
12
12
  import { computeMarchingCubesMesh } from '../../../mol-geo/util/marching-cubes/algorithm';
13
13
  import { ElementIterator, getElementLoci, eachElement } from './util/element';
14
- import { CommonSurfaceParams, getUnitExtraRadius } from './util/common';
14
+ import { CommonSurfaceParams } from './util/common';
15
15
  import { Sphere3D } from '../../../mol-math/geometry';
16
16
  import { applyMeshColorSmoothing } from '../../../mol-geo/geometry/mesh/color-smoothing';
17
17
  import { ColorSmoothingParams, getColorSmoothingProps } from '../../../mol-geo/geometry/base';
@@ -19,12 +19,12 @@ export var MolecularSurfaceMeshParams = __assign(__assign(__assign(__assign({},
19
19
  //
20
20
  function createMolecularSurfaceMesh(ctx, unit, structure, theme, props, mesh) {
21
21
  return __awaiter(this, void 0, void 0, function () {
22
- var _a, transform, field, idField, resolution, params, surface, iterations, sphere;
22
+ var _a, transform, field, idField, resolution, maxRadius, params, surface, iterations, sphere;
23
23
  return __generator(this, function (_b) {
24
24
  switch (_b.label) {
25
25
  case 0: return [4 /*yield*/, computeUnitMolecularSurface(structure, unit, theme.size, props).runInContext(ctx.runtime)];
26
26
  case 1:
27
- _a = _b.sent(), transform = _a.transform, field = _a.field, idField = _a.idField, resolution = _a.resolution;
27
+ _a = _b.sent(), transform = _a.transform, field = _a.field, idField = _a.idField, resolution = _a.resolution, maxRadius = _a.maxRadius;
28
28
  params = {
29
29
  isoLevel: props.probeRadius,
30
30
  scalarField: field,
@@ -40,7 +40,7 @@ function createMolecularSurfaceMesh(ctx, unit, structure, theme, props, mesh) {
40
40
  Mesh.transform(surface, transform);
41
41
  if (ctx.webgl && !ctx.webgl.isWebGL2)
42
42
  Mesh.uniformTriangleGroup(surface);
43
- sphere = Sphere3D.expand(Sphere3D(), unit.boundary.sphere, getUnitExtraRadius(unit));
43
+ sphere = Sphere3D.expand(Sphere3D(), unit.boundary.sphere, maxRadius);
44
44
  surface.setBoundingSphere(sphere);
45
45
  surface.meta.resolution = resolution;
46
46
  return [2 /*return*/, surface];
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2019-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2019-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2019-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2019-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
@@ -11,18 +11,18 @@ import { Lines } from '../../../mol-geo/geometry/lines/lines';
11
11
  import { computeUnitMolecularSurface } from './util/molecular-surface';
12
12
  import { computeMarchingCubesLines } from '../../../mol-geo/util/marching-cubes/algorithm';
13
13
  import { ElementIterator, getElementLoci, eachElement } from './util/element';
14
- import { CommonSurfaceParams, getUnitExtraRadius } from './util/common';
14
+ import { CommonSurfaceParams } from './util/common';
15
15
  import { Sphere3D } from '../../../mol-math/geometry';
16
16
  export var MolecularSurfaceWireframeParams = __assign(__assign(__assign(__assign({}, UnitsLinesParams), MolecularSurfaceCalculationParams), CommonSurfaceParams), { sizeFactor: PD.Numeric(1.5, { min: 0, max: 10, step: 0.1 }) });
17
17
  //
18
18
  function createMolecularSurfaceWireframe(ctx, unit, structure, theme, props, lines) {
19
19
  return __awaiter(this, void 0, void 0, function () {
20
- var _a, transform, field, idField, params, wireframe, sphere;
20
+ var _a, transform, field, idField, maxRadius, params, wireframe, sphere;
21
21
  return __generator(this, function (_b) {
22
22
  switch (_b.label) {
23
23
  case 0: return [4 /*yield*/, computeUnitMolecularSurface(structure, unit, theme.size, props).runInContext(ctx.runtime)];
24
24
  case 1:
25
- _a = _b.sent(), transform = _a.transform, field = _a.field, idField = _a.idField;
25
+ _a = _b.sent(), transform = _a.transform, field = _a.field, idField = _a.idField, maxRadius = _a.maxRadius;
26
26
  params = {
27
27
  isoLevel: props.probeRadius,
28
28
  scalarField: field,
@@ -32,7 +32,7 @@ function createMolecularSurfaceWireframe(ctx, unit, structure, theme, props, lin
32
32
  case 2:
33
33
  wireframe = _b.sent();
34
34
  Lines.transform(wireframe, transform);
35
- sphere = Sphere3D.expand(Sphere3D(), unit.boundary.sphere, props.probeRadius + getUnitExtraRadius(unit));
35
+ sphere = Sphere3D.expand(Sphere3D(), unit.boundary.sphere, maxRadius);
36
36
  wireframe.setBoundingSphere(sphere);
37
37
  return [2 /*return*/, wireframe];
38
38
  }
@@ -24,6 +24,7 @@ export declare const NucleotideBlockParams: {
24
24
  flatShaded: PD.BooleanParam;
25
25
  ignoreLight: PD.BooleanParam;
26
26
  xrayShaded: PD.BooleanParam;
27
+ allowTransparentBackfaces: PD.BooleanParam;
27
28
  bumpFrequency: PD.Numeric;
28
29
  bumpAmplitude: PD.Numeric;
29
30
  alpha: PD.Numeric;
@@ -27,6 +27,7 @@ export declare const NucleotideRingParams: {
27
27
  flatShaded: PD.BooleanParam;
28
28
  ignoreLight: PD.BooleanParam;
29
29
  xrayShaded: PD.BooleanParam;
30
+ allowTransparentBackfaces: PD.BooleanParam;
30
31
  bumpFrequency: PD.Numeric;
31
32
  bumpAmplitude: PD.Numeric;
32
33
  alpha: PD.Numeric;
@@ -19,6 +19,7 @@ export declare const OrientationEllipsoidMeshParams: {
19
19
  flatShaded: PD.BooleanParam;
20
20
  ignoreLight: PD.BooleanParam;
21
21
  xrayShaded: PD.BooleanParam;
22
+ allowTransparentBackfaces: PD.BooleanParam;
22
23
  bumpFrequency: PD.Numeric;
23
24
  bumpAmplitude: PD.Numeric;
24
25
  alpha: PD.Numeric;
@@ -17,6 +17,7 @@ export declare const PolymerBackboneCylinderParams: {
17
17
  doubleSided: PD.BooleanParam;
18
18
  ignoreLight: PD.BooleanParam;
19
19
  xrayShaded: PD.BooleanParam;
20
+ allowTransparentBackfaces: PD.BooleanParam;
20
21
  bumpFrequency: PD.Numeric;
21
22
  bumpAmplitude: PD.Numeric;
22
23
  alpha: PD.Numeric;
@@ -50,6 +51,7 @@ export declare function PolymerBackboneCylinderVisual(materialId: number, struct
50
51
  doubleSided: PD.BooleanParam;
51
52
  ignoreLight: PD.BooleanParam;
52
53
  xrayShaded: PD.BooleanParam;
54
+ allowTransparentBackfaces: PD.BooleanParam;
53
55
  bumpFrequency: PD.Numeric;
54
56
  bumpAmplitude: PD.Numeric;
55
57
  alpha: PD.Numeric;
@@ -16,6 +16,7 @@ export declare const PolymerBackboneSphereParams: {
16
16
  doubleSided: PD.BooleanParam;
17
17
  ignoreLight: PD.BooleanParam;
18
18
  xrayShaded: PD.BooleanParam;
19
+ allowTransparentBackfaces: PD.BooleanParam;
19
20
  bumpFrequency: PD.Numeric;
20
21
  bumpAmplitude: PD.Numeric;
21
22
  alpha: PD.Numeric;
@@ -48,6 +49,7 @@ export declare function PolymerBackboneSphereVisual(materialId: number, structur
48
49
  doubleSided: PD.BooleanParam;
49
50
  ignoreLight: PD.BooleanParam;
50
51
  xrayShaded: PD.BooleanParam;
52
+ allowTransparentBackfaces: PD.BooleanParam;
51
53
  bumpFrequency: PD.Numeric;
52
54
  bumpAmplitude: PD.Numeric;
53
55
  alpha: PD.Numeric;