molstar 2.3.7 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1699) hide show
  1. package/build/viewer/molstar.css +1 -2
  2. package/build/viewer/molstar.js +1 -1
  3. package/lib/apps/docking-viewer/index.js +1 -1
  4. package/lib/apps/docking-viewer/index.js.map +1 -1
  5. package/lib/apps/docking-viewer/viewport.d.ts +2 -2
  6. package/lib/apps/viewer/index.d.ts +1 -1
  7. package/lib/apps/viewer/index.js +3 -3
  8. package/lib/apps/viewer/index.js.map +1 -1
  9. package/lib/cli/chem-comp-dict/create-ions.js +1 -1
  10. package/lib/cli/chem-comp-dict/create-ions.js.map +1 -1
  11. package/lib/cli/chem-comp-dict/create-table.js +3 -3
  12. package/lib/cli/chem-comp-dict/create-table.js.map +1 -1
  13. package/lib/cli/chem-comp-dict/util.d.ts +4 -4
  14. package/lib/cli/chem-comp-dict/util.js +2 -2
  15. package/lib/cli/chem-comp-dict/util.js.map +1 -1
  16. package/lib/cli/cif2bcif/converter.js +2 -2
  17. package/lib/cli/cif2bcif/converter.js.map +1 -1
  18. package/lib/cli/cifschema/index.js +12 -12
  19. package/lib/cli/cifschema/index.js.map +1 -1
  20. package/lib/cli/cifschema/util/cif-dic.js +20 -19
  21. package/lib/cli/cifschema/util/cif-dic.js.map +1 -1
  22. package/lib/cli/cifschema/util/generate.js +21 -21
  23. package/lib/cli/cifschema/util/generate.js.map +1 -1
  24. package/lib/cli/cifschema/util/schema.js +1 -1
  25. package/lib/cli/cifschema/util/schema.js.map +1 -1
  26. package/lib/cli/lipid-params/index.js +3 -3
  27. package/lib/cli/lipid-params/index.js.map +1 -1
  28. package/lib/cli/state-docs/index.js +4 -4
  29. package/lib/cli/state-docs/index.js.map +1 -1
  30. package/lib/cli/state-docs/pd-to-md.js +10 -10
  31. package/lib/cli/state-docs/pd-to-md.js.map +1 -1
  32. package/lib/cli/structure-info/model.js +18 -18
  33. package/lib/cli/structure-info/model.js.map +1 -1
  34. package/lib/cli/structure-info/volume.js +1 -1
  35. package/lib/cli/structure-info/volume.js.map +1 -1
  36. package/lib/commonjs/apps/docking-viewer/index.js +1 -1
  37. package/lib/commonjs/apps/docking-viewer/index.js.map +1 -1
  38. package/lib/commonjs/apps/docking-viewer/viewport.d.ts +2 -2
  39. package/lib/commonjs/apps/viewer/index.d.ts +7 -7
  40. package/lib/commonjs/apps/viewer/index.js +3 -3
  41. package/lib/commonjs/apps/viewer/index.js.map +1 -1
  42. package/lib/commonjs/cli/chem-comp-dict/create-ions.js +1 -1
  43. package/lib/commonjs/cli/chem-comp-dict/create-ions.js.map +1 -1
  44. package/lib/commonjs/cli/chem-comp-dict/create-table.js +3 -3
  45. package/lib/commonjs/cli/chem-comp-dict/create-table.js.map +1 -1
  46. package/lib/commonjs/cli/chem-comp-dict/util.d.ts +4 -4
  47. package/lib/commonjs/cli/chem-comp-dict/util.js +2 -2
  48. package/lib/commonjs/cli/chem-comp-dict/util.js.map +1 -1
  49. package/lib/commonjs/cli/cif2bcif/converter.js +2 -2
  50. package/lib/commonjs/cli/cif2bcif/converter.js.map +1 -1
  51. package/lib/commonjs/cli/cifschema/index.js +12 -12
  52. package/lib/commonjs/cli/cifschema/index.js.map +1 -1
  53. package/lib/commonjs/cli/cifschema/util/cif-dic.js +20 -19
  54. package/lib/commonjs/cli/cifschema/util/cif-dic.js.map +1 -1
  55. package/lib/commonjs/cli/cifschema/util/generate.js +21 -21
  56. package/lib/commonjs/cli/cifschema/util/generate.js.map +1 -1
  57. package/lib/commonjs/cli/cifschema/util/schema.js +1 -1
  58. package/lib/commonjs/cli/cifschema/util/schema.js.map +1 -1
  59. package/lib/commonjs/cli/lipid-params/index.js +3 -3
  60. package/lib/commonjs/cli/lipid-params/index.js.map +1 -1
  61. package/lib/commonjs/cli/state-docs/index.js +4 -4
  62. package/lib/commonjs/cli/state-docs/index.js.map +1 -1
  63. package/lib/commonjs/cli/state-docs/pd-to-md.js +10 -10
  64. package/lib/commonjs/cli/state-docs/pd-to-md.js.map +1 -1
  65. package/lib/commonjs/cli/structure-info/model.js +18 -18
  66. package/lib/commonjs/cli/structure-info/model.js.map +1 -1
  67. package/lib/commonjs/cli/structure-info/volume.js +1 -1
  68. package/lib/commonjs/cli/structure-info/volume.js.map +1 -1
  69. package/lib/commonjs/examples/basic-wrapper/superposition.js +3 -3
  70. package/lib/commonjs/examples/basic-wrapper/superposition.js.map +1 -1
  71. package/lib/commonjs/examples/domain-annotation-server/mapping.js +2 -2
  72. package/lib/commonjs/examples/domain-annotation-server/mapping.js.map +1 -1
  73. package/lib/commonjs/examples/domain-annotation-server/server.js +3 -3
  74. package/lib/commonjs/examples/domain-annotation-server/server.js.map +1 -1
  75. package/lib/commonjs/examples/proteopedia-wrapper/annotation.js +3 -3
  76. package/lib/commonjs/examples/proteopedia-wrapper/annotation.js.map +1 -1
  77. package/lib/commonjs/examples/proteopedia-wrapper/helpers.js +1 -1
  78. package/lib/commonjs/examples/proteopedia-wrapper/helpers.js.map +1 -1
  79. package/lib/commonjs/examples/proteopedia-wrapper/index.js +2 -2
  80. package/lib/commonjs/examples/proteopedia-wrapper/index.js.map +1 -1
  81. package/lib/commonjs/examples/task.js +6 -6
  82. package/lib/commonjs/examples/task.js.map +1 -1
  83. package/lib/commonjs/extensions/alpha-orbitals/transforms.js +2 -2
  84. package/lib/commonjs/extensions/alpha-orbitals/transforms.js.map +1 -1
  85. package/lib/commonjs/extensions/anvil/behavior.d.ts +2 -2
  86. package/lib/commonjs/extensions/anvil/representation.d.ts +5 -5
  87. package/lib/commonjs/extensions/anvil/representation.js +1 -1
  88. package/lib/commonjs/extensions/anvil/representation.js.map +1 -1
  89. package/lib/commonjs/extensions/cellpack/model.js +15 -15
  90. package/lib/commonjs/extensions/cellpack/model.js.map +1 -1
  91. package/lib/commonjs/extensions/cellpack/representation.d.ts +2 -2
  92. package/lib/commonjs/extensions/cellpack/state.js +5 -5
  93. package/lib/commonjs/extensions/cellpack/state.js.map +1 -1
  94. package/lib/commonjs/extensions/cellpack/util.js +4 -4
  95. package/lib/commonjs/extensions/cellpack/util.js.map +1 -1
  96. package/lib/commonjs/extensions/dnatco/confal-pyramids/behavior.d.ts +1 -1
  97. package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +6 -6
  98. package/lib/commonjs/extensions/dnatco/confal-pyramids/util.js +7 -7
  99. package/lib/commonjs/extensions/dnatco/confal-pyramids/util.js.map +1 -1
  100. package/lib/commonjs/extensions/g3d/data.js +2 -2
  101. package/lib/commonjs/extensions/g3d/data.js.map +1 -1
  102. package/lib/commonjs/extensions/g3d/model.js +2 -2
  103. package/lib/commonjs/extensions/g3d/model.js.map +1 -1
  104. package/lib/commonjs/extensions/geo-export/controls.js +3 -3
  105. package/lib/commonjs/extensions/geo-export/controls.js.map +1 -1
  106. package/lib/commonjs/extensions/geo-export/glb-exporter.d.ts +1 -0
  107. package/lib/commonjs/extensions/geo-export/glb-exporter.js +28 -18
  108. package/lib/commonjs/extensions/geo-export/glb-exporter.js.map +1 -1
  109. package/lib/commonjs/extensions/geo-export/mesh-exporter.d.ts +31 -2
  110. package/lib/commonjs/extensions/geo-export/mesh-exporter.js +87 -15
  111. package/lib/commonjs/extensions/geo-export/mesh-exporter.js.map +1 -1
  112. package/lib/commonjs/extensions/geo-export/obj-exporter.d.ts +1 -0
  113. package/lib/commonjs/extensions/geo-export/obj-exporter.js +27 -18
  114. package/lib/commonjs/extensions/geo-export/obj-exporter.js.map +1 -1
  115. package/lib/commonjs/extensions/geo-export/stl-exporter.js +1 -1
  116. package/lib/commonjs/extensions/geo-export/stl-exporter.js.map +1 -1
  117. package/lib/commonjs/extensions/geo-export/ui.js +24 -20
  118. package/lib/commonjs/extensions/geo-export/ui.js.map +1 -1
  119. package/lib/commonjs/extensions/geo-export/usdz-exporter.d.ts +1 -0
  120. package/lib/commonjs/extensions/geo-export/usdz-exporter.js +31 -21
  121. package/lib/commonjs/extensions/geo-export/usdz-exporter.js.map +1 -1
  122. package/lib/commonjs/extensions/mp4-export/controls.js +2 -2
  123. package/lib/commonjs/extensions/mp4-export/controls.js.map +1 -1
  124. package/lib/commonjs/extensions/mp4-export/ui.js +7 -6
  125. package/lib/commonjs/extensions/mp4-export/ui.js.map +1 -1
  126. package/lib/commonjs/extensions/pdbe/structure-quality-report/behavior.js +1 -1
  127. package/lib/commonjs/extensions/pdbe/structure-quality-report/behavior.js.map +1 -1
  128. package/lib/commonjs/extensions/pdbe/structure-quality-report/prop.js +1 -1
  129. package/lib/commonjs/extensions/pdbe/structure-quality-report/prop.js.map +1 -1
  130. package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +6 -6
  131. package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.js +3 -3
  132. package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.js.map +1 -1
  133. package/lib/commonjs/extensions/rcsb/assembly-symmetry/color.js +1 -1
  134. package/lib/commonjs/extensions/rcsb/assembly-symmetry/color.js.map +1 -1
  135. package/lib/commonjs/extensions/rcsb/assembly-symmetry/prop.js +2 -2
  136. package/lib/commonjs/extensions/rcsb/assembly-symmetry/prop.js.map +1 -1
  137. package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.d.ts +1 -1
  138. package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.js +7 -7
  139. package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.js.map +1 -1
  140. package/lib/commonjs/extensions/rcsb/graphql/types.d.ts +22 -21
  141. package/lib/commonjs/extensions/rcsb/validation-report/behavior.d.ts +3 -3
  142. package/lib/commonjs/extensions/rcsb/validation-report/behavior.js +11 -11
  143. package/lib/commonjs/extensions/rcsb/validation-report/behavior.js.map +1 -1
  144. package/lib/commonjs/extensions/rcsb/validation-report/prop.js +2 -2
  145. package/lib/commonjs/extensions/rcsb/validation-report/prop.js.map +1 -1
  146. package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +10 -10
  147. package/lib/commonjs/extensions/rcsb/validation-report/representation.js +2 -2
  148. package/lib/commonjs/extensions/rcsb/validation-report/representation.js.map +1 -1
  149. package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +4 -4
  150. package/lib/commonjs/mol-canvas3d/canvas3d.js +3 -3
  151. package/lib/commonjs/mol-canvas3d/canvas3d.js.map +1 -1
  152. package/lib/commonjs/mol-canvas3d/helper/camera-helper.d.ts +3 -3
  153. package/lib/commonjs/mol-canvas3d/helper/handle-helper.d.ts +1 -1
  154. package/lib/commonjs/mol-canvas3d/helper/handle-helper.js +1 -1
  155. package/lib/commonjs/mol-canvas3d/helper/handle-helper.js.map +1 -1
  156. package/lib/commonjs/mol-canvas3d/passes/draw.js +3 -11
  157. package/lib/commonjs/mol-canvas3d/passes/draw.js.map +1 -1
  158. package/lib/commonjs/mol-canvas3d/passes/image.d.ts +2 -2
  159. package/lib/commonjs/mol-canvas3d/passes/wboit.js +1 -1
  160. package/lib/commonjs/mol-canvas3d/passes/wboit.js.map +1 -1
  161. package/lib/commonjs/mol-canvas3d/util.js +1 -1
  162. package/lib/commonjs/mol-canvas3d/util.js.map +1 -1
  163. package/lib/commonjs/mol-data/db/table.js +1 -1
  164. package/lib/commonjs/mol-data/db/table.js.map +1 -1
  165. package/lib/commonjs/mol-data/int/_spec/sorted-ranges.spec.js +1 -1
  166. package/lib/commonjs/mol-data/int/_spec/sorted-ranges.spec.js.map +1 -1
  167. package/lib/commonjs/mol-data/int/impl/ordered-set.d.ts +3 -3
  168. package/lib/commonjs/mol-data/int/impl/sorted-array.d.ts +1 -1
  169. package/lib/commonjs/mol-data/int/impl/sorted-array.js +2 -2
  170. package/lib/commonjs/mol-data/int/impl/sorted-array.js.map +1 -1
  171. package/lib/commonjs/mol-data/int/tuple.js +1 -1
  172. package/lib/commonjs/mol-data/int/tuple.js.map +1 -1
  173. package/lib/commonjs/mol-data/util/_spec/interval-iterator.spec.js +1 -1
  174. package/lib/commonjs/mol-data/util/_spec/interval-iterator.spec.js.map +1 -1
  175. package/lib/commonjs/mol-geo/geometry/base.d.ts +16 -4
  176. package/lib/commonjs/mol-geo/geometry/base.js +37 -2
  177. package/lib/commonjs/mol-geo/geometry/base.js.map +1 -1
  178. package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +1 -1
  179. package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.d.ts +1 -1
  180. package/lib/commonjs/mol-geo/geometry/image/image.d.ts +3 -3
  181. package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +1 -1
  182. package/lib/commonjs/mol-geo/geometry/mesh/builder/tube.js +18 -8
  183. package/lib/commonjs/mol-geo/geometry/mesh/builder/tube.js.map +1 -1
  184. package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.d.ts +9 -2
  185. package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.js +154 -35
  186. package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.js.map +1 -1
  187. package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +1 -1
  188. package/lib/commonjs/mol-geo/geometry/mesh/mesh.js +1 -1
  189. package/lib/commonjs/mol-geo/geometry/mesh/mesh.js.map +1 -1
  190. package/lib/commonjs/mol-geo/geometry/overpaint-data.d.ts +7 -2
  191. package/lib/commonjs/mol-geo/geometry/overpaint-data.js +10 -1
  192. package/lib/commonjs/mol-geo/geometry/overpaint-data.js.map +1 -1
  193. package/lib/commonjs/mol-geo/geometry/points/points.d.ts +3 -3
  194. package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +1 -2
  195. package/lib/commonjs/mol-geo/geometry/text/font-atlas.js +1 -1
  196. package/lib/commonjs/mol-geo/geometry/text/font-atlas.js.map +1 -1
  197. package/lib/commonjs/mol-geo/geometry/text/text.d.ts +1 -1
  198. package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.d.ts +7 -3
  199. package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.js +162 -27
  200. package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.js.map +1 -1
  201. package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +4 -2
  202. package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js +2 -1
  203. package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js.map +1 -1
  204. package/lib/commonjs/mol-geo/geometry/transparency-data.d.ts +7 -2
  205. package/lib/commonjs/mol-geo/geometry/transparency-data.js +10 -1
  206. package/lib/commonjs/mol-geo/geometry/transparency-data.js.map +1 -1
  207. package/lib/commonjs/mol-geo/primitive/polyhedron.js +1 -1
  208. package/lib/commonjs/mol-geo/primitive/polyhedron.js.map +1 -1
  209. package/lib/commonjs/mol-gl/_spec/gl.shim.js +4 -4
  210. package/lib/commonjs/mol-gl/_spec/gl.shim.js.map +1 -1
  211. package/lib/commonjs/mol-gl/_spec/renderer.spec.js +1 -1
  212. package/lib/commonjs/mol-gl/_spec/renderer.spec.js.map +1 -1
  213. package/lib/commonjs/mol-gl/compute/grid3d.js +3 -3
  214. package/lib/commonjs/mol-gl/compute/grid3d.js.map +1 -1
  215. package/lib/commonjs/mol-gl/compute/histogram-pyramid/reduction.js +4 -4
  216. package/lib/commonjs/mol-gl/compute/histogram-pyramid/reduction.js.map +1 -1
  217. package/lib/commonjs/mol-gl/compute/marching-cubes/isosurface.js +3 -3
  218. package/lib/commonjs/mol-gl/compute/marching-cubes/isosurface.js.map +1 -1
  219. package/lib/commonjs/mol-gl/compute/util.d.ts +25 -6
  220. package/lib/commonjs/mol-gl/compute/util.js +76 -21
  221. package/lib/commonjs/mol-gl/compute/util.js.map +1 -1
  222. package/lib/commonjs/mol-gl/renderable/cylinders.d.ts +8 -0
  223. package/lib/commonjs/mol-gl/renderable/direct-volume.d.ts +8 -0
  224. package/lib/commonjs/mol-gl/renderable/image.d.ts +8 -0
  225. package/lib/commonjs/mol-gl/renderable/lines.d.ts +8 -0
  226. package/lib/commonjs/mol-gl/renderable/mesh.d.ts +8 -0
  227. package/lib/commonjs/mol-gl/renderable/points.d.ts +8 -0
  228. package/lib/commonjs/mol-gl/renderable/schema.d.ts +16 -0
  229. package/lib/commonjs/mol-gl/renderable/schema.js +8 -0
  230. package/lib/commonjs/mol-gl/renderable/schema.js.map +1 -1
  231. package/lib/commonjs/mol-gl/renderable/spheres.d.ts +8 -0
  232. package/lib/commonjs/mol-gl/renderable/text.d.ts +8 -0
  233. package/lib/commonjs/mol-gl/renderable/texture-mesh.d.ts +22 -13
  234. package/lib/commonjs/mol-gl/renderable/texture-mesh.js +1 -1
  235. package/lib/commonjs/mol-gl/renderable/texture-mesh.js.map +1 -1
  236. package/lib/commonjs/mol-gl/renderable/util.js +1 -1
  237. package/lib/commonjs/mol-gl/renderable/util.js.map +1 -1
  238. package/lib/commonjs/mol-gl/renderer.d.ts +2 -2
  239. package/lib/commonjs/mol-gl/renderer.js +3 -0
  240. package/lib/commonjs/mol-gl/renderer.js.map +1 -1
  241. package/lib/commonjs/mol-gl/scene.js +1 -1
  242. package/lib/commonjs/mol-gl/scene.js.map +1 -1
  243. package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
  244. package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
  245. package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.js.map +1 -1
  246. package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
  247. package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
  248. package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.js.map +1 -1
  249. package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
  250. package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.js +1 -1
  251. package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.js.map +1 -1
  252. package/lib/commonjs/mol-gl/shader/compute/color-smoothing/accumulate.frag.d.ts +1 -1
  253. package/lib/commonjs/mol-gl/shader/compute/color-smoothing/accumulate.frag.js +1 -1
  254. package/lib/commonjs/mol-gl/shader/compute/color-smoothing/accumulate.frag.js.map +1 -1
  255. package/lib/commonjs/mol-gl/shader/compute/color-smoothing/accumulate.vert.d.ts +1 -1
  256. package/lib/commonjs/mol-gl/shader/compute/color-smoothing/accumulate.vert.js +1 -1
  257. package/lib/commonjs/mol-gl/shader/compute/color-smoothing/accumulate.vert.js.map +1 -1
  258. package/lib/commonjs/mol-gl/shader/compute/color-smoothing/normalize.frag.d.ts +1 -1
  259. package/lib/commonjs/mol-gl/shader/compute/color-smoothing/normalize.frag.js +1 -1
  260. package/lib/commonjs/mol-gl/shader/compute/color-smoothing/normalize.frag.js.map +1 -1
  261. package/lib/commonjs/mol-gl/shader/direct-volume.frag.d.ts +1 -1
  262. package/lib/commonjs/mol-gl/shader/direct-volume.frag.js +1 -1
  263. package/lib/commonjs/mol-gl/shader/direct-volume.frag.js.map +1 -1
  264. package/lib/commonjs/mol-gl/shader/mesh.vert.d.ts +1 -1
  265. package/lib/commonjs/mol-gl/shader/mesh.vert.js +1 -1
  266. package/lib/commonjs/mol-gl/shader/mesh.vert.js.map +1 -1
  267. package/lib/commonjs/mol-gl/shader-code.js +8 -8
  268. package/lib/commonjs/mol-gl/shader-code.js.map +1 -1
  269. package/lib/commonjs/mol-gl/webgl/buffer.d.ts +3 -2
  270. package/lib/commonjs/mol-gl/webgl/buffer.js +5 -5
  271. package/lib/commonjs/mol-gl/webgl/buffer.js.map +1 -1
  272. package/lib/commonjs/mol-gl/webgl/compat.js +3 -3
  273. package/lib/commonjs/mol-gl/webgl/compat.js.map +1 -1
  274. package/lib/commonjs/mol-gl/webgl/context.d.ts +1 -1
  275. package/lib/commonjs/mol-gl/webgl/context.js +2 -2
  276. package/lib/commonjs/mol-gl/webgl/context.js.map +1 -1
  277. package/lib/commonjs/mol-gl/webgl/framebuffer.js +1 -1
  278. package/lib/commonjs/mol-gl/webgl/framebuffer.js.map +1 -1
  279. package/lib/commonjs/mol-gl/webgl/program.d.ts +1 -1
  280. package/lib/commonjs/mol-gl/webgl/program.js +14 -12
  281. package/lib/commonjs/mol-gl/webgl/program.js.map +1 -1
  282. package/lib/commonjs/mol-gl/webgl/render-item.d.ts +3 -2
  283. package/lib/commonjs/mol-gl/webgl/render-item.js +2 -2
  284. package/lib/commonjs/mol-gl/webgl/render-item.js.map +1 -1
  285. package/lib/commonjs/mol-gl/webgl/resources.js +2 -2
  286. package/lib/commonjs/mol-gl/webgl/resources.js.map +1 -1
  287. package/lib/commonjs/mol-gl/webgl/shader.js +3 -3
  288. package/lib/commonjs/mol-gl/webgl/shader.js.map +1 -1
  289. package/lib/commonjs/mol-gl/webgl/state.d.ts +4 -1
  290. package/lib/commonjs/mol-gl/webgl/state.js +25 -1
  291. package/lib/commonjs/mol-gl/webgl/state.js.map +1 -1
  292. package/lib/commonjs/mol-gl/webgl/texture.js +2 -2
  293. package/lib/commonjs/mol-gl/webgl/texture.js.map +1 -1
  294. package/lib/commonjs/mol-gl/webgl/uniform.js +2 -2
  295. package/lib/commonjs/mol-gl/webgl/uniform.js.map +1 -1
  296. package/lib/commonjs/mol-gl/webgl/vertex-array.d.ts +3 -2
  297. package/lib/commonjs/mol-gl/webgl/vertex-array.js +9 -2
  298. package/lib/commonjs/mol-gl/webgl/vertex-array.js.map +1 -1
  299. package/lib/commonjs/mol-io/common/file-handle.js +1 -1
  300. package/lib/commonjs/mol-io/common/file-handle.js.map +1 -1
  301. package/lib/commonjs/mol-io/common/typed-array.js +1 -1
  302. package/lib/commonjs/mol-io/common/typed-array.js.map +1 -1
  303. package/lib/commonjs/mol-io/reader/_spec/sdf.spec.js +51 -0
  304. package/lib/commonjs/mol-io/reader/_spec/sdf.spec.js.map +1 -1
  305. package/lib/commonjs/mol-io/reader/ccp4/parser.js +1 -1
  306. package/lib/commonjs/mol-io/reader/ccp4/parser.js.map +1 -1
  307. package/lib/commonjs/mol-io/reader/cif/binary/parser.js +1 -1
  308. package/lib/commonjs/mol-io/reader/cif/binary/parser.js.map +1 -1
  309. package/lib/commonjs/mol-io/reader/cif/data-model.js +7 -7
  310. package/lib/commonjs/mol-io/reader/cif/data-model.js.map +1 -1
  311. package/lib/commonjs/mol-io/reader/cif/schema/bird.d.ts +2 -2
  312. package/lib/commonjs/mol-io/reader/cif/schema/bird.js +1 -1
  313. package/lib/commonjs/mol-io/reader/cif/schema/ccd.d.ts +3 -3
  314. package/lib/commonjs/mol-io/reader/cif/schema/ccd.js +1 -1
  315. package/lib/commonjs/mol-io/reader/cif/schema/cif-core.d.ts +8 -5
  316. package/lib/commonjs/mol-io/reader/cif/schema/cif-core.js +15 -5
  317. package/lib/commonjs/mol-io/reader/cif/schema/cif-core.js.map +1 -1
  318. package/lib/commonjs/mol-io/reader/cif/schema/density-server.d.ts +2 -2
  319. package/lib/commonjs/mol-io/reader/cif/schema/mmcif-extras.d.ts +3 -3
  320. package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +15 -15
  321. package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +1 -1
  322. package/lib/commonjs/mol-io/reader/cif/schema.js +7 -7
  323. package/lib/commonjs/mol-io/reader/cif/schema.js.map +1 -1
  324. package/lib/commonjs/mol-io/reader/cif/text/parser.js +2 -2
  325. package/lib/commonjs/mol-io/reader/cif/text/parser.js.map +1 -1
  326. package/lib/commonjs/mol-io/reader/dcd/parser.js +2 -2
  327. package/lib/commonjs/mol-io/reader/dcd/parser.js.map +1 -1
  328. package/lib/commonjs/mol-io/reader/ply/schema.d.ts +1 -1
  329. package/lib/commonjs/mol-io/reader/ply/schema.js +1 -1
  330. package/lib/commonjs/mol-io/reader/ply/schema.js.map +1 -1
  331. package/lib/commonjs/mol-io/reader/result.js +1 -1
  332. package/lib/commonjs/mol-io/reader/result.js.map +1 -1
  333. package/lib/commonjs/mol-io/reader/sdf/parser-v3-util.d.ts +9 -0
  334. package/lib/commonjs/mol-io/reader/sdf/parser-v3-util.js +91 -0
  335. package/lib/commonjs/mol-io/reader/sdf/parser-v3-util.js.map +1 -0
  336. package/lib/commonjs/mol-io/reader/sdf/parser.d.ts +1 -1
  337. package/lib/commonjs/mol-io/reader/sdf/parser.js +12 -4
  338. package/lib/commonjs/mol-io/reader/sdf/parser.js.map +1 -1
  339. package/lib/commonjs/mol-io/writer/cif/encoder/text.js +3 -3
  340. package/lib/commonjs/mol-io/writer/cif/encoder/text.js.map +1 -1
  341. package/lib/commonjs/mol-io/writer/cif/encoder.js +5 -5
  342. package/lib/commonjs/mol-io/writer/cif/encoder.js.map +1 -1
  343. package/lib/commonjs/mol-io/writer/mol/encoder.js +4 -4
  344. package/lib/commonjs/mol-io/writer/mol/encoder.js.map +1 -1
  345. package/lib/commonjs/mol-io/writer/mol2/encoder.js +6 -6
  346. package/lib/commonjs/mol-io/writer/mol2/encoder.js.map +1 -1
  347. package/lib/commonjs/mol-math/geometry/gaussian-density/gpu.js +1 -1
  348. package/lib/commonjs/mol-math/geometry/gaussian-density/gpu.js.map +1 -1
  349. package/lib/commonjs/mol-math/geometry/spacegroup/construction.js +8 -8
  350. package/lib/commonjs/mol-math/geometry/spacegroup/construction.js.map +1 -1
  351. package/lib/commonjs/mol-math/geometry/spacegroup/tables.js +1 -1
  352. package/lib/commonjs/mol-math/geometry/spacegroup/tables.js.map +1 -1
  353. package/lib/commonjs/mol-math/geometry/symmetry-operator.js +4 -4
  354. package/lib/commonjs/mol-math/geometry/symmetry-operator.js.map +1 -1
  355. package/lib/commonjs/mol-math/graph/inter-unit-graph.js +2 -2
  356. package/lib/commonjs/mol-math/graph/inter-unit-graph.js.map +1 -1
  357. package/lib/commonjs/mol-math/linear-algebra/3d/quat.js +1 -1
  358. package/lib/commonjs/mol-math/linear-algebra/3d/quat.js.map +1 -1
  359. package/lib/commonjs/mol-math/linear-algebra/3d/vec2.js +1 -1
  360. package/lib/commonjs/mol-math/linear-algebra/3d/vec2.js.map +1 -1
  361. package/lib/commonjs/mol-math/linear-algebra/3d/vec3.js +1 -1
  362. package/lib/commonjs/mol-math/linear-algebra/3d/vec3.js.map +1 -1
  363. package/lib/commonjs/mol-math/linear-algebra/3d/vec4.js +1 -1
  364. package/lib/commonjs/mol-math/linear-algebra/3d/vec4.js.map +1 -1
  365. package/lib/commonjs/mol-model/loci.d.ts +20 -20
  366. package/lib/commonjs/mol-model/sequence/sequence.js +2 -2
  367. package/lib/commonjs/mol-model/sequence/sequence.js.map +1 -1
  368. package/lib/commonjs/mol-model/shape/shape.d.ts +1 -1
  369. package/lib/commonjs/mol-model/structure/export/categories/atom_site.js +2 -2
  370. package/lib/commonjs/mol-model/structure/export/categories/atom_site.js.map +1 -1
  371. package/lib/commonjs/mol-model/structure/export/categories/atom_site_operator_mapping.js +1 -1
  372. package/lib/commonjs/mol-model/structure/export/categories/atom_site_operator_mapping.js.map +1 -1
  373. package/lib/commonjs/mol-model/structure/export/categories/secondary-structure.js +1 -1
  374. package/lib/commonjs/mol-model/structure/export/categories/secondary-structure.js.map +1 -1
  375. package/lib/commonjs/mol-model/structure/export/mmcif.js +1 -1
  376. package/lib/commonjs/mol-model/structure/export/mmcif.js.map +1 -1
  377. package/lib/commonjs/mol-model/structure/model/properties/atomic/bonds.js +2 -2
  378. package/lib/commonjs/mol-model/structure/model/properties/atomic/bonds.js.map +1 -1
  379. package/lib/commonjs/mol-model/structure/model/properties/symmetry.js +3 -3
  380. package/lib/commonjs/mol-model/structure/model/properties/symmetry.js.map +1 -1
  381. package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-index.js +2 -2
  382. package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-index.js.map +1 -1
  383. package/lib/commonjs/mol-model/structure/model/properties/utils/coarse-keys.js +1 -1
  384. package/lib/commonjs/mol-model/structure/model/properties/utils/coarse-keys.js.map +1 -1
  385. package/lib/commonjs/mol-model/structure/model/properties/utils/residue-set.js +1 -1
  386. package/lib/commonjs/mol-model/structure/model/properties/utils/residue-set.js.map +1 -1
  387. package/lib/commonjs/mol-model/structure/query/context.js +1 -1
  388. package/lib/commonjs/mol-model/structure/query/context.js.map +1 -1
  389. package/lib/commonjs/mol-model/structure/structure/carbohydrates/compute.js +1 -1
  390. package/lib/commonjs/mol-model/structure/structure/carbohydrates/compute.js.map +1 -1
  391. package/lib/commonjs/mol-model/structure/structure/element/loci.js +2 -2
  392. package/lib/commonjs/mol-model/structure/structure/element/loci.js.map +1 -1
  393. package/lib/commonjs/mol-model/structure/structure/element/util.js +1 -1
  394. package/lib/commonjs/mol-model/structure/structure/element/util.js.map +1 -1
  395. package/lib/commonjs/mol-model/structure/structure/properties.d.ts +3 -3
  396. package/lib/commonjs/mol-model/structure/structure/properties.js +6 -6
  397. package/lib/commonjs/mol-model/structure/structure/properties.js.map +1 -1
  398. package/lib/commonjs/mol-model/structure/structure/structure.js +1 -1
  399. package/lib/commonjs/mol-model/structure/structure/structure.js.map +1 -1
  400. package/lib/commonjs/mol-model/structure/structure/symmetry.js +3 -3
  401. package/lib/commonjs/mol-model/structure/structure/symmetry.js.map +1 -1
  402. package/lib/commonjs/mol-model/structure/structure/unit.d.ts +4 -4
  403. package/lib/commonjs/mol-model/structure/structure/util/superposition-db-mapping.js +1 -1
  404. package/lib/commonjs/mol-model/structure/structure/util/superposition-db-mapping.js.map +1 -1
  405. package/lib/commonjs/mol-model/volume/volume.js +2 -2
  406. package/lib/commonjs/mol-model/volume/volume.js.map +1 -1
  407. package/lib/commonjs/mol-model-formats/shape/ply.d.ts +2 -2
  408. package/lib/commonjs/mol-model-formats/shape/ply.js +1 -1
  409. package/lib/commonjs/mol-model-formats/shape/ply.js.map +1 -1
  410. package/lib/commonjs/mol-model-formats/structure/basic/atomic.js +2 -2
  411. package/lib/commonjs/mol-model-formats/structure/basic/atomic.js.map +1 -1
  412. package/lib/commonjs/mol-model-formats/structure/basic/properties.js +2 -2
  413. package/lib/commonjs/mol-model-formats/structure/basic/properties.js.map +1 -1
  414. package/lib/commonjs/mol-model-formats/structure/basic/schema.d.ts +6 -6
  415. package/lib/commonjs/mol-model-formats/structure/common/component.d.ts +8 -8
  416. package/lib/commonjs/mol-model-formats/structure/common/entity.js +6 -6
  417. package/lib/commonjs/mol-model-formats/structure/common/entity.js.map +1 -1
  418. package/lib/commonjs/mol-model-formats/structure/pdb/assembly.js +10 -10
  419. package/lib/commonjs/mol-model-formats/structure/pdb/assembly.js.map +1 -1
  420. package/lib/commonjs/mol-model-formats/structure/pdb/conect.js +1 -1
  421. package/lib/commonjs/mol-model-formats/structure/pdb/conect.js.map +1 -1
  422. package/lib/commonjs/mol-model-formats/structure/pdb/entity.js +1 -1
  423. package/lib/commonjs/mol-model-formats/structure/pdb/entity.js.map +1 -1
  424. package/lib/commonjs/mol-model-formats/structure/property/assembly.js +1 -1
  425. package/lib/commonjs/mol-model-formats/structure/property/assembly.js.map +1 -1
  426. package/lib/commonjs/mol-model-formats/structure/property/symmetry.js +1 -1
  427. package/lib/commonjs/mol-model-formats/structure/property/symmetry.js.map +1 -1
  428. package/lib/commonjs/mol-model-formats/volume/ccp4.js +1 -1
  429. package/lib/commonjs/mol-model-formats/volume/ccp4.js.map +1 -1
  430. package/lib/commonjs/mol-model-props/common/custom-element-property.js +1 -1
  431. package/lib/commonjs/mol-model-props/common/custom-element-property.js.map +1 -1
  432. package/lib/commonjs/mol-model-props/common/custom-property.js +1 -1
  433. package/lib/commonjs/mol-model-props/common/custom-property.js.map +1 -1
  434. package/lib/commonjs/mol-model-props/computed/interactions/common.js +1 -1
  435. package/lib/commonjs/mol-model-props/computed/interactions/common.js.map +1 -1
  436. package/lib/commonjs/mol-model-props/computed/interactions/hydrogen-bonds.d.ts +1 -1
  437. package/lib/commonjs/mol-model-props/computed/interactions/hydrogen-bonds.js +1 -7
  438. package/lib/commonjs/mol-model-props/computed/interactions/hydrogen-bonds.js.map +1 -1
  439. package/lib/commonjs/mol-model-props/computed/interactions/refine.js +2 -2
  440. package/lib/commonjs/mol-model-props/computed/interactions/refine.js.map +1 -1
  441. package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +2 -2
  442. package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +2 -2
  443. package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +6 -6
  444. package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/property.js +1 -1
  445. package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/property.js.map +1 -1
  446. package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +8 -8
  447. package/lib/commonjs/mol-model-props/integrative/pair-restraints.js +1 -1
  448. package/lib/commonjs/mol-model-props/integrative/pair-restraints.js.map +1 -1
  449. package/lib/commonjs/mol-model-props/sequence/best-database-mapping.js +1 -1
  450. package/lib/commonjs/mol-model-props/sequence/best-database-mapping.js.map +1 -1
  451. package/lib/commonjs/mol-model-props/sequence/themes/best-database-mapping.js +1 -1
  452. package/lib/commonjs/mol-model-props/sequence/themes/best-database-mapping.js.map +1 -1
  453. package/lib/commonjs/mol-plugin/behavior/behavior.d.ts +1 -1
  454. package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/computed/accessible-surface-area.js +3 -3
  455. package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/computed/accessible-surface-area.js.map +1 -1
  456. package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/computed/interactions.js +3 -3
  457. package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/computed/interactions.js.map +1 -1
  458. package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/computed/valence-model.js +1 -1
  459. package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/computed/valence-model.js.map +1 -1
  460. package/lib/commonjs/mol-plugin/behavior/dynamic/representation.d.ts +2 -2
  461. package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +1 -1
  462. package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js +1 -1
  463. package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js.map +1 -1
  464. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/behavior.d.ts +4 -4
  465. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/behavior.js +6 -6
  466. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/behavior.js.map +1 -1
  467. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/transformers.d.ts +4 -4
  468. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/transformers.js +5 -5
  469. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/transformers.js.map +1 -1
  470. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/util.js +6 -6
  471. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/util.js.map +1 -1
  472. package/lib/commonjs/mol-plugin/behavior/static/state.js +4 -4
  473. package/lib/commonjs/mol-plugin/behavior/static/state.js.map +1 -1
  474. package/lib/commonjs/mol-plugin/commands.d.ts +2 -2
  475. package/lib/commonjs/mol-plugin/context.js +2 -3
  476. package/lib/commonjs/mol-plugin/context.js.map +1 -1
  477. package/lib/commonjs/mol-plugin/layout.d.ts +4 -4
  478. package/lib/commonjs/mol-plugin/util/viewport-screenshot.d.ts +9 -9
  479. package/lib/commonjs/mol-plugin/util/viewport-screenshot.js +1 -1
  480. package/lib/commonjs/mol-plugin/util/viewport-screenshot.js.map +1 -1
  481. package/lib/commonjs/mol-plugin-state/actions/file.js +7 -5
  482. package/lib/commonjs/mol-plugin-state/actions/file.js.map +1 -1
  483. package/lib/commonjs/mol-plugin-state/actions/structure.d.ts +1 -1
  484. package/lib/commonjs/mol-plugin-state/actions/structure.js +12 -12
  485. package/lib/commonjs/mol-plugin-state/actions/structure.js.map +1 -1
  486. package/lib/commonjs/mol-plugin-state/actions/volume.js +16 -16
  487. package/lib/commonjs/mol-plugin-state/actions/volume.js.map +1 -1
  488. package/lib/commonjs/mol-plugin-state/animation/built-in/model-index.d.ts +5 -5
  489. package/lib/commonjs/mol-plugin-state/animation/helpers.d.ts +5 -5
  490. package/lib/commonjs/mol-plugin-state/builder/data.d.ts +3 -3
  491. package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +14 -14
  492. package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy.d.ts +6 -6
  493. package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy.js +2 -2
  494. package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy.js.map +1 -1
  495. package/lib/commonjs/mol-plugin-state/builder/structure/representation-preset.d.ts +15 -15
  496. package/lib/commonjs/mol-plugin-state/builder/structure/representation-preset.js +1 -1
  497. package/lib/commonjs/mol-plugin-state/builder/structure/representation-preset.js.map +1 -1
  498. package/lib/commonjs/mol-plugin-state/builder/structure/representation.d.ts +1 -1
  499. package/lib/commonjs/mol-plugin-state/builder/structure/representation.js +2 -2
  500. package/lib/commonjs/mol-plugin-state/builder/structure/representation.js.map +1 -1
  501. package/lib/commonjs/mol-plugin-state/builder/structure.js +3 -3
  502. package/lib/commonjs/mol-plugin-state/builder/structure.js.map +1 -1
  503. package/lib/commonjs/mol-plugin-state/formats/registry.js +1 -1
  504. package/lib/commonjs/mol-plugin-state/formats/registry.js.map +1 -1
  505. package/lib/commonjs/mol-plugin-state/formats/shape.d.ts +2 -2
  506. package/lib/commonjs/mol-plugin-state/formats/structure.d.ts +6 -6
  507. package/lib/commonjs/mol-plugin-state/formats/volume.d.ts +18 -18
  508. package/lib/commonjs/mol-plugin-state/formats/volume.js +1 -0
  509. package/lib/commonjs/mol-plugin-state/formats/volume.js.map +1 -1
  510. package/lib/commonjs/mol-plugin-state/helpers/root-structure.d.ts +4 -4
  511. package/lib/commonjs/mol-plugin-state/helpers/root-structure.js +10 -10
  512. package/lib/commonjs/mol-plugin-state/helpers/root-structure.js.map +1 -1
  513. package/lib/commonjs/mol-plugin-state/helpers/structure-component.d.ts +2 -2
  514. package/lib/commonjs/mol-plugin-state/helpers/structure-component.js +3 -3
  515. package/lib/commonjs/mol-plugin-state/helpers/structure-component.js.map +1 -1
  516. package/lib/commonjs/mol-plugin-state/helpers/structure-query.js +1 -1
  517. package/lib/commonjs/mol-plugin-state/helpers/structure-query.js.map +1 -1
  518. package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.d.ts +1 -1
  519. package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.js +19 -8
  520. package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.js.map +1 -1
  521. package/lib/commonjs/mol-plugin-state/manager/animation.js +1 -1
  522. package/lib/commonjs/mol-plugin-state/manager/animation.js.map +1 -1
  523. package/lib/commonjs/mol-plugin-state/manager/interactivity.d.ts +1 -1
  524. package/lib/commonjs/mol-plugin-state/manager/loci-label.js +1 -1
  525. package/lib/commonjs/mol-plugin-state/manager/loci-label.js.map +1 -1
  526. package/lib/commonjs/mol-plugin-state/manager/snapshots.js +3 -2
  527. package/lib/commonjs/mol-plugin-state/manager/snapshots.js.map +1 -1
  528. package/lib/commonjs/mol-plugin-state/manager/structure/component.d.ts +3 -3
  529. package/lib/commonjs/mol-plugin-state/manager/structure/hierarchy.js +2 -2
  530. package/lib/commonjs/mol-plugin-state/manager/structure/hierarchy.js.map +1 -1
  531. package/lib/commonjs/mol-plugin-state/manager/structure/measurement.js +3 -3
  532. package/lib/commonjs/mol-plugin-state/manager/structure/measurement.js.map +1 -1
  533. package/lib/commonjs/mol-plugin-state/transforms/data.d.ts +6 -6
  534. package/lib/commonjs/mol-plugin-state/transforms/data.js +8 -8
  535. package/lib/commonjs/mol-plugin-state/transforms/data.js.map +1 -1
  536. package/lib/commonjs/mol-plugin-state/transforms/model.d.ts +6 -6
  537. package/lib/commonjs/mol-plugin-state/transforms/model.js +18 -18
  538. package/lib/commonjs/mol-plugin-state/transforms/model.js.map +1 -1
  539. package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +15 -15
  540. package/lib/commonjs/mol-plugin-state/transforms/representation.js +64 -38
  541. package/lib/commonjs/mol-plugin-state/transforms/representation.js.map +1 -1
  542. package/lib/commonjs/mol-plugin-state/transforms/volume.js +7 -7
  543. package/lib/commonjs/mol-plugin-state/transforms/volume.js.map +1 -1
  544. package/lib/commonjs/mol-plugin-ui/base.js +1 -1
  545. package/lib/commonjs/mol-plugin-ui/base.js.map +1 -1
  546. package/lib/commonjs/mol-plugin-ui/controls/action-menu.js +3 -3
  547. package/lib/commonjs/mol-plugin-ui/controls/action-menu.js.map +1 -1
  548. package/lib/commonjs/mol-plugin-ui/controls/color.js +2 -2
  549. package/lib/commonjs/mol-plugin-ui/controls/color.js.map +1 -1
  550. package/lib/commonjs/mol-plugin-ui/controls/common.js +9 -9
  551. package/lib/commonjs/mol-plugin-ui/controls/common.js.map +1 -1
  552. package/lib/commonjs/mol-plugin-ui/controls/icons.js +1 -1
  553. package/lib/commonjs/mol-plugin-ui/controls/icons.js.map +1 -1
  554. package/lib/commonjs/mol-plugin-ui/controls/legend.js +3 -3
  555. package/lib/commonjs/mol-plugin-ui/controls/legend.js.map +1 -1
  556. package/lib/commonjs/mol-plugin-ui/controls/line-graph/line-graph-component.js +6 -6
  557. package/lib/commonjs/mol-plugin-ui/controls/line-graph/line-graph-component.js.map +1 -1
  558. package/lib/commonjs/mol-plugin-ui/controls/line-graph/point-component.js +1 -1
  559. package/lib/commonjs/mol-plugin-ui/controls/line-graph/point-component.js.map +1 -1
  560. package/lib/commonjs/mol-plugin-ui/controls/parameters.js +29 -29
  561. package/lib/commonjs/mol-plugin-ui/controls/parameters.js.map +1 -1
  562. package/lib/commonjs/mol-plugin-ui/controls/screenshot.js +1 -1
  563. package/lib/commonjs/mol-plugin-ui/controls/screenshot.js.map +1 -1
  564. package/lib/commonjs/mol-plugin-ui/controls/slider.js +9 -9
  565. package/lib/commonjs/mol-plugin-ui/controls/slider.js.map +1 -1
  566. package/lib/commonjs/mol-plugin-ui/controls.js +2 -2
  567. package/lib/commonjs/mol-plugin-ui/controls.js.map +1 -1
  568. package/lib/commonjs/mol-plugin-ui/plugin.js +3 -3
  569. package/lib/commonjs/mol-plugin-ui/plugin.js.map +1 -1
  570. package/lib/commonjs/mol-plugin-ui/sequence/chain.js +3 -3
  571. package/lib/commonjs/mol-plugin-ui/sequence/chain.js.map +1 -1
  572. package/lib/commonjs/mol-plugin-ui/sequence/sequence.js +4 -4
  573. package/lib/commonjs/mol-plugin-ui/sequence/sequence.js.map +1 -1
  574. package/lib/commonjs/mol-plugin-ui/sequence.js +8 -8
  575. package/lib/commonjs/mol-plugin-ui/sequence.js.map +1 -1
  576. package/lib/commonjs/mol-plugin-ui/state/actions.js +1 -1
  577. package/lib/commonjs/mol-plugin-ui/state/actions.js.map +1 -1
  578. package/lib/commonjs/mol-plugin-ui/state/common.js +12 -11
  579. package/lib/commonjs/mol-plugin-ui/state/common.js.map +1 -1
  580. package/lib/commonjs/mol-plugin-ui/state/snapshots.js +14 -12
  581. package/lib/commonjs/mol-plugin-ui/state/snapshots.js.map +1 -1
  582. package/lib/commonjs/mol-plugin-ui/state/tree.js +8 -8
  583. package/lib/commonjs/mol-plugin-ui/state/tree.js.map +1 -1
  584. package/lib/commonjs/mol-plugin-ui/structure/components.js +4 -4
  585. package/lib/commonjs/mol-plugin-ui/structure/components.js.map +1 -1
  586. package/lib/commonjs/mol-plugin-ui/structure/focus.js +4 -4
  587. package/lib/commonjs/mol-plugin-ui/structure/focus.js.map +1 -1
  588. package/lib/commonjs/mol-plugin-ui/structure/generic.js +2 -2
  589. package/lib/commonjs/mol-plugin-ui/structure/generic.js.map +1 -1
  590. package/lib/commonjs/mol-plugin-ui/structure/measurements.js +6 -6
  591. package/lib/commonjs/mol-plugin-ui/structure/measurements.js.map +1 -1
  592. package/lib/commonjs/mol-plugin-ui/structure/selection.d.ts +1 -1
  593. package/lib/commonjs/mol-plugin-ui/structure/selection.js +5 -4
  594. package/lib/commonjs/mol-plugin-ui/structure/selection.js.map +1 -1
  595. package/lib/commonjs/mol-plugin-ui/structure/source.js +12 -12
  596. package/lib/commonjs/mol-plugin-ui/structure/source.js.map +1 -1
  597. package/lib/commonjs/mol-plugin-ui/structure/superposition.js +4 -4
  598. package/lib/commonjs/mol-plugin-ui/structure/superposition.js.map +1 -1
  599. package/lib/commonjs/mol-plugin-ui/structure/volume.js +2 -2
  600. package/lib/commonjs/mol-plugin-ui/structure/volume.js.map +1 -1
  601. package/lib/commonjs/mol-repr/representation.d.ts +9 -0
  602. package/lib/commonjs/mol-repr/representation.js +47 -8
  603. package/lib/commonjs/mol-repr/representation.js.map +1 -1
  604. package/lib/commonjs/mol-repr/shape/loci/angle.d.ts +1 -1
  605. package/lib/commonjs/mol-repr/shape/loci/angle.js +2 -2
  606. package/lib/commonjs/mol-repr/shape/loci/angle.js.map +1 -1
  607. package/lib/commonjs/mol-repr/shape/loci/common.d.ts +1 -1
  608. package/lib/commonjs/mol-repr/shape/loci/dihedral.d.ts +1 -1
  609. package/lib/commonjs/mol-repr/shape/loci/dihedral.js +2 -2
  610. package/lib/commonjs/mol-repr/shape/loci/dihedral.js.map +1 -1
  611. package/lib/commonjs/mol-repr/shape/loci/distance.d.ts +1 -1
  612. package/lib/commonjs/mol-repr/shape/loci/distance.js +2 -2
  613. package/lib/commonjs/mol-repr/shape/loci/distance.js.map +1 -1
  614. package/lib/commonjs/mol-repr/shape/loci/label.d.ts +1 -1
  615. package/lib/commonjs/mol-repr/shape/loci/label.js +1 -1
  616. package/lib/commonjs/mol-repr/shape/loci/label.js.map +1 -1
  617. package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +2 -2
  618. package/lib/commonjs/mol-repr/shape/loci/orientation.js +3 -3
  619. package/lib/commonjs/mol-repr/shape/loci/orientation.js.map +1 -1
  620. package/lib/commonjs/mol-repr/shape/loci/plane.d.ts +1 -1
  621. package/lib/commonjs/mol-repr/shape/loci/plane.js +1 -1
  622. package/lib/commonjs/mol-repr/shape/loci/plane.js.map +1 -1
  623. package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +2 -2
  624. package/lib/commonjs/mol-repr/shape/representation.js +5 -0
  625. package/lib/commonjs/mol-repr/shape/representation.js.map +1 -1
  626. package/lib/commonjs/mol-repr/structure/complex-representation.js +11 -4
  627. package/lib/commonjs/mol-repr/structure/complex-representation.js.map +1 -1
  628. package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +12 -12
  629. package/lib/commonjs/mol-repr/structure/complex-visual.js +11 -5
  630. package/lib/commonjs/mol-repr/structure/complex-visual.js.map +1 -1
  631. package/lib/commonjs/mol-repr/structure/params.d.ts +11 -11
  632. package/lib/commonjs/mol-repr/structure/registry.d.ts +44 -44
  633. package/lib/commonjs/mol-repr/structure/registry.js +1 -1
  634. package/lib/commonjs/mol-repr/structure/registry.js.map +1 -1
  635. package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +6 -6
  636. package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +15 -15
  637. package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +6 -6
  638. package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +6 -6
  639. package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +15 -15
  640. package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +12 -12
  641. package/lib/commonjs/mol-repr/structure/representation/gaussian-volume.d.ts +6 -6
  642. package/lib/commonjs/mol-repr/structure/representation/label.d.ts +9 -9
  643. package/lib/commonjs/mol-repr/structure/representation/line.d.ts +18 -18
  644. package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +12 -12
  645. package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +6 -6
  646. package/lib/commonjs/mol-repr/structure/representation/point.d.ts +9 -9
  647. package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +6 -6
  648. package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +6 -6
  649. package/lib/commonjs/mol-repr/structure/units-representation.js +16 -16
  650. package/lib/commonjs/mol-repr/structure/units-representation.js.map +1 -1
  651. package/lib/commonjs/mol-repr/structure/units-visual.d.ts +17 -17
  652. package/lib/commonjs/mol-repr/structure/units-visual.js +11 -5
  653. package/lib/commonjs/mol-repr/structure/units-visual.js.map +1 -1
  654. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +10 -10
  655. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-line.d.ts +5 -5
  656. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +10 -10
  657. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.d.ts +5 -5
  658. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +2 -2
  659. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +2 -2
  660. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +2 -2
  661. package/lib/commonjs/mol-repr/structure/visual/element-cross.d.ts +2 -2
  662. package/lib/commonjs/mol-repr/structure/visual/element-point.d.ts +3 -3
  663. package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +4 -4
  664. package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +2 -2
  665. package/lib/commonjs/mol-repr/structure/visual/gaussian-density-volume.d.ts +4 -4
  666. package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +16 -16
  667. package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.js +14 -12
  668. package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.js.map +1 -1
  669. package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +2 -2
  670. package/lib/commonjs/mol-repr/structure/visual/label-text.d.ts +3 -3
  671. package/lib/commonjs/mol-repr/structure/visual/label-text.js +3 -3
  672. package/lib/commonjs/mol-repr/structure/visual/label-text.js.map +1 -1
  673. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +4 -4
  674. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.js +5 -4
  675. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.js.map +1 -1
  676. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +2 -2
  677. package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +2 -2
  678. package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +2 -2
  679. package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +2 -2
  680. package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +4 -4
  681. package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +4 -4
  682. package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +2 -2
  683. package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +2 -2
  684. package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +2 -2
  685. package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +2 -2
  686. package/lib/commonjs/mol-repr/structure/visual/util/bond.d.ts +18 -18
  687. package/lib/commonjs/mol-repr/structure/visual/util/common.d.ts +2 -2
  688. package/lib/commonjs/mol-repr/visual.d.ts +21 -13
  689. package/lib/commonjs/mol-repr/visual.js +53 -6
  690. package/lib/commonjs/mol-repr/visual.js.map +1 -1
  691. package/lib/commonjs/mol-repr/volume/direct-volume.d.ts +8 -8
  692. package/lib/commonjs/mol-repr/volume/isosurface.d.ts +15 -15
  693. package/lib/commonjs/mol-repr/volume/registry.d.ts +9 -9
  694. package/lib/commonjs/mol-repr/volume/registry.js +1 -1
  695. package/lib/commonjs/mol-repr/volume/registry.js.map +1 -1
  696. package/lib/commonjs/mol-repr/volume/representation.d.ts +2 -2
  697. package/lib/commonjs/mol-repr/volume/representation.js +12 -3
  698. package/lib/commonjs/mol-repr/volume/representation.js.map +1 -1
  699. package/lib/commonjs/mol-repr/volume/slice.d.ts +12 -12
  700. package/lib/commonjs/mol-script/language/expression-formatter.js +6 -6
  701. package/lib/commonjs/mol-script/language/expression-formatter.js.map +1 -1
  702. package/lib/commonjs/mol-script/language/helpers.js +4 -4
  703. package/lib/commonjs/mol-script/language/helpers.js.map +1 -1
  704. package/lib/commonjs/mol-script/language/parser.js +1 -1
  705. package/lib/commonjs/mol-script/language/parser.js.map +1 -1
  706. package/lib/commonjs/mol-script/language/symbol-table/structure-query.js +3 -3
  707. package/lib/commonjs/mol-script/language/symbol-table/structure-query.js.map +1 -1
  708. package/lib/commonjs/mol-script/language/symbol.js +1 -1
  709. package/lib/commonjs/mol-script/language/symbol.js.map +1 -1
  710. package/lib/commonjs/mol-script/runtime/query/base.js +2 -2
  711. package/lib/commonjs/mol-script/runtime/query/base.js.map +1 -1
  712. package/lib/commonjs/mol-script/script/mol-script/symbols.js +3 -3
  713. package/lib/commonjs/mol-script/script/mol-script/symbols.js.map +1 -1
  714. package/lib/commonjs/mol-state/state/builder.js +1 -1
  715. package/lib/commonjs/mol-state/state/builder.js.map +1 -1
  716. package/lib/commonjs/mol-state/state.js +14 -12
  717. package/lib/commonjs/mol-state/state.js.map +1 -1
  718. package/lib/commonjs/mol-state/transformer.js +3 -3
  719. package/lib/commonjs/mol-state/transformer.js.map +1 -1
  720. package/lib/commonjs/mol-state/tree/transient.js +3 -3
  721. package/lib/commonjs/mol-state/tree/transient.js.map +1 -1
  722. package/lib/commonjs/mol-task/execution/observable.js +1 -5
  723. package/lib/commonjs/mol-task/execution/observable.js.map +1 -1
  724. package/lib/commonjs/mol-task/execution/progress.js +4 -4
  725. package/lib/commonjs/mol-task/execution/progress.js.map +1 -1
  726. package/lib/commonjs/mol-task/task.js +1 -1
  727. package/lib/commonjs/mol-task/task.js.map +1 -1
  728. package/lib/commonjs/mol-task/util/multistep.js +1 -1
  729. package/lib/commonjs/mol-task/util/multistep.js.map +1 -1
  730. package/lib/commonjs/mol-task/util/user-timing.js +3 -3
  731. package/lib/commonjs/mol-task/util/user-timing.js.map +1 -1
  732. package/lib/commonjs/mol-theme/color/chain-id.js +1 -1
  733. package/lib/commonjs/mol-theme/color/chain-id.js.map +1 -1
  734. package/lib/commonjs/mol-theme/color/element-symbol.d.ts +4 -4
  735. package/lib/commonjs/mol-theme/color/entity-id.js +1 -1
  736. package/lib/commonjs/mol-theme/color/entity-id.js.map +1 -1
  737. package/lib/commonjs/mol-theme/color/entity-source.js +4 -4
  738. package/lib/commonjs/mol-theme/color/entity-source.js.map +1 -1
  739. package/lib/commonjs/mol-theme/color/operator-hkl.js +2 -2
  740. package/lib/commonjs/mol-theme/color/operator-hkl.js.map +1 -1
  741. package/lib/commonjs/mol-theme/color.d.ts +2 -2
  742. package/lib/commonjs/mol-theme/label.js +27 -27
  743. package/lib/commonjs/mol-theme/label.js.map +1 -1
  744. package/lib/commonjs/mol-theme/theme.js +3 -3
  745. package/lib/commonjs/mol-theme/theme.js.map +1 -1
  746. package/lib/commonjs/mol-util/assets.js +3 -3
  747. package/lib/commonjs/mol-util/assets.js.map +1 -1
  748. package/lib/commonjs/mol-util/color/color.js +2 -2
  749. package/lib/commonjs/mol-util/color/color.js.map +1 -1
  750. package/lib/commonjs/mol-util/color/lists.d.ts +3 -3
  751. package/lib/commonjs/mol-util/color/lists.js +1 -1
  752. package/lib/commonjs/mol-util/color/lists.js.map +1 -1
  753. package/lib/commonjs/mol-util/color/names.d.ts +1 -1
  754. package/lib/commonjs/mol-util/color/palette.d.ts +1 -1
  755. package/lib/commonjs/mol-util/color/palette.js +2 -2
  756. package/lib/commonjs/mol-util/color/palette.js.map +1 -1
  757. package/lib/commonjs/mol-util/color/scale.d.ts +1 -1
  758. package/lib/commonjs/mol-util/console-logger.js +9 -9
  759. package/lib/commonjs/mol-util/console-logger.js.map +1 -1
  760. package/lib/commonjs/mol-util/data-source.js +5 -5
  761. package/lib/commonjs/mol-util/data-source.js.map +1 -1
  762. package/lib/commonjs/mol-util/download.js +1 -1
  763. package/lib/commonjs/mol-util/download.js.map +1 -1
  764. package/lib/commonjs/mol-util/graphql-client.js +2 -2
  765. package/lib/commonjs/mol-util/graphql-client.js.map +1 -1
  766. package/lib/commonjs/mol-util/index.js +2 -2
  767. package/lib/commonjs/mol-util/index.js.map +1 -1
  768. package/lib/commonjs/mol-util/monadic-parser.js +4 -4
  769. package/lib/commonjs/mol-util/monadic-parser.js.map +1 -1
  770. package/lib/commonjs/mol-util/now.js +4 -4
  771. package/lib/commonjs/mol-util/now.js.map +1 -1
  772. package/lib/commonjs/mol-util/object.js +1 -1
  773. package/lib/commonjs/mol-util/object.js.map +1 -1
  774. package/lib/commonjs/mol-util/performance-monitor.js +4 -4
  775. package/lib/commonjs/mol-util/performance-monitor.js.map +1 -1
  776. package/lib/commonjs/mol-util/string.js +3 -3
  777. package/lib/commonjs/mol-util/string.js.map +1 -1
  778. package/lib/commonjs/mol-util/url.js +2 -2
  779. package/lib/commonjs/mol-util/url.js.map +1 -1
  780. package/lib/commonjs/mol-util/zip/deflate.js +1 -1
  781. package/lib/commonjs/mol-util/zip/deflate.js.map +1 -1
  782. package/lib/commonjs/mol-util/zip/inflate.js +1 -1
  783. package/lib/commonjs/mol-util/zip/inflate.js.map +1 -1
  784. package/lib/commonjs/mol-util/zip/zip.js +1 -1
  785. package/lib/commonjs/mol-util/zip/zip.js.map +1 -1
  786. package/lib/commonjs/perf-tests/mol-script.js +1 -1
  787. package/lib/commonjs/perf-tests/mol-script.js.map +1 -1
  788. package/lib/commonjs/perf-tests/sets.js +1 -1
  789. package/lib/commonjs/perf-tests/sets.js.map +1 -1
  790. package/lib/commonjs/perf-tests/sort.js +1 -1
  791. package/lib/commonjs/perf-tests/sort.js.map +1 -1
  792. package/lib/commonjs/perf-tests/string-builder.js +2 -2
  793. package/lib/commonjs/perf-tests/string-builder.js.map +1 -1
  794. package/lib/commonjs/perf-tests/structure.js +7 -7
  795. package/lib/commonjs/perf-tests/structure.js.map +1 -1
  796. package/lib/commonjs/perf-tests/test-xtc.js +1 -1
  797. package/lib/commonjs/perf-tests/test-xtc.js.map +1 -1
  798. package/lib/commonjs/servers/common/file-handle.js +1 -1
  799. package/lib/commonjs/servers/common/file-handle.js.map +1 -1
  800. package/lib/commonjs/servers/common/util.js +1 -1
  801. package/lib/commonjs/servers/common/util.js.map +1 -1
  802. package/lib/commonjs/servers/model/config.js +4 -4
  803. package/lib/commonjs/servers/model/config.js.map +1 -1
  804. package/lib/commonjs/servers/model/preprocess/master.js +1 -1
  805. package/lib/commonjs/servers/model/preprocess/master.js.map +1 -1
  806. package/lib/commonjs/servers/model/preprocess/parallel.js +2 -2
  807. package/lib/commonjs/servers/model/preprocess/parallel.js.map +1 -1
  808. package/lib/commonjs/servers/model/preprocess/util.js +3 -3
  809. package/lib/commonjs/servers/model/preprocess/util.js.map +1 -1
  810. package/lib/commonjs/servers/model/properties/providers/pdbe.js +5 -5
  811. package/lib/commonjs/servers/model/properties/providers/pdbe.js.map +1 -1
  812. package/lib/commonjs/servers/model/property-provider.js +2 -2
  813. package/lib/commonjs/servers/model/property-provider.js.map +1 -1
  814. package/lib/commonjs/servers/model/query.js +1 -1
  815. package/lib/commonjs/servers/model/query.js.map +1 -1
  816. package/lib/commonjs/servers/model/server/api-local.js +2 -2
  817. package/lib/commonjs/servers/model/server/api-local.js.map +1 -1
  818. package/lib/commonjs/servers/model/server/api-schema.js +2 -2
  819. package/lib/commonjs/servers/model/server/api-schema.js.map +1 -1
  820. package/lib/commonjs/servers/model/server/api-web-multiple.js +1 -1
  821. package/lib/commonjs/servers/model/server/api-web-multiple.js.map +1 -1
  822. package/lib/commonjs/servers/model/server/api-web.js +4 -4
  823. package/lib/commonjs/servers/model/server/api-web.js.map +1 -1
  824. package/lib/commonjs/servers/model/server/api.js +1 -1
  825. package/lib/commonjs/servers/model/server/api.js.map +1 -1
  826. package/lib/commonjs/servers/model/server/cache.js +3 -3
  827. package/lib/commonjs/servers/model/server/cache.js.map +1 -1
  828. package/lib/commonjs/servers/model/server/jobs.js +3 -3
  829. package/lib/commonjs/servers/model/server/jobs.js.map +1 -1
  830. package/lib/commonjs/servers/model/server/query.js +10 -10
  831. package/lib/commonjs/servers/model/server/query.js.map +1 -1
  832. package/lib/commonjs/servers/model/server/structure-wrapper.js +6 -6
  833. package/lib/commonjs/servers/model/server/structure-wrapper.js.map +1 -1
  834. package/lib/commonjs/servers/model/server.js +3 -3
  835. package/lib/commonjs/servers/model/server.js.map +1 -1
  836. package/lib/commonjs/servers/model/utils/fetch-props-pdbe.js +4 -4
  837. package/lib/commonjs/servers/model/utils/fetch-props-pdbe.js.map +1 -1
  838. package/lib/commonjs/servers/model/utils/writer.js +2 -2
  839. package/lib/commonjs/servers/model/utils/writer.js.map +1 -1
  840. package/lib/commonjs/servers/plugin-state/api-schema.js +2 -2
  841. package/lib/commonjs/servers/plugin-state/api-schema.js.map +1 -1
  842. package/lib/commonjs/servers/plugin-state/index.js +1 -1
  843. package/lib/commonjs/servers/plugin-state/index.js.map +1 -1
  844. package/lib/commonjs/servers/volume/pack/format/dsn6.js +1 -1
  845. package/lib/commonjs/servers/volume/pack/format/dsn6.js.map +1 -1
  846. package/lib/commonjs/servers/volume/pack/main.js +4 -4
  847. package/lib/commonjs/servers/volume/pack/main.js.map +1 -1
  848. package/lib/commonjs/servers/volume/pack/writer.js +1 -1
  849. package/lib/commonjs/servers/volume/pack/writer.js.map +1 -1
  850. package/lib/commonjs/servers/volume/pack.js +1 -1
  851. package/lib/commonjs/servers/volume/pack.js.map +1 -1
  852. package/lib/commonjs/servers/volume/server/api.js +7 -7
  853. package/lib/commonjs/servers/volume/server/api.js.map +1 -1
  854. package/lib/commonjs/servers/volume/server/local-api.js +1 -1
  855. package/lib/commonjs/servers/volume/server/local-api.js.map +1 -1
  856. package/lib/commonjs/servers/volume/server/query/encode.js +3 -3
  857. package/lib/commonjs/servers/volume/server/query/encode.js.map +1 -1
  858. package/lib/commonjs/servers/volume/server/query/execute.js +5 -5
  859. package/lib/commonjs/servers/volume/server/query/execute.js.map +1 -1
  860. package/lib/commonjs/servers/volume/server/version.js +1 -1
  861. package/lib/commonjs/servers/volume/server/version.js.map +1 -1
  862. package/lib/commonjs/servers/volume/server/web-api.js +7 -7
  863. package/lib/commonjs/servers/volume/server/web-api.js.map +1 -1
  864. package/lib/commonjs/servers/volume/server/web-schema.js +6 -6
  865. package/lib/commonjs/servers/volume/server/web-schema.js.map +1 -1
  866. package/lib/commonjs/servers/volume/server.js +2 -2
  867. package/lib/commonjs/servers/volume/server.js.map +1 -1
  868. package/lib/commonjs/tests/browser/font-atlas.js +1 -1
  869. package/lib/commonjs/tests/browser/font-atlas.js.map +1 -1
  870. package/lib/commonjs/tests/browser/render-shape.js +1 -1
  871. package/lib/commonjs/tests/browser/render-shape.js.map +1 -1
  872. package/lib/commonjs/tests/browser/render-structure.js +1 -1
  873. package/lib/commonjs/tests/browser/render-structure.js.map +1 -1
  874. package/lib/examples/basic-wrapper/superposition.js +3 -3
  875. package/lib/examples/basic-wrapper/superposition.js.map +1 -1
  876. package/lib/examples/domain-annotation-server/mapping.js +2 -2
  877. package/lib/examples/domain-annotation-server/mapping.js.map +1 -1
  878. package/lib/examples/domain-annotation-server/server.js +3 -3
  879. package/lib/examples/domain-annotation-server/server.js.map +1 -1
  880. package/lib/examples/proteopedia-wrapper/annotation.js +3 -3
  881. package/lib/examples/proteopedia-wrapper/annotation.js.map +1 -1
  882. package/lib/examples/proteopedia-wrapper/helpers.js +1 -1
  883. package/lib/examples/proteopedia-wrapper/helpers.js.map +1 -1
  884. package/lib/examples/proteopedia-wrapper/index.js +2 -2
  885. package/lib/examples/proteopedia-wrapper/index.js.map +1 -1
  886. package/lib/examples/task.js +6 -6
  887. package/lib/examples/task.js.map +1 -1
  888. package/lib/extensions/alpha-orbitals/transforms.js +2 -2
  889. package/lib/extensions/alpha-orbitals/transforms.js.map +1 -1
  890. package/lib/extensions/anvil/behavior.d.ts +2 -2
  891. package/lib/extensions/anvil/representation.d.ts +5 -5
  892. package/lib/extensions/anvil/representation.js +1 -1
  893. package/lib/extensions/anvil/representation.js.map +1 -1
  894. package/lib/extensions/cellpack/model.js +15 -15
  895. package/lib/extensions/cellpack/model.js.map +1 -1
  896. package/lib/extensions/cellpack/representation.d.ts +2 -2
  897. package/lib/extensions/cellpack/state.js +5 -5
  898. package/lib/extensions/cellpack/state.js.map +1 -1
  899. package/lib/extensions/cellpack/util.js +4 -4
  900. package/lib/extensions/cellpack/util.js.map +1 -1
  901. package/lib/extensions/dnatco/confal-pyramids/behavior.d.ts +1 -1
  902. package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +6 -6
  903. package/lib/extensions/dnatco/confal-pyramids/util.js +7 -7
  904. package/lib/extensions/dnatco/confal-pyramids/util.js.map +1 -1
  905. package/lib/extensions/g3d/data.js +2 -2
  906. package/lib/extensions/g3d/data.js.map +1 -1
  907. package/lib/extensions/g3d/model.js +2 -2
  908. package/lib/extensions/g3d/model.js.map +1 -1
  909. package/lib/extensions/geo-export/controls.js +3 -3
  910. package/lib/extensions/geo-export/controls.js.map +1 -1
  911. package/lib/extensions/geo-export/glb-exporter.d.ts +1 -0
  912. package/lib/extensions/geo-export/glb-exporter.js +28 -18
  913. package/lib/extensions/geo-export/glb-exporter.js.map +1 -1
  914. package/lib/extensions/geo-export/mesh-exporter.d.ts +31 -2
  915. package/lib/extensions/geo-export/mesh-exporter.js +87 -15
  916. package/lib/extensions/geo-export/mesh-exporter.js.map +1 -1
  917. package/lib/extensions/geo-export/obj-exporter.d.ts +1 -0
  918. package/lib/extensions/geo-export/obj-exporter.js +27 -18
  919. package/lib/extensions/geo-export/obj-exporter.js.map +1 -1
  920. package/lib/extensions/geo-export/stl-exporter.js +1 -1
  921. package/lib/extensions/geo-export/stl-exporter.js.map +1 -1
  922. package/lib/extensions/geo-export/ui.js +24 -20
  923. package/lib/extensions/geo-export/ui.js.map +1 -1
  924. package/lib/extensions/geo-export/usdz-exporter.d.ts +1 -0
  925. package/lib/extensions/geo-export/usdz-exporter.js +31 -21
  926. package/lib/extensions/geo-export/usdz-exporter.js.map +1 -1
  927. package/lib/extensions/mp4-export/controls.js +2 -2
  928. package/lib/extensions/mp4-export/controls.js.map +1 -1
  929. package/lib/extensions/mp4-export/ui.js +7 -6
  930. package/lib/extensions/mp4-export/ui.js.map +1 -1
  931. package/lib/extensions/pdbe/structure-quality-report/behavior.js +1 -1
  932. package/lib/extensions/pdbe/structure-quality-report/behavior.js.map +1 -1
  933. package/lib/extensions/pdbe/structure-quality-report/prop.js +1 -1
  934. package/lib/extensions/pdbe/structure-quality-report/prop.js.map +1 -1
  935. package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +8 -8
  936. package/lib/extensions/rcsb/assembly-symmetry/behavior.js +3 -3
  937. package/lib/extensions/rcsb/assembly-symmetry/behavior.js.map +1 -1
  938. package/lib/extensions/rcsb/assembly-symmetry/color.js +1 -1
  939. package/lib/extensions/rcsb/assembly-symmetry/color.js.map +1 -1
  940. package/lib/extensions/rcsb/assembly-symmetry/prop.js +2 -2
  941. package/lib/extensions/rcsb/assembly-symmetry/prop.js.map +1 -1
  942. package/lib/extensions/rcsb/assembly-symmetry/representation.d.ts +3 -3
  943. package/lib/extensions/rcsb/assembly-symmetry/representation.js +7 -7
  944. package/lib/extensions/rcsb/assembly-symmetry/representation.js.map +1 -1
  945. package/lib/extensions/rcsb/graphql/types.d.ts +22 -21
  946. package/lib/extensions/rcsb/validation-report/behavior.d.ts +3 -3
  947. package/lib/extensions/rcsb/validation-report/behavior.js +11 -11
  948. package/lib/extensions/rcsb/validation-report/behavior.js.map +1 -1
  949. package/lib/extensions/rcsb/validation-report/prop.js +2 -2
  950. package/lib/extensions/rcsb/validation-report/prop.js.map +1 -1
  951. package/lib/extensions/rcsb/validation-report/representation.d.ts +10 -10
  952. package/lib/extensions/rcsb/validation-report/representation.js +2 -2
  953. package/lib/extensions/rcsb/validation-report/representation.js.map +1 -1
  954. package/lib/mol-canvas3d/canvas3d.js +3 -3
  955. package/lib/mol-canvas3d/canvas3d.js.map +1 -1
  956. package/lib/mol-canvas3d/helper/camera-helper.d.ts +1 -1
  957. package/lib/mol-canvas3d/helper/handle-helper.d.ts +1 -1
  958. package/lib/mol-canvas3d/helper/handle-helper.js +1 -1
  959. package/lib/mol-canvas3d/helper/handle-helper.js.map +1 -1
  960. package/lib/mol-canvas3d/passes/draw.js +3 -11
  961. package/lib/mol-canvas3d/passes/draw.js.map +1 -1
  962. package/lib/mol-canvas3d/passes/wboit.js +1 -1
  963. package/lib/mol-canvas3d/passes/wboit.js.map +1 -1
  964. package/lib/mol-canvas3d/util.js +1 -1
  965. package/lib/mol-canvas3d/util.js.map +1 -1
  966. package/lib/mol-data/db/table.js +1 -1
  967. package/lib/mol-data/db/table.js.map +1 -1
  968. package/lib/mol-data/int/_spec/sorted-ranges.spec.js +1 -1
  969. package/lib/mol-data/int/_spec/sorted-ranges.spec.js.map +1 -1
  970. package/lib/mol-data/int/impl/ordered-set.d.ts +3 -3
  971. package/lib/mol-data/int/impl/sorted-array.d.ts +1 -1
  972. package/lib/mol-data/int/impl/sorted-array.js +2 -2
  973. package/lib/mol-data/int/impl/sorted-array.js.map +1 -1
  974. package/lib/mol-data/int/tuple.js +1 -1
  975. package/lib/mol-data/int/tuple.js.map +1 -1
  976. package/lib/mol-data/util/_spec/interval-iterator.spec.js +1 -1
  977. package/lib/mol-data/util/_spec/interval-iterator.spec.js.map +1 -1
  978. package/lib/mol-geo/geometry/base.d.ts +16 -4
  979. package/lib/mol-geo/geometry/base.js +34 -1
  980. package/lib/mol-geo/geometry/base.js.map +1 -1
  981. package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +1 -1
  982. package/lib/mol-geo/geometry/direct-volume/direct-volume.d.ts +1 -1
  983. package/lib/mol-geo/geometry/image/image.d.ts +3 -3
  984. package/lib/mol-geo/geometry/lines/lines.d.ts +1 -1
  985. package/lib/mol-geo/geometry/mesh/builder/tube.js +19 -9
  986. package/lib/mol-geo/geometry/mesh/builder/tube.js.map +1 -1
  987. package/lib/mol-geo/geometry/mesh/color-smoothing.d.ts +9 -2
  988. package/lib/mol-geo/geometry/mesh/color-smoothing.js +150 -34
  989. package/lib/mol-geo/geometry/mesh/color-smoothing.js.map +1 -1
  990. package/lib/mol-geo/geometry/mesh/mesh.d.ts +1 -1
  991. package/lib/mol-geo/geometry/mesh/mesh.js +1 -1
  992. package/lib/mol-geo/geometry/mesh/mesh.js.map +1 -1
  993. package/lib/mol-geo/geometry/overpaint-data.d.ts +7 -2
  994. package/lib/mol-geo/geometry/overpaint-data.js +11 -2
  995. package/lib/mol-geo/geometry/overpaint-data.js.map +1 -1
  996. package/lib/mol-geo/geometry/points/points.d.ts +3 -3
  997. package/lib/mol-geo/geometry/spheres/spheres.d.ts +1 -2
  998. package/lib/mol-geo/geometry/text/font-atlas.js +1 -1
  999. package/lib/mol-geo/geometry/text/font-atlas.js.map +1 -1
  1000. package/lib/mol-geo/geometry/text/text.d.ts +1 -1
  1001. package/lib/mol-geo/geometry/texture-mesh/color-smoothing.d.ts +7 -3
  1002. package/lib/mol-geo/geometry/texture-mesh/color-smoothing.js +158 -26
  1003. package/lib/mol-geo/geometry/texture-mesh/color-smoothing.js.map +1 -1
  1004. package/lib/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +4 -2
  1005. package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js +2 -1
  1006. package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js.map +1 -1
  1007. package/lib/mol-geo/geometry/transparency-data.d.ts +7 -2
  1008. package/lib/mol-geo/geometry/transparency-data.js +11 -2
  1009. package/lib/mol-geo/geometry/transparency-data.js.map +1 -1
  1010. package/lib/mol-geo/primitive/polyhedron.js +1 -1
  1011. package/lib/mol-geo/primitive/polyhedron.js.map +1 -1
  1012. package/lib/mol-gl/_spec/gl.shim.js +4 -4
  1013. package/lib/mol-gl/_spec/gl.shim.js.map +1 -1
  1014. package/lib/mol-gl/_spec/renderer.spec.js +1 -1
  1015. package/lib/mol-gl/_spec/renderer.spec.js.map +1 -1
  1016. package/lib/mol-gl/compute/grid3d.js +3 -3
  1017. package/lib/mol-gl/compute/grid3d.js.map +1 -1
  1018. package/lib/mol-gl/compute/histogram-pyramid/reduction.js +4 -4
  1019. package/lib/mol-gl/compute/histogram-pyramid/reduction.js.map +1 -1
  1020. package/lib/mol-gl/compute/marching-cubes/isosurface.js +3 -3
  1021. package/lib/mol-gl/compute/marching-cubes/isosurface.js.map +1 -1
  1022. package/lib/mol-gl/compute/util.d.ts +25 -6
  1023. package/lib/mol-gl/compute/util.js +74 -21
  1024. package/lib/mol-gl/compute/util.js.map +1 -1
  1025. package/lib/mol-gl/renderable/cylinders.d.ts +8 -0
  1026. package/lib/mol-gl/renderable/direct-volume.d.ts +8 -0
  1027. package/lib/mol-gl/renderable/image.d.ts +8 -0
  1028. package/lib/mol-gl/renderable/lines.d.ts +8 -0
  1029. package/lib/mol-gl/renderable/mesh.d.ts +8 -0
  1030. package/lib/mol-gl/renderable/points.d.ts +8 -0
  1031. package/lib/mol-gl/renderable/schema.d.ts +16 -0
  1032. package/lib/mol-gl/renderable/schema.js +8 -0
  1033. package/lib/mol-gl/renderable/schema.js.map +1 -1
  1034. package/lib/mol-gl/renderable/spheres.d.ts +8 -0
  1035. package/lib/mol-gl/renderable/text.d.ts +8 -0
  1036. package/lib/mol-gl/renderable/texture-mesh.d.ts +22 -13
  1037. package/lib/mol-gl/renderable/texture-mesh.js +2 -2
  1038. package/lib/mol-gl/renderable/texture-mesh.js.map +1 -1
  1039. package/lib/mol-gl/renderable/util.js +1 -1
  1040. package/lib/mol-gl/renderable/util.js.map +1 -1
  1041. package/lib/mol-gl/renderer.js +3 -0
  1042. package/lib/mol-gl/renderer.js.map +1 -1
  1043. package/lib/mol-gl/scene.js +1 -1
  1044. package/lib/mol-gl/scene.js.map +1 -1
  1045. package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
  1046. package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
  1047. package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.js.map +1 -1
  1048. package/lib/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
  1049. package/lib/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
  1050. package/lib/mol-gl/shader/chunks/assign-material-color.glsl.js.map +1 -1
  1051. package/lib/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
  1052. package/lib/mol-gl/shader/chunks/color-vert-params.glsl.js +1 -1
  1053. package/lib/mol-gl/shader/chunks/color-vert-params.glsl.js.map +1 -1
  1054. package/lib/mol-gl/shader/compute/color-smoothing/accumulate.frag.d.ts +1 -1
  1055. package/lib/mol-gl/shader/compute/color-smoothing/accumulate.frag.js +1 -1
  1056. package/lib/mol-gl/shader/compute/color-smoothing/accumulate.frag.js.map +1 -1
  1057. package/lib/mol-gl/shader/compute/color-smoothing/accumulate.vert.d.ts +1 -1
  1058. package/lib/mol-gl/shader/compute/color-smoothing/accumulate.vert.js +1 -1
  1059. package/lib/mol-gl/shader/compute/color-smoothing/accumulate.vert.js.map +1 -1
  1060. package/lib/mol-gl/shader/compute/color-smoothing/normalize.frag.d.ts +1 -1
  1061. package/lib/mol-gl/shader/compute/color-smoothing/normalize.frag.js +1 -1
  1062. package/lib/mol-gl/shader/compute/color-smoothing/normalize.frag.js.map +1 -1
  1063. package/lib/mol-gl/shader/direct-volume.frag.d.ts +1 -1
  1064. package/lib/mol-gl/shader/direct-volume.frag.js +1 -1
  1065. package/lib/mol-gl/shader/direct-volume.frag.js.map +1 -1
  1066. package/lib/mol-gl/shader/mesh.vert.d.ts +1 -1
  1067. package/lib/mol-gl/shader/mesh.vert.js +1 -1
  1068. package/lib/mol-gl/shader/mesh.vert.js.map +1 -1
  1069. package/lib/mol-gl/shader-code.js +8 -8
  1070. package/lib/mol-gl/shader-code.js.map +1 -1
  1071. package/lib/mol-gl/webgl/buffer.d.ts +3 -2
  1072. package/lib/mol-gl/webgl/buffer.js +5 -5
  1073. package/lib/mol-gl/webgl/buffer.js.map +1 -1
  1074. package/lib/mol-gl/webgl/compat.js +3 -3
  1075. package/lib/mol-gl/webgl/compat.js.map +1 -1
  1076. package/lib/mol-gl/webgl/context.d.ts +1 -1
  1077. package/lib/mol-gl/webgl/context.js +2 -2
  1078. package/lib/mol-gl/webgl/context.js.map +1 -1
  1079. package/lib/mol-gl/webgl/extensions.js +1 -1
  1080. package/lib/mol-gl/webgl/extensions.js.map +1 -1
  1081. package/lib/mol-gl/webgl/framebuffer.js +1 -1
  1082. package/lib/mol-gl/webgl/framebuffer.js.map +1 -1
  1083. package/lib/mol-gl/webgl/program.d.ts +1 -1
  1084. package/lib/mol-gl/webgl/program.js +14 -12
  1085. package/lib/mol-gl/webgl/program.js.map +1 -1
  1086. package/lib/mol-gl/webgl/render-item.d.ts +3 -2
  1087. package/lib/mol-gl/webgl/render-item.js +2 -2
  1088. package/lib/mol-gl/webgl/render-item.js.map +1 -1
  1089. package/lib/mol-gl/webgl/resources.js +2 -2
  1090. package/lib/mol-gl/webgl/resources.js.map +1 -1
  1091. package/lib/mol-gl/webgl/shader.js +3 -3
  1092. package/lib/mol-gl/webgl/shader.js.map +1 -1
  1093. package/lib/mol-gl/webgl/state.d.ts +4 -1
  1094. package/lib/mol-gl/webgl/state.js +25 -1
  1095. package/lib/mol-gl/webgl/state.js.map +1 -1
  1096. package/lib/mol-gl/webgl/texture.js +2 -2
  1097. package/lib/mol-gl/webgl/texture.js.map +1 -1
  1098. package/lib/mol-gl/webgl/uniform.js +2 -2
  1099. package/lib/mol-gl/webgl/uniform.js.map +1 -1
  1100. package/lib/mol-gl/webgl/vertex-array.d.ts +3 -2
  1101. package/lib/mol-gl/webgl/vertex-array.js +9 -2
  1102. package/lib/mol-gl/webgl/vertex-array.js.map +1 -1
  1103. package/lib/mol-io/common/file-handle.js +1 -1
  1104. package/lib/mol-io/common/file-handle.js.map +1 -1
  1105. package/lib/mol-io/common/typed-array.js +1 -1
  1106. package/lib/mol-io/common/typed-array.js.map +1 -1
  1107. package/lib/mol-io/reader/_spec/sdf.spec.js +51 -0
  1108. package/lib/mol-io/reader/_spec/sdf.spec.js.map +1 -1
  1109. package/lib/mol-io/reader/ccp4/parser.js +1 -1
  1110. package/lib/mol-io/reader/ccp4/parser.js.map +1 -1
  1111. package/lib/mol-io/reader/cif/binary/parser.js +1 -1
  1112. package/lib/mol-io/reader/cif/binary/parser.js.map +1 -1
  1113. package/lib/mol-io/reader/cif/data-model.js +7 -7
  1114. package/lib/mol-io/reader/cif/data-model.js.map +1 -1
  1115. package/lib/mol-io/reader/cif/schema/bird.d.ts +2 -2
  1116. package/lib/mol-io/reader/cif/schema/bird.js +1 -1
  1117. package/lib/mol-io/reader/cif/schema/ccd.d.ts +3 -3
  1118. package/lib/mol-io/reader/cif/schema/ccd.js +1 -1
  1119. package/lib/mol-io/reader/cif/schema/cif-core.d.ts +8 -5
  1120. package/lib/mol-io/reader/cif/schema/cif-core.js +15 -5
  1121. package/lib/mol-io/reader/cif/schema/cif-core.js.map +1 -1
  1122. package/lib/mol-io/reader/cif/schema/density-server.d.ts +3 -3
  1123. package/lib/mol-io/reader/cif/schema/mmcif-extras.d.ts +3 -3
  1124. package/lib/mol-io/reader/cif/schema/mmcif.d.ts +15 -15
  1125. package/lib/mol-io/reader/cif/schema/mmcif.js +1 -1
  1126. package/lib/mol-io/reader/cif/schema.js +7 -7
  1127. package/lib/mol-io/reader/cif/schema.js.map +1 -1
  1128. package/lib/mol-io/reader/cif/text/parser.js +2 -2
  1129. package/lib/mol-io/reader/cif/text/parser.js.map +1 -1
  1130. package/lib/mol-io/reader/dcd/parser.js +2 -2
  1131. package/lib/mol-io/reader/dcd/parser.js.map +1 -1
  1132. package/lib/mol-io/reader/ply/schema.d.ts +1 -1
  1133. package/lib/mol-io/reader/ply/schema.js +1 -1
  1134. package/lib/mol-io/reader/ply/schema.js.map +1 -1
  1135. package/lib/mol-io/reader/result.js +1 -1
  1136. package/lib/mol-io/reader/result.js.map +1 -1
  1137. package/lib/mol-io/reader/sdf/parser-v3-util.d.ts +9 -0
  1138. package/lib/mol-io/reader/sdf/parser-v3-util.js +84 -0
  1139. package/lib/mol-io/reader/sdf/parser-v3-util.js.map +1 -0
  1140. package/lib/mol-io/reader/sdf/parser.d.ts +1 -1
  1141. package/lib/mol-io/reader/sdf/parser.js +12 -4
  1142. package/lib/mol-io/reader/sdf/parser.js.map +1 -1
  1143. package/lib/mol-io/writer/cif/encoder/text.js +3 -3
  1144. package/lib/mol-io/writer/cif/encoder/text.js.map +1 -1
  1145. package/lib/mol-io/writer/cif/encoder.js +5 -5
  1146. package/lib/mol-io/writer/cif/encoder.js.map +1 -1
  1147. package/lib/mol-io/writer/mol/encoder.js +4 -4
  1148. package/lib/mol-io/writer/mol/encoder.js.map +1 -1
  1149. package/lib/mol-io/writer/mol2/encoder.js +6 -6
  1150. package/lib/mol-io/writer/mol2/encoder.js.map +1 -1
  1151. package/lib/mol-math/geometry/gaussian-density/gpu.js +1 -1
  1152. package/lib/mol-math/geometry/gaussian-density/gpu.js.map +1 -1
  1153. package/lib/mol-math/geometry/spacegroup/construction.js +8 -8
  1154. package/lib/mol-math/geometry/spacegroup/construction.js.map +1 -1
  1155. package/lib/mol-math/geometry/spacegroup/tables.js +1 -1
  1156. package/lib/mol-math/geometry/spacegroup/tables.js.map +1 -1
  1157. package/lib/mol-math/geometry/symmetry-operator.js +4 -4
  1158. package/lib/mol-math/geometry/symmetry-operator.js.map +1 -1
  1159. package/lib/mol-math/graph/inter-unit-graph.js +2 -2
  1160. package/lib/mol-math/graph/inter-unit-graph.js.map +1 -1
  1161. package/lib/mol-math/linear-algebra/3d/quat.js +1 -1
  1162. package/lib/mol-math/linear-algebra/3d/quat.js.map +1 -1
  1163. package/lib/mol-math/linear-algebra/3d/vec2.js +1 -1
  1164. package/lib/mol-math/linear-algebra/3d/vec2.js.map +1 -1
  1165. package/lib/mol-math/linear-algebra/3d/vec3.js +1 -1
  1166. package/lib/mol-math/linear-algebra/3d/vec3.js.map +1 -1
  1167. package/lib/mol-math/linear-algebra/3d/vec4.js +1 -1
  1168. package/lib/mol-math/linear-algebra/3d/vec4.js.map +1 -1
  1169. package/lib/mol-model/loci.d.ts +20 -20
  1170. package/lib/mol-model/sequence/sequence.js +2 -2
  1171. package/lib/mol-model/sequence/sequence.js.map +1 -1
  1172. package/lib/mol-model/shape/shape.d.ts +1 -1
  1173. package/lib/mol-model/structure/export/categories/atom_site.js +2 -2
  1174. package/lib/mol-model/structure/export/categories/atom_site.js.map +1 -1
  1175. package/lib/mol-model/structure/export/categories/atom_site_operator_mapping.js +1 -1
  1176. package/lib/mol-model/structure/export/categories/atom_site_operator_mapping.js.map +1 -1
  1177. package/lib/mol-model/structure/export/categories/secondary-structure.js +1 -1
  1178. package/lib/mol-model/structure/export/categories/secondary-structure.js.map +1 -1
  1179. package/lib/mol-model/structure/export/mmcif.js +1 -1
  1180. package/lib/mol-model/structure/export/mmcif.js.map +1 -1
  1181. package/lib/mol-model/structure/model/properties/atomic/bonds.js +2 -2
  1182. package/lib/mol-model/structure/model/properties/atomic/bonds.js.map +1 -1
  1183. package/lib/mol-model/structure/model/properties/symmetry.js +3 -3
  1184. package/lib/mol-model/structure/model/properties/symmetry.js.map +1 -1
  1185. package/lib/mol-model/structure/model/properties/utils/atomic-index.js +2 -2
  1186. package/lib/mol-model/structure/model/properties/utils/atomic-index.js.map +1 -1
  1187. package/lib/mol-model/structure/model/properties/utils/coarse-keys.js +1 -1
  1188. package/lib/mol-model/structure/model/properties/utils/coarse-keys.js.map +1 -1
  1189. package/lib/mol-model/structure/model/properties/utils/residue-set.js +1 -1
  1190. package/lib/mol-model/structure/model/properties/utils/residue-set.js.map +1 -1
  1191. package/lib/mol-model/structure/query/context.js +1 -1
  1192. package/lib/mol-model/structure/query/context.js.map +1 -1
  1193. package/lib/mol-model/structure/query/utils/structure-distance.d.ts +54 -5
  1194. package/lib/mol-model/structure/structure/carbohydrates/compute.js +1 -1
  1195. package/lib/mol-model/structure/structure/carbohydrates/compute.js.map +1 -1
  1196. package/lib/mol-model/structure/structure/element/loci.js +2 -2
  1197. package/lib/mol-model/structure/structure/element/loci.js.map +1 -1
  1198. package/lib/mol-model/structure/structure/element/util.js +1 -1
  1199. package/lib/mol-model/structure/structure/element/util.js.map +1 -1
  1200. package/lib/mol-model/structure/structure/properties.d.ts +3 -3
  1201. package/lib/mol-model/structure/structure/properties.js +6 -6
  1202. package/lib/mol-model/structure/structure/properties.js.map +1 -1
  1203. package/lib/mol-model/structure/structure/structure.js +1 -1
  1204. package/lib/mol-model/structure/structure/structure.js.map +1 -1
  1205. package/lib/mol-model/structure/structure/symmetry.js +3 -3
  1206. package/lib/mol-model/structure/structure/symmetry.js.map +1 -1
  1207. package/lib/mol-model/structure/structure/unit.d.ts +2 -2
  1208. package/lib/mol-model/structure/structure/util/superposition-db-mapping.js +1 -1
  1209. package/lib/mol-model/structure/structure/util/superposition-db-mapping.js.map +1 -1
  1210. package/lib/mol-model/volume/volume.js +2 -2
  1211. package/lib/mol-model/volume/volume.js.map +1 -1
  1212. package/lib/mol-model-formats/shape/ply.d.ts +6 -6
  1213. package/lib/mol-model-formats/shape/ply.js +1 -1
  1214. package/lib/mol-model-formats/shape/ply.js.map +1 -1
  1215. package/lib/mol-model-formats/structure/basic/atomic.js +2 -2
  1216. package/lib/mol-model-formats/structure/basic/atomic.js.map +1 -1
  1217. package/lib/mol-model-formats/structure/basic/properties.js +2 -2
  1218. package/lib/mol-model-formats/structure/basic/properties.js.map +1 -1
  1219. package/lib/mol-model-formats/structure/basic/schema.d.ts +6 -6
  1220. package/lib/mol-model-formats/structure/common/component.d.ts +8 -8
  1221. package/lib/mol-model-formats/structure/common/entity.js +6 -6
  1222. package/lib/mol-model-formats/structure/common/entity.js.map +1 -1
  1223. package/lib/mol-model-formats/structure/pdb/assembly.js +10 -10
  1224. package/lib/mol-model-formats/structure/pdb/assembly.js.map +1 -1
  1225. package/lib/mol-model-formats/structure/pdb/conect.js +1 -1
  1226. package/lib/mol-model-formats/structure/pdb/conect.js.map +1 -1
  1227. package/lib/mol-model-formats/structure/pdb/entity.js +1 -1
  1228. package/lib/mol-model-formats/structure/pdb/entity.js.map +1 -1
  1229. package/lib/mol-model-formats/structure/property/assembly.js +1 -1
  1230. package/lib/mol-model-formats/structure/property/assembly.js.map +1 -1
  1231. package/lib/mol-model-formats/structure/property/symmetry.js +1 -1
  1232. package/lib/mol-model-formats/structure/property/symmetry.js.map +1 -1
  1233. package/lib/mol-model-formats/volume/ccp4.js +1 -1
  1234. package/lib/mol-model-formats/volume/ccp4.js.map +1 -1
  1235. package/lib/mol-model-props/common/custom-element-property.js +1 -1
  1236. package/lib/mol-model-props/common/custom-element-property.js.map +1 -1
  1237. package/lib/mol-model-props/common/custom-property.js +1 -1
  1238. package/lib/mol-model-props/common/custom-property.js.map +1 -1
  1239. package/lib/mol-model-props/computed/interactions/common.js +1 -1
  1240. package/lib/mol-model-props/computed/interactions/common.js.map +1 -1
  1241. package/lib/mol-model-props/computed/interactions/hydrogen-bonds.d.ts +1 -1
  1242. package/lib/mol-model-props/computed/interactions/hydrogen-bonds.js +1 -7
  1243. package/lib/mol-model-props/computed/interactions/hydrogen-bonds.js.map +1 -1
  1244. package/lib/mol-model-props/computed/interactions/refine.js +2 -2
  1245. package/lib/mol-model-props/computed/interactions/refine.js.map +1 -1
  1246. package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +2 -2
  1247. package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +2 -2
  1248. package/lib/mol-model-props/computed/representations/interactions.d.ts +6 -6
  1249. package/lib/mol-model-props/integrative/cross-link-restraint/property.js +1 -1
  1250. package/lib/mol-model-props/integrative/cross-link-restraint/property.js.map +1 -1
  1251. package/lib/mol-model-props/integrative/cross-link-restraint/representation.d.ts +8 -8
  1252. package/lib/mol-model-props/integrative/pair-restraints.js +1 -1
  1253. package/lib/mol-model-props/integrative/pair-restraints.js.map +1 -1
  1254. package/lib/mol-model-props/sequence/best-database-mapping.js +1 -1
  1255. package/lib/mol-model-props/sequence/best-database-mapping.js.map +1 -1
  1256. package/lib/mol-model-props/sequence/themes/best-database-mapping.js +1 -1
  1257. package/lib/mol-model-props/sequence/themes/best-database-mapping.js.map +1 -1
  1258. package/lib/mol-plugin/behavior/behavior.d.ts +1 -1
  1259. package/lib/mol-plugin/behavior/dynamic/custom-props/computed/accessible-surface-area.js +3 -3
  1260. package/lib/mol-plugin/behavior/dynamic/custom-props/computed/accessible-surface-area.js.map +1 -1
  1261. package/lib/mol-plugin/behavior/dynamic/custom-props/computed/interactions.js +3 -3
  1262. package/lib/mol-plugin/behavior/dynamic/custom-props/computed/interactions.js.map +1 -1
  1263. package/lib/mol-plugin/behavior/dynamic/custom-props/computed/valence-model.js +1 -1
  1264. package/lib/mol-plugin/behavior/dynamic/custom-props/computed/valence-model.js.map +1 -1
  1265. package/lib/mol-plugin/behavior/dynamic/representation.d.ts +2 -2
  1266. package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +1 -1
  1267. package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js +1 -1
  1268. package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js.map +1 -1
  1269. package/lib/mol-plugin/behavior/dynamic/volume-streaming/behavior.d.ts +4 -4
  1270. package/lib/mol-plugin/behavior/dynamic/volume-streaming/behavior.js +6 -6
  1271. package/lib/mol-plugin/behavior/dynamic/volume-streaming/behavior.js.map +1 -1
  1272. package/lib/mol-plugin/behavior/dynamic/volume-streaming/transformers.d.ts +2 -2
  1273. package/lib/mol-plugin/behavior/dynamic/volume-streaming/transformers.js +5 -5
  1274. package/lib/mol-plugin/behavior/dynamic/volume-streaming/transformers.js.map +1 -1
  1275. package/lib/mol-plugin/behavior/dynamic/volume-streaming/util.js +6 -6
  1276. package/lib/mol-plugin/behavior/dynamic/volume-streaming/util.js.map +1 -1
  1277. package/lib/mol-plugin/behavior/static/state.js +4 -4
  1278. package/lib/mol-plugin/behavior/static/state.js.map +1 -1
  1279. package/lib/mol-plugin/context.js +2 -3
  1280. package/lib/mol-plugin/context.js.map +1 -1
  1281. package/lib/mol-plugin/layout.d.ts +4 -4
  1282. package/lib/mol-plugin/util/viewport-screenshot.d.ts +3 -3
  1283. package/lib/mol-plugin/util/viewport-screenshot.js +1 -1
  1284. package/lib/mol-plugin/util/viewport-screenshot.js.map +1 -1
  1285. package/lib/mol-plugin/version.js +2 -2
  1286. package/lib/mol-plugin-state/actions/file.js +7 -5
  1287. package/lib/mol-plugin-state/actions/file.js.map +1 -1
  1288. package/lib/mol-plugin-state/actions/structure.d.ts +1 -1
  1289. package/lib/mol-plugin-state/actions/structure.js +12 -12
  1290. package/lib/mol-plugin-state/actions/structure.js.map +1 -1
  1291. package/lib/mol-plugin-state/actions/volume.js +16 -16
  1292. package/lib/mol-plugin-state/actions/volume.js.map +1 -1
  1293. package/lib/mol-plugin-state/animation/built-in/model-index.d.ts +4 -4
  1294. package/lib/mol-plugin-state/animation/helpers.d.ts +5 -5
  1295. package/lib/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +4 -4
  1296. package/lib/mol-plugin-state/builder/structure/hierarchy.d.ts +4 -4
  1297. package/lib/mol-plugin-state/builder/structure/hierarchy.js +2 -2
  1298. package/lib/mol-plugin-state/builder/structure/hierarchy.js.map +1 -1
  1299. package/lib/mol-plugin-state/builder/structure/representation-preset.d.ts +15 -15
  1300. package/lib/mol-plugin-state/builder/structure/representation-preset.js +1 -1
  1301. package/lib/mol-plugin-state/builder/structure/representation-preset.js.map +1 -1
  1302. package/lib/mol-plugin-state/builder/structure/representation.d.ts +1 -1
  1303. package/lib/mol-plugin-state/builder/structure/representation.js +2 -2
  1304. package/lib/mol-plugin-state/builder/structure/representation.js.map +1 -1
  1305. package/lib/mol-plugin-state/builder/structure.js +3 -3
  1306. package/lib/mol-plugin-state/builder/structure.js.map +1 -1
  1307. package/lib/mol-plugin-state/formats/registry.js +1 -1
  1308. package/lib/mol-plugin-state/formats/registry.js.map +1 -1
  1309. package/lib/mol-plugin-state/formats/volume.d.ts +8 -8
  1310. package/lib/mol-plugin-state/formats/volume.js +1 -0
  1311. package/lib/mol-plugin-state/formats/volume.js.map +1 -1
  1312. package/lib/mol-plugin-state/helpers/root-structure.d.ts +4 -4
  1313. package/lib/mol-plugin-state/helpers/root-structure.js +10 -10
  1314. package/lib/mol-plugin-state/helpers/root-structure.js.map +1 -1
  1315. package/lib/mol-plugin-state/helpers/structure-component.d.ts +2 -2
  1316. package/lib/mol-plugin-state/helpers/structure-component.js +3 -3
  1317. package/lib/mol-plugin-state/helpers/structure-component.js.map +1 -1
  1318. package/lib/mol-plugin-state/helpers/structure-query.js +1 -1
  1319. package/lib/mol-plugin-state/helpers/structure-query.js.map +1 -1
  1320. package/lib/mol-plugin-state/helpers/structure-selection-query.d.ts +1 -1
  1321. package/lib/mol-plugin-state/helpers/structure-selection-query.js +19 -8
  1322. package/lib/mol-plugin-state/helpers/structure-selection-query.js.map +1 -1
  1323. package/lib/mol-plugin-state/manager/animation.js +1 -1
  1324. package/lib/mol-plugin-state/manager/animation.js.map +1 -1
  1325. package/lib/mol-plugin-state/manager/interactivity.d.ts +1 -1
  1326. package/lib/mol-plugin-state/manager/loci-label.js +1 -1
  1327. package/lib/mol-plugin-state/manager/loci-label.js.map +1 -1
  1328. package/lib/mol-plugin-state/manager/snapshots.js +3 -2
  1329. package/lib/mol-plugin-state/manager/snapshots.js.map +1 -1
  1330. package/lib/mol-plugin-state/manager/structure/component.d.ts +3 -3
  1331. package/lib/mol-plugin-state/manager/structure/hierarchy.js +2 -2
  1332. package/lib/mol-plugin-state/manager/structure/hierarchy.js.map +1 -1
  1333. package/lib/mol-plugin-state/manager/structure/measurement.js +3 -3
  1334. package/lib/mol-plugin-state/manager/structure/measurement.js.map +1 -1
  1335. package/lib/mol-plugin-state/transforms/data.d.ts +1 -1
  1336. package/lib/mol-plugin-state/transforms/data.js +8 -8
  1337. package/lib/mol-plugin-state/transforms/data.js.map +1 -1
  1338. package/lib/mol-plugin-state/transforms/model.d.ts +6 -6
  1339. package/lib/mol-plugin-state/transforms/model.js +18 -18
  1340. package/lib/mol-plugin-state/transforms/model.js.map +1 -1
  1341. package/lib/mol-plugin-state/transforms/representation.d.ts +15 -15
  1342. package/lib/mol-plugin-state/transforms/representation.js +65 -39
  1343. package/lib/mol-plugin-state/transforms/representation.js.map +1 -1
  1344. package/lib/mol-plugin-state/transforms/volume.js +7 -7
  1345. package/lib/mol-plugin-state/transforms/volume.js.map +1 -1
  1346. package/lib/mol-plugin-ui/base.js +1 -1
  1347. package/lib/mol-plugin-ui/base.js.map +1 -1
  1348. package/lib/mol-plugin-ui/controls/action-menu.js +3 -3
  1349. package/lib/mol-plugin-ui/controls/action-menu.js.map +1 -1
  1350. package/lib/mol-plugin-ui/controls/color.js +2 -2
  1351. package/lib/mol-plugin-ui/controls/color.js.map +1 -1
  1352. package/lib/mol-plugin-ui/controls/common.js +9 -9
  1353. package/lib/mol-plugin-ui/controls/common.js.map +1 -1
  1354. package/lib/mol-plugin-ui/controls/icons.js +1 -1
  1355. package/lib/mol-plugin-ui/controls/icons.js.map +1 -1
  1356. package/lib/mol-plugin-ui/controls/legend.js +3 -3
  1357. package/lib/mol-plugin-ui/controls/legend.js.map +1 -1
  1358. package/lib/mol-plugin-ui/controls/line-graph/line-graph-component.js +6 -6
  1359. package/lib/mol-plugin-ui/controls/line-graph/line-graph-component.js.map +1 -1
  1360. package/lib/mol-plugin-ui/controls/line-graph/point-component.js +1 -1
  1361. package/lib/mol-plugin-ui/controls/line-graph/point-component.js.map +1 -1
  1362. package/lib/mol-plugin-ui/controls/parameters.d.ts +2 -2
  1363. package/lib/mol-plugin-ui/controls/parameters.js +29 -29
  1364. package/lib/mol-plugin-ui/controls/parameters.js.map +1 -1
  1365. package/lib/mol-plugin-ui/controls/screenshot.js +1 -1
  1366. package/lib/mol-plugin-ui/controls/screenshot.js.map +1 -1
  1367. package/lib/mol-plugin-ui/controls/slider.js +9 -9
  1368. package/lib/mol-plugin-ui/controls/slider.js.map +1 -1
  1369. package/lib/mol-plugin-ui/controls.js +2 -2
  1370. package/lib/mol-plugin-ui/controls.js.map +1 -1
  1371. package/lib/mol-plugin-ui/plugin.js +3 -3
  1372. package/lib/mol-plugin-ui/plugin.js.map +1 -1
  1373. package/lib/mol-plugin-ui/sequence/chain.js +3 -3
  1374. package/lib/mol-plugin-ui/sequence/chain.js.map +1 -1
  1375. package/lib/mol-plugin-ui/sequence/polymer.d.ts +1 -1
  1376. package/lib/mol-plugin-ui/sequence/sequence.js +4 -4
  1377. package/lib/mol-plugin-ui/sequence/sequence.js.map +1 -1
  1378. package/lib/mol-plugin-ui/sequence.js +8 -8
  1379. package/lib/mol-plugin-ui/sequence.js.map +1 -1
  1380. package/lib/mol-plugin-ui/skin/base/components/controls.scss +16 -18
  1381. package/lib/mol-plugin-ui/skin/base/components/toast.scss +3 -1
  1382. package/lib/mol-plugin-ui/state/actions.js +1 -1
  1383. package/lib/mol-plugin-ui/state/actions.js.map +1 -1
  1384. package/lib/mol-plugin-ui/state/common.js +12 -11
  1385. package/lib/mol-plugin-ui/state/common.js.map +1 -1
  1386. package/lib/mol-plugin-ui/state/snapshots.js +14 -12
  1387. package/lib/mol-plugin-ui/state/snapshots.js.map +1 -1
  1388. package/lib/mol-plugin-ui/state/tree.js +8 -8
  1389. package/lib/mol-plugin-ui/state/tree.js.map +1 -1
  1390. package/lib/mol-plugin-ui/structure/components.js +4 -4
  1391. package/lib/mol-plugin-ui/structure/components.js.map +1 -1
  1392. package/lib/mol-plugin-ui/structure/focus.js +4 -4
  1393. package/lib/mol-plugin-ui/structure/focus.js.map +1 -1
  1394. package/lib/mol-plugin-ui/structure/generic.js +2 -2
  1395. package/lib/mol-plugin-ui/structure/generic.js.map +1 -1
  1396. package/lib/mol-plugin-ui/structure/measurements.d.ts +1 -1
  1397. package/lib/mol-plugin-ui/structure/measurements.js +6 -6
  1398. package/lib/mol-plugin-ui/structure/measurements.js.map +1 -1
  1399. package/lib/mol-plugin-ui/structure/selection.js +5 -4
  1400. package/lib/mol-plugin-ui/structure/selection.js.map +1 -1
  1401. package/lib/mol-plugin-ui/structure/source.js +12 -12
  1402. package/lib/mol-plugin-ui/structure/source.js.map +1 -1
  1403. package/lib/mol-plugin-ui/structure/superposition.js +4 -4
  1404. package/lib/mol-plugin-ui/structure/superposition.js.map +1 -1
  1405. package/lib/mol-plugin-ui/structure/volume.js +2 -2
  1406. package/lib/mol-plugin-ui/structure/volume.js.map +1 -1
  1407. package/lib/mol-repr/representation.d.ts +9 -0
  1408. package/lib/mol-repr/representation.js +47 -8
  1409. package/lib/mol-repr/representation.js.map +1 -1
  1410. package/lib/mol-repr/shape/loci/angle.d.ts +1 -1
  1411. package/lib/mol-repr/shape/loci/angle.js +2 -2
  1412. package/lib/mol-repr/shape/loci/angle.js.map +1 -1
  1413. package/lib/mol-repr/shape/loci/common.d.ts +1 -1
  1414. package/lib/mol-repr/shape/loci/dihedral.d.ts +1 -1
  1415. package/lib/mol-repr/shape/loci/dihedral.js +2 -2
  1416. package/lib/mol-repr/shape/loci/dihedral.js.map +1 -1
  1417. package/lib/mol-repr/shape/loci/distance.d.ts +1 -1
  1418. package/lib/mol-repr/shape/loci/distance.js +2 -2
  1419. package/lib/mol-repr/shape/loci/distance.js.map +1 -1
  1420. package/lib/mol-repr/shape/loci/label.d.ts +1 -1
  1421. package/lib/mol-repr/shape/loci/label.js +1 -1
  1422. package/lib/mol-repr/shape/loci/label.js.map +1 -1
  1423. package/lib/mol-repr/shape/loci/orientation.d.ts +2 -2
  1424. package/lib/mol-repr/shape/loci/orientation.js +3 -3
  1425. package/lib/mol-repr/shape/loci/orientation.js.map +1 -1
  1426. package/lib/mol-repr/shape/loci/plane.d.ts +1 -1
  1427. package/lib/mol-repr/shape/loci/plane.js +1 -1
  1428. package/lib/mol-repr/shape/loci/plane.js.map +1 -1
  1429. package/lib/mol-repr/shape/model/unitcell.d.ts +2 -2
  1430. package/lib/mol-repr/shape/representation.js +5 -0
  1431. package/lib/mol-repr/shape/representation.js.map +1 -1
  1432. package/lib/mol-repr/structure/complex-representation.js +11 -4
  1433. package/lib/mol-repr/structure/complex-representation.js.map +1 -1
  1434. package/lib/mol-repr/structure/complex-visual.d.ts +12 -12
  1435. package/lib/mol-repr/structure/complex-visual.js +11 -5
  1436. package/lib/mol-repr/structure/complex-visual.js.map +1 -1
  1437. package/lib/mol-repr/structure/params.d.ts +11 -11
  1438. package/lib/mol-repr/structure/registry.d.ts +40 -40
  1439. package/lib/mol-repr/structure/registry.js +1 -1
  1440. package/lib/mol-repr/structure/registry.js.map +1 -1
  1441. package/lib/mol-repr/structure/representation/backbone.d.ts +6 -6
  1442. package/lib/mol-repr/structure/representation/ball-and-stick.d.ts +15 -15
  1443. package/lib/mol-repr/structure/representation/carbohydrate.d.ts +6 -6
  1444. package/lib/mol-repr/structure/representation/cartoon.d.ts +6 -6
  1445. package/lib/mol-repr/structure/representation/ellipsoid.d.ts +15 -15
  1446. package/lib/mol-repr/structure/representation/gaussian-surface.d.ts +6 -6
  1447. package/lib/mol-repr/structure/representation/gaussian-volume.d.ts +6 -6
  1448. package/lib/mol-repr/structure/representation/label.d.ts +9 -9
  1449. package/lib/mol-repr/structure/representation/line.d.ts +18 -18
  1450. package/lib/mol-repr/structure/representation/molecular-surface.d.ts +6 -6
  1451. package/lib/mol-repr/structure/representation/orientation.d.ts +6 -6
  1452. package/lib/mol-repr/structure/representation/point.d.ts +9 -9
  1453. package/lib/mol-repr/structure/representation/putty.d.ts +6 -6
  1454. package/lib/mol-repr/structure/representation/spacefill.d.ts +6 -6
  1455. package/lib/mol-repr/structure/units-representation.js +16 -16
  1456. package/lib/mol-repr/structure/units-representation.js.map +1 -1
  1457. package/lib/mol-repr/structure/units-visual.d.ts +17 -17
  1458. package/lib/mol-repr/structure/units-visual.js +11 -5
  1459. package/lib/mol-repr/structure/units-visual.js.map +1 -1
  1460. package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +10 -10
  1461. package/lib/mol-repr/structure/visual/bond-inter-unit-line.d.ts +5 -5
  1462. package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +10 -10
  1463. package/lib/mol-repr/structure/visual/bond-intra-unit-line.d.ts +5 -5
  1464. package/lib/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +2 -2
  1465. package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +2 -2
  1466. package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +2 -2
  1467. package/lib/mol-repr/structure/visual/element-cross.d.ts +2 -2
  1468. package/lib/mol-repr/structure/visual/element-point.d.ts +3 -3
  1469. package/lib/mol-repr/structure/visual/element-sphere.d.ts +4 -4
  1470. package/lib/mol-repr/structure/visual/ellipsoid-mesh.d.ts +2 -2
  1471. package/lib/mol-repr/structure/visual/gaussian-density-volume.d.ts +4 -4
  1472. package/lib/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +8 -8
  1473. package/lib/mol-repr/structure/visual/gaussian-surface-mesh.js +9 -7
  1474. package/lib/mol-repr/structure/visual/gaussian-surface-mesh.js.map +1 -1
  1475. package/lib/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +2 -2
  1476. package/lib/mol-repr/structure/visual/label-text.d.ts +3 -3
  1477. package/lib/mol-repr/structure/visual/label-text.js +3 -3
  1478. package/lib/mol-repr/structure/visual/label-text.js.map +1 -1
  1479. package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +2 -2
  1480. package/lib/mol-repr/structure/visual/molecular-surface-mesh.js +3 -2
  1481. package/lib/mol-repr/structure/visual/molecular-surface-mesh.js.map +1 -1
  1482. package/lib/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +2 -2
  1483. package/lib/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +2 -2
  1484. package/lib/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +2 -2
  1485. package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +2 -2
  1486. package/lib/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +4 -4
  1487. package/lib/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +4 -4
  1488. package/lib/mol-repr/structure/visual/polymer-direction-wedge.d.ts +2 -2
  1489. package/lib/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +2 -2
  1490. package/lib/mol-repr/structure/visual/polymer-trace-mesh.d.ts +2 -2
  1491. package/lib/mol-repr/structure/visual/polymer-tube-mesh.d.ts +2 -2
  1492. package/lib/mol-repr/structure/visual/util/bond.d.ts +18 -18
  1493. package/lib/mol-repr/structure/visual/util/common.d.ts +2 -2
  1494. package/lib/mol-repr/visual.d.ts +21 -13
  1495. package/lib/mol-repr/visual.js +53 -6
  1496. package/lib/mol-repr/visual.js.map +1 -1
  1497. package/lib/mol-repr/volume/direct-volume.d.ts +8 -8
  1498. package/lib/mol-repr/volume/isosurface.d.ts +12 -12
  1499. package/lib/mol-repr/volume/registry.d.ts +8 -8
  1500. package/lib/mol-repr/volume/registry.js +1 -1
  1501. package/lib/mol-repr/volume/registry.js.map +1 -1
  1502. package/lib/mol-repr/volume/representation.d.ts +2 -2
  1503. package/lib/mol-repr/volume/representation.js +12 -3
  1504. package/lib/mol-repr/volume/representation.js.map +1 -1
  1505. package/lib/mol-repr/volume/slice.d.ts +12 -12
  1506. package/lib/mol-script/language/expression-formatter.js +6 -6
  1507. package/lib/mol-script/language/expression-formatter.js.map +1 -1
  1508. package/lib/mol-script/language/helpers.js +4 -4
  1509. package/lib/mol-script/language/helpers.js.map +1 -1
  1510. package/lib/mol-script/language/parser.js +1 -1
  1511. package/lib/mol-script/language/parser.js.map +1 -1
  1512. package/lib/mol-script/language/symbol-table/structure-query.js +3 -3
  1513. package/lib/mol-script/language/symbol-table/structure-query.js.map +1 -1
  1514. package/lib/mol-script/language/symbol.js +1 -1
  1515. package/lib/mol-script/language/symbol.js.map +1 -1
  1516. package/lib/mol-script/runtime/query/base.js +2 -2
  1517. package/lib/mol-script/runtime/query/base.js.map +1 -1
  1518. package/lib/mol-script/script/mol-script/symbols.js +3 -3
  1519. package/lib/mol-script/script/mol-script/symbols.js.map +1 -1
  1520. package/lib/mol-state/state/builder.js +1 -1
  1521. package/lib/mol-state/state/builder.js.map +1 -1
  1522. package/lib/mol-state/state.js +14 -12
  1523. package/lib/mol-state/state.js.map +1 -1
  1524. package/lib/mol-state/transformer.js +3 -3
  1525. package/lib/mol-state/transformer.js.map +1 -1
  1526. package/lib/mol-state/tree/transient.js +3 -3
  1527. package/lib/mol-state/tree/transient.js.map +1 -1
  1528. package/lib/mol-task/execution/observable.js +1 -5
  1529. package/lib/mol-task/execution/observable.js.map +1 -1
  1530. package/lib/mol-task/execution/progress.js +4 -4
  1531. package/lib/mol-task/execution/progress.js.map +1 -1
  1532. package/lib/mol-task/task.js +1 -1
  1533. package/lib/mol-task/task.js.map +1 -1
  1534. package/lib/mol-task/util/multistep.js +1 -1
  1535. package/lib/mol-task/util/multistep.js.map +1 -1
  1536. package/lib/mol-task/util/scheduler.d.ts +1 -0
  1537. package/lib/mol-task/util/user-timing.js +3 -3
  1538. package/lib/mol-task/util/user-timing.js.map +1 -1
  1539. package/lib/mol-theme/color/chain-id.js +1 -1
  1540. package/lib/mol-theme/color/chain-id.js.map +1 -1
  1541. package/lib/mol-theme/color/element-symbol.d.ts +4 -4
  1542. package/lib/mol-theme/color/entity-id.js +1 -1
  1543. package/lib/mol-theme/color/entity-id.js.map +1 -1
  1544. package/lib/mol-theme/color/entity-source.js +4 -4
  1545. package/lib/mol-theme/color/entity-source.js.map +1 -1
  1546. package/lib/mol-theme/color/operator-hkl.js +2 -2
  1547. package/lib/mol-theme/color/operator-hkl.js.map +1 -1
  1548. package/lib/mol-theme/color.d.ts +2 -2
  1549. package/lib/mol-theme/label.js +27 -27
  1550. package/lib/mol-theme/label.js.map +1 -1
  1551. package/lib/mol-theme/theme.js +3 -3
  1552. package/lib/mol-theme/theme.js.map +1 -1
  1553. package/lib/mol-util/assets.js +3 -3
  1554. package/lib/mol-util/assets.js.map +1 -1
  1555. package/lib/mol-util/color/color.js +2 -2
  1556. package/lib/mol-util/color/color.js.map +1 -1
  1557. package/lib/mol-util/color/lists.js +1 -1
  1558. package/lib/mol-util/color/lists.js.map +1 -1
  1559. package/lib/mol-util/color/names.d.ts +1 -1
  1560. package/lib/mol-util/color/palette.js +2 -2
  1561. package/lib/mol-util/color/palette.js.map +1 -1
  1562. package/lib/mol-util/color/scale.d.ts +1 -1
  1563. package/lib/mol-util/console-logger.js +9 -9
  1564. package/lib/mol-util/console-logger.js.map +1 -1
  1565. package/lib/mol-util/data-source.js +5 -5
  1566. package/lib/mol-util/data-source.js.map +1 -1
  1567. package/lib/mol-util/download.js +1 -1
  1568. package/lib/mol-util/download.js.map +1 -1
  1569. package/lib/mol-util/graphql-client.js +2 -2
  1570. package/lib/mol-util/graphql-client.js.map +1 -1
  1571. package/lib/mol-util/index.js +2 -2
  1572. package/lib/mol-util/index.js.map +1 -1
  1573. package/lib/mol-util/monadic-parser.js +4 -4
  1574. package/lib/mol-util/monadic-parser.js.map +1 -1
  1575. package/lib/mol-util/now.js +4 -4
  1576. package/lib/mol-util/now.js.map +1 -1
  1577. package/lib/mol-util/object.js +1 -1
  1578. package/lib/mol-util/object.js.map +1 -1
  1579. package/lib/mol-util/performance-monitor.js +4 -4
  1580. package/lib/mol-util/performance-monitor.js.map +1 -1
  1581. package/lib/mol-util/string.js +3 -3
  1582. package/lib/mol-util/string.js.map +1 -1
  1583. package/lib/mol-util/url.js +2 -2
  1584. package/lib/mol-util/url.js.map +1 -1
  1585. package/lib/mol-util/zip/deflate.js +1 -1
  1586. package/lib/mol-util/zip/deflate.js.map +1 -1
  1587. package/lib/mol-util/zip/inflate.js +1 -1
  1588. package/lib/mol-util/zip/inflate.js.map +1 -1
  1589. package/lib/mol-util/zip/zip.js +1 -1
  1590. package/lib/mol-util/zip/zip.js.map +1 -1
  1591. package/lib/perf-tests/mol-script.js +1 -1
  1592. package/lib/perf-tests/mol-script.js.map +1 -1
  1593. package/lib/perf-tests/sets.js +1 -1
  1594. package/lib/perf-tests/sets.js.map +1 -1
  1595. package/lib/perf-tests/sort.js +1 -1
  1596. package/lib/perf-tests/sort.js.map +1 -1
  1597. package/lib/perf-tests/string-builder.js +2 -2
  1598. package/lib/perf-tests/string-builder.js.map +1 -1
  1599. package/lib/perf-tests/structure.js +7 -7
  1600. package/lib/perf-tests/structure.js.map +1 -1
  1601. package/lib/perf-tests/test-xtc.js +1 -1
  1602. package/lib/perf-tests/test-xtc.js.map +1 -1
  1603. package/lib/servers/common/file-handle.js +1 -1
  1604. package/lib/servers/common/file-handle.js.map +1 -1
  1605. package/lib/servers/common/util.js +1 -1
  1606. package/lib/servers/common/util.js.map +1 -1
  1607. package/lib/servers/model/config.js +4 -4
  1608. package/lib/servers/model/config.js.map +1 -1
  1609. package/lib/servers/model/preprocess/master.js +1 -1
  1610. package/lib/servers/model/preprocess/master.js.map +1 -1
  1611. package/lib/servers/model/preprocess/parallel.js +2 -2
  1612. package/lib/servers/model/preprocess/parallel.js.map +1 -1
  1613. package/lib/servers/model/preprocess/util.js +3 -3
  1614. package/lib/servers/model/preprocess/util.js.map +1 -1
  1615. package/lib/servers/model/properties/providers/pdbe.js +5 -5
  1616. package/lib/servers/model/properties/providers/pdbe.js.map +1 -1
  1617. package/lib/servers/model/property-provider.js +2 -2
  1618. package/lib/servers/model/property-provider.js.map +1 -1
  1619. package/lib/servers/model/query.js +1 -1
  1620. package/lib/servers/model/query.js.map +1 -1
  1621. package/lib/servers/model/server/api-local.js +2 -2
  1622. package/lib/servers/model/server/api-local.js.map +1 -1
  1623. package/lib/servers/model/server/api-schema.js +2 -2
  1624. package/lib/servers/model/server/api-schema.js.map +1 -1
  1625. package/lib/servers/model/server/api-web-multiple.js +1 -1
  1626. package/lib/servers/model/server/api-web-multiple.js.map +1 -1
  1627. package/lib/servers/model/server/api-web.js +4 -4
  1628. package/lib/servers/model/server/api-web.js.map +1 -1
  1629. package/lib/servers/model/server/api.js +1 -1
  1630. package/lib/servers/model/server/api.js.map +1 -1
  1631. package/lib/servers/model/server/cache.js +3 -3
  1632. package/lib/servers/model/server/cache.js.map +1 -1
  1633. package/lib/servers/model/server/jobs.js +3 -3
  1634. package/lib/servers/model/server/jobs.js.map +1 -1
  1635. package/lib/servers/model/server/query.js +10 -10
  1636. package/lib/servers/model/server/query.js.map +1 -1
  1637. package/lib/servers/model/server/structure-wrapper.js +6 -6
  1638. package/lib/servers/model/server/structure-wrapper.js.map +1 -1
  1639. package/lib/servers/model/server.js +3 -3
  1640. package/lib/servers/model/server.js.map +1 -1
  1641. package/lib/servers/model/utils/fetch-props-pdbe.js +4 -4
  1642. package/lib/servers/model/utils/fetch-props-pdbe.js.map +1 -1
  1643. package/lib/servers/model/utils/writer.js +2 -2
  1644. package/lib/servers/model/utils/writer.js.map +1 -1
  1645. package/lib/servers/plugin-state/api-schema.js +2 -2
  1646. package/lib/servers/plugin-state/api-schema.js.map +1 -1
  1647. package/lib/servers/plugin-state/index.js +1 -1
  1648. package/lib/servers/plugin-state/index.js.map +1 -1
  1649. package/lib/servers/volume/pack/format/dsn6.js +1 -1
  1650. package/lib/servers/volume/pack/format/dsn6.js.map +1 -1
  1651. package/lib/servers/volume/pack/main.js +4 -4
  1652. package/lib/servers/volume/pack/main.js.map +1 -1
  1653. package/lib/servers/volume/pack/writer.js +1 -1
  1654. package/lib/servers/volume/pack/writer.js.map +1 -1
  1655. package/lib/servers/volume/pack.js +1 -1
  1656. package/lib/servers/volume/pack.js.map +1 -1
  1657. package/lib/servers/volume/server/api.js +7 -7
  1658. package/lib/servers/volume/server/api.js.map +1 -1
  1659. package/lib/servers/volume/server/local-api.js +1 -1
  1660. package/lib/servers/volume/server/local-api.js.map +1 -1
  1661. package/lib/servers/volume/server/query/encode.js +3 -3
  1662. package/lib/servers/volume/server/query/encode.js.map +1 -1
  1663. package/lib/servers/volume/server/query/execute.js +5 -5
  1664. package/lib/servers/volume/server/query/execute.js.map +1 -1
  1665. package/lib/servers/volume/server/version.js +1 -1
  1666. package/lib/servers/volume/server/version.js.map +1 -1
  1667. package/lib/servers/volume/server/web-api.js +7 -7
  1668. package/lib/servers/volume/server/web-api.js.map +1 -1
  1669. package/lib/servers/volume/server/web-schema.js +6 -6
  1670. package/lib/servers/volume/server/web-schema.js.map +1 -1
  1671. package/lib/servers/volume/server.js +2 -2
  1672. package/lib/servers/volume/server.js.map +1 -1
  1673. package/lib/tests/browser/font-atlas.js +1 -1
  1674. package/lib/tests/browser/font-atlas.js.map +1 -1
  1675. package/lib/tests/browser/render-shape.js +1 -1
  1676. package/lib/tests/browser/render-shape.js.map +1 -1
  1677. package/lib/tests/browser/render-structure.js +1 -1
  1678. package/lib/tests/browser/render-structure.js.map +1 -1
  1679. package/lib/tsconfig.commonjs.tsbuildinfo +1 -1
  1680. package/package.json +29 -30
  1681. package/CHANGELOG.md +0 -191
  1682. package/lib/commonjs/mol-repr/structure/visual/util/color.d.ts +0 -24
  1683. package/lib/commonjs/mol-repr/structure/visual/util/color.js +0 -100
  1684. package/lib/commonjs/mol-repr/structure/visual/util/color.js.map +0 -1
  1685. package/lib/mol-gl/_spec/shader.spec.d.ts +0 -0
  1686. package/lib/mol-gl/_spec/shader.spec.js +0 -2
  1687. package/lib/mol-gl/_spec/shader.spec.js.map +0 -1
  1688. package/lib/mol-repr/structure/visual/orientation-axes-mesh.d.ts +0 -35
  1689. package/lib/mol-repr/structure/visual/orientation-axes-mesh.js +0 -43
  1690. package/lib/mol-repr/structure/visual/orientation-axes-mesh.js.map +0 -1
  1691. package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh copy.d.ts +0 -31
  1692. package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh copy.js +0 -48
  1693. package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh copy.js.map +0 -1
  1694. package/lib/mol-repr/structure/visual/util/color.d.ts +0 -24
  1695. package/lib/mol-repr/structure/visual/util/color.js +0 -94
  1696. package/lib/mol-repr/structure/visual/util/color.js.map +0 -1
  1697. package/lib/mol-repr/structure/visual/util/orientation.d.ts +0 -17
  1698. package/lib/mol-repr/structure/visual/util/orientation.js +0 -71
  1699. package/lib/mol-repr/structure/visual/util/orientation.js.map +0 -1
