molstar 4.0.1 → 4.2.0
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.
- package/LICENSE +20 -20
- package/README.md +197 -197
- package/build/viewer/embedded.html +52 -52
- package/build/viewer/index.html +129 -129
- package/build/viewer/molstar.js +1 -1
- package/build/viewer/molstar.js.LICENSE.txt +0 -9
- package/lib/apps/docking-viewer/index.html +36 -36
- package/lib/apps/docking-viewer/viewport.d.ts +8 -8
- package/lib/apps/mesoscale-explorer/behavior/camera.d.ts +1 -1
- package/lib/apps/mesoscale-explorer/behavior/select.d.ts +1 -1
- package/lib/apps/mesoscale-explorer/data/cellpack/model.d.ts +2 -2
- package/lib/apps/mesoscale-explorer/data/cellpack/preset.d.ts +1 -1
- package/lib/apps/mesoscale-explorer/data/cellpack/preset.js +5 -5
- package/lib/apps/mesoscale-explorer/data/generic/preset.d.ts +1 -1
- package/lib/apps/mesoscale-explorer/data/generic/preset.js +3 -3
- package/lib/apps/mesoscale-explorer/data/mmcif/preset.d.ts +1 -1
- package/lib/apps/mesoscale-explorer/data/mmcif/preset.js +3 -3
- package/lib/apps/mesoscale-explorer/data/petworld/preset.d.ts +1 -1
- package/lib/apps/mesoscale-explorer/data/petworld/preset.js +3 -3
- package/lib/apps/mesoscale-explorer/data/state.d.ts +19 -10
- package/lib/apps/mesoscale-explorer/data/state.js +14 -2
- package/lib/apps/mesoscale-explorer/index.html +100 -100
- package/lib/apps/mesoscale-explorer/style.scss +33 -33
- package/lib/apps/mesoscale-explorer/ui/entities.d.ts +19 -13
- package/lib/apps/mesoscale-explorer/ui/entities.js +23 -4
- package/lib/apps/viewer/app.d.ts +30 -24
- package/lib/apps/viewer/app.js +6 -6
- package/lib/apps/viewer/embedded.html +52 -52
- package/lib/apps/viewer/index.html +129 -129
- package/lib/cli/chem-comp-dict/create-ions.js +9 -9
- package/lib/cli/chem-comp-dict/create-saccharides.js +9 -9
- package/lib/cli/chem-comp-dict/util.d.ts +112 -112
- package/lib/cli/cifschema/util/cif-dic.js +1 -0
- package/lib/cli/cifschema/util/generate.js +12 -12
- package/lib/cli/lipid-params/index.js +9 -9
- package/lib/cli/mvs/mvs-print-schema.d.ts +1 -0
- package/lib/cli/mvs/mvs-print-schema.js +1 -0
- package/lib/cli/mvs/mvs-render.d.ts +1 -0
- package/lib/cli/mvs/mvs-render.js +1 -0
- package/lib/cli/mvs/mvs-validate.d.ts +1 -0
- package/lib/cli/mvs/mvs-validate.js +1 -0
- package/lib/commonjs/apps/docking-viewer/viewport.d.ts +8 -8
- package/lib/commonjs/apps/mesoscale-explorer/behavior/camera.d.ts +1 -1
- package/lib/commonjs/apps/mesoscale-explorer/behavior/select.d.ts +1 -1
- package/lib/commonjs/apps/mesoscale-explorer/data/cellpack/model.d.ts +2 -2
- package/lib/commonjs/apps/mesoscale-explorer/data/cellpack/preset.d.ts +1 -1
- package/lib/commonjs/apps/mesoscale-explorer/data/cellpack/preset.js +5 -5
- package/lib/commonjs/apps/mesoscale-explorer/data/generic/preset.d.ts +1 -1
- package/lib/commonjs/apps/mesoscale-explorer/data/generic/preset.js +3 -3
- package/lib/commonjs/apps/mesoscale-explorer/data/mmcif/preset.d.ts +1 -1
- package/lib/commonjs/apps/mesoscale-explorer/data/mmcif/preset.js +3 -3
- package/lib/commonjs/apps/mesoscale-explorer/data/petworld/preset.d.ts +1 -1
- package/lib/commonjs/apps/mesoscale-explorer/data/petworld/preset.js +3 -3
- package/lib/commonjs/apps/mesoscale-explorer/data/state.d.ts +19 -10
- package/lib/commonjs/apps/mesoscale-explorer/data/state.js +15 -3
- package/lib/commonjs/apps/mesoscale-explorer/ui/entities.d.ts +19 -13
- package/lib/commonjs/apps/mesoscale-explorer/ui/entities.js +22 -3
- package/lib/commonjs/apps/viewer/app.d.ts +30 -24
- package/lib/commonjs/apps/viewer/app.js +6 -6
- package/lib/commonjs/cli/chem-comp-dict/create-ions.js +9 -9
- package/lib/commonjs/cli/chem-comp-dict/create-saccharides.js +9 -9
- package/lib/commonjs/cli/chem-comp-dict/util.d.ts +112 -112
- package/lib/commonjs/cli/cifschema/util/cif-dic.js +1 -0
- package/lib/commonjs/cli/cifschema/util/generate.js +12 -12
- package/lib/commonjs/cli/lipid-params/index.js +9 -9
- package/lib/commonjs/cli/mvs/mvs-print-schema.d.ts +1 -0
- package/lib/commonjs/cli/mvs/mvs-print-schema.js +1 -0
- package/lib/commonjs/cli/mvs/mvs-render.d.ts +1 -0
- package/lib/commonjs/cli/mvs/mvs-render.js +1 -0
- package/lib/commonjs/cli/mvs/mvs-validate.d.ts +1 -0
- package/lib/commonjs/cli/mvs/mvs-validate.js +1 -0
- package/lib/commonjs/examples/alpha-orbitals/example-data.js +160 -160
- package/lib/commonjs/extensions/alpha-orbitals/gpu/shader.frag.js +136 -136
- package/lib/commonjs/extensions/alpha-orbitals/transforms.d.ts +2 -2
- package/lib/commonjs/extensions/anvil/behavior.d.ts +10 -9
- package/lib/commonjs/extensions/anvil/representation.d.ts +5 -0
- package/lib/commonjs/extensions/assembly-symmetry/behavior.d.ts +2 -1
- package/lib/commonjs/extensions/assembly-symmetry/prop.js +24 -24
- package/lib/commonjs/extensions/assembly-symmetry/representation.d.ts +1 -0
- package/lib/commonjs/extensions/backgrounds/index.d.ts +2 -2
- package/lib/commonjs/extensions/backgrounds/index.js +2 -1
- package/lib/commonjs/extensions/dnatco/behavior.d.ts +1 -1
- package/lib/commonjs/extensions/dnatco/confal-pyramids/behavior.d.ts +10 -10
- package/lib/commonjs/extensions/dnatco/confal-pyramids/behavior.js +5 -5
- package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +3 -0
- package/lib/commonjs/extensions/dnatco/ntc-tube/behavior.d.ts +10 -10
- package/lib/commonjs/extensions/dnatco/ntc-tube/behavior.js +5 -5
- package/lib/commonjs/extensions/dnatco/ntc-tube/representation.d.ts +3 -0
- package/lib/commonjs/extensions/g3d/format.d.ts +6 -6
- package/lib/commonjs/extensions/geo-export/glb-exporter.d.ts +1 -1
- package/lib/commonjs/extensions/geo-export/glb-exporter.js +6 -4
- package/lib/commonjs/extensions/geo-export/index.d.ts +1 -1
- package/lib/commonjs/extensions/geo-export/usdz-exporter.js +41 -41
- package/lib/commonjs/extensions/meshes/mesh-extension.d.ts +2 -3
- package/lib/commonjs/extensions/meshes/mesh-streaming/behavior.d.ts +1 -1
- package/lib/commonjs/extensions/meshes/mesh-streaming/server-info.d.ts +2 -2
- package/lib/commonjs/extensions/model-archive/quality-assessment/behavior.d.ts +9 -9
- package/lib/commonjs/extensions/model-export/index.d.ts +1 -1
- package/lib/commonjs/extensions/mp4-export/index.d.ts +1 -1
- package/lib/commonjs/extensions/mvs/behavior.d.ts +1 -1
- package/lib/commonjs/extensions/mvs/camera.d.ts +2 -0
- package/lib/commonjs/extensions/mvs/camera.js +29 -2
- package/lib/commonjs/extensions/mvs/components/annotation-label/representation.d.ts +4 -0
- package/lib/commonjs/extensions/mvs/components/annotation-label/visual.d.ts +1 -0
- package/lib/commonjs/extensions/mvs/components/custom-label/representation.d.ts +4 -2
- package/lib/commonjs/extensions/mvs/components/custom-label/visual.d.ts +1 -0
- package/lib/commonjs/extensions/mvs/components/formats.d.ts +6 -4
- package/lib/commonjs/extensions/mvs/components/formats.js +2 -1
- package/lib/commonjs/extensions/mvs/load-helpers.d.ts +1 -1
- package/lib/commonjs/extensions/mvs/load.d.ts +2 -0
- package/lib/commonjs/extensions/mvs/load.js +12 -6
- package/lib/commonjs/extensions/mvs/tree/mvs/mvs-builder.d.ts +2 -8
- package/lib/commonjs/extensions/pdbe/structure-quality-report/behavior.d.ts +1 -1
- package/lib/commonjs/extensions/rcsb/validation-report/behavior.d.ts +22 -22
- package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +5 -0
- package/lib/commonjs/extensions/sb-ncbr/partial-charges/behavior.d.ts +1 -1
- package/lib/commonjs/extensions/sb-ncbr/partial-charges/preset.d.ts +4 -4
- package/lib/commonjs/extensions/volumes-and-segmentations/entry-meshes.d.ts +1 -1
- package/lib/commonjs/extensions/volumes-and-segmentations/entry-root.d.ts +5 -5
- package/lib/commonjs/extensions/volumes-and-segmentations/entry-segmentation.d.ts +1 -1
- package/lib/commonjs/extensions/volumes-and-segmentations/entry-state.d.ts +2 -2
- package/lib/commonjs/extensions/volumes-and-segmentations/global-state.d.ts +2 -2
- package/lib/commonjs/extensions/volumes-and-segmentations/helpers.d.ts +1 -1
- package/lib/commonjs/extensions/volumes-and-segmentations/index.d.ts +1 -1
- package/lib/commonjs/extensions/wwpdb/ccd/behavior.d.ts +1 -1
- package/lib/commonjs/extensions/wwpdb/ccd/representation.d.ts +4 -4
- package/lib/commonjs/extensions/zenodo/index.d.ts +1 -1
- package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +14 -2
- package/lib/commonjs/mol-canvas3d/canvas3d.js +2 -2
- package/lib/commonjs/mol-canvas3d/controls/trackball.js +1 -1
- package/lib/commonjs/mol-canvas3d/helper/handle-helper.d.ts +1 -0
- package/lib/commonjs/mol-canvas3d/helper/helper.d.ts +2 -0
- package/lib/commonjs/mol-canvas3d/passes/background.d.ts +6 -1
- package/lib/commonjs/mol-canvas3d/passes/background.js +13 -1
- package/lib/commonjs/mol-canvas3d/passes/bloom.d.ts +37 -0
- package/lib/commonjs/mol-canvas3d/passes/bloom.js +272 -0
- package/lib/commonjs/mol-canvas3d/passes/dpoit.js +4 -2
- package/lib/commonjs/mol-canvas3d/passes/draw.d.ts +11 -7
- package/lib/commonjs/mol-canvas3d/passes/draw.js +29 -3
- package/lib/commonjs/mol-canvas3d/passes/image.d.ts +6 -0
- package/lib/commonjs/mol-canvas3d/passes/postprocessing.d.ts +31 -5
- package/lib/commonjs/mol-canvas3d/passes/postprocessing.js +35 -40
- package/lib/commonjs/mol-geo/geometry/base.d.ts +3 -1
- package/lib/commonjs/mol-geo/geometry/base.js +4 -1
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.js +4 -1
- package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.js +4 -1
- package/lib/commonjs/mol-geo/geometry/emissive-data.d.ts +26 -0
- package/lib/commonjs/mol-geo/geometry/emissive-data.js +80 -0
- package/lib/commonjs/mol-geo/geometry/image/image.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/image/image.js +4 -1
- package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +3 -2
- package/lib/commonjs/mol-geo/geometry/lines/lines.js +4 -1
- package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.js +36 -2
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.js +11 -4
- package/lib/commonjs/mol-geo/geometry/points/points.d.ts +3 -2
- package/lib/commonjs/mol-geo/geometry/points/points.js +4 -1
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +2 -2
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.js +7 -3
- package/lib/commonjs/mol-geo/geometry/text/text.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/text/text.js +4 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.js +34 -2
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +3 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js +14 -4
- package/lib/commonjs/mol-geo/util/location-iterator.d.ts +5 -2
- package/lib/commonjs/mol-geo/util/location-iterator.js +8 -3
- package/lib/commonjs/mol-gl/renderable/cylinders.d.ts +10 -0
- package/lib/commonjs/mol-gl/renderable/direct-volume.d.ts +10 -0
- package/lib/commonjs/mol-gl/renderable/image.d.ts +10 -0
- package/lib/commonjs/mol-gl/renderable/lines.d.ts +10 -0
- package/lib/commonjs/mol-gl/renderable/mesh.d.ts +10 -0
- package/lib/commonjs/mol-gl/renderable/points.d.ts +10 -0
- package/lib/commonjs/mol-gl/renderable/schema.d.ts +24 -1
- package/lib/commonjs/mol-gl/renderable/schema.js +15 -2
- package/lib/commonjs/mol-gl/renderable/spheres.d.ts +10 -0
- package/lib/commonjs/mol-gl/renderable/text.d.ts +10 -0
- package/lib/commonjs/mol-gl/renderable/texture-mesh.d.ts +10 -0
- package/lib/commonjs/mol-gl/renderable.d.ts +1 -1
- package/lib/commonjs/mol-gl/renderable.js +2 -2
- package/lib/commonjs/mol-gl/renderer.d.ts +2 -1
- package/lib/commonjs/mol-gl/renderer.js +58 -49
- package/lib/commonjs/mol-gl/scene.d.ts +3 -1
- package/lib/commonjs/mol-gl/scene.js +26 -1
- package/lib/commonjs/mol-gl/shader/background.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/background.frag.js +95 -94
- package/lib/commonjs/mol-gl/shader/background.vert.js +11 -11
- package/lib/commonjs/mol-gl/shader/blend-back-dpoit.frag.js +13 -13
- package/lib/commonjs/mol-gl/shader/bloom/blur.frag.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/bloom/blur.frag.js +32 -0
- package/lib/commonjs/mol-gl/shader/bloom/composite.frag.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/bloom/composite.frag.js +37 -0
- package/lib/commonjs/mol-gl/shader/bloom/luminosity.frag.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/bloom/luminosity.frag.js +56 -0
- package/lib/commonjs/mol-gl/shader/cas.frag.js +144 -144
- package/lib/commonjs/mol-gl/shader/chunks/apply-fog.glsl.js +31 -31
- package/lib/commonjs/mol-gl/shader/chunks/apply-interior-color.glsl.js +12 -12
- package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.js +78 -70
- package/lib/commonjs/mol-gl/shader/chunks/apply-marker-color.glsl.js +16 -16
- package/lib/commonjs/mol-gl/shader/chunks/assign-clipping-varying.glsl.js +8 -8
- package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.js +140 -112
- package/lib/commonjs/mol-gl/shader/chunks/assign-group.glsl.js +6 -6
- package/lib/commonjs/mol-gl/shader/chunks/assign-marker-varying.glsl.js +8 -8
- package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.js +112 -123
- package/lib/commonjs/mol-gl/shader/chunks/assign-position.glsl.js +14 -14
- package/lib/commonjs/mol-gl/shader/chunks/assign-size.glsl.js +18 -18
- package/lib/commonjs/mol-gl/shader/chunks/check-picking-alpha.glsl.js +12 -12
- package/lib/commonjs/mol-gl/shader/chunks/check-transparency.glsl.d.ts +1 -0
- package/lib/commonjs/mol-gl/shader/chunks/check-transparency.glsl.js +20 -0
- package/lib/commonjs/mol-gl/shader/chunks/clip-instance.glsl.js +7 -7
- package/lib/commonjs/mol-gl/shader/chunks/clip-pixel.glsl.js +5 -5
- package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.js +60 -51
- package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.js +122 -92
- package/lib/commonjs/mol-gl/shader/chunks/common-clip.glsl.js +104 -104
- package/lib/commonjs/mol-gl/shader/chunks/common-frag-params.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/common-frag-params.glsl.js +150 -149
- package/lib/commonjs/mol-gl/shader/chunks/common-vert-params.glsl.js +61 -61
- package/lib/commonjs/mol-gl/shader/chunks/common.glsl.js +234 -234
- package/lib/commonjs/mol-gl/shader/chunks/dpoit-write.glsl.js +62 -62
- package/lib/commonjs/mol-gl/shader/chunks/fade-lod.glsl.js +42 -42
- package/lib/commonjs/mol-gl/shader/chunks/float-to-rgba.glsl.js +39 -39
- package/lib/commonjs/mol-gl/shader/chunks/light-frag-params.glsl.js +127 -127
- package/lib/commonjs/mol-gl/shader/chunks/matrix-scale.glsl.js +5 -5
- package/lib/commonjs/mol-gl/shader/chunks/normal-frag-params.glsl.js +2 -2
- package/lib/commonjs/mol-gl/shader/chunks/read-from-texture.glsl.js +14 -14
- package/lib/commonjs/mol-gl/shader/chunks/rgba-to-float.glsl.js +84 -84
- package/lib/commonjs/mol-gl/shader/chunks/size-vert-params.glsl.js +11 -11
- package/lib/commonjs/mol-gl/shader/chunks/texture3d-from-1d-trilinear.glsl.js +23 -23
- package/lib/commonjs/mol-gl/shader/chunks/texture3d-from-2d-linear.glsl.js +17 -17
- package/lib/commonjs/mol-gl/shader/chunks/texture3d-from-2d-nearest.glsl.js +8 -8
- package/lib/commonjs/mol-gl/shader/chunks/wboit-write.glsl.js +25 -25
- package/lib/commonjs/mol-gl/shader/compose.frag.js +12 -12
- package/lib/commonjs/mol-gl/shader/compute/color-smoothing/accumulate.frag.js +23 -23
- package/lib/commonjs/mol-gl/shader/compute/color-smoothing/accumulate.vert.js +43 -43
- package/lib/commonjs/mol-gl/shader/compute/color-smoothing/normalize.frag.js +15 -15
- package/lib/commonjs/mol-gl/shader/copy.frag.js +11 -11
- package/lib/commonjs/mol-gl/shader/cylinders.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/cylinders.frag.js +267 -264
- package/lib/commonjs/mol-gl/shader/cylinders.vert.js +89 -89
- package/lib/commonjs/mol-gl/shader/depth-merge.frag.js +23 -23
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.js +362 -356
- package/lib/commonjs/mol-gl/shader/direct-volume.vert.js +41 -41
- package/lib/commonjs/mol-gl/shader/evaluate-dpoit.frag.js +10 -10
- package/lib/commonjs/mol-gl/shader/evaluate-wboit.frag.js +17 -17
- package/lib/commonjs/mol-gl/shader/fxaa.frag.js +228 -228
- package/lib/commonjs/mol-gl/shader/gaussian-density.frag.js +49 -49
- package/lib/commonjs/mol-gl/shader/gaussian-density.vert.js +27 -27
- package/lib/commonjs/mol-gl/shader/hi-z.frag.js +18 -18
- package/lib/commonjs/mol-gl/shader/histogram-pyramid/reduction.frag.js +58 -58
- package/lib/commonjs/mol-gl/shader/histogram-pyramid/sum.frag.js +19 -19
- package/lib/commonjs/mol-gl/shader/image.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/image.frag.js +170 -161
- package/lib/commonjs/mol-gl/shader/image.vert.js +21 -21
- package/lib/commonjs/mol-gl/shader/lines.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/lines.frag.js +43 -40
- package/lib/commonjs/mol-gl/shader/lines.vert.js +117 -117
- package/lib/commonjs/mol-gl/shader/marching-cubes/active-voxels.frag.js +70 -70
- package/lib/commonjs/mol-gl/shader/marching-cubes/isosurface.frag.js +311 -311
- package/lib/commonjs/mol-gl/shader/marking/edge.frag.js +28 -28
- package/lib/commonjs/mol-gl/shader/marking/overlay.frag.js +26 -26
- package/lib/commonjs/mol-gl/shader/mesh.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/mesh.frag.js +66 -63
- package/lib/commonjs/mol-gl/shader/mesh.vert.js +49 -49
- package/lib/commonjs/mol-gl/shader/outlines.frag.js +95 -95
- package/lib/commonjs/mol-gl/shader/points.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/points.frag.js +60 -56
- package/lib/commonjs/mol-gl/shader/points.vert.js +38 -38
- package/lib/commonjs/mol-gl/shader/postprocessing.frag.js +150 -150
- package/lib/commonjs/mol-gl/shader/quad.vert.js +10 -10
- package/lib/commonjs/mol-gl/shader/shadows.frag.js +123 -123
- package/lib/commonjs/mol-gl/shader/smaa/blend.frag.js +56 -56
- package/lib/commonjs/mol-gl/shader/smaa/blend.vert.js +25 -25
- package/lib/commonjs/mol-gl/shader/smaa/edges.frag.js +66 -66
- package/lib/commonjs/mol-gl/shader/smaa/edges.vert.js +26 -26
- package/lib/commonjs/mol-gl/shader/smaa/weights.frag.js +206 -206
- package/lib/commonjs/mol-gl/shader/smaa/weights.vert.js +32 -32
- package/lib/commonjs/mol-gl/shader/spheres.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/spheres.frag.js +149 -143
- package/lib/commonjs/mol-gl/shader/spheres.vert.js +132 -132
- package/lib/commonjs/mol-gl/shader/ssao-blur.frag.d.ts +3 -2
- package/lib/commonjs/mol-gl/shader/ssao-blur.frag.js +99 -100
- package/lib/commonjs/mol-gl/shader/ssao.frag.d.ts +3 -2
- package/lib/commonjs/mol-gl/shader/ssao.frag.js +213 -174
- package/lib/commonjs/mol-gl/shader/text.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/text.frag.js +86 -84
- package/lib/commonjs/mol-gl/shader/text.vert.js +85 -85
- package/lib/commonjs/mol-gl/shader/util/grid3d-template.frag.js +46 -46
- package/lib/commonjs/mol-gl/shader-code.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader-code.js +24 -18
- package/lib/commonjs/mol-gl/webgl/compat.js +12 -12
- package/lib/commonjs/mol-gl/webgl/render-item.d.ts +3 -2
- package/lib/commonjs/mol-gl/webgl/render-item.js +1 -1
- package/lib/commonjs/mol-io/common/binary-cif/array-encoder.d.ts +1 -1
- package/lib/commonjs/mol-io/common/binary-cif/array-encoder.js +5 -2
- package/lib/commonjs/mol-io/reader/cif/schema/bird.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/bird.js +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/ccd-extras.d.ts +4 -4
- package/lib/commonjs/mol-io/reader/cif/schema/ccd.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/ccd.js +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +1 -1
- package/lib/commonjs/mol-io/reader/cif.d.ts +1 -1
- package/lib/commonjs/mol-io/writer/cif/encoder/binary.d.ts +1 -1
- package/lib/commonjs/mol-io/writer/cif/encoder/binary.js +10 -2
- package/lib/commonjs/mol-math/linear-algebra/3d/mat3.d.ts +3 -1
- package/lib/commonjs/mol-math/linear-algebra/3d/mat3.js +8 -1
- package/lib/commonjs/mol-math/linear-algebra/3d/vec3.d.ts +6 -0
- package/lib/commonjs/mol-math/linear-algebra/3d/vec3.js +20 -0
- package/lib/commonjs/mol-model/structure/model/types/saccharides.js +1 -1
- package/lib/commonjs/mol-model/structure/structure/properties.d.ts +2 -2
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/data.d.ts +9 -6
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/data.js +1 -1
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/inter-compute.d.ts +1 -1
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/inter-compute.js +7 -4
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/intra-compute.d.ts +1 -1
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/intra-compute.js +10 -6
- package/lib/commonjs/mol-model/structure/structure/unit.d.ts +2 -2
- package/lib/commonjs/mol-model/structure/structure/unit.js +5 -2
- package/lib/commonjs/mol-model-formats/shape/ply.d.ts +2 -0
- package/lib/commonjs/mol-model-formats/structure/basic/schema.d.ts +118 -118
- package/lib/commonjs/mol-model-formats/structure/common/component.d.ts +2 -2
- package/lib/commonjs/mol-model-formats/structure/property/bonds/index-pair.d.ts +4 -1
- package/lib/commonjs/mol-model-formats/structure/property/bonds/index-pair.js +6 -3
- package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +3 -0
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +4 -0
- package/lib/commonjs/mol-plugin/behavior/behavior.d.ts +6 -6
- package/lib/commonjs/mol-plugin/behavior/dynamic/camera.d.ts +3 -3
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/computed/accessible-surface-area.d.ts +1 -1
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/computed/interactions.d.ts +1 -1
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/computed/secondary-structure.d.ts +1 -1
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/computed/valence-model.d.ts +1 -1
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/integrative/cross-link-restraint.d.ts +1 -1
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/sequence/sifts-mapping.d.ts +1 -1
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/structure-info.d.ts +1 -1
- package/lib/commonjs/mol-plugin/behavior/dynamic/representation.d.ts +4 -4
- package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +1 -1
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/behavior.d.ts +2 -2
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -2
- package/lib/commonjs/mol-plugin/commands.d.ts +1 -208
- package/lib/commonjs/mol-plugin/config.d.ts +5 -0
- package/lib/commonjs/mol-plugin/context.d.ts +2 -2
- package/lib/commonjs/mol-plugin/state.d.ts +6 -6
- package/lib/commonjs/mol-plugin-state/actions/structure.d.ts +3 -3
- package/lib/commonjs/mol-plugin-state/actions/structure.js +3 -5
- package/lib/commonjs/mol-plugin-state/actions/volume.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/builder/data.d.ts +4 -4
- package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +27 -27
- package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy.d.ts +5 -5
- package/lib/commonjs/mol-plugin-state/builder/structure/representation-preset.d.ts +42 -42
- package/lib/commonjs/mol-plugin-state/builder/structure/representation.d.ts +4 -4
- package/lib/commonjs/mol-plugin-state/builder/structure.d.ts +7 -7
- package/lib/commonjs/mol-plugin-state/formats/coordinates.d.ts +8 -8
- package/lib/commonjs/mol-plugin-state/formats/shape.d.ts +8 -8
- package/lib/commonjs/mol-plugin-state/formats/topology.d.ts +12 -12
- package/lib/commonjs/mol-plugin-state/formats/volume.d.ts +33 -33
- package/lib/commonjs/mol-plugin-state/helpers/structure-emissive.d.ts +12 -0
- package/lib/commonjs/mol-plugin-state/helpers/structure-emissive.js +69 -0
- package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/manager/structure/component.d.ts +3 -1
- package/lib/commonjs/mol-plugin-state/manager/structure/component.js +9 -1
- package/lib/commonjs/mol-plugin-state/manager/structure/measurement.d.ts +341 -9
- package/lib/commonjs/mol-plugin-state/manager/structure/measurement.js +32 -19
- package/lib/commonjs/mol-plugin-state/manager/structure/selection.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/manager/volume/hierarchy.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/objects.d.ts +32 -32
- package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +33 -8
- package/lib/commonjs/mol-plugin-state/transforms/representation.js +121 -6
- package/lib/commonjs/mol-plugin-state/transforms/shape.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/transforms/volume.d.ts +16 -8
- package/lib/commonjs/mol-plugin-state/transforms/volume.js +51 -2
- package/lib/commonjs/mol-plugin-ui/state/apply-action.d.ts +2 -2
- package/lib/commonjs/mol-plugin-ui/state/update-transform.d.ts +3 -3
- package/lib/commonjs/mol-repr/representation.d.ts +6 -2
- package/lib/commonjs/mol-repr/representation.js +12 -2
- package/lib/commonjs/mol-repr/shape/loci/angle.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/common.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/dihedral.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/distance.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/label.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/plane.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/complex-representation.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/complex-representation.js +7 -1
- package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +8 -1
- package/lib/commonjs/mol-repr/structure/complex-visual.js +5 -1
- package/lib/commonjs/mol-repr/structure/params.d.ts +8 -0
- package/lib/commonjs/mol-repr/structure/registry.d.ts +14 -0
- package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/gaussian-volume.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/label.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/line.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/point.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/units-representation.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/units-representation.js +9 -3
- package/lib/commonjs/mol-repr/structure/units-visual.d.ts +9 -1
- package/lib/commonjs/mol-repr/structure/units-visual.js +5 -1
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-line.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/element-cross.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/element-point.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/gaussian-density-volume.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.js +1 -1
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/label-text.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-atomic-bond.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-atomic-element.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-atomic-ring-fill.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/visual.d.ts +6 -1
- package/lib/commonjs/mol-repr/visual.js +55 -1
- package/lib/commonjs/mol-repr/volume/direct-volume.d.ts +3 -0
- package/lib/commonjs/mol-repr/volume/isosurface.d.ts +6 -0
- package/lib/commonjs/mol-repr/volume/registry.d.ts +4 -0
- package/lib/commonjs/mol-repr/volume/representation.d.ts +2 -1
- package/lib/commonjs/mol-repr/volume/representation.js +9 -2
- package/lib/commonjs/mol-repr/volume/segment.d.ts +5 -0
- package/lib/commonjs/mol-repr/volume/slice.d.ts +3 -0
- package/lib/commonjs/mol-script/language/symbol-table/core.d.ts +3 -3
- package/lib/commonjs/mol-state/tree/immutable.d.ts +1 -1
- package/lib/commonjs/mol-state/tree/transient.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/external-volume.d.ts +3 -1
- package/lib/commonjs/mol-theme/color/external-volume.js +8 -2
- package/lib/commonjs/mol-theme/color.d.ts +1 -0
- package/lib/commonjs/mol-theme/emissive.d.ts +40 -0
- package/lib/commonjs/mol-theme/emissive.js +137 -0
- package/lib/commonjs/mol-theme/substance.d.ts +1 -1
- package/lib/commonjs/mol-theme/substance.js +2 -2
- package/lib/commonjs/mol-theme/transparency.d.ts +0 -1
- package/lib/commonjs/mol-util/input/input-observer.js +2 -0
- package/lib/commonjs/mol-util/set.d.ts +1 -1
- package/lib/commonjs/mol-util/set.js +17 -1
- package/lib/commonjs/servers/common/swagger-ui/indexTemplate.js +66 -66
- package/lib/commonjs/servers/volume/config.js +5 -5
- package/lib/examples/alpha-orbitals/example-data.js +160 -160
- package/lib/examples/alpha-orbitals/index.html +72 -72
- package/lib/examples/basic-wrapper/index.html +137 -137
- package/lib/examples/lighting/index.html +88 -88
- package/lib/examples/proteopedia-wrapper/index.html +236 -236
- package/lib/extensions/alpha-orbitals/gpu/shader.frag.js +136 -136
- package/lib/extensions/alpha-orbitals/transforms.d.ts +2 -2
- package/lib/extensions/anvil/behavior.d.ts +10 -9
- package/lib/extensions/anvil/representation.d.ts +5 -0
- package/lib/extensions/assembly-symmetry/behavior.d.ts +2 -1
- package/lib/extensions/assembly-symmetry/prop.js +24 -24
- package/lib/extensions/assembly-symmetry/representation.d.ts +1 -0
- package/lib/extensions/backgrounds/index.d.ts +2 -2
- package/lib/extensions/backgrounds/index.js +2 -1
- package/lib/extensions/dnatco/behavior.d.ts +1 -1
- package/lib/extensions/dnatco/confal-pyramids/behavior.d.ts +10 -10
- package/lib/extensions/dnatco/confal-pyramids/behavior.js +5 -5
- package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +3 -0
- package/lib/extensions/dnatco/ntc-tube/behavior.d.ts +10 -10
- package/lib/extensions/dnatco/ntc-tube/behavior.js +5 -5
- package/lib/extensions/dnatco/ntc-tube/representation.d.ts +3 -0
- package/lib/extensions/g3d/format.d.ts +6 -6
- package/lib/extensions/geo-export/glb-exporter.d.ts +1 -1
- package/lib/extensions/geo-export/glb-exporter.js +6 -4
- package/lib/extensions/geo-export/index.d.ts +1 -1
- package/lib/extensions/geo-export/usdz-exporter.js +41 -41
- package/lib/extensions/meshes/mesh-extension.d.ts +2 -3
- package/lib/extensions/meshes/mesh-streaming/behavior.d.ts +1 -1
- package/lib/extensions/meshes/mesh-streaming/server-info.d.ts +2 -2
- package/lib/extensions/model-archive/quality-assessment/behavior.d.ts +9 -9
- package/lib/extensions/model-export/index.d.ts +1 -1
- package/lib/extensions/mp4-export/index.d.ts +1 -1
- package/lib/extensions/mvs/behavior.d.ts +1 -1
- package/lib/extensions/mvs/camera.d.ts +2 -0
- package/lib/extensions/mvs/camera.js +27 -1
- package/lib/extensions/mvs/components/annotation-label/representation.d.ts +4 -0
- package/lib/extensions/mvs/components/annotation-label/visual.d.ts +1 -0
- package/lib/extensions/mvs/components/custom-label/representation.d.ts +4 -2
- package/lib/extensions/mvs/components/custom-label/visual.d.ts +1 -0
- package/lib/extensions/mvs/components/formats.d.ts +6 -4
- package/lib/extensions/mvs/components/formats.js +2 -1
- package/lib/extensions/mvs/load-helpers.d.ts +1 -1
- package/lib/extensions/mvs/load.d.ts +2 -0
- package/lib/extensions/mvs/load.js +13 -7
- package/lib/extensions/mvs/tree/mvs/mvs-builder.d.ts +2 -8
- package/lib/extensions/pdbe/structure-quality-report/behavior.d.ts +1 -1
- package/lib/extensions/rcsb/validation-report/behavior.d.ts +22 -22
- package/lib/extensions/rcsb/validation-report/representation.d.ts +5 -0
- package/lib/extensions/sb-ncbr/partial-charges/behavior.d.ts +1 -1
- package/lib/extensions/sb-ncbr/partial-charges/preset.d.ts +4 -4
- package/lib/extensions/volumes-and-segmentations/entry-meshes.d.ts +1 -1
- package/lib/extensions/volumes-and-segmentations/entry-root.d.ts +5 -5
- package/lib/extensions/volumes-and-segmentations/entry-segmentation.d.ts +1 -1
- package/lib/extensions/volumes-and-segmentations/entry-state.d.ts +2 -2
- package/lib/extensions/volumes-and-segmentations/global-state.d.ts +2 -2
- package/lib/extensions/volumes-and-segmentations/helpers.d.ts +1 -1
- package/lib/extensions/volumes-and-segmentations/index.d.ts +1 -1
- package/lib/extensions/wwpdb/ccd/behavior.d.ts +1 -1
- package/lib/extensions/wwpdb/ccd/representation.d.ts +4 -4
- package/lib/extensions/zenodo/index.d.ts +1 -1
- package/lib/mol-canvas3d/canvas3d.d.ts +14 -2
- package/lib/mol-canvas3d/canvas3d.js +2 -2
- package/lib/mol-canvas3d/controls/trackball.js +1 -1
- package/lib/mol-canvas3d/helper/handle-helper.d.ts +1 -0
- package/lib/mol-canvas3d/helper/helper.d.ts +2 -0
- package/lib/mol-canvas3d/passes/background.d.ts +6 -1
- package/lib/mol-canvas3d/passes/background.js +14 -2
- package/lib/mol-canvas3d/passes/bloom.d.ts +37 -0
- package/lib/mol-canvas3d/passes/bloom.js +268 -0
- package/lib/mol-canvas3d/passes/dpoit.js +4 -2
- package/lib/mol-canvas3d/passes/draw.d.ts +11 -7
- package/lib/mol-canvas3d/passes/draw.js +30 -4
- package/lib/mol-canvas3d/passes/image.d.ts +6 -0
- package/lib/mol-canvas3d/passes/postprocessing.d.ts +31 -5
- package/lib/mol-canvas3d/passes/postprocessing.js +33 -39
- package/lib/mol-geo/geometry/base.d.ts +3 -1
- package/lib/mol-geo/geometry/base.js +4 -1
- package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +2 -1
- package/lib/mol-geo/geometry/cylinders/cylinders.js +4 -1
- package/lib/mol-geo/geometry/direct-volume/direct-volume.d.ts +2 -1
- package/lib/mol-geo/geometry/direct-volume/direct-volume.js +4 -1
- package/lib/mol-geo/geometry/emissive-data.d.ts +26 -0
- package/lib/mol-geo/geometry/emissive-data.js +72 -0
- package/lib/mol-geo/geometry/image/image.d.ts +2 -1
- package/lib/mol-geo/geometry/image/image.js +4 -1
- package/lib/mol-geo/geometry/lines/lines.d.ts +3 -2
- package/lib/mol-geo/geometry/lines/lines.js +4 -1
- package/lib/mol-geo/geometry/mesh/color-smoothing.d.ts +2 -1
- package/lib/mol-geo/geometry/mesh/color-smoothing.js +34 -1
- package/lib/mol-geo/geometry/mesh/mesh.d.ts +2 -1
- package/lib/mol-geo/geometry/mesh/mesh.js +11 -4
- package/lib/mol-geo/geometry/points/points.d.ts +3 -2
- package/lib/mol-geo/geometry/points/points.js +4 -1
- package/lib/mol-geo/geometry/spheres/spheres.d.ts +2 -2
- package/lib/mol-geo/geometry/spheres/spheres.js +7 -3
- package/lib/mol-geo/geometry/text/text.d.ts +2 -1
- package/lib/mol-geo/geometry/text/text.js +4 -1
- package/lib/mol-geo/geometry/texture-mesh/color-smoothing.d.ts +2 -1
- package/lib/mol-geo/geometry/texture-mesh/color-smoothing.js +32 -1
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +3 -1
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js +14 -4
- package/lib/mol-geo/util/location-iterator.d.ts +5 -2
- package/lib/mol-geo/util/location-iterator.js +8 -3
- package/lib/mol-gl/renderable/cylinders.d.ts +10 -0
- package/lib/mol-gl/renderable/direct-volume.d.ts +10 -0
- package/lib/mol-gl/renderable/image.d.ts +10 -0
- package/lib/mol-gl/renderable/lines.d.ts +10 -0
- package/lib/mol-gl/renderable/mesh.d.ts +10 -0
- package/lib/mol-gl/renderable/points.d.ts +10 -0
- package/lib/mol-gl/renderable/schema.d.ts +24 -1
- package/lib/mol-gl/renderable/schema.js +14 -1
- package/lib/mol-gl/renderable/spheres.d.ts +10 -0
- package/lib/mol-gl/renderable/text.d.ts +10 -0
- package/lib/mol-gl/renderable/texture-mesh.d.ts +10 -0
- package/lib/mol-gl/renderable.d.ts +1 -1
- package/lib/mol-gl/renderable.js +2 -2
- package/lib/mol-gl/renderer.d.ts +2 -1
- package/lib/mol-gl/renderer.js +58 -49
- package/lib/mol-gl/scene.d.ts +3 -1
- package/lib/mol-gl/scene.js +26 -1
- package/lib/mol-gl/shader/background.frag.d.ts +1 -1
- package/lib/mol-gl/shader/background.frag.js +95 -94
- package/lib/mol-gl/shader/background.vert.js +11 -11
- package/lib/mol-gl/shader/blend-back-dpoit.frag.js +13 -13
- package/lib/mol-gl/shader/bloom/blur.frag.d.ts +1 -0
- package/lib/mol-gl/shader/bloom/blur.frag.js +29 -0
- package/lib/mol-gl/shader/bloom/composite.frag.d.ts +1 -0
- package/lib/mol-gl/shader/bloom/composite.frag.js +34 -0
- package/lib/mol-gl/shader/bloom/luminosity.frag.d.ts +1 -0
- package/lib/mol-gl/shader/bloom/luminosity.frag.js +53 -0
- package/lib/mol-gl/shader/cas.frag.js +144 -144
- package/lib/mol-gl/shader/chunks/apply-fog.glsl.js +31 -31
- package/lib/mol-gl/shader/chunks/apply-interior-color.glsl.js +12 -12
- package/lib/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +2 -2
- package/lib/mol-gl/shader/chunks/apply-light-color.glsl.js +78 -70
- package/lib/mol-gl/shader/chunks/apply-marker-color.glsl.js +16 -16
- package/lib/mol-gl/shader/chunks/assign-clipping-varying.glsl.js +8 -8
- package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.js +140 -112
- package/lib/mol-gl/shader/chunks/assign-group.glsl.js +6 -6
- package/lib/mol-gl/shader/chunks/assign-marker-varying.glsl.js +8 -8
- package/lib/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/assign-material-color.glsl.js +112 -123
- package/lib/mol-gl/shader/chunks/assign-position.glsl.js +14 -14
- package/lib/mol-gl/shader/chunks/assign-size.glsl.js +18 -18
- package/lib/mol-gl/shader/chunks/check-picking-alpha.glsl.js +12 -12
- package/lib/mol-gl/shader/chunks/check-transparency.glsl.d.ts +1 -0
- package/lib/mol-gl/shader/chunks/check-transparency.glsl.js +17 -0
- package/lib/mol-gl/shader/chunks/clip-instance.glsl.js +7 -7
- package/lib/mol-gl/shader/chunks/clip-pixel.glsl.js +5 -5
- package/lib/mol-gl/shader/chunks/color-frag-params.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/color-frag-params.glsl.js +60 -51
- package/lib/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/color-vert-params.glsl.js +122 -92
- package/lib/mol-gl/shader/chunks/common-clip.glsl.js +104 -104
- package/lib/mol-gl/shader/chunks/common-frag-params.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/common-frag-params.glsl.js +150 -149
- package/lib/mol-gl/shader/chunks/common-vert-params.glsl.js +61 -61
- package/lib/mol-gl/shader/chunks/common.glsl.js +234 -234
- package/lib/mol-gl/shader/chunks/dpoit-write.glsl.js +62 -62
- package/lib/mol-gl/shader/chunks/fade-lod.glsl.js +42 -42
- package/lib/mol-gl/shader/chunks/float-to-rgba.glsl.js +39 -39
- package/lib/mol-gl/shader/chunks/light-frag-params.glsl.js +127 -127
- package/lib/mol-gl/shader/chunks/matrix-scale.glsl.js +5 -5
- package/lib/mol-gl/shader/chunks/normal-frag-params.glsl.js +2 -2
- package/lib/mol-gl/shader/chunks/read-from-texture.glsl.js +14 -14
- package/lib/mol-gl/shader/chunks/rgba-to-float.glsl.js +84 -84
- package/lib/mol-gl/shader/chunks/size-vert-params.glsl.js +11 -11
- package/lib/mol-gl/shader/chunks/texture3d-from-1d-trilinear.glsl.js +23 -23
- package/lib/mol-gl/shader/chunks/texture3d-from-2d-linear.glsl.js +17 -17
- package/lib/mol-gl/shader/chunks/texture3d-from-2d-nearest.glsl.js +8 -8
- package/lib/mol-gl/shader/chunks/wboit-write.glsl.js +25 -25
- package/lib/mol-gl/shader/compose.frag.js +12 -12
- package/lib/mol-gl/shader/compute/color-smoothing/accumulate.frag.js +23 -23
- package/lib/mol-gl/shader/compute/color-smoothing/accumulate.vert.js +43 -43
- package/lib/mol-gl/shader/compute/color-smoothing/normalize.frag.js +15 -15
- package/lib/mol-gl/shader/copy.frag.js +11 -11
- package/lib/mol-gl/shader/cylinders.frag.d.ts +2 -2
- package/lib/mol-gl/shader/cylinders.frag.js +267 -264
- package/lib/mol-gl/shader/cylinders.vert.js +89 -89
- package/lib/mol-gl/shader/depth-merge.frag.js +23 -23
- package/lib/mol-gl/shader/direct-volume.frag.d.ts +1 -1
- package/lib/mol-gl/shader/direct-volume.frag.js +362 -356
- package/lib/mol-gl/shader/direct-volume.vert.js +41 -41
- package/lib/mol-gl/shader/evaluate-dpoit.frag.js +10 -10
- package/lib/mol-gl/shader/evaluate-wboit.frag.js +17 -17
- package/lib/mol-gl/shader/fxaa.frag.js +228 -228
- package/lib/mol-gl/shader/gaussian-density.frag.js +49 -49
- package/lib/mol-gl/shader/gaussian-density.vert.js +27 -27
- package/lib/mol-gl/shader/hi-z.frag.js +18 -18
- package/lib/mol-gl/shader/histogram-pyramid/reduction.frag.js +58 -58
- package/lib/mol-gl/shader/histogram-pyramid/sum.frag.js +19 -19
- package/lib/mol-gl/shader/image.frag.d.ts +2 -2
- package/lib/mol-gl/shader/image.frag.js +170 -161
- package/lib/mol-gl/shader/image.vert.js +21 -21
- package/lib/mol-gl/shader/lines.frag.d.ts +2 -2
- package/lib/mol-gl/shader/lines.frag.js +43 -40
- package/lib/mol-gl/shader/lines.vert.js +117 -117
- package/lib/mol-gl/shader/marching-cubes/active-voxels.frag.js +70 -70
- package/lib/mol-gl/shader/marching-cubes/isosurface.frag.js +311 -311
- package/lib/mol-gl/shader/marking/edge.frag.js +28 -28
- package/lib/mol-gl/shader/marking/overlay.frag.js +26 -26
- package/lib/mol-gl/shader/mesh.frag.d.ts +2 -2
- package/lib/mol-gl/shader/mesh.frag.js +66 -63
- package/lib/mol-gl/shader/mesh.vert.js +49 -49
- package/lib/mol-gl/shader/outlines.frag.js +95 -95
- package/lib/mol-gl/shader/points.frag.d.ts +2 -2
- package/lib/mol-gl/shader/points.frag.js +60 -56
- package/lib/mol-gl/shader/points.vert.js +38 -38
- package/lib/mol-gl/shader/postprocessing.frag.js +150 -150
- package/lib/mol-gl/shader/quad.vert.js +10 -10
- package/lib/mol-gl/shader/shadows.frag.js +123 -123
- package/lib/mol-gl/shader/smaa/blend.frag.js +56 -56
- package/lib/mol-gl/shader/smaa/blend.vert.js +25 -25
- package/lib/mol-gl/shader/smaa/edges.frag.js +66 -66
- package/lib/mol-gl/shader/smaa/edges.vert.js +26 -26
- package/lib/mol-gl/shader/smaa/weights.frag.js +206 -206
- package/lib/mol-gl/shader/smaa/weights.vert.js +32 -32
- package/lib/mol-gl/shader/spheres.frag.d.ts +2 -2
- package/lib/mol-gl/shader/spheres.frag.js +149 -143
- package/lib/mol-gl/shader/spheres.vert.js +132 -132
- package/lib/mol-gl/shader/ssao-blur.frag.d.ts +3 -2
- package/lib/mol-gl/shader/ssao-blur.frag.js +99 -100
- package/lib/mol-gl/shader/ssao.frag.d.ts +3 -2
- package/lib/mol-gl/shader/ssao.frag.js +213 -174
- package/lib/mol-gl/shader/text.frag.d.ts +2 -2
- package/lib/mol-gl/shader/text.frag.js +86 -84
- package/lib/mol-gl/shader/text.vert.js +85 -85
- package/lib/mol-gl/shader/util/grid3d-template.frag.js +46 -46
- package/lib/mol-gl/shader-code.d.ts +1 -1
- package/lib/mol-gl/shader-code.js +24 -18
- package/lib/mol-gl/webgl/compat.js +12 -12
- package/lib/mol-gl/webgl/render-item.d.ts +3 -2
- package/lib/mol-gl/webgl/render-item.js +1 -1
- package/lib/mol-io/common/binary-cif/array-encoder.d.ts +1 -1
- package/lib/mol-io/common/binary-cif/array-encoder.js +5 -2
- package/lib/mol-io/reader/cif/schema/bird.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema/bird.js +1 -1
- package/lib/mol-io/reader/cif/schema/ccd-extras.d.ts +4 -4
- package/lib/mol-io/reader/cif/schema/ccd.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema/ccd.js +1 -1
- package/lib/mol-io/reader/cif/schema/mmcif.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema/mmcif.js +1 -1
- package/lib/mol-io/reader/cif.d.ts +1 -1
- package/lib/mol-io/writer/cif/encoder/binary.d.ts +1 -1
- package/lib/mol-io/writer/cif/encoder/binary.js +10 -2
- package/lib/mol-math/linear-algebra/3d/mat3.d.ts +3 -1
- package/lib/mol-math/linear-algebra/3d/mat3.js +8 -1
- package/lib/mol-math/linear-algebra/3d/vec3.d.ts +6 -0
- package/lib/mol-math/linear-algebra/3d/vec3.js +20 -0
- package/lib/mol-model/structure/model/types/saccharides.js +1 -1
- package/lib/mol-model/structure/structure/properties.d.ts +2 -2
- package/lib/mol-model/structure/structure/unit/bonds/data.d.ts +9 -6
- package/lib/mol-model/structure/structure/unit/bonds/data.js +1 -1
- package/lib/mol-model/structure/structure/unit/bonds/inter-compute.d.ts +1 -1
- package/lib/mol-model/structure/structure/unit/bonds/inter-compute.js +7 -4
- package/lib/mol-model/structure/structure/unit/bonds/intra-compute.d.ts +1 -1
- package/lib/mol-model/structure/structure/unit/bonds/intra-compute.js +10 -6
- package/lib/mol-model/structure/structure/unit.d.ts +2 -2
- package/lib/mol-model/structure/structure/unit.js +5 -2
- package/lib/mol-model-formats/shape/ply.d.ts +2 -0
- package/lib/mol-model-formats/structure/basic/schema.d.ts +118 -118
- package/lib/mol-model-formats/structure/common/component.d.ts +2 -2
- package/lib/mol-model-formats/structure/property/bonds/index-pair.d.ts +4 -1
- package/lib/mol-model-formats/structure/property/bonds/index-pair.js +6 -3
- package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -0
- package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +1 -0
- package/lib/mol-model-props/computed/representations/interactions.d.ts +3 -0
- package/lib/mol-model-props/integrative/cross-link-restraint/representation.d.ts +4 -0
- package/lib/mol-plugin/behavior/behavior.d.ts +6 -6
- package/lib/mol-plugin/behavior/dynamic/camera.d.ts +3 -3
- package/lib/mol-plugin/behavior/dynamic/custom-props/computed/accessible-surface-area.d.ts +1 -1
- package/lib/mol-plugin/behavior/dynamic/custom-props/computed/interactions.d.ts +1 -1
- package/lib/mol-plugin/behavior/dynamic/custom-props/computed/secondary-structure.d.ts +1 -1
- package/lib/mol-plugin/behavior/dynamic/custom-props/computed/valence-model.d.ts +1 -1
- package/lib/mol-plugin/behavior/dynamic/custom-props/integrative/cross-link-restraint.d.ts +1 -1
- package/lib/mol-plugin/behavior/dynamic/custom-props/sequence/sifts-mapping.d.ts +1 -1
- package/lib/mol-plugin/behavior/dynamic/custom-props/structure-info.d.ts +1 -1
- package/lib/mol-plugin/behavior/dynamic/representation.d.ts +4 -4
- package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +1 -1
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/behavior.d.ts +2 -2
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -2
- package/lib/mol-plugin/commands.d.ts +1 -208
- package/lib/mol-plugin/config.d.ts +5 -0
- package/lib/mol-plugin/context.d.ts +2 -2
- package/lib/mol-plugin/state.d.ts +6 -6
- package/lib/mol-plugin/version.js +2 -2
- package/lib/mol-plugin-state/actions/structure.d.ts +3 -3
- package/lib/mol-plugin-state/actions/structure.js +3 -5
- package/lib/mol-plugin-state/actions/volume.d.ts +1 -1
- package/lib/mol-plugin-state/builder/data.d.ts +4 -4
- package/lib/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +27 -27
- package/lib/mol-plugin-state/builder/structure/hierarchy.d.ts +5 -5
- package/lib/mol-plugin-state/builder/structure/representation-preset.d.ts +42 -42
- package/lib/mol-plugin-state/builder/structure/representation.d.ts +4 -4
- package/lib/mol-plugin-state/builder/structure.d.ts +7 -7
- package/lib/mol-plugin-state/formats/coordinates.d.ts +8 -8
- package/lib/mol-plugin-state/formats/shape.d.ts +8 -8
- package/lib/mol-plugin-state/formats/topology.d.ts +12 -12
- package/lib/mol-plugin-state/formats/volume.d.ts +33 -33
- package/lib/mol-plugin-state/helpers/structure-emissive.d.ts +12 -0
- package/lib/mol-plugin-state/helpers/structure-emissive.js +64 -0
- package/lib/mol-plugin-state/helpers/structure-selection-query.d.ts +1 -1
- package/lib/mol-plugin-state/manager/structure/component.d.ts +3 -1
- package/lib/mol-plugin-state/manager/structure/component.js +9 -1
- package/lib/mol-plugin-state/manager/structure/measurement.d.ts +341 -9
- package/lib/mol-plugin-state/manager/structure/measurement.js +32 -19
- package/lib/mol-plugin-state/manager/structure/selection.d.ts +1 -1
- package/lib/mol-plugin-state/manager/volume/hierarchy.d.ts +1 -1
- package/lib/mol-plugin-state/objects.d.ts +32 -32
- package/lib/mol-plugin-state/transforms/representation.d.ts +33 -8
- package/lib/mol-plugin-state/transforms/representation.js +120 -5
- package/lib/mol-plugin-state/transforms/shape.d.ts +1 -1
- package/lib/mol-plugin-state/transforms/volume.d.ts +16 -8
- package/lib/mol-plugin-state/transforms/volume.js +51 -2
- package/lib/mol-plugin-ui/skin/base/base.scss +37 -37
- package/lib/mol-plugin-ui/skin/base/components/controls-base.scss +333 -333
- package/lib/mol-plugin-ui/skin/base/components/controls.scss +445 -445
- package/lib/mol-plugin-ui/skin/base/components/help.scss +27 -27
- package/lib/mol-plugin-ui/skin/base/components/line-graph.scss +67 -67
- package/lib/mol-plugin-ui/skin/base/components/log.scss +100 -100
- package/lib/mol-plugin-ui/skin/base/components/misc.scss +663 -663
- package/lib/mol-plugin-ui/skin/base/components/sequence.scss +125 -125
- package/lib/mol-plugin-ui/skin/base/components/slider.scss +165 -165
- package/lib/mol-plugin-ui/skin/base/components/tasks.scss +99 -99
- package/lib/mol-plugin-ui/skin/base/components/toast.scss +83 -83
- package/lib/mol-plugin-ui/skin/base/components/transformer.scss +163 -163
- package/lib/mol-plugin-ui/skin/base/components/viewport.scss +194 -194
- package/lib/mol-plugin-ui/skin/base/layout/common.scss +71 -71
- package/lib/mol-plugin-ui/skin/base/layout/controls-landscape.scss +89 -89
- package/lib/mol-plugin-ui/skin/base/layout/controls-outside.scss +98 -98
- package/lib/mol-plugin-ui/skin/base/layout/controls-portrait.scss +108 -108
- package/lib/mol-plugin-ui/skin/base/layout.scss +40 -40
- package/lib/mol-plugin-ui/skin/base/logo.scss +12 -12
- package/lib/mol-plugin-ui/skin/base/normalize.scss +209 -209
- package/lib/mol-plugin-ui/skin/base/ui.scss +40 -40
- package/lib/mol-plugin-ui/skin/base/variables.scss +88 -88
- package/lib/mol-plugin-ui/skin/blue.scss +1 -1
- package/lib/mol-plugin-ui/skin/colors/blue.scss +23 -23
- package/lib/mol-plugin-ui/skin/colors/dark.scss +23 -23
- package/lib/mol-plugin-ui/skin/colors/light.scss +29 -29
- package/lib/mol-plugin-ui/skin/dark.scss +1 -1
- package/lib/mol-plugin-ui/skin/light.scss +1 -1
- package/lib/mol-plugin-ui/state/apply-action.d.ts +2 -2
- package/lib/mol-plugin-ui/state/update-transform.d.ts +3 -3
- package/lib/mol-repr/representation.d.ts +6 -2
- package/lib/mol-repr/representation.js +12 -2
- package/lib/mol-repr/shape/loci/angle.d.ts +1 -0
- package/lib/mol-repr/shape/loci/common.d.ts +1 -0
- package/lib/mol-repr/shape/loci/dihedral.d.ts +1 -0
- package/lib/mol-repr/shape/loci/distance.d.ts +1 -0
- package/lib/mol-repr/shape/loci/label.d.ts +1 -0
- package/lib/mol-repr/shape/loci/orientation.d.ts +1 -0
- package/lib/mol-repr/shape/loci/plane.d.ts +1 -0
- package/lib/mol-repr/shape/model/unitcell.d.ts +1 -0
- package/lib/mol-repr/structure/complex-representation.d.ts +1 -1
- package/lib/mol-repr/structure/complex-representation.js +7 -1
- package/lib/mol-repr/structure/complex-visual.d.ts +8 -1
- package/lib/mol-repr/structure/complex-visual.js +5 -1
- package/lib/mol-repr/structure/params.d.ts +8 -0
- package/lib/mol-repr/structure/registry.d.ts +14 -0
- package/lib/mol-repr/structure/representation/backbone.d.ts +3 -0
- package/lib/mol-repr/structure/representation/ball-and-stick.d.ts +3 -0
- package/lib/mol-repr/structure/representation/carbohydrate.d.ts +3 -0
- package/lib/mol-repr/structure/representation/cartoon.d.ts +3 -0
- package/lib/mol-repr/structure/representation/ellipsoid.d.ts +3 -0
- package/lib/mol-repr/structure/representation/gaussian-surface.d.ts +3 -0
- package/lib/mol-repr/structure/representation/gaussian-volume.d.ts +3 -0
- package/lib/mol-repr/structure/representation/label.d.ts +3 -0
- package/lib/mol-repr/structure/representation/line.d.ts +3 -0
- package/lib/mol-repr/structure/representation/molecular-surface.d.ts +3 -0
- package/lib/mol-repr/structure/representation/orientation.d.ts +3 -0
- package/lib/mol-repr/structure/representation/point.d.ts +3 -0
- package/lib/mol-repr/structure/representation/putty.d.ts +3 -0
- package/lib/mol-repr/structure/representation/spacefill.d.ts +3 -0
- package/lib/mol-repr/structure/units-representation.d.ts +1 -1
- package/lib/mol-repr/structure/units-representation.js +9 -3
- package/lib/mol-repr/structure/units-visual.d.ts +9 -1
- package/lib/mol-repr/structure/units-visual.js +5 -1
- package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +2 -0
- package/lib/mol-repr/structure/visual/bond-inter-unit-line.d.ts +1 -0
- package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +2 -0
- package/lib/mol-repr/structure/visual/bond-intra-unit-line.d.ts +1 -0
- package/lib/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +1 -0
- package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +1 -0
- package/lib/mol-repr/structure/visual/element-cross.d.ts +1 -0
- package/lib/mol-repr/structure/visual/element-point.d.ts +1 -0
- package/lib/mol-repr/structure/visual/element-sphere.d.ts +4 -0
- package/lib/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/gaussian-density-volume.d.ts +2 -0
- package/lib/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +4 -0
- package/lib/mol-repr/structure/visual/gaussian-surface-mesh.js +1 -1
- package/lib/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +1 -0
- package/lib/mol-repr/structure/visual/label-text.d.ts +1 -0
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +1 -0
- package/lib/mol-repr/structure/visual/nucleotide-atomic-bond.d.ts +2 -0
- package/lib/mol-repr/structure/visual/nucleotide-atomic-element.d.ts +2 -0
- package/lib/mol-repr/structure/visual/nucleotide-atomic-ring-fill.d.ts +1 -0
- package/lib/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +2 -0
- package/lib/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -0
- package/lib/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -0
- package/lib/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -0
- package/lib/mol-repr/structure/visual/polymer-trace-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -0
- package/lib/mol-repr/visual.d.ts +6 -1
- package/lib/mol-repr/visual.js +57 -3
- package/lib/mol-repr/volume/direct-volume.d.ts +3 -0
- package/lib/mol-repr/volume/isosurface.d.ts +6 -0
- package/lib/mol-repr/volume/registry.d.ts +4 -0
- package/lib/mol-repr/volume/representation.d.ts +2 -1
- package/lib/mol-repr/volume/representation.js +9 -2
- package/lib/mol-repr/volume/segment.d.ts +5 -0
- package/lib/mol-repr/volume/slice.d.ts +3 -0
- package/lib/mol-script/language/symbol-table/core.d.ts +3 -3
- package/lib/mol-state/tree/immutable.d.ts +1 -1
- package/lib/mol-state/tree/transient.d.ts +2 -2
- package/lib/mol-theme/color/external-volume.d.ts +3 -1
- package/lib/mol-theme/color/external-volume.js +8 -2
- package/lib/mol-theme/color.d.ts +1 -0
- package/lib/mol-theme/emissive.d.ts +40 -0
- package/lib/mol-theme/emissive.js +134 -0
- package/lib/mol-theme/substance.d.ts +1 -1
- package/lib/mol-theme/substance.js +2 -2
- package/lib/mol-theme/transparency.d.ts +0 -1
- package/lib/mol-util/input/input-observer.js +2 -0
- package/lib/mol-util/set.d.ts +1 -1
- package/lib/mol-util/set.js +17 -1
- package/lib/servers/common/swagger-ui/indexTemplate.js +66 -66
- package/lib/servers/volume/config.js +5 -5
- package/package.json +195 -193
|
@@ -38,7 +38,7 @@ export declare namespace PluginStateObject {
|
|
|
38
38
|
label: string;
|
|
39
39
|
description?: string | undefined;
|
|
40
40
|
} | undefined): {
|
|
41
|
-
id: import("../mol-util
|
|
41
|
+
id: import("../mol-util").UUID;
|
|
42
42
|
type: TypeInfo;
|
|
43
43
|
label: string;
|
|
44
44
|
description?: string | undefined;
|
|
@@ -60,7 +60,7 @@ export declare namespace PluginStateObject {
|
|
|
60
60
|
label: string;
|
|
61
61
|
description?: string | undefined;
|
|
62
62
|
} | undefined): {
|
|
63
|
-
id: import("../mol-util
|
|
63
|
+
id: import("../mol-util").UUID;
|
|
64
64
|
type: TypeInfo;
|
|
65
65
|
label: string;
|
|
66
66
|
description?: string | undefined;
|
|
@@ -76,7 +76,7 @@ export declare namespace PluginStateObject {
|
|
|
76
76
|
label: string;
|
|
77
77
|
description?: string | undefined;
|
|
78
78
|
} | undefined): {
|
|
79
|
-
id: import("../mol-util
|
|
79
|
+
id: import("../mol-util").UUID;
|
|
80
80
|
type: TypeInfo;
|
|
81
81
|
label: string;
|
|
82
82
|
description?: string | undefined;
|
|
@@ -90,7 +90,7 @@ export declare namespace PluginStateObject {
|
|
|
90
90
|
label: string;
|
|
91
91
|
description?: string | undefined;
|
|
92
92
|
} | undefined): {
|
|
93
|
-
id: import("../mol-util
|
|
93
|
+
id: import("../mol-util").UUID;
|
|
94
94
|
type: TypeInfo;
|
|
95
95
|
label: string;
|
|
96
96
|
description?: string | undefined;
|
|
@@ -106,7 +106,7 @@ export declare namespace PluginStateObject {
|
|
|
106
106
|
label: string;
|
|
107
107
|
description?: string | undefined;
|
|
108
108
|
} | undefined): {
|
|
109
|
-
id: import("../mol-util
|
|
109
|
+
id: import("../mol-util").UUID;
|
|
110
110
|
type: TypeInfo;
|
|
111
111
|
label: string;
|
|
112
112
|
description?: string | undefined;
|
|
@@ -123,7 +123,7 @@ export declare namespace PluginStateObject {
|
|
|
123
123
|
label: string;
|
|
124
124
|
description?: string | undefined;
|
|
125
125
|
} | undefined): {
|
|
126
|
-
id: import("../mol-util
|
|
126
|
+
id: import("../mol-util").UUID;
|
|
127
127
|
type: TypeInfo;
|
|
128
128
|
label: string;
|
|
129
129
|
description?: string | undefined;
|
|
@@ -139,7 +139,7 @@ export declare namespace PluginStateObject {
|
|
|
139
139
|
label: string;
|
|
140
140
|
description?: string | undefined;
|
|
141
141
|
} | undefined): {
|
|
142
|
-
id: import("../mol-util
|
|
142
|
+
id: import("../mol-util").UUID;
|
|
143
143
|
type: TypeInfo;
|
|
144
144
|
label: string;
|
|
145
145
|
description?: string | undefined;
|
|
@@ -165,7 +165,7 @@ export declare namespace PluginStateObject {
|
|
|
165
165
|
label: string;
|
|
166
166
|
description?: string | undefined;
|
|
167
167
|
} | undefined): {
|
|
168
|
-
id: import("../mol-util
|
|
168
|
+
id: import("../mol-util").UUID;
|
|
169
169
|
type: TypeInfo;
|
|
170
170
|
label: string;
|
|
171
171
|
description?: string | undefined;
|
|
@@ -184,7 +184,7 @@ export declare namespace PluginStateObject {
|
|
|
184
184
|
label: string;
|
|
185
185
|
description?: string | undefined;
|
|
186
186
|
} | undefined): {
|
|
187
|
-
id: import("../mol-util
|
|
187
|
+
id: import("../mol-util").UUID;
|
|
188
188
|
type: TypeInfo;
|
|
189
189
|
label: string;
|
|
190
190
|
description?: string | undefined;
|
|
@@ -200,7 +200,7 @@ export declare namespace PluginStateObject {
|
|
|
200
200
|
label: string;
|
|
201
201
|
description?: string | undefined;
|
|
202
202
|
} | undefined): {
|
|
203
|
-
id: import("../mol-util
|
|
203
|
+
id: import("../mol-util").UUID;
|
|
204
204
|
type: TypeInfo;
|
|
205
205
|
label: string;
|
|
206
206
|
description?: string | undefined;
|
|
@@ -216,7 +216,7 @@ export declare namespace PluginStateObject {
|
|
|
216
216
|
label: string;
|
|
217
217
|
description?: string | undefined;
|
|
218
218
|
} | undefined): {
|
|
219
|
-
id: import("../mol-util
|
|
219
|
+
id: import("../mol-util").UUID;
|
|
220
220
|
type: TypeInfo;
|
|
221
221
|
label: string;
|
|
222
222
|
description?: string | undefined;
|
|
@@ -232,7 +232,7 @@ export declare namespace PluginStateObject {
|
|
|
232
232
|
label: string;
|
|
233
233
|
description?: string | undefined;
|
|
234
234
|
} | undefined): {
|
|
235
|
-
id: import("../mol-util
|
|
235
|
+
id: import("../mol-util").UUID;
|
|
236
236
|
type: TypeInfo;
|
|
237
237
|
label: string;
|
|
238
238
|
description?: string | undefined;
|
|
@@ -248,7 +248,7 @@ export declare namespace PluginStateObject {
|
|
|
248
248
|
label: string;
|
|
249
249
|
description?: string | undefined;
|
|
250
250
|
} | undefined): {
|
|
251
|
-
id: import("../mol-util
|
|
251
|
+
id: import("../mol-util").UUID;
|
|
252
252
|
type: TypeInfo;
|
|
253
253
|
label: string;
|
|
254
254
|
description?: string | undefined;
|
|
@@ -264,7 +264,7 @@ export declare namespace PluginStateObject {
|
|
|
264
264
|
label: string;
|
|
265
265
|
description?: string | undefined;
|
|
266
266
|
} | undefined): {
|
|
267
|
-
id: import("../mol-util
|
|
267
|
+
id: import("../mol-util").UUID;
|
|
268
268
|
type: TypeInfo;
|
|
269
269
|
label: string;
|
|
270
270
|
description?: string | undefined;
|
|
@@ -280,7 +280,7 @@ export declare namespace PluginStateObject {
|
|
|
280
280
|
label: string;
|
|
281
281
|
description?: string | undefined;
|
|
282
282
|
} | undefined): {
|
|
283
|
-
id: import("../mol-util
|
|
283
|
+
id: import("../mol-util").UUID;
|
|
284
284
|
type: TypeInfo;
|
|
285
285
|
label: string;
|
|
286
286
|
description?: string | undefined;
|
|
@@ -296,7 +296,7 @@ export declare namespace PluginStateObject {
|
|
|
296
296
|
label: string;
|
|
297
297
|
description?: string | undefined;
|
|
298
298
|
} | undefined): {
|
|
299
|
-
id: import("../mol-util
|
|
299
|
+
id: import("../mol-util").UUID;
|
|
300
300
|
type: TypeInfo;
|
|
301
301
|
label: string;
|
|
302
302
|
description?: string | undefined;
|
|
@@ -312,7 +312,7 @@ export declare namespace PluginStateObject {
|
|
|
312
312
|
label: string;
|
|
313
313
|
description?: string | undefined;
|
|
314
314
|
} | undefined): {
|
|
315
|
-
id: import("../mol-util
|
|
315
|
+
id: import("../mol-util").UUID;
|
|
316
316
|
type: TypeInfo;
|
|
317
317
|
label: string;
|
|
318
318
|
description?: string | undefined;
|
|
@@ -328,7 +328,7 @@ export declare namespace PluginStateObject {
|
|
|
328
328
|
label: string;
|
|
329
329
|
description?: string | undefined;
|
|
330
330
|
} | undefined): {
|
|
331
|
-
id: import("../mol-util
|
|
331
|
+
id: import("../mol-util").UUID;
|
|
332
332
|
type: TypeInfo;
|
|
333
333
|
label: string;
|
|
334
334
|
description?: string | undefined;
|
|
@@ -385,7 +385,7 @@ export declare namespace PluginStateObject {
|
|
|
385
385
|
label: string;
|
|
386
386
|
description?: string | undefined;
|
|
387
387
|
} | undefined): {
|
|
388
|
-
id: import("../mol-util
|
|
388
|
+
id: import("../mol-util").UUID;
|
|
389
389
|
type: TypeInfo;
|
|
390
390
|
label: string;
|
|
391
391
|
description?: string | undefined;
|
|
@@ -404,7 +404,7 @@ export declare namespace PluginStateObject {
|
|
|
404
404
|
label: string;
|
|
405
405
|
description?: string | undefined;
|
|
406
406
|
} | undefined): {
|
|
407
|
-
id: import("../mol-util
|
|
407
|
+
id: import("../mol-util").UUID;
|
|
408
408
|
type: TypeInfo;
|
|
409
409
|
label: string;
|
|
410
410
|
description?: string | undefined;
|
|
@@ -420,7 +420,7 @@ export declare namespace PluginStateObject {
|
|
|
420
420
|
label: string;
|
|
421
421
|
description?: string | undefined;
|
|
422
422
|
} | undefined): {
|
|
423
|
-
id: import("../mol-util
|
|
423
|
+
id: import("../mol-util").UUID;
|
|
424
424
|
type: TypeInfo;
|
|
425
425
|
label: string;
|
|
426
426
|
description?: string | undefined;
|
|
@@ -436,7 +436,7 @@ export declare namespace PluginStateObject {
|
|
|
436
436
|
label: string;
|
|
437
437
|
description?: string | undefined;
|
|
438
438
|
} | undefined): {
|
|
439
|
-
id: import("../mol-util
|
|
439
|
+
id: import("../mol-util").UUID;
|
|
440
440
|
type: TypeInfo;
|
|
441
441
|
label: string;
|
|
442
442
|
description?: string | undefined;
|
|
@@ -452,7 +452,7 @@ export declare namespace PluginStateObject {
|
|
|
452
452
|
label: string;
|
|
453
453
|
description?: string | undefined;
|
|
454
454
|
} | undefined): {
|
|
455
|
-
id: import("../mol-util
|
|
455
|
+
id: import("../mol-util").UUID;
|
|
456
456
|
type: TypeInfo;
|
|
457
457
|
label: string;
|
|
458
458
|
description?: string | undefined;
|
|
@@ -468,7 +468,7 @@ export declare namespace PluginStateObject {
|
|
|
468
468
|
label: string;
|
|
469
469
|
description?: string | undefined;
|
|
470
470
|
} | undefined): {
|
|
471
|
-
id: import("../mol-util
|
|
471
|
+
id: import("../mol-util").UUID;
|
|
472
472
|
type: TypeInfo;
|
|
473
473
|
label: string;
|
|
474
474
|
description?: string | undefined;
|
|
@@ -485,7 +485,7 @@ export declare namespace PluginStateObject {
|
|
|
485
485
|
label: string;
|
|
486
486
|
description?: string | undefined;
|
|
487
487
|
} | undefined): {
|
|
488
|
-
id: import("../mol-util
|
|
488
|
+
id: import("../mol-util").UUID;
|
|
489
489
|
type: TypeInfo;
|
|
490
490
|
label: string;
|
|
491
491
|
description?: string | undefined;
|
|
@@ -508,7 +508,7 @@ export declare namespace PluginStateObject {
|
|
|
508
508
|
label: string;
|
|
509
509
|
description?: string | undefined;
|
|
510
510
|
} | undefined): {
|
|
511
|
-
id: import("../mol-util
|
|
511
|
+
id: import("../mol-util").UUID;
|
|
512
512
|
type: TypeInfo;
|
|
513
513
|
label: string;
|
|
514
514
|
description?: string | undefined;
|
|
@@ -529,7 +529,7 @@ export declare namespace PluginStateObject {
|
|
|
529
529
|
label: string;
|
|
530
530
|
description?: string | undefined;
|
|
531
531
|
} | undefined): {
|
|
532
|
-
id: import("../mol-util
|
|
532
|
+
id: import("../mol-util").UUID;
|
|
533
533
|
type: TypeInfo;
|
|
534
534
|
label: string;
|
|
535
535
|
description?: string | undefined;
|
|
@@ -563,7 +563,7 @@ export declare namespace PluginStateObject {
|
|
|
563
563
|
label: string;
|
|
564
564
|
description?: string | undefined;
|
|
565
565
|
} | undefined): {
|
|
566
|
-
id: import("../mol-util
|
|
566
|
+
id: import("../mol-util").UUID;
|
|
567
567
|
type: TypeInfo;
|
|
568
568
|
label: string;
|
|
569
569
|
description?: string | undefined;
|
|
@@ -579,7 +579,7 @@ export declare namespace PluginStateObject {
|
|
|
579
579
|
label: string;
|
|
580
580
|
description?: string | undefined;
|
|
581
581
|
} | undefined): {
|
|
582
|
-
id: import("../mol-util
|
|
582
|
+
id: import("../mol-util").UUID;
|
|
583
583
|
type: TypeInfo;
|
|
584
584
|
label: string;
|
|
585
585
|
description?: string | undefined;
|
|
@@ -595,7 +595,7 @@ export declare namespace PluginStateObject {
|
|
|
595
595
|
label: string;
|
|
596
596
|
description?: string | undefined;
|
|
597
597
|
} | undefined): {
|
|
598
|
-
id: import("../mol-util
|
|
598
|
+
id: import("../mol-util").UUID;
|
|
599
599
|
type: TypeInfo;
|
|
600
600
|
label: string;
|
|
601
601
|
description?: string | undefined;
|
|
@@ -614,7 +614,7 @@ export declare namespace PluginStateObject {
|
|
|
614
614
|
label: string;
|
|
615
615
|
description?: string | undefined;
|
|
616
616
|
} | undefined): {
|
|
617
|
-
id: import("../mol-util
|
|
617
|
+
id: import("../mol-util").UUID;
|
|
618
618
|
type: TypeInfo;
|
|
619
619
|
label: string;
|
|
620
620
|
description?: string | undefined;
|
|
@@ -630,7 +630,7 @@ export declare namespace PluginStateObject {
|
|
|
630
630
|
label: string;
|
|
631
631
|
description?: string | undefined;
|
|
632
632
|
} | undefined): {
|
|
633
|
-
id: import("../mol-util
|
|
633
|
+
id: import("../mol-util").UUID;
|
|
634
634
|
type: TypeInfo;
|
|
635
635
|
label: string;
|
|
636
636
|
description?: string | undefined;
|
|
@@ -24,6 +24,8 @@ export { OverpaintStructureRepresentation3DFromScript };
|
|
|
24
24
|
export { OverpaintStructureRepresentation3DFromBundle };
|
|
25
25
|
export { TransparencyStructureRepresentation3DFromScript };
|
|
26
26
|
export { TransparencyStructureRepresentation3DFromBundle };
|
|
27
|
+
export { EmissiveStructureRepresentation3DFromScript };
|
|
28
|
+
export { EmissiveStructureRepresentation3DFromBundle };
|
|
27
29
|
export { SubstanceStructureRepresentation3DFromScript };
|
|
28
30
|
export { SubstanceStructureRepresentation3DFromBundle };
|
|
29
31
|
export { ClippingStructureRepresentation3DFromScript };
|
|
@@ -86,6 +88,20 @@ declare const TransparencyStructureRepresentation3DFromBundle: StateTransformer<
|
|
|
86
88
|
value: number;
|
|
87
89
|
}>[];
|
|
88
90
|
}>>;
|
|
91
|
+
type EmissiveStructureRepresentation3DFromScript = typeof EmissiveStructureRepresentation3DFromScript;
|
|
92
|
+
declare const EmissiveStructureRepresentation3DFromScript: StateTransformer<SO.Molecule.Structure.Representation3D, SO.Molecule.Structure.Representation3DState, PD.Normalize<{
|
|
93
|
+
layers: PD.Normalize<{
|
|
94
|
+
script: Script;
|
|
95
|
+
value: number;
|
|
96
|
+
}>[];
|
|
97
|
+
}>>;
|
|
98
|
+
type EmissiveStructureRepresentation3DFromBundle = typeof EmissiveStructureRepresentation3DFromBundle;
|
|
99
|
+
declare const EmissiveStructureRepresentation3DFromBundle: StateTransformer<SO.Molecule.Structure.Representation3D, SO.Molecule.Structure.Representation3DState, PD.Normalize<{
|
|
100
|
+
layers: PD.Normalize<{
|
|
101
|
+
bundle: StructureElement.Bundle;
|
|
102
|
+
value: number;
|
|
103
|
+
}>[];
|
|
104
|
+
}>>;
|
|
89
105
|
type SubstanceStructureRepresentation3DFromScript = typeof SubstanceStructureRepresentation3DFromScript;
|
|
90
106
|
declare const SubstanceStructureRepresentation3DFromScript: StateTransformer<SO.Molecule.Structure.Representation3D, SO.Molecule.Structure.Representation3DState, PD.Normalize<{
|
|
91
107
|
layers: PD.Normalize<{
|
|
@@ -128,6 +144,7 @@ type ThemeStrengthRepresentation3D = typeof ThemeStrengthRepresentation3D;
|
|
|
128
144
|
declare const ThemeStrengthRepresentation3D: StateTransformer<SO.Molecule.Structure.Representation3D, SO.Molecule.Structure.Representation3DState, PD.Normalize<{
|
|
129
145
|
overpaintStrength: number;
|
|
130
146
|
transparencyStrength: number;
|
|
147
|
+
emissiveStrength: number;
|
|
131
148
|
substanceStrength: number;
|
|
132
149
|
}>>;
|
|
133
150
|
export declare namespace VolumeRepresentation3DHelpers {
|
|
@@ -170,8 +187,9 @@ declare const ModelUnitcell3D: StateTransformer<SO.Molecule.Model, SO.Shape.Repr
|
|
|
170
187
|
variant: any;
|
|
171
188
|
objects: any;
|
|
172
189
|
}>;
|
|
190
|
+
emissive: number;
|
|
173
191
|
instanceGranularity: boolean;
|
|
174
|
-
lod: import("../../mol-math/linear-algebra
|
|
192
|
+
lod: import("../../mol-math/linear-algebra").Vec3;
|
|
175
193
|
cellSize: number;
|
|
176
194
|
batchSize: number;
|
|
177
195
|
}>>;
|
|
@@ -197,8 +215,9 @@ declare const StructureBoundingBox3D: StateTransformer<SO.Molecule.Structure, SO
|
|
|
197
215
|
variant: any;
|
|
198
216
|
objects: any;
|
|
199
217
|
}>;
|
|
218
|
+
emissive: number;
|
|
200
219
|
instanceGranularity: boolean;
|
|
201
|
-
lod: import("../../mol-math/linear-algebra
|
|
220
|
+
lod: import("../../mol-math/linear-algebra").Vec3;
|
|
202
221
|
cellSize: number;
|
|
203
222
|
batchSize: number;
|
|
204
223
|
radius: number;
|
|
@@ -242,8 +261,9 @@ declare const StructureSelectionsDistance3D: StateTransformer<SO.Molecule.Struct
|
|
|
242
261
|
variant: any;
|
|
243
262
|
objects: any;
|
|
244
263
|
}>;
|
|
264
|
+
emissive: number;
|
|
245
265
|
instanceGranularity: boolean;
|
|
246
|
-
lod: import("../../mol-math/linear-algebra
|
|
266
|
+
lod: import("../../mol-math/linear-algebra").Vec3;
|
|
247
267
|
cellSize: number;
|
|
248
268
|
batchSize: number;
|
|
249
269
|
lineSizeAttenuation: boolean;
|
|
@@ -288,8 +308,9 @@ declare const StructureSelectionsAngle3D: StateTransformer<SO.Molecule.Structure
|
|
|
288
308
|
variant: any;
|
|
289
309
|
objects: any;
|
|
290
310
|
}>;
|
|
311
|
+
emissive: number;
|
|
291
312
|
instanceGranularity: boolean;
|
|
292
|
-
lod: import("../../mol-math/linear-algebra
|
|
313
|
+
lod: import("../../mol-math/linear-algebra").Vec3;
|
|
293
314
|
cellSize: number;
|
|
294
315
|
batchSize: number;
|
|
295
316
|
ignoreLight: boolean;
|
|
@@ -344,8 +365,9 @@ declare const StructureSelectionsDihedral3D: StateTransformer<SO.Molecule.Struct
|
|
|
344
365
|
variant: any;
|
|
345
366
|
objects: any;
|
|
346
367
|
}>;
|
|
368
|
+
emissive: number;
|
|
347
369
|
instanceGranularity: boolean;
|
|
348
|
-
lod: import("../../mol-math/linear-algebra
|
|
370
|
+
lod: import("../../mol-math/linear-algebra").Vec3;
|
|
349
371
|
cellSize: number;
|
|
350
372
|
batchSize: number;
|
|
351
373
|
ignoreLight: boolean;
|
|
@@ -403,8 +425,9 @@ declare const StructureSelectionsLabel3D: StateTransformer<SO.Molecule.Structure
|
|
|
403
425
|
variant: any;
|
|
404
426
|
objects: any;
|
|
405
427
|
}>;
|
|
428
|
+
emissive: number;
|
|
406
429
|
instanceGranularity: boolean;
|
|
407
|
-
lod: import("../../mol-math/linear-algebra
|
|
430
|
+
lod: import("../../mol-math/linear-algebra").Vec3;
|
|
408
431
|
cellSize: number;
|
|
409
432
|
batchSize: number;
|
|
410
433
|
}>>;
|
|
@@ -434,8 +457,9 @@ declare const StructureSelectionsOrientation3D: StateTransformer<SO.Molecule.Str
|
|
|
434
457
|
variant: any;
|
|
435
458
|
objects: any;
|
|
436
459
|
}>;
|
|
460
|
+
emissive: number;
|
|
437
461
|
instanceGranularity: boolean;
|
|
438
|
-
lod: import("../../mol-math/linear-algebra
|
|
462
|
+
lod: import("../../mol-math/linear-algebra").Vec3;
|
|
439
463
|
cellSize: number;
|
|
440
464
|
batchSize: number;
|
|
441
465
|
}>>;
|
|
@@ -464,8 +488,9 @@ declare const StructureSelectionsPlane3D: StateTransformer<SO.Molecule.Structure
|
|
|
464
488
|
variant: any;
|
|
465
489
|
objects: any;
|
|
466
490
|
}>;
|
|
491
|
+
emissive: number;
|
|
467
492
|
instanceGranularity: boolean;
|
|
468
|
-
lod: import("../../mol-math/linear-algebra
|
|
493
|
+
lod: import("../../mol-math/linear-algebra").Vec3;
|
|
469
494
|
cellSize: number;
|
|
470
495
|
batchSize: number;
|
|
471
496
|
}>>;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.StructureSelectionsPlane3D = exports.StructureSelectionsOrientation3D = exports.StructureSelectionsLabel3D = exports.StructureSelectionsDihedral3D = exports.StructureSelectionsAngle3D = exports.StructureSelectionsDistance3D = exports.StructureBoundingBox3D = exports.ModelUnitcell3D = exports.ShapeRepresentation3D = exports.VolumeRepresentation3DHelpers = exports.VolumeRepresentation3D = exports.ThemeStrengthRepresentation3D = exports.ClippingStructureRepresentation3DFromBundle = exports.ClippingStructureRepresentation3DFromScript = exports.SubstanceStructureRepresentation3DFromBundle = exports.SubstanceStructureRepresentation3DFromScript = exports.TransparencyStructureRepresentation3DFromBundle = exports.TransparencyStructureRepresentation3DFromScript = exports.OverpaintStructureRepresentation3DFromBundle = exports.OverpaintStructureRepresentation3DFromScript = exports.UnwindStructureAssemblyRepresentation3D = exports.SpinStructureRepresentation3D = exports.ExplodeStructureRepresentation3D = exports.StructureRepresentation3D = void 0;
|
|
9
|
+
exports.StructureSelectionsPlane3D = exports.StructureSelectionsOrientation3D = exports.StructureSelectionsLabel3D = exports.StructureSelectionsDihedral3D = exports.StructureSelectionsAngle3D = exports.StructureSelectionsDistance3D = exports.StructureBoundingBox3D = exports.ModelUnitcell3D = exports.ShapeRepresentation3D = exports.VolumeRepresentation3DHelpers = exports.VolumeRepresentation3D = exports.ThemeStrengthRepresentation3D = exports.ClippingStructureRepresentation3DFromBundle = exports.ClippingStructureRepresentation3DFromScript = exports.SubstanceStructureRepresentation3DFromBundle = exports.SubstanceStructureRepresentation3DFromScript = exports.EmissiveStructureRepresentation3DFromBundle = exports.EmissiveStructureRepresentation3DFromScript = exports.TransparencyStructureRepresentation3DFromBundle = exports.TransparencyStructureRepresentation3DFromScript = exports.OverpaintStructureRepresentation3DFromBundle = exports.OverpaintStructureRepresentation3DFromScript = exports.UnwindStructureAssemblyRepresentation3D = exports.SpinStructureRepresentation3D = exports.ExplodeStructureRepresentation3D = exports.StructureRepresentation3D = void 0;
|
|
10
10
|
const structure_1 = require("../../mol-model/structure");
|
|
11
11
|
const volume_1 = require("../../mol-model/volume");
|
|
12
12
|
const mol_state_1 = require("../../mol-state");
|
|
@@ -41,6 +41,7 @@ const substance_1 = require("../../mol-theme/substance");
|
|
|
41
41
|
const material_1 = require("../../mol-util/material");
|
|
42
42
|
const interpolate_1 = require("../../mol-math/interpolate");
|
|
43
43
|
const marker_action_1 = require("../../mol-util/marker-action");
|
|
44
|
+
const emissive_1 = require("../../mol-theme/emissive");
|
|
44
45
|
const StructureRepresentation3D = objects_1.PluginStateTransform.BuiltIn({
|
|
45
46
|
name: 'structure-representation-3d',
|
|
46
47
|
display: '3D Representation',
|
|
@@ -484,6 +485,115 @@ const TransparencyStructureRepresentation3DFromBundle = objects_1.PluginStateTra
|
|
|
484
485
|
}
|
|
485
486
|
});
|
|
486
487
|
exports.TransparencyStructureRepresentation3DFromBundle = TransparencyStructureRepresentation3DFromBundle;
|
|
488
|
+
const EmissiveStructureRepresentation3DFromScript = objects_1.PluginStateTransform.BuiltIn({
|
|
489
|
+
name: 'emissive-structure-representation-3d-from-script',
|
|
490
|
+
display: 'Emissive 3D Representation',
|
|
491
|
+
from: objects_1.PluginStateObject.Molecule.Structure.Representation3D,
|
|
492
|
+
to: objects_1.PluginStateObject.Molecule.Structure.Representation3DState,
|
|
493
|
+
params: () => ({
|
|
494
|
+
layers: param_definition_1.ParamDefinition.ObjectList({
|
|
495
|
+
script: param_definition_1.ParamDefinition.Script((0, script_1.Script)('(sel.atom.all)', 'mol-script')),
|
|
496
|
+
value: param_definition_1.ParamDefinition.Numeric(0.5, { min: 0, max: 1, step: 0.01 }, { label: 'Emissive' }),
|
|
497
|
+
}, e => `Emissive (${e.value})`, {
|
|
498
|
+
defaultValue: [{
|
|
499
|
+
script: (0, script_1.Script)('(sel.atom.all)', 'mol-script'),
|
|
500
|
+
value: 0.5,
|
|
501
|
+
}]
|
|
502
|
+
})
|
|
503
|
+
})
|
|
504
|
+
})({
|
|
505
|
+
canAutoUpdate() {
|
|
506
|
+
return true;
|
|
507
|
+
},
|
|
508
|
+
apply({ a, params }) {
|
|
509
|
+
const structure = a.data.sourceData;
|
|
510
|
+
const geometryVersion = a.data.repr.geometryVersion;
|
|
511
|
+
const emissive = emissive_1.Emissive.ofScript(params.layers, structure);
|
|
512
|
+
return new objects_1.PluginStateObject.Molecule.Structure.Representation3DState({
|
|
513
|
+
state: { emissive },
|
|
514
|
+
initialState: { emissive: emissive_1.Emissive.Empty },
|
|
515
|
+
info: { structure, geometryVersion },
|
|
516
|
+
repr: a.data.repr
|
|
517
|
+
}, { label: `Emissive (${emissive.layers.length} Layers)` });
|
|
518
|
+
},
|
|
519
|
+
update({ a, b, newParams, oldParams }) {
|
|
520
|
+
const info = b.data.info;
|
|
521
|
+
const newStructure = a.data.sourceData;
|
|
522
|
+
if (newStructure !== info.structure)
|
|
523
|
+
return mol_state_1.StateTransformer.UpdateResult.Recreate;
|
|
524
|
+
if (a.data.repr !== b.data.repr)
|
|
525
|
+
return mol_state_1.StateTransformer.UpdateResult.Recreate;
|
|
526
|
+
const newGeometryVersion = a.data.repr.geometryVersion;
|
|
527
|
+
// smoothing needs to be re-calculated when geometry changes
|
|
528
|
+
if (newGeometryVersion !== info.geometryVersion && (0, base_1.hasColorSmoothingProp)(a.data.repr.props))
|
|
529
|
+
return mol_state_1.StateTransformer.UpdateResult.Recreate;
|
|
530
|
+
const oldEmissive = b.data.state.emissive;
|
|
531
|
+
const newEmissive = emissive_1.Emissive.ofScript(newParams.layers, newStructure);
|
|
532
|
+
if (emissive_1.Emissive.areEqual(oldEmissive, newEmissive))
|
|
533
|
+
return mol_state_1.StateTransformer.UpdateResult.Unchanged;
|
|
534
|
+
info.geometryVersion = newGeometryVersion;
|
|
535
|
+
b.data.state.emissive = newEmissive;
|
|
536
|
+
b.data.repr = a.data.repr;
|
|
537
|
+
b.label = `Emissive (${newEmissive.layers.length} Layers)`;
|
|
538
|
+
return mol_state_1.StateTransformer.UpdateResult.Updated;
|
|
539
|
+
}
|
|
540
|
+
});
|
|
541
|
+
exports.EmissiveStructureRepresentation3DFromScript = EmissiveStructureRepresentation3DFromScript;
|
|
542
|
+
const EmissiveStructureRepresentation3DFromBundle = objects_1.PluginStateTransform.BuiltIn({
|
|
543
|
+
name: 'emissive-structure-representation-3d-from-bundle',
|
|
544
|
+
display: 'Emissive 3D Representation',
|
|
545
|
+
from: objects_1.PluginStateObject.Molecule.Structure.Representation3D,
|
|
546
|
+
to: objects_1.PluginStateObject.Molecule.Structure.Representation3DState,
|
|
547
|
+
params: () => ({
|
|
548
|
+
layers: param_definition_1.ParamDefinition.ObjectList({
|
|
549
|
+
bundle: param_definition_1.ParamDefinition.Value(structure_1.StructureElement.Bundle.Empty),
|
|
550
|
+
value: param_definition_1.ParamDefinition.Numeric(0.5, { min: 0, max: 1, step: 0.01 }, { label: 'Emissive' }),
|
|
551
|
+
}, e => `Emissive (${e.value})`, {
|
|
552
|
+
defaultValue: [{
|
|
553
|
+
bundle: structure_1.StructureElement.Bundle.Empty,
|
|
554
|
+
value: 0.5,
|
|
555
|
+
}],
|
|
556
|
+
isHidden: true
|
|
557
|
+
})
|
|
558
|
+
})
|
|
559
|
+
})({
|
|
560
|
+
canAutoUpdate() {
|
|
561
|
+
return true;
|
|
562
|
+
},
|
|
563
|
+
apply({ a, params }) {
|
|
564
|
+
const structure = a.data.sourceData;
|
|
565
|
+
const geometryVersion = a.data.repr.geometryVersion;
|
|
566
|
+
const emissive = emissive_1.Emissive.ofBundle(params.layers, structure);
|
|
567
|
+
return new objects_1.PluginStateObject.Molecule.Structure.Representation3DState({
|
|
568
|
+
state: { emissive },
|
|
569
|
+
initialState: { emissive: emissive_1.Emissive.Empty },
|
|
570
|
+
info: { structure, geometryVersion },
|
|
571
|
+
repr: a.data.repr
|
|
572
|
+
}, { label: `Emissive (${emissive.layers.length} Layers)` });
|
|
573
|
+
},
|
|
574
|
+
update({ a, b, newParams, oldParams }) {
|
|
575
|
+
const info = b.data.info;
|
|
576
|
+
const newStructure = a.data.sourceData;
|
|
577
|
+
if (newStructure !== info.structure)
|
|
578
|
+
return mol_state_1.StateTransformer.UpdateResult.Recreate;
|
|
579
|
+
if (a.data.repr !== b.data.repr)
|
|
580
|
+
return mol_state_1.StateTransformer.UpdateResult.Recreate;
|
|
581
|
+
const newGeometryVersion = a.data.repr.geometryVersion;
|
|
582
|
+
// smoothing needs to be re-calculated when geometry changes
|
|
583
|
+
if (newGeometryVersion !== info.geometryVersion && (0, base_1.hasColorSmoothingProp)(a.data.repr.props))
|
|
584
|
+
return mol_state_1.StateTransformer.UpdateResult.Recreate;
|
|
585
|
+
const oldEmissive = b.data.state.emissive;
|
|
586
|
+
const newEmissive = emissive_1.Emissive.ofBundle(newParams.layers, newStructure);
|
|
587
|
+
if (emissive_1.Emissive.areEqual(oldEmissive, newEmissive))
|
|
588
|
+
return mol_state_1.StateTransformer.UpdateResult.Unchanged;
|
|
589
|
+
info.geometryVersion = newGeometryVersion;
|
|
590
|
+
b.data.state.emissive = newEmissive;
|
|
591
|
+
b.data.repr = a.data.repr;
|
|
592
|
+
b.label = `Emissive (${newEmissive.layers.length} Layers)`;
|
|
593
|
+
return mol_state_1.StateTransformer.UpdateResult.Updated;
|
|
594
|
+
}
|
|
595
|
+
});
|
|
596
|
+
exports.EmissiveStructureRepresentation3DFromBundle = EmissiveStructureRepresentation3DFromBundle;
|
|
487
597
|
const SubstanceStructureRepresentation3DFromScript = objects_1.PluginStateTransform.BuiltIn({
|
|
488
598
|
name: 'substance-structure-representation-3d-from-script',
|
|
489
599
|
display: 'Substance 3D Representation',
|
|
@@ -700,6 +810,7 @@ const ThemeStrengthRepresentation3D = objects_1.PluginStateTransform.BuiltIn({
|
|
|
700
810
|
params: () => ({
|
|
701
811
|
overpaintStrength: param_definition_1.ParamDefinition.Numeric(1, { min: 0, max: 1, step: 0.01 }),
|
|
702
812
|
transparencyStrength: param_definition_1.ParamDefinition.Numeric(1, { min: 0, max: 1, step: 0.01 }),
|
|
813
|
+
emissiveStrength: param_definition_1.ParamDefinition.Numeric(1, { min: 0, max: 1, step: 0.01 }),
|
|
703
814
|
substanceStrength: param_definition_1.ParamDefinition.Numeric(1, { min: 0, max: 1, step: 0.01 }),
|
|
704
815
|
})
|
|
705
816
|
})({
|
|
@@ -712,36 +823,40 @@ const ThemeStrengthRepresentation3D = objects_1.PluginStateTransform.BuiltIn({
|
|
|
712
823
|
themeStrength: {
|
|
713
824
|
overpaint: params.overpaintStrength,
|
|
714
825
|
transparency: params.transparencyStrength,
|
|
826
|
+
emissive: params.emissiveStrength,
|
|
715
827
|
substance: params.substanceStrength
|
|
716
828
|
},
|
|
717
829
|
},
|
|
718
830
|
initialState: {
|
|
719
|
-
themeStrength: { overpaint: 1, transparency: 1, substance: 1 },
|
|
831
|
+
themeStrength: { overpaint: 1, transparency: 1, emissive: 1, substance: 1 },
|
|
720
832
|
},
|
|
721
833
|
info: {},
|
|
722
834
|
repr: a.data.repr
|
|
723
|
-
}, { label: 'Theme Strength', description: `${params.overpaintStrength.toFixed(2)}, ${params.transparencyStrength.toFixed(2)}, ${params.substanceStrength.toFixed(2)}` });
|
|
835
|
+
}, { label: 'Theme Strength', description: `${params.overpaintStrength.toFixed(2)}, ${params.transparencyStrength.toFixed(2)}, ${params.emissiveStrength.toFixed(2)}, ${params.substanceStrength.toFixed(2)}` });
|
|
724
836
|
},
|
|
725
837
|
update({ a, b, newParams, oldParams }) {
|
|
726
|
-
var _a, _b, _c;
|
|
838
|
+
var _a, _b, _c, _d;
|
|
727
839
|
if (newParams.overpaintStrength === ((_a = b.data.state.themeStrength) === null || _a === void 0 ? void 0 : _a.overpaint) &&
|
|
728
840
|
newParams.transparencyStrength === ((_b = b.data.state.themeStrength) === null || _b === void 0 ? void 0 : _b.transparency) &&
|
|
729
|
-
newParams.
|
|
841
|
+
newParams.emissiveStrength === ((_c = b.data.state.themeStrength) === null || _c === void 0 ? void 0 : _c.emissive) &&
|
|
842
|
+
newParams.substanceStrength === ((_d = b.data.state.themeStrength) === null || _d === void 0 ? void 0 : _d.substance))
|
|
730
843
|
return mol_state_1.StateTransformer.UpdateResult.Unchanged;
|
|
731
844
|
b.data.state.themeStrength = {
|
|
732
845
|
overpaint: newParams.overpaintStrength,
|
|
733
846
|
transparency: newParams.transparencyStrength,
|
|
847
|
+
emissive: newParams.emissiveStrength,
|
|
734
848
|
substance: newParams.substanceStrength,
|
|
735
849
|
};
|
|
736
850
|
b.data.repr = a.data.repr;
|
|
737
851
|
b.label = 'Theme Strength';
|
|
738
|
-
b.description = `${newParams.overpaintStrength.toFixed(2)}, ${newParams.transparencyStrength.toFixed(2)}, ${newParams.substanceStrength.toFixed(2)}`;
|
|
852
|
+
b.description = `${newParams.overpaintStrength.toFixed(2)}, ${newParams.transparencyStrength.toFixed(2)}, ${newParams.emissiveStrength.toFixed(2)}, ${newParams.substanceStrength.toFixed(2)}`;
|
|
739
853
|
return mol_state_1.StateTransformer.UpdateResult.Updated;
|
|
740
854
|
},
|
|
741
855
|
interpolate(src, tar, t) {
|
|
742
856
|
return {
|
|
743
857
|
overpaintStrength: (0, interpolate_1.lerp)(src.overpaintStrength, tar.overpaintStrength, t),
|
|
744
858
|
transparencyStrength: (0, interpolate_1.lerp)(src.transparencyStrength, tar.transparencyStrength, t),
|
|
859
|
+
emissiveStrength: (0, interpolate_1.lerp)(src.emissiveStrength, tar.emissiveStrength, t),
|
|
745
860
|
substanceStrength: (0, interpolate_1.lerp)(src.substanceStrength, tar.substanceStrength, t),
|
|
746
861
|
};
|
|
747
862
|
}
|
|
@@ -10,7 +10,7 @@ import { ParamDefinition as PD } from '../../mol-util/param-definition';
|
|
|
10
10
|
import { PluginStateObject as SO } from '../objects';
|
|
11
11
|
export { BoxShape3D };
|
|
12
12
|
type BoxShape3D = typeof BoxShape3D;
|
|
13
|
-
declare const BoxShape3D: import("../../mol-state
|
|
13
|
+
declare const BoxShape3D: import("../../mol-state").StateTransformer<SO.Root, SO.Shape.Provider, PD.Normalize<{
|
|
14
14
|
bottomLeft: Vec3;
|
|
15
15
|
topRight: Vec3;
|
|
16
16
|
radius: number;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2018-
|
|
2
|
+
* Copyright (c) 2018-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
|
+
* @author Yakov Pechersky <ffxen158@gmail.com>
|
|
6
7
|
*/
|
|
7
8
|
import { Vec3 } from '../../mol-math/linear-algebra';
|
|
8
9
|
import { ParamDefinition as PD } from '../../mol-util/param-definition';
|
|
@@ -15,30 +16,30 @@ export { AssignColorVolume };
|
|
|
15
16
|
export { VolumeFromDensityServerCif };
|
|
16
17
|
export { VolumeFromSegmentationCif };
|
|
17
18
|
type VolumeFromCcp4 = typeof VolumeFromCcp4;
|
|
18
|
-
declare const VolumeFromCcp4: import("../../mol-state
|
|
19
|
+
declare const VolumeFromCcp4: import("../../mol-state").StateTransformer<SO.Format.Ccp4, SO.Volume.Data, PD.Normalize<{
|
|
19
20
|
voxelSize: Vec3;
|
|
20
21
|
offset: Vec3;
|
|
21
22
|
entryId: string;
|
|
22
23
|
}>>;
|
|
23
24
|
type VolumeFromDsn6 = typeof VolumeFromDsn6;
|
|
24
|
-
declare const VolumeFromDsn6: import("../../mol-state
|
|
25
|
+
declare const VolumeFromDsn6: import("../../mol-state").StateTransformer<SO.Format.Dsn6, SO.Volume.Data, PD.Normalize<{
|
|
25
26
|
voxelSize: Vec3;
|
|
26
27
|
entryId: string;
|
|
27
28
|
}>>;
|
|
28
29
|
type VolumeFromCube = typeof VolumeFromCube;
|
|
29
|
-
declare const VolumeFromCube: import("../../mol-state
|
|
30
|
+
declare const VolumeFromCube: import("../../mol-state").StateTransformer<SO.Format.Cube, SO.Volume.Data, PD.Normalize<{
|
|
30
31
|
dataIndex: number;
|
|
31
32
|
entryId: string;
|
|
32
33
|
}>>;
|
|
33
34
|
type VolumeFromDx = typeof VolumeFromDx;
|
|
34
|
-
declare const VolumeFromDx: import("../../mol-state
|
|
35
|
+
declare const VolumeFromDx: import("../../mol-state").StateTransformer<SO.Format.Dx, SO.Volume.Data, PD.Normalize<{}>>;
|
|
35
36
|
type VolumeFromDensityServerCif = typeof VolumeFromDensityServerCif;
|
|
36
|
-
declare const VolumeFromDensityServerCif: import("../../mol-state
|
|
37
|
+
declare const VolumeFromDensityServerCif: import("../../mol-state").StateTransformer<SO.Format.Cif, SO.Volume.Data, PD.Normalize<{
|
|
37
38
|
blockHeader: string | undefined;
|
|
38
39
|
entryId: string;
|
|
39
40
|
}>>;
|
|
40
41
|
type VolumeFromSegmentationCif = typeof VolumeFromSegmentationCif;
|
|
41
|
-
declare const VolumeFromSegmentationCif: import("../../mol-state
|
|
42
|
+
declare const VolumeFromSegmentationCif: import("../../mol-state").StateTransformer<SO.Format.Cif, SO.Volume.Data, PD.Normalize<{
|
|
42
43
|
blockHeader: string | undefined;
|
|
43
44
|
segmentLabels: PD.Normalize<{
|
|
44
45
|
id: any;
|
|
@@ -47,6 +48,13 @@ declare const VolumeFromSegmentationCif: import("../../mol-state/transformer").S
|
|
|
47
48
|
ownerId: string;
|
|
48
49
|
}>>;
|
|
49
50
|
type AssignColorVolume = typeof AssignColorVolume;
|
|
50
|
-
declare const AssignColorVolume: import("../../mol-state
|
|
51
|
+
declare const AssignColorVolume: import("../../mol-state").StateTransformer<SO.Volume.Data, SO.Volume.Data, PD.Normalize<{
|
|
51
52
|
ref: string;
|
|
52
53
|
}>>;
|
|
54
|
+
export type VolumeTransform = typeof VolumeTransform;
|
|
55
|
+
export declare const VolumeTransform: import("../../mol-state").StateTransformer<SO.Volume.Data, SO.Volume.Data, PD.Normalize<{
|
|
56
|
+
transform: PD.NamedParams<PD.Normalize<{
|
|
57
|
+
data: any;
|
|
58
|
+
transpose: any;
|
|
59
|
+
}>, "matrix">;
|
|
60
|
+
}>>;
|