@@ -1 +1 @@
1
- export declare const color_vert_params = "\n#if defined(dRenderVariant_color)\n #if defined(dColorType_uniform)\n uniform vec3 uColor;\n #elif defined(dColorType_attribute)\n varying vec4 vColor;\n attribute vec3 aColor;\n #elif defined(dColorType_texture)\n varying vec4 vColor;\n uniform vec2 uColorTexDim;\n uniform sampler2D tColor;\n #elif defined(dColorType_grid)\n varying vec4 vColor;\n uniform vec2 uColorTexDim;\n uniform vec3 uColorGridDim;\n uniform vec4 uColorGridTransform;\n uniform sampler2D tColorGrid;\n #endif\n\n #ifdef dOverpaint\n varying vec4 vOverpaint;\n uniform vec2 uOverpaintTexDim;\n uniform sampler2D tOverpaint;\n #endif\n#elif defined(dRenderVariant_pick)\n #if __VERSION__ == 100\n varying vec4 vColor;\n #else\n flat out vec4 vColor;\n #endif\n#endif\n\n#ifdef dTransparency\n varying float vGroup;\n varying float vTransparency;\n uniform vec2 uTransparencyTexDim;\n uniform sampler2D tTransparency;\n#endif\n\n#ifdef dUsePalette\n varying float vPaletteV;\n#endif\n";
1
+ export declare const color_vert_params = "\n#if defined(dRenderVariant_color)\n #if defined(dColorType_uniform)\n uniform vec3 uColor;\n #elif defined(dColorType_attribute)\n varying vec4 vColor;\n attribute vec3 aColor;\n #elif defined(dColorType_texture)\n varying vec4 vColor;\n uniform vec2 uColorTexDim;\n uniform sampler2D tColor;\n #elif defined(dColorType_grid)\n varying vec4 vColor;\n uniform vec2 uColorTexDim;\n uniform vec3 uColorGridDim;\n uniform vec4 uColorGridTransform;\n uniform sampler2D tColorGrid;\n #endif\n\n #ifdef dOverpaint\n #if defined(dOverpaintType_groupInstance) || defined(dOverpaintType_vertexInstance)\n varying vec4 vOverpaint;\n uniform vec2 uOverpaintTexDim;\n uniform sampler2D tOverpaint;\n #elif defined(dOverpaintType_volumeInstance)\n varying vec4 vOverpaint;\n uniform vec2 uOverpaintTexDim;\n uniform vec3 uOverpaintGridDim;\n uniform vec4 uOverpaintGridTransform;\n uniform sampler2D tOverpaintGrid;\n #endif\n #endif\n#elif defined(dRenderVariant_pick)\n #if __VERSION__ == 100\n varying vec4 vColor;\n #else\n flat out vec4 vColor;\n #endif\n#endif\n\n#ifdef dTransparency\n varying float vGroup;\n #if defined(dTransparencyType_groupInstance) || defined(dTransparencyType_vertexInstance)\n varying float vTransparency;\n uniform vec2 uTransparencyTexDim;\n uniform sampler2D tTransparency;\n #elif defined(dTransparencyType_volumeInstance)\n varying float vTransparency;\n uniform vec2 uTransparencyTexDim;\n uniform vec3 uTransparencyGridDim;\n uniform vec4 uTransparencyGridTransform;\n uniform sampler2D tTransparencyGrid;\n #endif\n#endif\n\n#ifdef dUsePalette\n varying float vPaletteV;\n#endif\n";
@@ -1,2 +1,2 @@
1
- export var color_vert_params = "\n#if defined(dRenderVariant_color)\n #if defined(dColorType_uniform)\n uniform vec3 uColor;\n #elif defined(dColorType_attribute)\n varying vec4 vColor;\n attribute vec3 aColor;\n #elif defined(dColorType_texture)\n varying vec4 vColor;\n uniform vec2 uColorTexDim;\n uniform sampler2D tColor;\n #elif defined(dColorType_grid)\n varying vec4 vColor;\n uniform vec2 uColorTexDim;\n uniform vec3 uColorGridDim;\n uniform vec4 uColorGridTransform;\n uniform sampler2D tColorGrid;\n #endif\n\n #ifdef dOverpaint\n varying vec4 vOverpaint;\n uniform vec2 uOverpaintTexDim;\n uniform sampler2D tOverpaint;\n #endif\n#elif defined(dRenderVariant_pick)\n #if __VERSION__ == 100\n varying vec4 vColor;\n #else\n flat out vec4 vColor;\n #endif\n#endif\n\n#ifdef dTransparency\n varying float vGroup;\n varying float vTransparency;\n uniform vec2 uTransparencyTexDim;\n uniform sampler2D tTransparency;\n#endif\n\n#ifdef dUsePalette\n varying float vPaletteV;\n#endif\n";
1
+ export var color_vert_params = "\n#if defined(dRenderVariant_color)\n #if defined(dColorType_uniform)\n uniform vec3 uColor;\n #elif defined(dColorType_attribute)\n varying vec4 vColor;\n attribute vec3 aColor;\n #elif defined(dColorType_texture)\n varying vec4 vColor;\n uniform vec2 uColorTexDim;\n uniform sampler2D tColor;\n #elif defined(dColorType_grid)\n varying vec4 vColor;\n uniform vec2 uColorTexDim;\n uniform vec3 uColorGridDim;\n uniform vec4 uColorGridTransform;\n uniform sampler2D tColorGrid;\n #endif\n\n #ifdef dOverpaint\n #if defined(dOverpaintType_groupInstance) || defined(dOverpaintType_vertexInstance)\n varying vec4 vOverpaint;\n uniform vec2 uOverpaintTexDim;\n uniform sampler2D tOverpaint;\n #elif defined(dOverpaintType_volumeInstance)\n varying vec4 vOverpaint;\n uniform vec2 uOverpaintTexDim;\n uniform vec3 uOverpaintGridDim;\n uniform vec4 uOverpaintGridTransform;\n uniform sampler2D tOverpaintGrid;\n #endif\n #endif\n#elif defined(dRenderVariant_pick)\n #if __VERSION__ == 100\n varying vec4 vColor;\n #else\n flat out vec4 vColor;\n #endif\n#endif\n\n#ifdef dTransparency\n varying float vGroup;\n #if defined(dTransparencyType_groupInstance) || defined(dTransparencyType_vertexInstance)\n varying float vTransparency;\n uniform vec2 uTransparencyTexDim;\n uniform sampler2D tTransparency;\n #elif defined(dTransparencyType_volumeInstance)\n varying float vTransparency;\n uniform vec2 uTransparencyTexDim;\n uniform vec3 uTransparencyGridDim;\n uniform vec4 uTransparencyGridTransform;\n uniform sampler2D tTransparencyGrid;\n #endif\n#endif\n\n#ifdef dUsePalette\n varying float vPaletteV;\n#endif\n";
2
2
  //# sourceMappingURL=color-vert-params.glsl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"color-vert-params.glsl.js","sourceRoot":"","sources":["../../../../src/mol-gl/shader/chunks/color-vert-params.glsl.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,iBAAiB,GAAG,8lCA0ChC,CAAC"}
1
+ {"version":3,"file":"color-vert-params.glsl.js","sourceRoot":"","sources":["../../../../src/mol-gl/shader/chunks/color-vert-params.glsl.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,iBAAiB,GAAG,u3DA0DhC,CAAC"}
@@ -3,4 +3,4 @@
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
6
- export declare const accumulate_frag = "\nprecision highp float;\n\nvarying vec3 vPosition;\nvarying vec3 vColor;\n\nuniform float uCurrentSlice;\nuniform float uCurrentX;\nuniform float uCurrentY;\nuniform float uResolution;\n\nconst float p = 2.0;\n\nvoid main() {\n vec2 v = gl_FragCoord.xy - vec2(uCurrentX, uCurrentY) - 0.5;\n vec3 fragPos = vec3(v.x, v.y, uCurrentSlice);\n float dist = distance(fragPos, vPosition);\n if (dist > p) discard;\n\n gl_FragColor = vec4(vColor, 1.0) * (p - dist);\n}\n";
6
+ export declare const accumulate_frag = "\nprecision highp float;\n\nvarying vec3 vPosition;\nvarying vec4 vColor;\n\nuniform float uCurrentSlice;\nuniform float uCurrentX;\nuniform float uCurrentY;\nuniform float uResolution;\n\nconst float p = 2.0;\n\nvoid main() {\n vec2 v = gl_FragCoord.xy - vec2(uCurrentX, uCurrentY) - 0.5;\n vec3 fragPos = vec3(v.x, v.y, uCurrentSlice);\n float dist = distance(fragPos, vPosition);\n if (dist > p) discard;\n\n float f = p - dist;\n gl_FragColor = vColor * f;\n gl_FragData[1] = vec4(f);\n}\n";
@@ -3,5 +3,5 @@
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
6
- export var accumulate_frag = "\nprecision highp float;\n\nvarying vec3 vPosition;\nvarying vec3 vColor;\n\nuniform float uCurrentSlice;\nuniform float uCurrentX;\nuniform float uCurrentY;\nuniform float uResolution;\n\nconst float p = 2.0;\n\nvoid main() {\n vec2 v = gl_FragCoord.xy - vec2(uCurrentX, uCurrentY) - 0.5;\n vec3 fragPos = vec3(v.x, v.y, uCurrentSlice);\n float dist = distance(fragPos, vPosition);\n if (dist > p) discard;\n\n gl_FragColor = vec4(vColor, 1.0) * (p - dist);\n}\n";
6
+ export var accumulate_frag = "\nprecision highp float;\n\nvarying vec3 vPosition;\nvarying vec4 vColor;\n\nuniform float uCurrentSlice;\nuniform float uCurrentX;\nuniform float uCurrentY;\nuniform float uResolution;\n\nconst float p = 2.0;\n\nvoid main() {\n vec2 v = gl_FragCoord.xy - vec2(uCurrentX, uCurrentY) - 0.5;\n vec3 fragPos = vec3(v.x, v.y, uCurrentSlice);\n float dist = distance(fragPos, vPosition);\n if (dist > p) discard;\n\n float f = p - dist;\n gl_FragColor = vColor * f;\n gl_FragData[1] = vec4(f);\n}\n";
7
7
  //# sourceMappingURL=accumulate.frag.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"accumulate.frag.js","sourceRoot":"","sources":["../../../../../src/mol-gl/shader/compute/color-smoothing/accumulate.frag.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,IAAM,eAAe,GAAG,geAqB9B,CAAC"}
1
+ {"version":3,"file":"accumulate.frag.js","sourceRoot":"","sources":["../../../../../src/mol-gl/shader/compute/color-smoothing/accumulate.frag.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,IAAM,eAAe,GAAG,ogBAuB9B,CAAC"}
@@ -3,4 +3,4 @@
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
6
- export declare const accumulate_vert = "\nprecision highp float;\n\n#include common\n#include read_from_texture\n\nuniform int uTotalCount;\nuniform int uGroupCount;\n\nattribute float aSample;\n#define SampleID int(aSample)\n\nattribute mat4 aTransform;\nattribute float aInstance;\n\nuniform vec2 uGeoTexDim;\nuniform sampler2D tPosition;\nuniform sampler2D tGroup;\n\nuniform vec2 uColorTexDim;\nuniform sampler2D tColor;\n\nvarying vec3 vPosition;\nvarying vec3 vColor;\n\nuniform vec3 uBboxSize;\nuniform vec3 uBboxMin;\nuniform float uResolution;\n\nvoid main() {\n vec3 position = readFromTexture(tPosition, SampleID, uGeoTexDim).xyz;\n float group = decodeFloatRGB(readFromTexture(tGroup, SampleID, uGeoTexDim).rgb);\n\n position = (aTransform * vec4(position, 1.0)).xyz;\n gl_PointSize = 7.0;\n vPosition = (position - uBboxMin) / uResolution;\n gl_Position = vec4(((position - uBboxMin) / uBboxSize) * 2.0 - 1.0, 1.0);\n\n #if defined(dColorType_group)\n vColor = readFromTexture(tColor, group, uColorTexDim).rgb;\n #elif defined(dColorType_groupInstance)\n vColor = readFromTexture(tColor, aInstance * float(uGroupCount) + group, uColorTexDim).rgb;\n #endif\n}\n";
6
+ export declare const accumulate_vert = "\nprecision highp float;\n\n#include common\n#include read_from_texture\n\nuniform int uTotalCount;\nuniform int uGroupCount;\n\nattribute float aSample;\n#define SampleID int(aSample)\n\nattribute mat4 aTransform;\nattribute float aInstance;\n\nuniform vec2 uGeoTexDim;\nuniform sampler2D tPosition;\nuniform sampler2D tGroup;\n\nuniform vec2 uColorTexDim;\nuniform sampler2D tColor;\n\nvarying vec3 vPosition;\nvarying vec4 vColor;\n\nuniform vec3 uBboxSize;\nuniform vec3 uBboxMin;\nuniform float uResolution;\n\nvoid main() {\n vec3 position = readFromTexture(tPosition, SampleID, uGeoTexDim).xyz;\n float group = decodeFloatRGB(readFromTexture(tGroup, SampleID, uGeoTexDim).rgb);\n\n position = (aTransform * vec4(position, 1.0)).xyz;\n gl_PointSize = 7.0;\n vPosition = (position - uBboxMin) / uResolution;\n gl_Position = vec4(((position - uBboxMin) / uBboxSize) * 2.0 - 1.0, 1.0);\n\n #if defined(dColorType_group)\n vColor = readFromTexture(tColor, group, uColorTexDim);\n #elif defined(dColorType_groupInstance)\n vColor = readFromTexture(tColor, aInstance * float(uGroupCount) + group, uColorTexDim);\n #endif\n}\n";
@@ -3,5 +3,5 @@
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
6
- export var accumulate_vert = "\nprecision highp float;\n\n#include common\n#include read_from_texture\n\nuniform int uTotalCount;\nuniform int uGroupCount;\n\nattribute float aSample;\n#define SampleID int(aSample)\n\nattribute mat4 aTransform;\nattribute float aInstance;\n\nuniform vec2 uGeoTexDim;\nuniform sampler2D tPosition;\nuniform sampler2D tGroup;\n\nuniform vec2 uColorTexDim;\nuniform sampler2D tColor;\n\nvarying vec3 vPosition;\nvarying vec3 vColor;\n\nuniform vec3 uBboxSize;\nuniform vec3 uBboxMin;\nuniform float uResolution;\n\nvoid main() {\n vec3 position = readFromTexture(tPosition, SampleID, uGeoTexDim).xyz;\n float group = decodeFloatRGB(readFromTexture(tGroup, SampleID, uGeoTexDim).rgb);\n\n position = (aTransform * vec4(position, 1.0)).xyz;\n gl_PointSize = 7.0;\n vPosition = (position - uBboxMin) / uResolution;\n gl_Position = vec4(((position - uBboxMin) / uBboxSize) * 2.0 - 1.0, 1.0);\n\n #if defined(dColorType_group)\n vColor = readFromTexture(tColor, group, uColorTexDim).rgb;\n #elif defined(dColorType_groupInstance)\n vColor = readFromTexture(tColor, aInstance * float(uGroupCount) + group, uColorTexDim).rgb;\n #endif\n}\n";
6
+ export var accumulate_vert = "\nprecision highp float;\n\n#include common\n#include read_from_texture\n\nuniform int uTotalCount;\nuniform int uGroupCount;\n\nattribute float aSample;\n#define SampleID int(aSample)\n\nattribute mat4 aTransform;\nattribute float aInstance;\n\nuniform vec2 uGeoTexDim;\nuniform sampler2D tPosition;\nuniform sampler2D tGroup;\n\nuniform vec2 uColorTexDim;\nuniform sampler2D tColor;\n\nvarying vec3 vPosition;\nvarying vec4 vColor;\n\nuniform vec3 uBboxSize;\nuniform vec3 uBboxMin;\nuniform float uResolution;\n\nvoid main() {\n vec3 position = readFromTexture(tPosition, SampleID, uGeoTexDim).xyz;\n float group = decodeFloatRGB(readFromTexture(tGroup, SampleID, uGeoTexDim).rgb);\n\n position = (aTransform * vec4(position, 1.0)).xyz;\n gl_PointSize = 7.0;\n vPosition = (position - uBboxMin) / uResolution;\n gl_Position = vec4(((position - uBboxMin) / uBboxSize) * 2.0 - 1.0, 1.0);\n\n #if defined(dColorType_group)\n vColor = readFromTexture(tColor, group, uColorTexDim);\n #elif defined(dColorType_groupInstance)\n vColor = readFromTexture(tColor, aInstance * float(uGroupCount) + group, uColorTexDim);\n #endif\n}\n";
7
7
  //# sourceMappingURL=accumulate.vert.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"accumulate.vert.js","sourceRoot":"","sources":["../../../../../src/mol-gl/shader/compute/color-smoothing/accumulate.vert.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,IAAM,eAAe,GAAG,wpCA4C9B,CAAC"}
1
+ {"version":3,"file":"accumulate.vert.js","sourceRoot":"","sources":["../../../../../src/mol-gl/shader/compute/color-smoothing/accumulate.vert.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,IAAM,eAAe,GAAG,gpCA4C9B,CAAC"}
@@ -3,4 +3,4 @@
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
6
- export declare const normalize_frag = "\nprecision highp float;\nprecision highp sampler2D;\n\nuniform sampler2D tColor;\nuniform vec2 uTexSize;\n\nvoid main(void) {\n vec2 coords = gl_FragCoord.xy / uTexSize;\n vec4 color = texture2D(tColor, coords);\n\n gl_FragColor.rgb = color.rgb / color.a;\n}\n";
6
+ export declare const normalize_frag = "\nprecision highp float;\nprecision highp sampler2D;\n\nuniform sampler2D tColor;\nuniform sampler2D tCount;\nuniform vec2 uTexSize;\n\nvoid main(void) {\n vec2 coords = gl_FragCoord.xy / uTexSize;\n vec4 color = texture2D(tColor, coords);\n float count = texture2D(tCount, coords).r;\n\n gl_FragColor = color / count;\n}\n";
@@ -3,5 +3,5 @@
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
6
- export var normalize_frag = "\nprecision highp float;\nprecision highp sampler2D;\n\nuniform sampler2D tColor;\nuniform vec2 uTexSize;\n\nvoid main(void) {\n vec2 coords = gl_FragCoord.xy / uTexSize;\n vec4 color = texture2D(tColor, coords);\n\n gl_FragColor.rgb = color.rgb / color.a;\n}\n";
6
+ export var normalize_frag = "\nprecision highp float;\nprecision highp sampler2D;\n\nuniform sampler2D tColor;\nuniform sampler2D tCount;\nuniform vec2 uTexSize;\n\nvoid main(void) {\n vec2 coords = gl_FragCoord.xy / uTexSize;\n vec4 color = texture2D(tColor, coords);\n float count = texture2D(tCount, coords).r;\n\n gl_FragColor = color / count;\n}\n";
7
7
  //# sourceMappingURL=normalize.frag.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"normalize.frag.js","sourceRoot":"","sources":["../../../../../src/mol-gl/shader/compute/color-smoothing/normalize.frag.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,IAAM,cAAc,GAAG,gRAa7B,CAAC"}
1
+ {"version":3,"file":"normalize.frag.js","sourceRoot":"","sources":["../../../../../src/mol-gl/shader/compute/color-smoothing/normalize.frag.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,IAAM,cAAc,GAAG,iVAe7B,CAAC"}
@@ -4,4 +4,4 @@
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  * @author Michael Krone <michael.krone@uni-tuebingen.de>
6
6
  */
7
- export declare const directVolume_frag = "\nprecision highp float;\nprecision highp int;\n\n#include common\n#include light_frag_params\n\n#if dClipObjectCount != 0\n uniform int uClipObjectType[dClipObjectCount];\n uniform bool uClipObjectInvert[dClipObjectCount];\n uniform vec3 uClipObjectPosition[dClipObjectCount];\n uniform vec4 uClipObjectRotation[dClipObjectCount];\n uniform vec3 uClipObjectScale[dClipObjectCount];\n#endif\n#include common_clip\n\n#include read_from_texture\n#include texture3d_from_1d_trilinear\n#include texture3d_from_2d_nearest\n#include texture3d_from_2d_linear\n\nuniform mat4 uProjection, uTransform, uModelView, uModel, uView;\nuniform vec3 uCameraDir;\n\nuniform sampler2D tDepth;\nuniform vec2 uDrawingBufferSize;\n\nvarying vec3 vOrigPos;\nvarying float vInstance;\nvarying vec4 vBoundingSphere;\nvarying mat4 vTransform;\n\nuniform mat4 uInvView;\nuniform vec2 uIsoValue;\nuniform vec3 uGridDim;\nuniform vec3 uBboxSize;\nuniform sampler2D tTransferTex;\nuniform float uTransferScale;\nuniform float uStepScale;\nuniform float uJumpLength;\n\nuniform int uObjectId;\nuniform int uVertexCount;\nuniform int uInstanceCount;\nuniform int uGroupCount;\n\nuniform vec3 uHighlightColor;\nuniform vec3 uSelectColor;\nuniform float uHighlightStrength;\nuniform float uSelectStrength;\nuniform int uMarkerPriority;\n\n#if defined(dMarkerType_uniform)\n uniform float uMarker;\n#elif defined(dMarkerType_groupInstance)\n uniform vec2 uMarkerTexDim;\n uniform sampler2D tMarker;\n#endif\n\nuniform float uFogNear;\nuniform float uFogFar;\nuniform vec3 uFogColor;\n\nuniform float uAlpha;\nuniform float uPickingAlphaThreshold;\nuniform bool uTransparentBackground;\n\nuniform float uInteriorDarkening;\nuniform bool uInteriorColorFlag;\nuniform vec3 uInteriorColor;\nbool interior;\n\nuniform bool uRenderWboit;\n\nuniform float uNear;\nuniform float uFar;\nuniform float uIsOrtho;\n\nuniform vec3 uCellDim;\nuniform vec3 uCameraPosition;\nuniform mat4 uCartnToUnit;\n\n#if __VERSION__ != 100\n // for webgl1 this is given as a 'define'\n uniform int uMaxSteps;\n#endif\n\n#if defined(dGridTexType_2d)\n precision highp sampler2D;\n uniform sampler2D tGridTex;\n uniform vec3 uGridTexDim;\n#elif defined(dGridTexType_3d)\n precision highp sampler3D;\n uniform sampler3D tGridTex;\n#endif\n\n#if defined(dRenderVariant_color)\n #if defined(dColorType_uniform)\n uniform vec3 uColor;\n #elif defined(dColorType_texture)\n uniform vec2 uColorTexDim;\n uniform sampler2D tColor;\n #endif\n\n #ifdef dOverpaint\n varying vec4 vOverpaint;\n uniform vec2 uOverpaintTexDim;\n uniform sampler2D tOverpaint;\n #endif\n#endif\n\n#if defined(dGridTexType_2d)\n vec4 textureVal(vec3 pos) {\n return texture3dFrom2dLinear(tGridTex, pos + (vec3(0.5, 0.5, 0.0) / uGridDim), uGridDim, uGridTexDim.xy);\n }\n vec4 textureGroup(vec3 pos) {\n return texture3dFrom2dNearest(tGridTex, pos + (vec3(0.5, 0.5, 0.0) / uGridDim), uGridDim, uGridTexDim.xy);\n }\n#elif defined(dGridTexType_3d)\n vec4 textureVal(vec3 pos) {\n return texture(tGridTex, pos + (vec3(0.5) / uGridDim));\n }\n vec4 textureGroup(vec3 pos) {\n return texelFetch(tGridTex, ivec3(pos * uGridDim), 0);\n }\n#endif\n\nfloat calcDepth(const in vec3 pos) {\n vec2 clipZW = pos.z * uProjection[2].zw + uProjection[3].zw;\n return 0.5 + 0.5 * clipZW.x / clipZW.y;\n}\n\nvec4 transferFunction(float value) {\n return texture2D(tTransferTex, vec2(value, 0.0));\n}\n\nfloat getDepth(const in vec2 coords) {\n #ifdef depthTextureSupport\n if (!uRenderWboit) {\n // in case of opaque volumes (and depth texture support)\n return texture2D(tDepth, coords).r;\n } else {\n return unpackRGBAToDepth(texture2D(tDepth, coords));\n }\n #else\n return unpackRGBAToDepth(texture2D(tDepth, coords));\n #endif\n}\n\nconst float gradOffset = 0.5;\n\nvec3 v3m4(vec3 p, mat4 m) {\n return (m * vec4(p, 1.0)).xyz;\n}\n\nfloat preFogAlphaBlended = 0.0;\n\nvec4 raymarch(vec3 startLoc, vec3 step, vec3 rayDir) {\n #if defined(dRenderVariant_color) && !defined(dIgnoreLight)\n mat3 normalMatrix = transpose3(inverse3(mat3(uModelView * vTransform)));\n #endif\n mat4 cartnToUnit = uCartnToUnit * inverse4(vTransform);\n #if defined(dClipVariant_pixel) && dClipObjectCount != 0\n mat4 modelTransform = uModel * vTransform * uTransform;\n #endif\n mat4 modelViewTransform = uModelView * vTransform * uTransform;\n\n vec3 scaleVol = vec3(1.0) / uGridDim;\n vec3 pos = startLoc;\n vec4 cell;\n float prevValue = -1.0;\n float value = 0.0;\n vec4 src = vec4(0.0);\n vec4 dst = vec4(0.0);\n bool hit = false;\n float fragmentDepth;\n\n vec3 posMin = vec3(0.0);\n vec3 posMax = vec3(1.0) - vec3(1.0) / uGridDim;\n\n vec3 unitPos;\n vec3 isoPos;\n\n vec3 nextPos;\n float nextValue;\n\n vec3 color = vec3(0.45, 0.55, 0.8);\n vec3 gradient = vec3(1.0);\n vec3 dx = vec3(gradOffset * scaleVol.x, 0.0, 0.0);\n vec3 dy = vec3(0.0, gradOffset * scaleVol.y, 0.0);\n vec3 dz = vec3(0.0, 0.0, gradOffset * scaleVol.z);\n\n float maxDist = min(vBoundingSphere.w * 2.0, uFar - uNear);\n float maxDistSq = maxDist * maxDist;\n\n for (int i = 0; i < uMaxSteps; ++i) {\n // break when beyond bounding-sphere or far-plane\n vec3 distVec = startLoc - pos;\n if (dot(distVec, distVec) > maxDistSq) break;\n\n unitPos = v3m4(pos, cartnToUnit);\n\n // continue when outside of grid\n if (unitPos.x > posMax.x || unitPos.y > posMax.y || unitPos.z > posMax.z ||\n unitPos.x < posMin.x || unitPos.y < posMin.y || unitPos.z < posMin.z\n ) {\n if (hit) break;\n prevValue = value;\n pos += step;\n continue;\n }\n\n cell = textureVal(unitPos);\n value = cell.a; // current voxel value\n\n if (uJumpLength > 0.0 && value < 0.01) {\n nextPos = pos + rayDir * uJumpLength;\n nextValue = textureVal(v3m4(nextPos, cartnToUnit)).a;\n if (nextValue < 0.01) {\n prevValue = nextValue;\n pos = nextPos;\n continue;\n }\n }\n\n #if defined(dRenderMode_isosurface)\n if (prevValue > 0.0 && ( // there was a prev Value\n (prevValue < uIsoValue.x && value > uIsoValue.x) || // entering isosurface\n (prevValue > uIsoValue.x && value < uIsoValue.x) // leaving isosurface\n )) {\n isoPos = v3m4(mix(pos - step, pos, ((prevValue - uIsoValue.x) / ((prevValue - uIsoValue.x) - (value - uIsoValue.x)))), cartnToUnit);\n\n vec4 mvPosition = modelViewTransform * vec4(isoPos * uGridDim, 1.0);\n\n #if defined(dClipVariant_pixel) && dClipObjectCount != 0\n vec3 vModelPosition = v3m4(isoPos * uGridDim, modelTransform);\n if (clipTest(vec4(vModelPosition, 0.0), 0)) {\n prevValue = value;\n pos += step;\n continue;\n }\n #endif\n\n float depth = calcDepth(mvPosition.xyz);\n if (depth > getDepth(gl_FragCoord.xy / uDrawingBufferSize))\n break;\n\n #ifdef enabledFragDepth\n if (!hit) {\n gl_FragDepthEXT = depth;\n }\n #endif\n\n #if defined(dRenderVariant_pickObject)\n return vec4(encodeFloatRGB(float(uObjectId)), 1.0);\n #elif defined(dRenderVariant_pickInstance)\n return vec4(encodeFloatRGB(vInstance), 1.0);\n #elif defined(dRenderVariant_pickGroup)\n #ifdef dPackedGroup\n return vec4(textureGroup(floor(isoPos * uGridDim + 0.5) / uGridDim).rgb, 1.0);\n #else\n vec3 g = floor(isoPos * uGridDim + 0.5);\n return vec4(encodeFloatRGB(g.z + g.y * uGridDim.z + g.x * uGridDim.z * uGridDim.y), 1.0);\n #endif\n #elif defined(dRenderVariant_depth)\n #ifdef enabledFragDepth\n return packDepthToRGBA(gl_FragDepthEXT);\n #else\n return packDepthToRGBA(depth);\n #endif\n #elif defined(dRenderVariant_color)\n #ifdef dPackedGroup\n float group = decodeFloatRGB(textureGroup(floor(isoPos * uGridDim + 0.5) / uGridDim).rgb);\n #else\n vec3 g = floor(isoPos * uGridDim + 0.5);\n float group = g.z + g.y * uGridDim.z + g.x * uGridDim.z * uGridDim.y;\n #endif\n\n #if defined(dColorType_uniform)\n color = uColor;\n #elif defined(dColorType_instance)\n color = readFromTexture(tColor, vInstance, uColorTexDim).rgb;\n #elif defined(dColorType_group)\n color = readFromTexture(tColor, group, uColorTexDim).rgb;\n #elif defined(dColorType_groupInstance)\n color = readFromTexture(tColor, vInstance * float(uGroupCount) + group, uColorTexDim).rgb;\n #elif defined(dColorType_vertex)\n color = texture3dFrom1dTrilinear(tColor, isoPos, uGridDim, uColorTexDim, 0.0).rgb;\n #elif defined(dColorType_vertexInstance)\n color = texture3dFrom1dTrilinear(tColor, isoPos, uGridDim, uColorTexDim, vInstance * float(uVertexCount)).rgb;\n #endif\n\n // handle flipping and negative isosurfaces\n #ifdef dFlipSided\n bool flipped = value < uIsoValue.y; // flipped\n #else\n bool flipped = value > uIsoValue.y;\n #endif\n interior = value < uIsoValue.x && flipped;\n #ifndef dDoubleSided\n if (interior) {\n prevValue = value;\n pos += step;\n continue;\n }\n #endif\n vec3 vViewPosition = mvPosition.xyz;\n vec4 material = vec4(color, uAlpha);\n\n #ifdef dIgnoreLight\n gl_FragColor = material;\n #else\n #if defined(dFlatShaded)\n // nearest grid point\n isoPos = floor(isoPos * uGridDim + 0.5) / uGridDim;\n #endif\n #ifdef dPackedGroup\n // compute gradient by central differences\n gradient.x = textureVal(isoPos - dx).a - textureVal(isoPos + dx).a;\n gradient.y = textureVal(isoPos - dy).a - textureVal(isoPos + dy).a;\n gradient.z = textureVal(isoPos - dz).a - textureVal(isoPos + dz).a;\n #else\n gradient = textureVal(isoPos).xyz * 2.0 - 1.0;\n #endif\n vec3 normal = -normalize(normalMatrix * normalize(gradient));\n normal = normal * (float(flipped) * 2.0 - 1.0);\n normal = normal * -(float(interior) * 2.0 - 1.0);\n #include apply_light_color\n #endif\n\n #if defined(dMarkerType_uniform)\n float marker = uMarker;\n #elif defined(dMarkerType_groupInstance)\n float marker = readFromTexture(tMarker, vInstance * float(uGroupCount) + group, uMarkerTexDim).a;\n marker = floor(marker * 255.0 + 0.5); // rounding required to work on some cards on win\n #endif\n #include apply_interior_color\n #include apply_marker_color\n\n preFogAlphaBlended = (1.0 - preFogAlphaBlended) * gl_FragColor.a + preFogAlphaBlended;\n fragmentDepth = depth;\n #include apply_fog\n\n src = gl_FragColor;\n\n if (!uTransparentBackground) {\n // done in 'apply_fog' otherwise\n src.rgb *= src.a;\n }\n dst = (1.0 - dst.a) * src + dst; // standard blending\n #endif\n\n #ifdef dSingleLayer\n break;\n #endif\n\n hit = true;\n }\n prevValue = value;\n #elif defined(dRenderMode_volume)\n vec4 mvPosition = modelViewTransform * vec4(unitPos * uGridDim, 1.0);\n if (calcDepth(mvPosition.xyz) > getDepth(gl_FragCoord.xy / uDrawingBufferSize))\n break;\n\n #if defined(dClipVariant_pixel) && dClipObjectCount != 0\n vec3 vModelPosition = v3m4(unitPos * uGridDim, modelTransform);\n if (clipTest(vec4(vModelPosition, 0.0), 0)) {\n prevValue = value;\n pos += step;\n continue;\n }\n #endif\n\n #if defined(dRenderVariant_color)\n vec3 vViewPosition = mvPosition.xyz;\n vec4 material = transferFunction(value);\n\n #ifdef dIgnoreLight\n gl_FragColor.rgb = material.rgb;\n #else\n if (material.a >= 0.01) {\n #ifdef dPackedGroup\n // compute gradient by central differences\n gradient.x = textureVal(unitPos - dx).a - textureVal(unitPos + dx).a;\n gradient.y = textureVal(unitPos - dy).a - textureVal(unitPos + dy).a;\n gradient.z = textureVal(unitPos - dz).a - textureVal(unitPos + dz).a;\n #else\n gradient = cell.xyz * 2.0 - 1.0;\n #endif\n vec3 normal = -normalize(normalMatrix * normalize(gradient));\n #include apply_light_color\n } else {\n gl_FragColor.rgb = material.rgb;\n }\n #endif\n\n gl_FragColor.a = material.a * uAlpha * uTransferScale;\n\n #if defined(dMarkerType_uniform)\n float marker = uMarker;\n #elif defined(dMarkerType_groupInstance)\n #ifdef dPackedGroup\n float group = decodeFloatRGB(textureGroup(floor(unitPos * uGridDim + 0.5) / uGridDim).rgb);\n #else\n vec3 g = floor(unitPos * uGridDim + 0.5);\n float group = g.z + g.y * uGridDim.z + g.x * uGridDim.z * uGridDim.y;\n #endif\n float marker = readFromTexture(tMarker, vInstance * float(uGroupCount) + group, uMarkerTexDim).a;\n marker = floor(marker * 255.0 + 0.5); // rounding required to work on some cards on win\n #endif\n #include apply_marker_color\n\n preFogAlphaBlended = (1.0 - preFogAlphaBlended) * gl_FragColor.a + preFogAlphaBlended;\n fragmentDepth = calcDepth(mvPosition.xyz);\n #include apply_fog\n\n src = gl_FragColor;\n\n if (!uTransparentBackground) {\n // done in 'apply_fog' otherwise\n src.rgb *= src.a;\n }\n dst = (1.0 - dst.a) * src + dst; // standard blending\n #endif\n #endif\n\n // break if the color is opaque enough\n if (dst.a > 0.95)\n break;\n\n pos += step;\n }\n\n #if defined(dRenderMode_isosurface) && defined(enabledFragDepth)\n // ensure depth is written everywhere\n if (!hit)\n gl_FragDepthEXT = 1.0;\n #endif\n\n return dst;\n}\n\n// TODO: support float texture for higher precision values???\n// TODO: support clipping exclusion texture support\n\nvoid main() {\n if (gl_FrontFacing)\n discard;\n\n #ifdef dRenderVariant_marking\n // not supported\n discard;\n #endif\n\n #if defined(dRenderVariant_pick) || defined(dRenderVariant_depth)\n #if defined(dRenderMode_volume)\n // always ignore pick & depth for volume\n discard;\n #elif defined(dRenderMode_isosurface)\n if (uAlpha < uPickingAlphaThreshold)\n discard; // ignore so the element below can be picked\n #endif\n #endif\n\n vec3 rayDir = mix(normalize(vOrigPos - uCameraPosition), uCameraDir, uIsOrtho);\n vec3 step = rayDir * uStepScale;\n\n float boundingSphereNear = distance(vBoundingSphere.xyz, uCameraPosition) - vBoundingSphere.w;\n float d = max(uNear, boundingSphereNear) - mix(0.0, distance(vOrigPos, uCameraPosition), uIsOrtho);\n vec3 start = mix(uCameraPosition, vOrigPos, uIsOrtho) + (d * rayDir);\n gl_FragColor = raymarch(start, step, rayDir);\n\n #if defined(dRenderVariant_pick) || defined(dRenderVariant_depth)\n // discard when nothing was hit\n if (gl_FragColor == vec4(0.0))\n discard;\n #endif\n\n #if defined(dRenderVariant_color)\n #if defined(dRenderMode_isosurface) && defined(enabledFragDepth)\n float fragmentDepth = gl_FragDepthEXT;\n #else\n float fragmentDepth = calcDepth((uModelView * vec4(start, 1.0)).xyz);\n #endif\n float preFogAlpha = clamp(preFogAlphaBlended, 0.0, 1.0);\n interior = false;\n #include wboit_write\n #endif\n}\n";
7
+ export declare const directVolume_frag = "\nprecision highp float;\nprecision highp int;\n\n#include common\n#include light_frag_params\n\n#if dClipObjectCount != 0\n uniform int uClipObjectType[dClipObjectCount];\n uniform bool uClipObjectInvert[dClipObjectCount];\n uniform vec3 uClipObjectPosition[dClipObjectCount];\n uniform vec4 uClipObjectRotation[dClipObjectCount];\n uniform vec3 uClipObjectScale[dClipObjectCount];\n#endif\n#include common_clip\n\n#include read_from_texture\n#include texture3d_from_1d_trilinear\n#include texture3d_from_2d_nearest\n#include texture3d_from_2d_linear\n\nuniform mat4 uProjection, uTransform, uModelView, uModel, uView;\nuniform vec3 uCameraDir;\n\nuniform sampler2D tDepth;\nuniform vec2 uDrawingBufferSize;\n\nvarying vec3 vOrigPos;\nvarying float vInstance;\nvarying vec4 vBoundingSphere;\nvarying mat4 vTransform;\n\nuniform mat4 uInvView;\nuniform vec2 uIsoValue;\nuniform vec3 uGridDim;\nuniform vec3 uBboxSize;\nuniform sampler2D tTransferTex;\nuniform float uTransferScale;\nuniform float uStepScale;\nuniform float uJumpLength;\n\nuniform int uObjectId;\nuniform int uVertexCount;\nuniform int uInstanceCount;\nuniform int uGroupCount;\n\nuniform vec3 uHighlightColor;\nuniform vec3 uSelectColor;\nuniform float uHighlightStrength;\nuniform float uSelectStrength;\nuniform int uMarkerPriority;\n\n#if defined(dMarkerType_uniform)\n uniform float uMarker;\n#elif defined(dMarkerType_groupInstance)\n uniform vec2 uMarkerTexDim;\n uniform sampler2D tMarker;\n#endif\n\nuniform float uFogNear;\nuniform float uFogFar;\nuniform vec3 uFogColor;\n\nuniform float uAlpha;\nuniform float uPickingAlphaThreshold;\nuniform bool uTransparentBackground;\n\nuniform float uInteriorDarkening;\nuniform bool uInteriorColorFlag;\nuniform vec3 uInteriorColor;\nbool interior;\n\nuniform bool uRenderWboit;\n\nuniform float uNear;\nuniform float uFar;\nuniform float uIsOrtho;\n\nuniform vec3 uCellDim;\nuniform vec3 uCameraPosition;\nuniform mat4 uCartnToUnit;\n\n#if __VERSION__ != 100\n // for webgl1 this is given as a 'define'\n uniform int uMaxSteps;\n#endif\n\n#if defined(dGridTexType_2d)\n precision highp sampler2D;\n uniform sampler2D tGridTex;\n uniform vec3 uGridTexDim;\n#elif defined(dGridTexType_3d)\n precision highp sampler3D;\n uniform sampler3D tGridTex;\n#endif\n\n#if defined(dRenderVariant_color)\n #if defined(dColorType_uniform)\n uniform vec3 uColor;\n #elif defined(dColorType_texture)\n uniform vec2 uColorTexDim;\n uniform sampler2D tColor;\n #endif\n\n #ifdef dOverpaint\n #if defined(dOverpaintType_groupInstance) || defined(dOverpaintType_vertexInstance)\n uniform vec2 uOverpaintTexDim;\n uniform sampler2D tOverpaint;\n #endif\n #endif\n#endif\n\n#if defined(dGridTexType_2d)\n vec4 textureVal(vec3 pos) {\n return texture3dFrom2dLinear(tGridTex, pos + (vec3(0.5, 0.5, 0.0) / uGridDim), uGridDim, uGridTexDim.xy);\n }\n vec4 textureGroup(vec3 pos) {\n return texture3dFrom2dNearest(tGridTex, pos + (vec3(0.5, 0.5, 0.0) / uGridDim), uGridDim, uGridTexDim.xy);\n }\n#elif defined(dGridTexType_3d)\n vec4 textureVal(vec3 pos) {\n return texture(tGridTex, pos + (vec3(0.5) / uGridDim));\n }\n vec4 textureGroup(vec3 pos) {\n return texelFetch(tGridTex, ivec3(pos * uGridDim), 0);\n }\n#endif\n\nfloat calcDepth(const in vec3 pos) {\n vec2 clipZW = pos.z * uProjection[2].zw + uProjection[3].zw;\n return 0.5 + 0.5 * clipZW.x / clipZW.y;\n}\n\nvec4 transferFunction(float value) {\n return texture2D(tTransferTex, vec2(value, 0.0));\n}\n\nfloat getDepth(const in vec2 coords) {\n #ifdef depthTextureSupport\n if (!uRenderWboit) {\n // in case of opaque volumes (and depth texture support)\n return texture2D(tDepth, coords).r;\n } else {\n return unpackRGBAToDepth(texture2D(tDepth, coords));\n }\n #else\n return unpackRGBAToDepth(texture2D(tDepth, coords));\n #endif\n}\n\nconst float gradOffset = 0.5;\n\nvec3 v3m4(vec3 p, mat4 m) {\n return (m * vec4(p, 1.0)).xyz;\n}\n\nfloat preFogAlphaBlended = 0.0;\n\nvec4 raymarch(vec3 startLoc, vec3 step, vec3 rayDir) {\n #if defined(dRenderVariant_color) && !defined(dIgnoreLight)\n mat3 normalMatrix = transpose3(inverse3(mat3(uModelView * vTransform)));\n #endif\n mat4 cartnToUnit = uCartnToUnit * inverse4(vTransform);\n #if defined(dClipVariant_pixel) && dClipObjectCount != 0\n mat4 modelTransform = uModel * vTransform * uTransform;\n #endif\n mat4 modelViewTransform = uModelView * vTransform * uTransform;\n\n vec3 scaleVol = vec3(1.0) / uGridDim;\n vec3 pos = startLoc;\n vec4 cell;\n float prevValue = -1.0;\n float value = 0.0;\n vec4 src = vec4(0.0);\n vec4 dst = vec4(0.0);\n bool hit = false;\n float fragmentDepth;\n\n vec3 posMin = vec3(0.0);\n vec3 posMax = vec3(1.0) - vec3(1.0) / uGridDim;\n\n vec3 unitPos;\n vec3 isoPos;\n\n vec3 nextPos;\n float nextValue;\n\n vec3 color = vec3(0.45, 0.55, 0.8);\n vec4 overpaint = vec4(0.0);\n\n vec3 gradient = vec3(1.0);\n vec3 dx = vec3(gradOffset * scaleVol.x, 0.0, 0.0);\n vec3 dy = vec3(0.0, gradOffset * scaleVol.y, 0.0);\n vec3 dz = vec3(0.0, 0.0, gradOffset * scaleVol.z);\n\n float maxDist = min(vBoundingSphere.w * 2.0, uFar - uNear);\n float maxDistSq = maxDist * maxDist;\n\n for (int i = 0; i < uMaxSteps; ++i) {\n // break when beyond bounding-sphere or far-plane\n vec3 distVec = startLoc - pos;\n if (dot(distVec, distVec) > maxDistSq) break;\n\n unitPos = v3m4(pos, cartnToUnit);\n\n // continue when outside of grid\n if (unitPos.x > posMax.x || unitPos.y > posMax.y || unitPos.z > posMax.z ||\n unitPos.x < posMin.x || unitPos.y < posMin.y || unitPos.z < posMin.z\n ) {\n if (hit) break;\n prevValue = value;\n pos += step;\n continue;\n }\n\n cell = textureVal(unitPos);\n value = cell.a; // current voxel value\n\n if (uJumpLength > 0.0 && value < 0.01) {\n nextPos = pos + rayDir * uJumpLength;\n nextValue = textureVal(v3m4(nextPos, cartnToUnit)).a;\n if (nextValue < 0.01) {\n prevValue = nextValue;\n pos = nextPos;\n continue;\n }\n }\n\n #if defined(dRenderMode_isosurface)\n if (prevValue > 0.0 && ( // there was a prev Value\n (prevValue < uIsoValue.x && value > uIsoValue.x) || // entering isosurface\n (prevValue > uIsoValue.x && value < uIsoValue.x) // leaving isosurface\n )) {\n isoPos = v3m4(mix(pos - step, pos, ((prevValue - uIsoValue.x) / ((prevValue - uIsoValue.x) - (value - uIsoValue.x)))), cartnToUnit);\n\n vec4 mvPosition = modelViewTransform * vec4(isoPos * uGridDim, 1.0);\n\n #if defined(dClipVariant_pixel) && dClipObjectCount != 0\n vec3 vModelPosition = v3m4(isoPos * uGridDim, modelTransform);\n if (clipTest(vec4(vModelPosition, 0.0), 0)) {\n prevValue = value;\n pos += step;\n continue;\n }\n #endif\n\n float depth = calcDepth(mvPosition.xyz);\n if (depth > getDepth(gl_FragCoord.xy / uDrawingBufferSize))\n break;\n\n #ifdef enabledFragDepth\n if (!hit) {\n gl_FragDepthEXT = depth;\n }\n #endif\n\n #if defined(dRenderVariant_pickObject)\n return vec4(encodeFloatRGB(float(uObjectId)), 1.0);\n #elif defined(dRenderVariant_pickInstance)\n return vec4(encodeFloatRGB(vInstance), 1.0);\n #elif defined(dRenderVariant_pickGroup)\n #ifdef dPackedGroup\n return vec4(textureGroup(floor(isoPos * uGridDim + 0.5) / uGridDim).rgb, 1.0);\n #else\n vec3 g = floor(isoPos * uGridDim + 0.5);\n return vec4(encodeFloatRGB(g.z + g.y * uGridDim.z + g.x * uGridDim.z * uGridDim.y), 1.0);\n #endif\n #elif defined(dRenderVariant_depth)\n #ifdef enabledFragDepth\n return packDepthToRGBA(gl_FragDepthEXT);\n #else\n return packDepthToRGBA(depth);\n #endif\n #elif defined(dRenderVariant_color)\n #ifdef dPackedGroup\n float group = decodeFloatRGB(textureGroup(floor(isoPos * uGridDim + 0.5) / uGridDim).rgb);\n #else\n vec3 g = floor(isoPos * uGridDim + 0.5);\n float group = g.z + g.y * uGridDim.z + g.x * uGridDim.z * uGridDim.y;\n #endif\n\n #if defined(dColorType_uniform)\n color = uColor;\n #elif defined(dColorType_instance)\n color = readFromTexture(tColor, vInstance, uColorTexDim).rgb;\n #elif defined(dColorType_group)\n color = readFromTexture(tColor, group, uColorTexDim).rgb;\n #elif defined(dColorType_groupInstance)\n color = readFromTexture(tColor, vInstance * float(uGroupCount) + group, uColorTexDim).rgb;\n #elif defined(dColorType_vertex)\n color = texture3dFrom1dTrilinear(tColor, isoPos, uGridDim, uColorTexDim, 0.0).rgb;\n #elif defined(dColorType_vertexInstance)\n color = texture3dFrom1dTrilinear(tColor, isoPos, uGridDim, uColorTexDim, vInstance * float(uVertexCount)).rgb;\n #endif\n\n #ifdef dOverpaint\n #if defined(dOverpaintType_groupInstance)\n overpaint = readFromTexture(tOverpaint, vInstance * float(uGroupCount) + group, uOverpaintTexDim);\n #elif defined(dOverpaintType_vertexInstance)\n overpaint = texture3dFrom1dTrilinear(tOverpaint, isoPos, uGridDim, uOverpaintTexDim, vInstance * float(uVertexCount)).rgb;\n #endif\n\n color = mix(color, overpaint.rgb, overpaint.a);\n #endif\n\n // handle flipping and negative isosurfaces\n #ifdef dFlipSided\n bool flipped = value < uIsoValue.y; // flipped\n #else\n bool flipped = value > uIsoValue.y;\n #endif\n interior = value < uIsoValue.x && flipped;\n #ifndef dDoubleSided\n if (interior) {\n prevValue = value;\n pos += step;\n continue;\n }\n #endif\n vec3 vViewPosition = mvPosition.xyz;\n vec4 material = vec4(color, uAlpha);\n\n #ifdef dIgnoreLight\n gl_FragColor = material;\n #else\n #if defined(dFlatShaded)\n // nearest grid point\n isoPos = floor(isoPos * uGridDim + 0.5) / uGridDim;\n #endif\n #ifdef dPackedGroup\n // compute gradient by central differences\n gradient.x = textureVal(isoPos - dx).a - textureVal(isoPos + dx).a;\n gradient.y = textureVal(isoPos - dy).a - textureVal(isoPos + dy).a;\n gradient.z = textureVal(isoPos - dz).a - textureVal(isoPos + dz).a;\n #else\n gradient = textureVal(isoPos).xyz * 2.0 - 1.0;\n #endif\n vec3 normal = -normalize(normalMatrix * normalize(gradient));\n normal = normal * (float(flipped) * 2.0 - 1.0);\n normal = normal * -(float(interior) * 2.0 - 1.0);\n #include apply_light_color\n #endif\n\n #if defined(dMarkerType_uniform)\n float marker = uMarker;\n #elif defined(dMarkerType_groupInstance)\n float marker = readFromTexture(tMarker, vInstance * float(uGroupCount) + group, uMarkerTexDim).a;\n marker = floor(marker * 255.0 + 0.5); // rounding required to work on some cards on win\n #endif\n #include apply_interior_color\n #include apply_marker_color\n\n preFogAlphaBlended = (1.0 - preFogAlphaBlended) * gl_FragColor.a + preFogAlphaBlended;\n fragmentDepth = depth;\n #include apply_fog\n\n src = gl_FragColor;\n\n if (!uTransparentBackground) {\n // done in 'apply_fog' otherwise\n src.rgb *= src.a;\n }\n dst = (1.0 - dst.a) * src + dst; // standard blending\n #endif\n\n #ifdef dSingleLayer\n break;\n #endif\n\n hit = true;\n }\n prevValue = value;\n #elif defined(dRenderMode_volume)\n vec4 mvPosition = modelViewTransform * vec4(unitPos * uGridDim, 1.0);\n if (calcDepth(mvPosition.xyz) > getDepth(gl_FragCoord.xy / uDrawingBufferSize))\n break;\n\n #if defined(dClipVariant_pixel) && dClipObjectCount != 0\n vec3 vModelPosition = v3m4(unitPos * uGridDim, modelTransform);\n if (clipTest(vec4(vModelPosition, 0.0), 0)) {\n prevValue = value;\n pos += step;\n continue;\n }\n #endif\n\n #if defined(dRenderVariant_color)\n vec3 vViewPosition = mvPosition.xyz;\n vec4 material = transferFunction(value);\n\n #ifdef dIgnoreLight\n gl_FragColor.rgb = material.rgb;\n #else\n if (material.a >= 0.01) {\n #ifdef dPackedGroup\n // compute gradient by central differences\n gradient.x = textureVal(unitPos - dx).a - textureVal(unitPos + dx).a;\n gradient.y = textureVal(unitPos - dy).a - textureVal(unitPos + dy).a;\n gradient.z = textureVal(unitPos - dz).a - textureVal(unitPos + dz).a;\n #else\n gradient = cell.xyz * 2.0 - 1.0;\n #endif\n vec3 normal = -normalize(normalMatrix * normalize(gradient));\n #include apply_light_color\n } else {\n gl_FragColor.rgb = material.rgb;\n }\n #endif\n\n gl_FragColor.a = material.a * uAlpha * uTransferScale;\n\n #if defined(dMarkerType_uniform)\n float marker = uMarker;\n #elif defined(dMarkerType_groupInstance)\n #ifdef dPackedGroup\n float group = decodeFloatRGB(textureGroup(floor(unitPos * uGridDim + 0.5) / uGridDim).rgb);\n #else\n vec3 g = floor(unitPos * uGridDim + 0.5);\n float group = g.z + g.y * uGridDim.z + g.x * uGridDim.z * uGridDim.y;\n #endif\n float marker = readFromTexture(tMarker, vInstance * float(uGroupCount) + group, uMarkerTexDim).a;\n marker = floor(marker * 255.0 + 0.5); // rounding required to work on some cards on win\n #endif\n #include apply_marker_color\n\n preFogAlphaBlended = (1.0 - preFogAlphaBlended) * gl_FragColor.a + preFogAlphaBlended;\n fragmentDepth = calcDepth(mvPosition.xyz);\n #include apply_fog\n\n src = gl_FragColor;\n\n if (!uTransparentBackground) {\n // done in 'apply_fog' otherwise\n src.rgb *= src.a;\n }\n dst = (1.0 - dst.a) * src + dst; // standard blending\n #endif\n #endif\n\n // break if the color is opaque enough\n if (dst.a > 0.95)\n break;\n\n pos += step;\n }\n\n #if defined(dRenderMode_isosurface) && defined(enabledFragDepth)\n // ensure depth is written everywhere\n if (!hit)\n gl_FragDepthEXT = 1.0;\n #endif\n\n return dst;\n}\n\n// TODO: support float texture for higher precision values???\n// TODO: support clipping exclusion texture support\n\nvoid main() {\n if (gl_FrontFacing)\n discard;\n\n #ifdef dRenderVariant_marking\n // not supported\n discard;\n #endif\n\n #if defined(dRenderVariant_pick) || defined(dRenderVariant_depth)\n #if defined(dRenderMode_volume)\n // always ignore pick & depth for volume\n discard;\n #elif defined(dRenderMode_isosurface)\n if (uAlpha < uPickingAlphaThreshold)\n discard; // ignore so the element below can be picked\n #endif\n #endif\n\n vec3 rayDir = mix(normalize(vOrigPos - uCameraPosition), uCameraDir, uIsOrtho);\n vec3 step = rayDir * uStepScale;\n\n float boundingSphereNear = distance(vBoundingSphere.xyz, uCameraPosition) - vBoundingSphere.w;\n float d = max(uNear, boundingSphereNear) - mix(0.0, distance(vOrigPos, uCameraPosition), uIsOrtho);\n vec3 start = mix(uCameraPosition, vOrigPos, uIsOrtho) + (d * rayDir);\n gl_FragColor = raymarch(start, step, rayDir);\n\n #if defined(dRenderVariant_pick) || defined(dRenderVariant_depth)\n // discard when nothing was hit\n if (gl_FragColor == vec4(0.0))\n discard;\n #endif\n\n #if defined(dRenderVariant_color)\n #if defined(dRenderMode_isosurface) && defined(enabledFragDepth)\n float fragmentDepth = gl_FragDepthEXT;\n #else\n float fragmentDepth = calcDepth((uModelView * vec4(start, 1.0)).xyz);\n #endif\n float preFogAlpha = clamp(preFogAlphaBlended, 0.0, 1.0);\n interior = false;\n #include wboit_write\n #endif\n}\n";
@@ -4,5 +4,5 @@
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  * @author Michael Krone <michael.krone@uni-tuebingen.de>
6
6
  */
7
- export var directVolume_frag = "\nprecision highp float;\nprecision highp int;\n\n#include common\n#include light_frag_params\n\n#if dClipObjectCount != 0\n uniform int uClipObjectType[dClipObjectCount];\n uniform bool uClipObjectInvert[dClipObjectCount];\n uniform vec3 uClipObjectPosition[dClipObjectCount];\n uniform vec4 uClipObjectRotation[dClipObjectCount];\n uniform vec3 uClipObjectScale[dClipObjectCount];\n#endif\n#include common_clip\n\n#include read_from_texture\n#include texture3d_from_1d_trilinear\n#include texture3d_from_2d_nearest\n#include texture3d_from_2d_linear\n\nuniform mat4 uProjection, uTransform, uModelView, uModel, uView;\nuniform vec3 uCameraDir;\n\nuniform sampler2D tDepth;\nuniform vec2 uDrawingBufferSize;\n\nvarying vec3 vOrigPos;\nvarying float vInstance;\nvarying vec4 vBoundingSphere;\nvarying mat4 vTransform;\n\nuniform mat4 uInvView;\nuniform vec2 uIsoValue;\nuniform vec3 uGridDim;\nuniform vec3 uBboxSize;\nuniform sampler2D tTransferTex;\nuniform float uTransferScale;\nuniform float uStepScale;\nuniform float uJumpLength;\n\nuniform int uObjectId;\nuniform int uVertexCount;\nuniform int uInstanceCount;\nuniform int uGroupCount;\n\nuniform vec3 uHighlightColor;\nuniform vec3 uSelectColor;\nuniform float uHighlightStrength;\nuniform float uSelectStrength;\nuniform int uMarkerPriority;\n\n#if defined(dMarkerType_uniform)\n uniform float uMarker;\n#elif defined(dMarkerType_groupInstance)\n uniform vec2 uMarkerTexDim;\n uniform sampler2D tMarker;\n#endif\n\nuniform float uFogNear;\nuniform float uFogFar;\nuniform vec3 uFogColor;\n\nuniform float uAlpha;\nuniform float uPickingAlphaThreshold;\nuniform bool uTransparentBackground;\n\nuniform float uInteriorDarkening;\nuniform bool uInteriorColorFlag;\nuniform vec3 uInteriorColor;\nbool interior;\n\nuniform bool uRenderWboit;\n\nuniform float uNear;\nuniform float uFar;\nuniform float uIsOrtho;\n\nuniform vec3 uCellDim;\nuniform vec3 uCameraPosition;\nuniform mat4 uCartnToUnit;\n\n#if __VERSION__ != 100\n // for webgl1 this is given as a 'define'\n uniform int uMaxSteps;\n#endif\n\n#if defined(dGridTexType_2d)\n precision highp sampler2D;\n uniform sampler2D tGridTex;\n uniform vec3 uGridTexDim;\n#elif defined(dGridTexType_3d)\n precision highp sampler3D;\n uniform sampler3D tGridTex;\n#endif\n\n#if defined(dRenderVariant_color)\n #if defined(dColorType_uniform)\n uniform vec3 uColor;\n #elif defined(dColorType_texture)\n uniform vec2 uColorTexDim;\n uniform sampler2D tColor;\n #endif\n\n #ifdef dOverpaint\n varying vec4 vOverpaint;\n uniform vec2 uOverpaintTexDim;\n uniform sampler2D tOverpaint;\n #endif\n#endif\n\n#if defined(dGridTexType_2d)\n vec4 textureVal(vec3 pos) {\n return texture3dFrom2dLinear(tGridTex, pos + (vec3(0.5, 0.5, 0.0) / uGridDim), uGridDim, uGridTexDim.xy);\n }\n vec4 textureGroup(vec3 pos) {\n return texture3dFrom2dNearest(tGridTex, pos + (vec3(0.5, 0.5, 0.0) / uGridDim), uGridDim, uGridTexDim.xy);\n }\n#elif defined(dGridTexType_3d)\n vec4 textureVal(vec3 pos) {\n return texture(tGridTex, pos + (vec3(0.5) / uGridDim));\n }\n vec4 textureGroup(vec3 pos) {\n return texelFetch(tGridTex, ivec3(pos * uGridDim), 0);\n }\n#endif\n\nfloat calcDepth(const in vec3 pos) {\n vec2 clipZW = pos.z * uProjection[2].zw + uProjection[3].zw;\n return 0.5 + 0.5 * clipZW.x / clipZW.y;\n}\n\nvec4 transferFunction(float value) {\n return texture2D(tTransferTex, vec2(value, 0.0));\n}\n\nfloat getDepth(const in vec2 coords) {\n #ifdef depthTextureSupport\n if (!uRenderWboit) {\n // in case of opaque volumes (and depth texture support)\n return texture2D(tDepth, coords).r;\n } else {\n return unpackRGBAToDepth(texture2D(tDepth, coords));\n }\n #else\n return unpackRGBAToDepth(texture2D(tDepth, coords));\n #endif\n}\n\nconst float gradOffset = 0.5;\n\nvec3 v3m4(vec3 p, mat4 m) {\n return (m * vec4(p, 1.0)).xyz;\n}\n\nfloat preFogAlphaBlended = 0.0;\n\nvec4 raymarch(vec3 startLoc, vec3 step, vec3 rayDir) {\n #if defined(dRenderVariant_color) && !defined(dIgnoreLight)\n mat3 normalMatrix = transpose3(inverse3(mat3(uModelView * vTransform)));\n #endif\n mat4 cartnToUnit = uCartnToUnit * inverse4(vTransform);\n #if defined(dClipVariant_pixel) && dClipObjectCount != 0\n mat4 modelTransform = uModel * vTransform * uTransform;\n #endif\n mat4 modelViewTransform = uModelView * vTransform * uTransform;\n\n vec3 scaleVol = vec3(1.0) / uGridDim;\n vec3 pos = startLoc;\n vec4 cell;\n float prevValue = -1.0;\n float value = 0.0;\n vec4 src = vec4(0.0);\n vec4 dst = vec4(0.0);\n bool hit = false;\n float fragmentDepth;\n\n vec3 posMin = vec3(0.0);\n vec3 posMax = vec3(1.0) - vec3(1.0) / uGridDim;\n\n vec3 unitPos;\n vec3 isoPos;\n\n vec3 nextPos;\n float nextValue;\n\n vec3 color = vec3(0.45, 0.55, 0.8);\n vec3 gradient = vec3(1.0);\n vec3 dx = vec3(gradOffset * scaleVol.x, 0.0, 0.0);\n vec3 dy = vec3(0.0, gradOffset * scaleVol.y, 0.0);\n vec3 dz = vec3(0.0, 0.0, gradOffset * scaleVol.z);\n\n float maxDist = min(vBoundingSphere.w * 2.0, uFar - uNear);\n float maxDistSq = maxDist * maxDist;\n\n for (int i = 0; i < uMaxSteps; ++i) {\n // break when beyond bounding-sphere or far-plane\n vec3 distVec = startLoc - pos;\n if (dot(distVec, distVec) > maxDistSq) break;\n\n unitPos = v3m4(pos, cartnToUnit);\n\n // continue when outside of grid\n if (unitPos.x > posMax.x || unitPos.y > posMax.y || unitPos.z > posMax.z ||\n unitPos.x < posMin.x || unitPos.y < posMin.y || unitPos.z < posMin.z\n ) {\n if (hit) break;\n prevValue = value;\n pos += step;\n continue;\n }\n\n cell = textureVal(unitPos);\n value = cell.a; // current voxel value\n\n if (uJumpLength > 0.0 && value < 0.01) {\n nextPos = pos + rayDir * uJumpLength;\n nextValue = textureVal(v3m4(nextPos, cartnToUnit)).a;\n if (nextValue < 0.01) {\n prevValue = nextValue;\n pos = nextPos;\n continue;\n }\n }\n\n #if defined(dRenderMode_isosurface)\n if (prevValue > 0.0 && ( // there was a prev Value\n (prevValue < uIsoValue.x && value > uIsoValue.x) || // entering isosurface\n (prevValue > uIsoValue.x && value < uIsoValue.x) // leaving isosurface\n )) {\n isoPos = v3m4(mix(pos - step, pos, ((prevValue - uIsoValue.x) / ((prevValue - uIsoValue.x) - (value - uIsoValue.x)))), cartnToUnit);\n\n vec4 mvPosition = modelViewTransform * vec4(isoPos * uGridDim, 1.0);\n\n #if defined(dClipVariant_pixel) && dClipObjectCount != 0\n vec3 vModelPosition = v3m4(isoPos * uGridDim, modelTransform);\n if (clipTest(vec4(vModelPosition, 0.0), 0)) {\n prevValue = value;\n pos += step;\n continue;\n }\n #endif\n\n float depth = calcDepth(mvPosition.xyz);\n if (depth > getDepth(gl_FragCoord.xy / uDrawingBufferSize))\n break;\n\n #ifdef enabledFragDepth\n if (!hit) {\n gl_FragDepthEXT = depth;\n }\n #endif\n\n #if defined(dRenderVariant_pickObject)\n return vec4(encodeFloatRGB(float(uObjectId)), 1.0);\n #elif defined(dRenderVariant_pickInstance)\n return vec4(encodeFloatRGB(vInstance), 1.0);\n #elif defined(dRenderVariant_pickGroup)\n #ifdef dPackedGroup\n return vec4(textureGroup(floor(isoPos * uGridDim + 0.5) / uGridDim).rgb, 1.0);\n #else\n vec3 g = floor(isoPos * uGridDim + 0.5);\n return vec4(encodeFloatRGB(g.z + g.y * uGridDim.z + g.x * uGridDim.z * uGridDim.y), 1.0);\n #endif\n #elif defined(dRenderVariant_depth)\n #ifdef enabledFragDepth\n return packDepthToRGBA(gl_FragDepthEXT);\n #else\n return packDepthToRGBA(depth);\n #endif\n #elif defined(dRenderVariant_color)\n #ifdef dPackedGroup\n float group = decodeFloatRGB(textureGroup(floor(isoPos * uGridDim + 0.5) / uGridDim).rgb);\n #else\n vec3 g = floor(isoPos * uGridDim + 0.5);\n float group = g.z + g.y * uGridDim.z + g.x * uGridDim.z * uGridDim.y;\n #endif\n\n #if defined(dColorType_uniform)\n color = uColor;\n #elif defined(dColorType_instance)\n color = readFromTexture(tColor, vInstance, uColorTexDim).rgb;\n #elif defined(dColorType_group)\n color = readFromTexture(tColor, group, uColorTexDim).rgb;\n #elif defined(dColorType_groupInstance)\n color = readFromTexture(tColor, vInstance * float(uGroupCount) + group, uColorTexDim).rgb;\n #elif defined(dColorType_vertex)\n color = texture3dFrom1dTrilinear(tColor, isoPos, uGridDim, uColorTexDim, 0.0).rgb;\n #elif defined(dColorType_vertexInstance)\n color = texture3dFrom1dTrilinear(tColor, isoPos, uGridDim, uColorTexDim, vInstance * float(uVertexCount)).rgb;\n #endif\n\n // handle flipping and negative isosurfaces\n #ifdef dFlipSided\n bool flipped = value < uIsoValue.y; // flipped\n #else\n bool flipped = value > uIsoValue.y;\n #endif\n interior = value < uIsoValue.x && flipped;\n #ifndef dDoubleSided\n if (interior) {\n prevValue = value;\n pos += step;\n continue;\n }\n #endif\n vec3 vViewPosition = mvPosition.xyz;\n vec4 material = vec4(color, uAlpha);\n\n #ifdef dIgnoreLight\n gl_FragColor = material;\n #else\n #if defined(dFlatShaded)\n // nearest grid point\n isoPos = floor(isoPos * uGridDim + 0.5) / uGridDim;\n #endif\n #ifdef dPackedGroup\n // compute gradient by central differences\n gradient.x = textureVal(isoPos - dx).a - textureVal(isoPos + dx).a;\n gradient.y = textureVal(isoPos - dy).a - textureVal(isoPos + dy).a;\n gradient.z = textureVal(isoPos - dz).a - textureVal(isoPos + dz).a;\n #else\n gradient = textureVal(isoPos).xyz * 2.0 - 1.0;\n #endif\n vec3 normal = -normalize(normalMatrix * normalize(gradient));\n normal = normal * (float(flipped) * 2.0 - 1.0);\n normal = normal * -(float(interior) * 2.0 - 1.0);\n #include apply_light_color\n #endif\n\n #if defined(dMarkerType_uniform)\n float marker = uMarker;\n #elif defined(dMarkerType_groupInstance)\n float marker = readFromTexture(tMarker, vInstance * float(uGroupCount) + group, uMarkerTexDim).a;\n marker = floor(marker * 255.0 + 0.5); // rounding required to work on some cards on win\n #endif\n #include apply_interior_color\n #include apply_marker_color\n\n preFogAlphaBlended = (1.0 - preFogAlphaBlended) * gl_FragColor.a + preFogAlphaBlended;\n fragmentDepth = depth;\n #include apply_fog\n\n src = gl_FragColor;\n\n if (!uTransparentBackground) {\n // done in 'apply_fog' otherwise\n src.rgb *= src.a;\n }\n dst = (1.0 - dst.a) * src + dst; // standard blending\n #endif\n\n #ifdef dSingleLayer\n break;\n #endif\n\n hit = true;\n }\n prevValue = value;\n #elif defined(dRenderMode_volume)\n vec4 mvPosition = modelViewTransform * vec4(unitPos * uGridDim, 1.0);\n if (calcDepth(mvPosition.xyz) > getDepth(gl_FragCoord.xy / uDrawingBufferSize))\n break;\n\n #if defined(dClipVariant_pixel) && dClipObjectCount != 0\n vec3 vModelPosition = v3m4(unitPos * uGridDim, modelTransform);\n if (clipTest(vec4(vModelPosition, 0.0), 0)) {\n prevValue = value;\n pos += step;\n continue;\n }\n #endif\n\n #if defined(dRenderVariant_color)\n vec3 vViewPosition = mvPosition.xyz;\n vec4 material = transferFunction(value);\n\n #ifdef dIgnoreLight\n gl_FragColor.rgb = material.rgb;\n #else\n if (material.a >= 0.01) {\n #ifdef dPackedGroup\n // compute gradient by central differences\n gradient.x = textureVal(unitPos - dx).a - textureVal(unitPos + dx).a;\n gradient.y = textureVal(unitPos - dy).a - textureVal(unitPos + dy).a;\n gradient.z = textureVal(unitPos - dz).a - textureVal(unitPos + dz).a;\n #else\n gradient = cell.xyz * 2.0 - 1.0;\n #endif\n vec3 normal = -normalize(normalMatrix * normalize(gradient));\n #include apply_light_color\n } else {\n gl_FragColor.rgb = material.rgb;\n }\n #endif\n\n gl_FragColor.a = material.a * uAlpha * uTransferScale;\n\n #if defined(dMarkerType_uniform)\n float marker = uMarker;\n #elif defined(dMarkerType_groupInstance)\n #ifdef dPackedGroup\n float group = decodeFloatRGB(textureGroup(floor(unitPos * uGridDim + 0.5) / uGridDim).rgb);\n #else\n vec3 g = floor(unitPos * uGridDim + 0.5);\n float group = g.z + g.y * uGridDim.z + g.x * uGridDim.z * uGridDim.y;\n #endif\n float marker = readFromTexture(tMarker, vInstance * float(uGroupCount) + group, uMarkerTexDim).a;\n marker = floor(marker * 255.0 + 0.5); // rounding required to work on some cards on win\n #endif\n #include apply_marker_color\n\n preFogAlphaBlended = (1.0 - preFogAlphaBlended) * gl_FragColor.a + preFogAlphaBlended;\n fragmentDepth = calcDepth(mvPosition.xyz);\n #include apply_fog\n\n src = gl_FragColor;\n\n if (!uTransparentBackground) {\n // done in 'apply_fog' otherwise\n src.rgb *= src.a;\n }\n dst = (1.0 - dst.a) * src + dst; // standard blending\n #endif\n #endif\n\n // break if the color is opaque enough\n if (dst.a > 0.95)\n break;\n\n pos += step;\n }\n\n #if defined(dRenderMode_isosurface) && defined(enabledFragDepth)\n // ensure depth is written everywhere\n if (!hit)\n gl_FragDepthEXT = 1.0;\n #endif\n\n return dst;\n}\n\n// TODO: support float texture for higher precision values???\n// TODO: support clipping exclusion texture support\n\nvoid main() {\n if (gl_FrontFacing)\n discard;\n\n #ifdef dRenderVariant_marking\n // not supported\n discard;\n #endif\n\n #if defined(dRenderVariant_pick) || defined(dRenderVariant_depth)\n #if defined(dRenderMode_volume)\n // always ignore pick & depth for volume\n discard;\n #elif defined(dRenderMode_isosurface)\n if (uAlpha < uPickingAlphaThreshold)\n discard; // ignore so the element below can be picked\n #endif\n #endif\n\n vec3 rayDir = mix(normalize(vOrigPos - uCameraPosition), uCameraDir, uIsOrtho);\n vec3 step = rayDir * uStepScale;\n\n float boundingSphereNear = distance(vBoundingSphere.xyz, uCameraPosition) - vBoundingSphere.w;\n float d = max(uNear, boundingSphereNear) - mix(0.0, distance(vOrigPos, uCameraPosition), uIsOrtho);\n vec3 start = mix(uCameraPosition, vOrigPos, uIsOrtho) + (d * rayDir);\n gl_FragColor = raymarch(start, step, rayDir);\n\n #if defined(dRenderVariant_pick) || defined(dRenderVariant_depth)\n // discard when nothing was hit\n if (gl_FragColor == vec4(0.0))\n discard;\n #endif\n\n #if defined(dRenderVariant_color)\n #if defined(dRenderMode_isosurface) && defined(enabledFragDepth)\n float fragmentDepth = gl_FragDepthEXT;\n #else\n float fragmentDepth = calcDepth((uModelView * vec4(start, 1.0)).xyz);\n #endif\n float preFogAlpha = clamp(preFogAlphaBlended, 0.0, 1.0);\n interior = false;\n #include wboit_write\n #endif\n}\n";
7
+ export var directVolume_frag = "\nprecision highp float;\nprecision highp int;\n\n#include common\n#include light_frag_params\n\n#if dClipObjectCount != 0\n uniform int uClipObjectType[dClipObjectCount];\n uniform bool uClipObjectInvert[dClipObjectCount];\n uniform vec3 uClipObjectPosition[dClipObjectCount];\n uniform vec4 uClipObjectRotation[dClipObjectCount];\n uniform vec3 uClipObjectScale[dClipObjectCount];\n#endif\n#include common_clip\n\n#include read_from_texture\n#include texture3d_from_1d_trilinear\n#include texture3d_from_2d_nearest\n#include texture3d_from_2d_linear\n\nuniform mat4 uProjection, uTransform, uModelView, uModel, uView;\nuniform vec3 uCameraDir;\n\nuniform sampler2D tDepth;\nuniform vec2 uDrawingBufferSize;\n\nvarying vec3 vOrigPos;\nvarying float vInstance;\nvarying vec4 vBoundingSphere;\nvarying mat4 vTransform;\n\nuniform mat4 uInvView;\nuniform vec2 uIsoValue;\nuniform vec3 uGridDim;\nuniform vec3 uBboxSize;\nuniform sampler2D tTransferTex;\nuniform float uTransferScale;\nuniform float uStepScale;\nuniform float uJumpLength;\n\nuniform int uObjectId;\nuniform int uVertexCount;\nuniform int uInstanceCount;\nuniform int uGroupCount;\n\nuniform vec3 uHighlightColor;\nuniform vec3 uSelectColor;\nuniform float uHighlightStrength;\nuniform float uSelectStrength;\nuniform int uMarkerPriority;\n\n#if defined(dMarkerType_uniform)\n uniform float uMarker;\n#elif defined(dMarkerType_groupInstance)\n uniform vec2 uMarkerTexDim;\n uniform sampler2D tMarker;\n#endif\n\nuniform float uFogNear;\nuniform float uFogFar;\nuniform vec3 uFogColor;\n\nuniform float uAlpha;\nuniform float uPickingAlphaThreshold;\nuniform bool uTransparentBackground;\n\nuniform float uInteriorDarkening;\nuniform bool uInteriorColorFlag;\nuniform vec3 uInteriorColor;\nbool interior;\n\nuniform bool uRenderWboit;\n\nuniform float uNear;\nuniform float uFar;\nuniform float uIsOrtho;\n\nuniform vec3 uCellDim;\nuniform vec3 uCameraPosition;\nuniform mat4 uCartnToUnit;\n\n#if __VERSION__ != 100\n // for webgl1 this is given as a 'define'\n uniform int uMaxSteps;\n#endif\n\n#if defined(dGridTexType_2d)\n precision highp sampler2D;\n uniform sampler2D tGridTex;\n uniform vec3 uGridTexDim;\n#elif defined(dGridTexType_3d)\n precision highp sampler3D;\n uniform sampler3D tGridTex;\n#endif\n\n#if defined(dRenderVariant_color)\n #if defined(dColorType_uniform)\n uniform vec3 uColor;\n #elif defined(dColorType_texture)\n uniform vec2 uColorTexDim;\n uniform sampler2D tColor;\n #endif\n\n #ifdef dOverpaint\n #if defined(dOverpaintType_groupInstance) || defined(dOverpaintType_vertexInstance)\n uniform vec2 uOverpaintTexDim;\n uniform sampler2D tOverpaint;\n #endif\n #endif\n#endif\n\n#if defined(dGridTexType_2d)\n vec4 textureVal(vec3 pos) {\n return texture3dFrom2dLinear(tGridTex, pos + (vec3(0.5, 0.5, 0.0) / uGridDim), uGridDim, uGridTexDim.xy);\n }\n vec4 textureGroup(vec3 pos) {\n return texture3dFrom2dNearest(tGridTex, pos + (vec3(0.5, 0.5, 0.0) / uGridDim), uGridDim, uGridTexDim.xy);\n }\n#elif defined(dGridTexType_3d)\n vec4 textureVal(vec3 pos) {\n return texture(tGridTex, pos + (vec3(0.5) / uGridDim));\n }\n vec4 textureGroup(vec3 pos) {\n return texelFetch(tGridTex, ivec3(pos * uGridDim), 0);\n }\n#endif\n\nfloat calcDepth(const in vec3 pos) {\n vec2 clipZW = pos.z * uProjection[2].zw + uProjection[3].zw;\n return 0.5 + 0.5 * clipZW.x / clipZW.y;\n}\n\nvec4 transferFunction(float value) {\n return texture2D(tTransferTex, vec2(value, 0.0));\n}\n\nfloat getDepth(const in vec2 coords) {\n #ifdef depthTextureSupport\n if (!uRenderWboit) {\n // in case of opaque volumes (and depth texture support)\n return texture2D(tDepth, coords).r;\n } else {\n return unpackRGBAToDepth(texture2D(tDepth, coords));\n }\n #else\n return unpackRGBAToDepth(texture2D(tDepth, coords));\n #endif\n}\n\nconst float gradOffset = 0.5;\n\nvec3 v3m4(vec3 p, mat4 m) {\n return (m * vec4(p, 1.0)).xyz;\n}\n\nfloat preFogAlphaBlended = 0.0;\n\nvec4 raymarch(vec3 startLoc, vec3 step, vec3 rayDir) {\n #if defined(dRenderVariant_color) && !defined(dIgnoreLight)\n mat3 normalMatrix = transpose3(inverse3(mat3(uModelView * vTransform)));\n #endif\n mat4 cartnToUnit = uCartnToUnit * inverse4(vTransform);\n #if defined(dClipVariant_pixel) && dClipObjectCount != 0\n mat4 modelTransform = uModel * vTransform * uTransform;\n #endif\n mat4 modelViewTransform = uModelView * vTransform * uTransform;\n\n vec3 scaleVol = vec3(1.0) / uGridDim;\n vec3 pos = startLoc;\n vec4 cell;\n float prevValue = -1.0;\n float value = 0.0;\n vec4 src = vec4(0.0);\n vec4 dst = vec4(0.0);\n bool hit = false;\n float fragmentDepth;\n\n vec3 posMin = vec3(0.0);\n vec3 posMax = vec3(1.0) - vec3(1.0) / uGridDim;\n\n vec3 unitPos;\n vec3 isoPos;\n\n vec3 nextPos;\n float nextValue;\n\n vec3 color = vec3(0.45, 0.55, 0.8);\n vec4 overpaint = vec4(0.0);\n\n vec3 gradient = vec3(1.0);\n vec3 dx = vec3(gradOffset * scaleVol.x, 0.0, 0.0);\n vec3 dy = vec3(0.0, gradOffset * scaleVol.y, 0.0);\n vec3 dz = vec3(0.0, 0.0, gradOffset * scaleVol.z);\n\n float maxDist = min(vBoundingSphere.w * 2.0, uFar - uNear);\n float maxDistSq = maxDist * maxDist;\n\n for (int i = 0; i < uMaxSteps; ++i) {\n // break when beyond bounding-sphere or far-plane\n vec3 distVec = startLoc - pos;\n if (dot(distVec, distVec) > maxDistSq) break;\n\n unitPos = v3m4(pos, cartnToUnit);\n\n // continue when outside of grid\n if (unitPos.x > posMax.x || unitPos.y > posMax.y || unitPos.z > posMax.z ||\n unitPos.x < posMin.x || unitPos.y < posMin.y || unitPos.z < posMin.z\n ) {\n if (hit) break;\n prevValue = value;\n pos += step;\n continue;\n }\n\n cell = textureVal(unitPos);\n value = cell.a; // current voxel value\n\n if (uJumpLength > 0.0 && value < 0.01) {\n nextPos = pos + rayDir * uJumpLength;\n nextValue = textureVal(v3m4(nextPos, cartnToUnit)).a;\n if (nextValue < 0.01) {\n prevValue = nextValue;\n pos = nextPos;\n continue;\n }\n }\n\n #if defined(dRenderMode_isosurface)\n if (prevValue > 0.0 && ( // there was a prev Value\n (prevValue < uIsoValue.x && value > uIsoValue.x) || // entering isosurface\n (prevValue > uIsoValue.x && value < uIsoValue.x) // leaving isosurface\n )) {\n isoPos = v3m4(mix(pos - step, pos, ((prevValue - uIsoValue.x) / ((prevValue - uIsoValue.x) - (value - uIsoValue.x)))), cartnToUnit);\n\n vec4 mvPosition = modelViewTransform * vec4(isoPos * uGridDim, 1.0);\n\n #if defined(dClipVariant_pixel) && dClipObjectCount != 0\n vec3 vModelPosition = v3m4(isoPos * uGridDim, modelTransform);\n if (clipTest(vec4(vModelPosition, 0.0), 0)) {\n prevValue = value;\n pos += step;\n continue;\n }\n #endif\n\n float depth = calcDepth(mvPosition.xyz);\n if (depth > getDepth(gl_FragCoord.xy / uDrawingBufferSize))\n break;\n\n #ifdef enabledFragDepth\n if (!hit) {\n gl_FragDepthEXT = depth;\n }\n #endif\n\n #if defined(dRenderVariant_pickObject)\n return vec4(encodeFloatRGB(float(uObjectId)), 1.0);\n #elif defined(dRenderVariant_pickInstance)\n return vec4(encodeFloatRGB(vInstance), 1.0);\n #elif defined(dRenderVariant_pickGroup)\n #ifdef dPackedGroup\n return vec4(textureGroup(floor(isoPos * uGridDim + 0.5) / uGridDim).rgb, 1.0);\n #else\n vec3 g = floor(isoPos * uGridDim + 0.5);\n return vec4(encodeFloatRGB(g.z + g.y * uGridDim.z + g.x * uGridDim.z * uGridDim.y), 1.0);\n #endif\n #elif defined(dRenderVariant_depth)\n #ifdef enabledFragDepth\n return packDepthToRGBA(gl_FragDepthEXT);\n #else\n return packDepthToRGBA(depth);\n #endif\n #elif defined(dRenderVariant_color)\n #ifdef dPackedGroup\n float group = decodeFloatRGB(textureGroup(floor(isoPos * uGridDim + 0.5) / uGridDim).rgb);\n #else\n vec3 g = floor(isoPos * uGridDim + 0.5);\n float group = g.z + g.y * uGridDim.z + g.x * uGridDim.z * uGridDim.y;\n #endif\n\n #if defined(dColorType_uniform)\n color = uColor;\n #elif defined(dColorType_instance)\n color = readFromTexture(tColor, vInstance, uColorTexDim).rgb;\n #elif defined(dColorType_group)\n color = readFromTexture(tColor, group, uColorTexDim).rgb;\n #elif defined(dColorType_groupInstance)\n color = readFromTexture(tColor, vInstance * float(uGroupCount) + group, uColorTexDim).rgb;\n #elif defined(dColorType_vertex)\n color = texture3dFrom1dTrilinear(tColor, isoPos, uGridDim, uColorTexDim, 0.0).rgb;\n #elif defined(dColorType_vertexInstance)\n color = texture3dFrom1dTrilinear(tColor, isoPos, uGridDim, uColorTexDim, vInstance * float(uVertexCount)).rgb;\n #endif\n\n #ifdef dOverpaint\n #if defined(dOverpaintType_groupInstance)\n overpaint = readFromTexture(tOverpaint, vInstance * float(uGroupCount) + group, uOverpaintTexDim);\n #elif defined(dOverpaintType_vertexInstance)\n overpaint = texture3dFrom1dTrilinear(tOverpaint, isoPos, uGridDim, uOverpaintTexDim, vInstance * float(uVertexCount)).rgb;\n #endif\n\n color = mix(color, overpaint.rgb, overpaint.a);\n #endif\n\n // handle flipping and negative isosurfaces\n #ifdef dFlipSided\n bool flipped = value < uIsoValue.y; // flipped\n #else\n bool flipped = value > uIsoValue.y;\n #endif\n interior = value < uIsoValue.x && flipped;\n #ifndef dDoubleSided\n if (interior) {\n prevValue = value;\n pos += step;\n continue;\n }\n #endif\n vec3 vViewPosition = mvPosition.xyz;\n vec4 material = vec4(color, uAlpha);\n\n #ifdef dIgnoreLight\n gl_FragColor = material;\n #else\n #if defined(dFlatShaded)\n // nearest grid point\n isoPos = floor(isoPos * uGridDim + 0.5) / uGridDim;\n #endif\n #ifdef dPackedGroup\n // compute gradient by central differences\n gradient.x = textureVal(isoPos - dx).a - textureVal(isoPos + dx).a;\n gradient.y = textureVal(isoPos - dy).a - textureVal(isoPos + dy).a;\n gradient.z = textureVal(isoPos - dz).a - textureVal(isoPos + dz).a;\n #else\n gradient = textureVal(isoPos).xyz * 2.0 - 1.0;\n #endif\n vec3 normal = -normalize(normalMatrix * normalize(gradient));\n normal = normal * (float(flipped) * 2.0 - 1.0);\n normal = normal * -(float(interior) * 2.0 - 1.0);\n #include apply_light_color\n #endif\n\n #if defined(dMarkerType_uniform)\n float marker = uMarker;\n #elif defined(dMarkerType_groupInstance)\n float marker = readFromTexture(tMarker, vInstance * float(uGroupCount) + group, uMarkerTexDim).a;\n marker = floor(marker * 255.0 + 0.5); // rounding required to work on some cards on win\n #endif\n #include apply_interior_color\n #include apply_marker_color\n\n preFogAlphaBlended = (1.0 - preFogAlphaBlended) * gl_FragColor.a + preFogAlphaBlended;\n fragmentDepth = depth;\n #include apply_fog\n\n src = gl_FragColor;\n\n if (!uTransparentBackground) {\n // done in 'apply_fog' otherwise\n src.rgb *= src.a;\n }\n dst = (1.0 - dst.a) * src + dst; // standard blending\n #endif\n\n #ifdef dSingleLayer\n break;\n #endif\n\n hit = true;\n }\n prevValue = value;\n #elif defined(dRenderMode_volume)\n vec4 mvPosition = modelViewTransform * vec4(unitPos * uGridDim, 1.0);\n if (calcDepth(mvPosition.xyz) > getDepth(gl_FragCoord.xy / uDrawingBufferSize))\n break;\n\n #if defined(dClipVariant_pixel) && dClipObjectCount != 0\n vec3 vModelPosition = v3m4(unitPos * uGridDim, modelTransform);\n if (clipTest(vec4(vModelPosition, 0.0), 0)) {\n prevValue = value;\n pos += step;\n continue;\n }\n #endif\n\n #if defined(dRenderVariant_color)\n vec3 vViewPosition = mvPosition.xyz;\n vec4 material = transferFunction(value);\n\n #ifdef dIgnoreLight\n gl_FragColor.rgb = material.rgb;\n #else\n if (material.a >= 0.01) {\n #ifdef dPackedGroup\n // compute gradient by central differences\n gradient.x = textureVal(unitPos - dx).a - textureVal(unitPos + dx).a;\n gradient.y = textureVal(unitPos - dy).a - textureVal(unitPos + dy).a;\n gradient.z = textureVal(unitPos - dz).a - textureVal(unitPos + dz).a;\n #else\n gradient = cell.xyz * 2.0 - 1.0;\n #endif\n vec3 normal = -normalize(normalMatrix * normalize(gradient));\n #include apply_light_color\n } else {\n gl_FragColor.rgb = material.rgb;\n }\n #endif\n\n gl_FragColor.a = material.a * uAlpha * uTransferScale;\n\n #if defined(dMarkerType_uniform)\n float marker = uMarker;\n #elif defined(dMarkerType_groupInstance)\n #ifdef dPackedGroup\n float group = decodeFloatRGB(textureGroup(floor(unitPos * uGridDim + 0.5) / uGridDim).rgb);\n #else\n vec3 g = floor(unitPos * uGridDim + 0.5);\n float group = g.z + g.y * uGridDim.z + g.x * uGridDim.z * uGridDim.y;\n #endif\n float marker = readFromTexture(tMarker, vInstance * float(uGroupCount) + group, uMarkerTexDim).a;\n marker = floor(marker * 255.0 + 0.5); // rounding required to work on some cards on win\n #endif\n #include apply_marker_color\n\n preFogAlphaBlended = (1.0 - preFogAlphaBlended) * gl_FragColor.a + preFogAlphaBlended;\n fragmentDepth = calcDepth(mvPosition.xyz);\n #include apply_fog\n\n src = gl_FragColor;\n\n if (!uTransparentBackground) {\n // done in 'apply_fog' otherwise\n src.rgb *= src.a;\n }\n dst = (1.0 - dst.a) * src + dst; // standard blending\n #endif\n #endif\n\n // break if the color is opaque enough\n if (dst.a > 0.95)\n break;\n\n pos += step;\n }\n\n #if defined(dRenderMode_isosurface) && defined(enabledFragDepth)\n // ensure depth is written everywhere\n if (!hit)\n gl_FragDepthEXT = 1.0;\n #endif\n\n return dst;\n}\n\n// TODO: support float texture for higher precision values???\n// TODO: support clipping exclusion texture support\n\nvoid main() {\n if (gl_FrontFacing)\n discard;\n\n #ifdef dRenderVariant_marking\n // not supported\n discard;\n #endif\n\n #if defined(dRenderVariant_pick) || defined(dRenderVariant_depth)\n #if defined(dRenderMode_volume)\n // always ignore pick & depth for volume\n discard;\n #elif defined(dRenderMode_isosurface)\n if (uAlpha < uPickingAlphaThreshold)\n discard; // ignore so the element below can be picked\n #endif\n #endif\n\n vec3 rayDir = mix(normalize(vOrigPos - uCameraPosition), uCameraDir, uIsOrtho);\n vec3 step = rayDir * uStepScale;\n\n float boundingSphereNear = distance(vBoundingSphere.xyz, uCameraPosition) - vBoundingSphere.w;\n float d = max(uNear, boundingSphereNear) - mix(0.0, distance(vOrigPos, uCameraPosition), uIsOrtho);\n vec3 start = mix(uCameraPosition, vOrigPos, uIsOrtho) + (d * rayDir);\n gl_FragColor = raymarch(start, step, rayDir);\n\n #if defined(dRenderVariant_pick) || defined(dRenderVariant_depth)\n // discard when nothing was hit\n if (gl_FragColor == vec4(0.0))\n discard;\n #endif\n\n #if defined(dRenderVariant_color)\n #if defined(dRenderMode_isosurface) && defined(enabledFragDepth)\n float fragmentDepth = gl_FragDepthEXT;\n #else\n float fragmentDepth = calcDepth((uModelView * vec4(start, 1.0)).xyz);\n #endif\n float preFogAlpha = clamp(preFogAlphaBlended, 0.0, 1.0);\n interior = false;\n #include wboit_write\n #endif\n}\n";
8
8
  //# sourceMappingURL=direct-volume.frag.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"direct-volume.frag.js","sourceRoot":"","sources":["../../../src/mol-gl/shader/direct-volume.frag.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,IAAM,iBAAiB,GAAG,s5jBAyehC,CAAC"}
1
+ {"version":3,"file":"direct-volume.frag.js","sourceRoot":"","sources":["../../../src/mol-gl/shader/direct-volume.frag.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,IAAM,iBAAiB,GAAG,6llBAsfhC,CAAC"}
@@ -3,4 +3,4 @@
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
6
- export declare const mesh_vert = "\nprecision highp float;\nprecision highp int;\nprecision highp sampler2D;\n\n#include common\n#include read_from_texture\n#include common_vert_params\n#include color_vert_params\n#include common_clip\n\n#if defined(dColorType_grid)\n #include texture3d_from_2d_linear\n#endif\n\n#ifdef dGeoTexture\n uniform vec2 uGeoTexDim;\n uniform sampler2D tPosition;\n uniform sampler2D tGroup;\n uniform sampler2D tNormal;\n#else\n attribute vec3 aPosition;\n attribute float aGroup;\n attribute vec3 aNormal;\n#endif\nattribute mat4 aTransform;\nattribute float aInstance;\n\nvarying vec3 vNormal;\n\nvoid main(){\n #include assign_group\n #include assign_marker_varying\n #include assign_clipping_varying\n #include assign_position\n #include assign_color_varying\n #include clip_instance\n\n #ifdef dGeoTexture\n vec3 normal = readFromTexture(tNormal, VertexID, uGeoTexDim).xyz;\n #else\n vec3 normal = aNormal;\n #endif\n mat3 normalMatrix = transpose3(inverse3(mat3(modelView)));\n vec3 transformedNormal = normalize(normalMatrix * normalize(normal));\n #if defined(dFlipSided) && !defined(dDoubleSided) // TODO checking dDoubleSided should not be required, ASR\n transformedNormal = -transformedNormal;\n #endif\n vNormal = transformedNormal;\n}\n";
6
+ export declare const mesh_vert = "\nprecision highp float;\nprecision highp int;\nprecision highp sampler2D;\n\n#include common\n#include read_from_texture\n#include common_vert_params\n#include color_vert_params\n#include common_clip\n#include texture3d_from_2d_linear\n\n#ifdef dGeoTexture\n uniform vec2 uGeoTexDim;\n uniform sampler2D tPosition;\n uniform sampler2D tGroup;\n uniform sampler2D tNormal;\n#else\n attribute vec3 aPosition;\n attribute float aGroup;\n attribute vec3 aNormal;\n#endif\nattribute mat4 aTransform;\nattribute float aInstance;\n\nvarying vec3 vNormal;\n\nvoid main(){\n #include assign_group\n #include assign_marker_varying\n #include assign_clipping_varying\n #include assign_position\n #include assign_color_varying\n #include clip_instance\n\n #ifdef dGeoTexture\n vec3 normal = readFromTexture(tNormal, VertexID, uGeoTexDim).xyz;\n #else\n vec3 normal = aNormal;\n #endif\n mat3 normalMatrix = transpose3(inverse3(mat3(modelView)));\n vec3 transformedNormal = normalize(normalMatrix * normalize(normal));\n #if defined(dFlipSided) && !defined(dDoubleSided) // TODO checking dDoubleSided should not be required, ASR\n transformedNormal = -transformedNormal;\n #endif\n vNormal = transformedNormal;\n}\n";
@@ -3,5 +3,5 @@
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
6
- export var mesh_vert = "\nprecision highp float;\nprecision highp int;\nprecision highp sampler2D;\n\n#include common\n#include read_from_texture\n#include common_vert_params\n#include color_vert_params\n#include common_clip\n\n#if defined(dColorType_grid)\n #include texture3d_from_2d_linear\n#endif\n\n#ifdef dGeoTexture\n uniform vec2 uGeoTexDim;\n uniform sampler2D tPosition;\n uniform sampler2D tGroup;\n uniform sampler2D tNormal;\n#else\n attribute vec3 aPosition;\n attribute float aGroup;\n attribute vec3 aNormal;\n#endif\nattribute mat4 aTransform;\nattribute float aInstance;\n\nvarying vec3 vNormal;\n\nvoid main(){\n #include assign_group\n #include assign_marker_varying\n #include assign_clipping_varying\n #include assign_position\n #include assign_color_varying\n #include clip_instance\n\n #ifdef dGeoTexture\n vec3 normal = readFromTexture(tNormal, VertexID, uGeoTexDim).xyz;\n #else\n vec3 normal = aNormal;\n #endif\n mat3 normalMatrix = transpose3(inverse3(mat3(modelView)));\n vec3 transformedNormal = normalize(normalMatrix * normalize(normal));\n #if defined(dFlipSided) && !defined(dDoubleSided) // TODO checking dDoubleSided should not be required, ASR\n transformedNormal = -transformedNormal;\n #endif\n vNormal = transformedNormal;\n}\n";
6
+ export var mesh_vert = "\nprecision highp float;\nprecision highp int;\nprecision highp sampler2D;\n\n#include common\n#include read_from_texture\n#include common_vert_params\n#include color_vert_params\n#include common_clip\n#include texture3d_from_2d_linear\n\n#ifdef dGeoTexture\n uniform vec2 uGeoTexDim;\n uniform sampler2D tPosition;\n uniform sampler2D tGroup;\n uniform sampler2D tNormal;\n#else\n attribute vec3 aPosition;\n attribute float aGroup;\n attribute vec3 aNormal;\n#endif\nattribute mat4 aTransform;\nattribute float aInstance;\n\nvarying vec3 vNormal;\n\nvoid main(){\n #include assign_group\n #include assign_marker_varying\n #include assign_clipping_varying\n #include assign_position\n #include assign_color_varying\n #include clip_instance\n\n #ifdef dGeoTexture\n vec3 normal = readFromTexture(tNormal, VertexID, uGeoTexDim).xyz;\n #else\n vec3 normal = aNormal;\n #endif\n mat3 normalMatrix = transpose3(inverse3(mat3(modelView)));\n vec3 transformedNormal = normalize(normalMatrix * normalize(normal));\n #if defined(dFlipSided) && !defined(dDoubleSided) // TODO checking dDoubleSided should not be required, ASR\n transformedNormal = -transformedNormal;\n #endif\n vNormal = transformedNormal;\n}\n";
7
7
  //# sourceMappingURL=mesh.vert.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mesh.vert.js","sourceRoot":"","sources":["../../../src/mol-gl/shader/mesh.vert.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,IAAM,SAAS,GAAG,qzCAkDxB,CAAC"}
1
+ {"version":3,"file":"mesh.vert.js","sourceRoot":"","sources":["../../../src/mol-gl/shader/mesh.vert.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,IAAM,SAAS,GAAG,ywCA+CxB,CAAC"}
@@ -79,7 +79,7 @@ function addIncludes(text) {
79
79
  .replace(reInclude, function (_, p1) {
80
80
  var chunk = ShaderChunks[p1];
81
81
  if (!chunk)
82
- throw new Error("empty chunk, '" + p1 + "'");
82
+ throw new Error("empty chunk, '".concat(p1, "'"));
83
83
  return chunk;
84
84
  })
85
85
  .trim()
@@ -126,14 +126,14 @@ function getDefinesCode(defines) {
126
126
  var v = define.ref.value;
127
127
  if (v !== undefined) {
128
128
  if (typeof v === 'string') {
129
- lines.push("#define " + name_1 + "_" + v);
129
+ lines.push("#define ".concat(name_1, "_").concat(v));
130
130
  }
131
131
  else if (typeof v === 'number') {
132
- lines.push("#define " + name_1 + " " + v);
132
+ lines.push("#define ".concat(name_1, " ").concat(v));
133
133
  }
134
134
  else if (typeof v === 'boolean') {
135
135
  if (v)
136
- lines.push("#define " + name_1);
136
+ lines.push("#define ".concat(name_1));
137
137
  }
138
138
  else {
139
139
  throw new Error('unknown define type');
@@ -186,7 +186,7 @@ var glsl300FragPrefixCommon = "\n#define varying in\n#define texture2D texture\n
186
186
  function getGlsl300FragPrefix(gl, extensions, shaderExtensions, outTypes) {
187
187
  var prefix = [
188
188
  '#version 300 es',
189
- "layout(location = 0) out highp " + (outTypes[0] || 'vec4') + " out_FragData0;"
189
+ "layout(location = 0) out highp ".concat(outTypes[0] || 'vec4', " out_FragData0;")
190
190
  ];
191
191
  if (shaderExtensions.standardDerivatives) {
192
192
  prefix.push('#define enabledStandardDerivatives');
@@ -198,7 +198,7 @@ function getGlsl300FragPrefix(gl, extensions, shaderExtensions, outTypes) {
198
198
  prefix.push('#define requiredDrawBuffers');
199
199
  var maxDrawBuffers = gl.getParameter(gl.MAX_DRAW_BUFFERS);
200
200
  for (var i = 1, il = maxDrawBuffers; i < il; ++i) {
201
- prefix.push("layout(location = " + i + ") out highp " + (outTypes[i] || 'vec4') + " out_FragData" + i + ";");
201
+ prefix.push("layout(location = ".concat(i, ") out highp ").concat(outTypes[i] || 'vec4', " out_FragData").concat(i, ";"));
202
202
  }
203
203
  }
204
204
  if (shaderExtensions.shaderTextureLod) {
@@ -220,8 +220,8 @@ export function addShaderDefines(gl, extensions, defines, shaders) {
220
220
  return {
221
221
  id: shaderCodeId(),
222
222
  name: shaders.name,
223
- vert: "" + vertPrefix + header + shaders.vert,
224
- frag: "" + fragPrefix + header + frag,
223
+ vert: "".concat(vertPrefix).concat(header).concat(shaders.vert),
224
+ frag: "".concat(fragPrefix).concat(header).concat(frag),
225
225
  extensions: shaders.extensions,
226
226
  outTypes: shaders.outTypes
227
227
  };
@@ -1 +1 @@
1
- {"version":3,"file":"shader-code.js","sourceRoot":"","sources":["../../src/mol-gl/shader-code.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,QAAQ,EAAsB,MAAM,gBAAgB,CAAC;AAM9D,IAAM,YAAY,GAAG,SAAS,EAAE,CAAC;AAsBjC,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM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CAAC,CAAC,CAAC,EAAE,CAAC;IACzD,IAAM,UAAU,GAAG,QAAQ,CAAC,EAAE,CAAC;QAC3B,CAAC,CAAC,oBAAoB,CAAC,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,QAAQ,CAAC;QAC5E,CAAC,CAAC,oBAAoB,CAAC,UAAU,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IAC3D,IAAM,IAAI,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;IAC9E,OAAO;QACH,EAAE,EAAE,YAAY,EAAE;QAClB,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,IAAI,EAAE,UAAG,UAAU,SAAG,MAAM,SAAG,OAAO,CAAC,IAAI,CAAE;QAC7C,IAAI,EAAE,UAAG,UAAU,SAAG,MAAM,SAAG,IAAI,CAAE;QACrC,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,QAAQ,EAAE,OAAO,CAAC,QAAQ;KAC7B,CAAC;AACN,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2018-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2018-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
  */
@@ -9,6 +9,7 @@ import { RenderableSchema } from '../renderable/schema';
9
9
  import { ValueOf } from '../../mol-util/type-helpers';
10
10
  import { GLRenderingContext } from './compat';
11
11
  import { WebGLExtensions } from './extensions';
12
+ import { WebGLState } from './state';
12
13
  export declare type UsageHint = 'static' | 'dynamic' | 'stream';
13
14
  export declare type DataType = 'uint8' | 'int8' | 'uint16' | 'int16' | 'uint32' | 'int32' | 'float32';
14
15
  export declare type BufferType = 'attribute' | 'elements' | 'uniform';
@@ -56,7 +57,7 @@ export declare type AttributeBuffers = [string, AttributeBuffer][];
56
57
  export interface AttributeBuffer extends Buffer {
57
58
  bind: (location: number) => void;
58
59
  }
59
- export declare function createAttributeBuffer<T extends ArrayType, S extends AttributeItemSize>(gl: GLRenderingContext, extensions: WebGLExtensions, array: T, itemSize: S, divisor: number, usageHint?: UsageHint): AttributeBuffer;
60
+ export declare function createAttributeBuffer<T extends ArrayType, S extends AttributeItemSize>(gl: GLRenderingContext, state: WebGLState, extensions: WebGLExtensions, array: T, itemSize: S, divisor: number, usageHint?: UsageHint): AttributeBuffer;
60
61
  export declare function createAttributeBuffers(ctx: WebGLContext, schema: RenderableSchema, values: AttributeValues): AttributeBuffers;
61
62
  export declare type ElementsType = Uint16Array | Uint32Array;
62
63
  export declare type ElementsKind = 'uint16' | 'uint32';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2018-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2018-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
  */
@@ -127,9 +127,9 @@ export function getAttribType(gl, kind, itemSize) {
127
127
  }
128
128
  break;
129
129
  }
130
- throw new Error("unknown attribute type for kind '" + kind + "' and itemSize '" + itemSize + "'");
130
+ throw new Error("unknown attribute type for kind '".concat(kind, "' and itemSize '").concat(itemSize, "'"));
131
131
  }
132
- export function createAttributeBuffer(gl, extensions, array, itemSize, divisor, usageHint) {
132
+ export function createAttributeBuffer(gl, state, extensions, array, itemSize, divisor, usageHint) {
133
133
  if (usageHint === void 0) { usageHint = 'dynamic'; }
134
134
  var instancedArrays = extensions.instancedArrays;
135
135
  var buffer = createBuffer(gl, array, usageHint, 'attribute');
@@ -138,13 +138,13 @@ export function createAttributeBuffer(gl, extensions, array, itemSize, divisor,
138
138
  gl.bindBuffer(_bufferType, buffer.getBuffer());
139
139
  if (itemSize === 16) {
140
140
  for (var i = 0; i < 4; ++i) {
141
- gl.enableVertexAttribArray(location + i);
141
+ state.enableVertexAttrib(location + i);
142
142
  gl.vertexAttribPointer(location + i, 4, _dataType, false, 4 * 4 * _bpe, i * 4 * _bpe);
143
143
  instancedArrays.vertexAttribDivisor(location + i, divisor);
144
144
  }
145
145
  }
146
146
  else {
147
- gl.enableVertexAttribArray(location);
147
+ state.enableVertexAttrib(location);
148
148
  gl.vertexAttribPointer(location, itemSize, _dataType, false, 0, 0);
149
149
  instancedArrays.vertexAttribDivisor(location, divisor);
150
150
  }
@@ -1 +1 @@
1
- {"version":3,"file":"buffer.js","sourceRoot":"","sources":["../../../src/mol-gl/webgl/buffer.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAKH,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAKtD,IAAM,eAAe,GAAG,SAAS,EAAE,CAAC;AAkBpC,MAAM,UAAU,YAAY,CAAC,EAAsB,EAAE,SAAoB;IACrE,QAAQ,SAAS,EAAE;QACf,KAAK,QAAQ,CAAC,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC;QACrC,KAAK,SAAS,CAAC,CAAC,OAAO,EAAE,CAAC,YAAY,CAAC;QACvC,KAAK,QAAQ,CAAC,CAAC,OAAO,EAAE,CAAC,WAAW,CAAC;KACxC;AACL,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAAsB,EAAE,QAAkB;IAClE,QAAQ,QAAQ,EAAE;QACd,KAAK,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC,aAAa,CAAC;QACtC,KAAK,MAAM,CAAC,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC;QAC5B,KAAK,QAAQ,CAAC,CAAC,OAAO,EAAE,CAAC,cAAc,CAAC;QACxC,KAAK,OAAO,CAAC,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC;QAC9B,KAAK,QAAQ,CAAC,CAAC,OAAO,EAAE,CAAC,YAAY,CAAC;QACtC,KAAK,OAAO,CAAC,CAAC,OA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IAAM,MAAM,GAAG,YAAY,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;IAE9D,6BACO,MAAM,KACT,IAAI,EAAE;YACF,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC,oBAAoB,EAAE,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC;QAC/D,CAAC,IACH;AACN,CAAC"}
@@ -280,7 +280,7 @@ export function testColorBuffer(gl, type) {
280
280
  var status = gl.checkFramebufferStatus(gl.FRAMEBUFFER);
281
281
  if (status !== gl.FRAMEBUFFER_COMPLETE) {
282
282
  if (isDebugMode) {
283
- console.log("error creating framebuffer for '" + type + "'");
283
+ console.log("error creating framebuffer for '".concat(type, "'"));
284
284
  }
285
285
  return false;
286
286
  }
@@ -299,7 +299,7 @@ export function testColorBuffer(gl, type) {
299
299
  gl.readPixels(0, 0, 1, 1, gl.RGBA, gl.UNSIGNED_BYTE, pixel);
300
300
  if (pixel[0] !== 0 || pixel[1] < 248 || pixel[2] < 248 || pixel[3] < 254) {
301
301
  if (isDebugMode) {
302
- console.log("not able to actually render to '" + type + "' texture");
302
+ console.log("not able to actually render to '".concat(type, "' texture"));
303
303
  }
304
304
  return false;
305
305
  }
@@ -311,7 +311,7 @@ export function testColorBuffer(gl, type) {
311
311
  var error = gl.getError();
312
312
  if (error) {
313
313
  if (isDebugMode) {
314
- console.log("error reading float pixels: '" + getErrorDescription(gl, error) + "'");
314
+ console.log("error reading float pixels: '".concat(getErrorDescription(gl, error), "'"));
315
315
  }
316
316
  return false;
317
317
  }