molstar 4.2.0 → 4.4.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/build/viewer/molstar.css +1 -1
- package/build/viewer/molstar.js +1 -1
- package/lib/apps/docking-viewer/viewport.d.ts +1 -1
- package/lib/apps/docking-viewer/viewport.js +2 -1
- package/lib/apps/mesoscale-explorer/app.d.ts +3 -1
- package/lib/apps/mesoscale-explorer/app.js +12 -1
- package/lib/apps/mesoscale-explorer/behavior/camera.d.ts +12 -0
- package/lib/apps/mesoscale-explorer/behavior/camera.js +32 -6
- package/lib/apps/mesoscale-explorer/behavior/select.d.ts +1 -0
- package/lib/apps/mesoscale-explorer/behavior/select.js +58 -9
- package/lib/apps/mesoscale-explorer/data/cellpack/model.js +4 -6
- package/lib/apps/mesoscale-explorer/data/cellpack/preset.js +8 -5
- package/lib/apps/mesoscale-explorer/data/generic/model.d.ts +1 -0
- package/lib/apps/mesoscale-explorer/data/generic/model.js +2 -1
- package/lib/apps/mesoscale-explorer/data/generic/preset.js +7 -6
- package/lib/apps/mesoscale-explorer/data/mmcif/model.js +3 -1
- package/lib/apps/mesoscale-explorer/data/mmcif/preset.js +6 -3
- package/lib/apps/mesoscale-explorer/data/petworld/model.js +3 -1
- package/lib/apps/mesoscale-explorer/data/petworld/preset.js +6 -3
- package/lib/apps/mesoscale-explorer/data/state.d.ts +48 -10
- package/lib/apps/mesoscale-explorer/data/state.js +83 -8
- package/lib/apps/mesoscale-explorer/index.html +6 -1
- package/lib/apps/mesoscale-explorer/style.scss +33 -0
- package/lib/apps/mesoscale-explorer/ui/entities.d.ts +23 -1
- package/lib/apps/mesoscale-explorer/ui/entities.js +301 -32
- package/lib/apps/mesoscale-explorer/ui/panels.d.ts +1 -0
- package/lib/apps/mesoscale-explorer/ui/panels.js +42 -5
- package/lib/apps/mesoscale-explorer/ui/states.d.ts +60 -2
- package/lib/apps/mesoscale-explorer/ui/states.js +471 -11
- package/lib/apps/viewer/app.d.ts +12 -5
- package/lib/apps/viewer/app.js +30 -1
- package/lib/commonjs/apps/docking-viewer/viewport.d.ts +1 -1
- package/lib/commonjs/apps/docking-viewer/viewport.js +2 -1
- package/lib/commonjs/apps/mesoscale-explorer/app.d.ts +3 -1
- package/lib/commonjs/apps/mesoscale-explorer/app.js +12 -1
- package/lib/commonjs/apps/mesoscale-explorer/behavior/camera.d.ts +12 -0
- package/lib/commonjs/apps/mesoscale-explorer/behavior/camera.js +34 -8
- package/lib/commonjs/apps/mesoscale-explorer/behavior/select.d.ts +1 -0
- package/lib/commonjs/apps/mesoscale-explorer/behavior/select.js +58 -9
- package/lib/commonjs/apps/mesoscale-explorer/data/cellpack/model.js +4 -6
- package/lib/commonjs/apps/mesoscale-explorer/data/cellpack/preset.js +8 -6
- package/lib/commonjs/apps/mesoscale-explorer/data/generic/model.d.ts +1 -0
- package/lib/commonjs/apps/mesoscale-explorer/data/generic/model.js +2 -1
- package/lib/commonjs/apps/mesoscale-explorer/data/generic/preset.js +9 -9
- package/lib/commonjs/apps/mesoscale-explorer/data/mmcif/model.js +3 -1
- package/lib/commonjs/apps/mesoscale-explorer/data/mmcif/preset.js +6 -4
- package/lib/commonjs/apps/mesoscale-explorer/data/petworld/model.js +3 -1
- package/lib/commonjs/apps/mesoscale-explorer/data/petworld/preset.js +6 -4
- package/lib/commonjs/apps/mesoscale-explorer/data/state.d.ts +48 -10
- package/lib/commonjs/apps/mesoscale-explorer/data/state.js +107 -28
- package/lib/commonjs/apps/mesoscale-explorer/data/util.js +2 -3
- package/lib/commonjs/apps/mesoscale-explorer/ui/entities.d.ts +23 -1
- package/lib/commonjs/apps/mesoscale-explorer/ui/entities.js +302 -30
- package/lib/commonjs/apps/mesoscale-explorer/ui/panels.d.ts +1 -0
- package/lib/commonjs/apps/mesoscale-explorer/ui/panels.js +39 -2
- package/lib/commonjs/apps/mesoscale-explorer/ui/states.d.ts +60 -2
- package/lib/commonjs/apps/mesoscale-explorer/ui/states.js +477 -13
- package/lib/commonjs/apps/viewer/app.d.ts +12 -5
- package/lib/commonjs/apps/viewer/app.js +29 -0
- package/lib/commonjs/cli/chem-comp-dict/util.js +7 -7
- package/lib/commonjs/cli/cif2bcif/converter.js +1 -2
- package/lib/commonjs/cli/cifschema/util/cif-dic.js +2 -3
- package/lib/commonjs/cli/cifschema/util/generate.js +1 -2
- package/lib/commonjs/cli/cifschema/util/helper.js +1 -2
- package/lib/commonjs/cli/cifschema/util/schema.js +9 -10
- package/lib/commonjs/cli/state-docs/pd-to-md.js +1 -2
- package/lib/commonjs/cli/structure-info/helpers.js +2 -3
- package/lib/commonjs/cli/structure-info/model.js +11 -12
- package/lib/commonjs/examples/alpha-orbitals/controls.js +1 -2
- package/lib/commonjs/examples/basic-wrapper/custom-theme.js +2 -2
- package/lib/commonjs/examples/basic-wrapper/superposition.js +3 -3
- package/lib/commonjs/examples/domain-annotation-server/mapping.js +1 -2
- package/lib/commonjs/examples/lighting/index.d.ts +1 -1
- package/lib/commonjs/examples/lighting/index.js +2 -1
- package/lib/commonjs/examples/proteopedia-wrapper/coloring.d.ts +5 -20
- package/lib/commonjs/examples/proteopedia-wrapper/coloring.js +1 -2
- package/lib/commonjs/examples/proteopedia-wrapper/ui/controls.js +1 -2
- package/lib/commonjs/examples/task.js +6 -6
- package/lib/commonjs/extensions/alpha-orbitals/collocation.js +1 -2
- package/lib/commonjs/extensions/alpha-orbitals/data-model.js +4 -5
- package/lib/commonjs/extensions/alpha-orbitals/density.js +2 -3
- package/lib/commonjs/extensions/alpha-orbitals/gpu/compute.js +2 -3
- package/lib/commonjs/extensions/alpha-orbitals/orbitals.js +2 -3
- package/lib/commonjs/extensions/alpha-orbitals/spherical-functions.js +2 -2
- package/lib/commonjs/extensions/alpha-orbitals/transforms.d.ts +3 -3
- package/lib/commonjs/extensions/anvil/algorithm.js +5 -5
- package/lib/commonjs/extensions/anvil/behavior.d.ts +1 -0
- package/lib/commonjs/extensions/anvil/behavior.js +2 -2
- package/lib/commonjs/extensions/anvil/representation.d.ts +4 -0
- package/lib/commonjs/extensions/anvil/representation.js +3 -3
- package/lib/commonjs/extensions/assembly-symmetry/behavior.d.ts +1 -0
- package/lib/commonjs/extensions/assembly-symmetry/behavior.js +3 -3
- package/lib/commonjs/extensions/assembly-symmetry/color.d.ts +2 -2
- package/lib/commonjs/extensions/assembly-symmetry/color.js +3 -3
- package/lib/commonjs/extensions/assembly-symmetry/prop.js +3 -3
- package/lib/commonjs/extensions/assembly-symmetry/representation.d.ts +1 -0
- package/lib/commonjs/extensions/assembly-symmetry/representation.js +2 -2
- package/lib/commonjs/extensions/dnatco/confal-pyramids/behavior.js +2 -2
- package/lib/commonjs/extensions/dnatco/confal-pyramids/color.js +3 -3
- package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +3 -0
- package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.js +3 -3
- package/lib/commonjs/extensions/dnatco/ntc-tube/behavior.js +2 -2
- package/lib/commonjs/extensions/dnatco/ntc-tube/color.js +3 -3
- package/lib/commonjs/extensions/dnatco/ntc-tube/representation.d.ts +3 -0
- package/lib/commonjs/extensions/dnatco/ntc-tube/representation.js +3 -3
- package/lib/commonjs/extensions/g3d/data.js +2 -3
- package/lib/commonjs/extensions/g3d/format.d.ts +3 -3
- package/lib/commonjs/extensions/g3d/model.js +5 -5
- package/lib/commonjs/extensions/geo-export/mesh-exporter.d.ts +2 -2
- package/lib/commonjs/extensions/geo-export/ui.d.ts +0 -1
- package/lib/commonjs/extensions/meshes/examples.js +9 -9
- package/lib/commonjs/extensions/meshes/mesh-extension.d.ts +3 -5
- package/lib/commonjs/extensions/meshes/mesh-extension.js +2 -2
- package/lib/commonjs/extensions/meshes/mesh-streaming/behavior.d.ts +3 -3
- package/lib/commonjs/extensions/meshes/mesh-streaming/server-info.d.ts +3 -3
- package/lib/commonjs/extensions/meshes/mesh-utils.js +9 -9
- package/lib/commonjs/extensions/model-archive/quality-assessment/color/plddt.d.ts +1 -1
- package/lib/commonjs/extensions/model-archive/quality-assessment/color/plddt.js +11 -8
- package/lib/commonjs/extensions/model-archive/quality-assessment/color/qmean.js +3 -3
- package/lib/commonjs/extensions/model-export/export.js +2 -2
- package/lib/commonjs/extensions/model-export/ui.d.ts +0 -1
- package/lib/commonjs/extensions/mp4-export/controls.d.ts +1 -1
- package/lib/commonjs/extensions/mp4-export/encoder.js +2 -3
- package/lib/commonjs/extensions/mp4-export/ui.d.ts +0 -1
- package/lib/commonjs/extensions/mvs/camera.js +4 -5
- package/lib/commonjs/extensions/mvs/components/annotation-color-theme.js +2 -2
- package/lib/commonjs/extensions/mvs/components/annotation-label/representation.d.ts +32 -34
- package/lib/commonjs/extensions/mvs/components/annotation-label/representation.js +2 -2
- package/lib/commonjs/extensions/mvs/components/annotation-label/visual.d.ts +16 -16
- package/lib/commonjs/extensions/mvs/components/annotation-label/visual.js +2 -2
- package/lib/commonjs/extensions/mvs/components/annotation-prop.js +2 -2
- package/lib/commonjs/extensions/mvs/components/annotation-structure-component.js +4 -4
- package/lib/commonjs/extensions/mvs/components/custom-label/representation.d.ts +32 -32
- package/lib/commonjs/extensions/mvs/components/custom-label/representation.js +2 -2
- package/lib/commonjs/extensions/mvs/components/custom-label/visual.d.ts +16 -16
- package/lib/commonjs/extensions/mvs/components/custom-label/visual.js +2 -2
- package/lib/commonjs/extensions/mvs/components/formats.d.ts +6 -6
- package/lib/commonjs/extensions/mvs/components/formats.js +2 -2
- package/lib/commonjs/extensions/mvs/components/is-mvs-model-prop.js +3 -3
- package/lib/commonjs/extensions/mvs/components/multilayer-color-theme.js +3 -3
- package/lib/commonjs/extensions/mvs/components/selector.js +3 -3
- package/lib/commonjs/extensions/mvs/helpers/indexing.d.ts +2 -2
- package/lib/commonjs/extensions/mvs/helpers/label-text.js +1 -2
- package/lib/commonjs/extensions/mvs/helpers/param-definition.js +2 -3
- package/lib/commonjs/extensions/mvs/helpers/schemas.d.ts +1 -1
- package/lib/commonjs/extensions/mvs/helpers/schemas.js +2 -2
- package/lib/commonjs/extensions/mvs/helpers/selections.js +6 -7
- package/lib/commonjs/extensions/mvs/helpers/utils.d.ts +1 -1
- package/lib/commonjs/extensions/mvs/helpers/utils.js +7 -7
- package/lib/commonjs/extensions/mvs/load-helpers.d.ts +1 -1
- package/lib/commonjs/extensions/mvs/load-helpers.js +17 -17
- package/lib/commonjs/extensions/mvs/load.js +1 -2
- package/lib/commonjs/extensions/mvs/tree/generic/params-schema.js +8 -8
- package/lib/commonjs/extensions/mvs/tree/generic/tree-schema.js +8 -9
- package/lib/commonjs/extensions/mvs/tree/generic/tree-utils.js +10 -11
- package/lib/commonjs/extensions/mvs/tree/molstar/conversion.js +4 -4
- package/lib/commonjs/extensions/mvs/tree/mvs/mvs-builder.d.ts +0 -2
- package/lib/commonjs/extensions/mvs/tree/mvs/mvs-builder.js +3 -3
- package/lib/commonjs/extensions/pdbe/structure-quality-report/color.js +2 -2
- package/lib/commonjs/extensions/rcsb/validation-report/color/density-fit.js +2 -2
- package/lib/commonjs/extensions/rcsb/validation-report/color/geometry-quality.js +3 -3
- package/lib/commonjs/extensions/rcsb/validation-report/color/random-coil-index.js +2 -2
- package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +5 -0
- package/lib/commonjs/extensions/rcsb/validation-report/representation.js +5 -5
- package/lib/commonjs/extensions/sb-ncbr/index.d.ts +8 -0
- package/lib/commonjs/extensions/sb-ncbr/index.js +14 -1
- package/lib/commonjs/extensions/sb-ncbr/partial-charges/color.js +3 -3
- package/lib/commonjs/extensions/sb-ncbr/partial-charges/labels.js +1 -2
- package/lib/commonjs/extensions/sb-ncbr/partial-charges/property.js +2 -2
- package/lib/commonjs/extensions/sb-ncbr/tunnels/actions.d.ts +20 -0
- package/lib/commonjs/extensions/sb-ncbr/tunnels/actions.js +89 -0
- package/lib/commonjs/extensions/sb-ncbr/tunnels/algorithm.d.ts +26 -0
- package/lib/commonjs/extensions/sb-ncbr/tunnels/algorithm.js +473 -0
- package/lib/commonjs/extensions/sb-ncbr/tunnels/behavior.d.ts +40 -0
- package/lib/commonjs/extensions/sb-ncbr/tunnels/behavior.js +96 -0
- package/lib/commonjs/extensions/sb-ncbr/tunnels/data-model.d.ts +146 -0
- package/lib/commonjs/extensions/sb-ncbr/tunnels/data-model.js +28 -0
- package/lib/commonjs/extensions/sb-ncbr/tunnels/examples.d.ts +12 -0
- package/lib/commonjs/extensions/sb-ncbr/tunnels/examples.js +54 -0
- package/lib/commonjs/extensions/sb-ncbr/tunnels/props.d.ts +19 -0
- package/lib/commonjs/extensions/sb-ncbr/tunnels/props.js +26 -0
- package/lib/commonjs/extensions/sb-ncbr/tunnels/representation.d.ts +29 -0
- package/lib/commonjs/extensions/sb-ncbr/tunnels/representation.js +99 -0
- package/lib/commonjs/extensions/volumes-and-segmentations/entry-root.d.ts +3 -3
- package/lib/commonjs/extensions/volumes-and-segmentations/entry-root.js +3 -3
- package/lib/commonjs/extensions/volumes-and-segmentations/entry-state.d.ts +3 -3
- package/lib/commonjs/extensions/volumes-and-segmentations/external-api.js +2 -3
- package/lib/commonjs/extensions/volumes-and-segmentations/global-state.d.ts +3 -3
- package/lib/commonjs/extensions/volumes-and-segmentations/helpers.js +6 -6
- package/lib/commonjs/extensions/volumes-and-segmentations/ui.d.ts +0 -1
- package/lib/commonjs/extensions/zenodo/ui.d.ts +0 -1
- package/lib/commonjs/mol-canvas3d/camera/transition.d.ts +1 -1
- package/lib/commonjs/mol-canvas3d/camera/transition.js +23 -6
- package/lib/commonjs/mol-canvas3d/camera/util.js +3 -4
- package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +26 -1
- package/lib/commonjs/mol-canvas3d/canvas3d.js +4 -0
- package/lib/commonjs/mol-canvas3d/helper/bounding-sphere-helper.d.ts +1 -6
- package/lib/commonjs/mol-canvas3d/helper/camera-helper.js +2 -2
- package/lib/commonjs/mol-canvas3d/helper/handle-helper.d.ts +1 -0
- package/lib/commonjs/mol-canvas3d/helper/handle-helper.js +2 -2
- package/lib/commonjs/mol-canvas3d/helper/helper.d.ts +2 -0
- package/lib/commonjs/mol-canvas3d/passes/dof.d.ts +34 -0
- package/lib/commonjs/mol-canvas3d/passes/dof.js +167 -0
- package/lib/commonjs/mol-canvas3d/passes/draw.d.ts +2 -0
- package/lib/commonjs/mol-canvas3d/passes/draw.js +31 -8
- package/lib/commonjs/mol-canvas3d/passes/image.d.ts +10 -0
- package/lib/commonjs/mol-canvas3d/passes/multi-sample.d.ts +2 -1
- package/lib/commonjs/mol-canvas3d/passes/multi-sample.js +4 -3
- package/lib/commonjs/mol-canvas3d/passes/postprocessing.d.ts +9 -0
- package/lib/commonjs/mol-canvas3d/passes/postprocessing.js +12 -2
- package/lib/commonjs/mol-canvas3d/util.js +3 -4
- package/lib/commonjs/mol-data/db/column-helpers.js +6 -7
- package/lib/commonjs/mol-data/db/column.d.ts +1 -1
- package/lib/commonjs/mol-data/generic/hash-set.js +1 -2
- package/lib/commonjs/mol-data/generic/linked-list.js +1 -2
- package/lib/commonjs/mol-data/int/impl/interval.js +15 -15
- package/lib/commonjs/mol-data/int/impl/ordered-set.js +25 -25
- package/lib/commonjs/mol-data/int/impl/segmentation.js +7 -7
- package/lib/commonjs/mol-data/int/impl/sorted-array.js +31 -31
- package/lib/commonjs/mol-data/int/linked-index.js +1 -2
- package/lib/commonjs/mol-data/util/array.js +5 -6
- package/lib/commonjs/mol-data/util/buckets.js +1 -2
- package/lib/commonjs/mol-data/util/combination.js +2 -2
- package/lib/commonjs/mol-data/util/equivalence-classes.js +2 -2
- package/lib/commonjs/mol-data/util/grouping.js +2 -3
- package/lib/commonjs/mol-data/util/hash-functions.js +9 -10
- package/lib/commonjs/mol-data/util/sort.js +5 -6
- package/lib/commonjs/mol-geo/geometry/base.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/base.js +3 -3
- package/lib/commonjs/mol-geo/geometry/clipping-data.js +4 -5
- package/lib/commonjs/mol-geo/geometry/color-data.js +4 -5
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +1 -0
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.js +3 -0
- package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.d.ts +1 -0
- package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.js +3 -0
- package/lib/commonjs/mol-geo/geometry/direct-volume/transfer-function.js +3 -4
- package/lib/commonjs/mol-geo/geometry/emissive-data.js +5 -6
- package/lib/commonjs/mol-geo/geometry/image/image.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +0 -1
- package/lib/commonjs/mol-geo/geometry/marker-data.js +3 -4
- package/lib/commonjs/mol-geo/geometry/mesh/builder/axes.js +1 -2
- package/lib/commonjs/mol-geo/geometry/mesh/builder/box.js +2 -3
- package/lib/commonjs/mol-geo/geometry/mesh/builder/cylinder.js +4 -5
- package/lib/commonjs/mol-geo/geometry/mesh/builder/ellipsoid.js +1 -2
- package/lib/commonjs/mol-geo/geometry/mesh/builder/ribbon.js +1 -2
- package/lib/commonjs/mol-geo/geometry/mesh/builder/sheet.js +1 -2
- package/lib/commonjs/mol-geo/geometry/mesh/builder/sphere.js +2 -3
- package/lib/commonjs/mol-geo/geometry/mesh/builder/tube.js +1 -2
- package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.js +7 -8
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +1 -0
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.js +3 -0
- package/lib/commonjs/mol-geo/geometry/overpaint-data.js +4 -5
- package/lib/commonjs/mol-geo/geometry/points/points.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/size-data.js +9 -9
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +1 -0
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.js +3 -0
- package/lib/commonjs/mol-geo/geometry/substance-data.js +4 -5
- package/lib/commonjs/mol-geo/geometry/text/font-atlas.js +3 -3
- package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.js +7 -7
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +1 -0
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js +3 -0
- package/lib/commonjs/mol-geo/geometry/transform-data.js +4 -5
- package/lib/commonjs/mol-geo/geometry/transparency-data.js +5 -6
- package/lib/commonjs/mol-geo/primitive/box.js +3 -4
- package/lib/commonjs/mol-geo/primitive/cage.js +3 -4
- package/lib/commonjs/mol-geo/primitive/circle.js +2 -2
- package/lib/commonjs/mol-geo/primitive/cylinder.js +2 -2
- package/lib/commonjs/mol-geo/primitive/dodecahedron.js +3 -3
- package/lib/commonjs/mol-geo/primitive/icosahedron.js +2 -3
- package/lib/commonjs/mol-geo/primitive/octahedron.js +4 -4
- package/lib/commonjs/mol-geo/primitive/plane.js +2 -3
- package/lib/commonjs/mol-geo/primitive/polygon.js +1 -2
- package/lib/commonjs/mol-geo/primitive/polyhedron.js +2 -2
- package/lib/commonjs/mol-geo/primitive/primitive.js +4 -5
- package/lib/commonjs/mol-geo/primitive/prism.js +11 -11
- package/lib/commonjs/mol-geo/primitive/pyramid.js +6 -7
- package/lib/commonjs/mol-geo/primitive/sphere.js +2 -3
- package/lib/commonjs/mol-geo/primitive/spiked-ball.js +1 -2
- package/lib/commonjs/mol-geo/primitive/star.js +2 -2
- package/lib/commonjs/mol-geo/primitive/tetrahedron.js +3 -3
- package/lib/commonjs/mol-geo/primitive/torus.js +2 -2
- package/lib/commonjs/mol-geo/primitive/wedge.js +3 -4
- package/lib/commonjs/mol-geo/util/location-iterator.js +3 -4
- package/lib/commonjs/mol-geo/util/marching-cubes/algorithm.js +2 -3
- package/lib/commonjs/mol-geo/util/marching-cubes/builder.js +2 -3
- package/lib/commonjs/mol-geo/util/marching-cubes/tables.js +3 -3
- package/lib/commonjs/mol-geo/util.js +7 -8
- package/lib/commonjs/mol-gl/compute/grid3d.js +2 -3
- package/lib/commonjs/mol-gl/compute/hi-z.js +1 -2
- package/lib/commonjs/mol-gl/compute/histogram-pyramid/reduction.js +1 -2
- package/lib/commonjs/mol-gl/compute/histogram-pyramid/sum.js +1 -2
- package/lib/commonjs/mol-gl/compute/marching-cubes/active-voxels.js +1 -2
- package/lib/commonjs/mol-gl/compute/marching-cubes/isosurface.js +2 -3
- package/lib/commonjs/mol-gl/compute/marching-cubes/tables.js +2 -3
- package/lib/commonjs/mol-gl/compute/util.js +5 -5
- package/lib/commonjs/mol-gl/render-object.js +3 -3
- package/lib/commonjs/mol-gl/renderable/cylinders.d.ts +1 -0
- package/lib/commonjs/mol-gl/renderable/cylinders.js +3 -2
- package/lib/commonjs/mol-gl/renderable/direct-volume.d.ts +1 -0
- package/lib/commonjs/mol-gl/renderable/direct-volume.js +3 -2
- package/lib/commonjs/mol-gl/renderable/image.js +2 -2
- package/lib/commonjs/mol-gl/renderable/lines.js +2 -2
- package/lib/commonjs/mol-gl/renderable/mesh.d.ts +1 -0
- package/lib/commonjs/mol-gl/renderable/mesh.js +3 -2
- package/lib/commonjs/mol-gl/renderable/points.js +2 -2
- package/lib/commonjs/mol-gl/renderable/schema.d.ts +1 -0
- package/lib/commonjs/mol-gl/renderable/schema.js +10 -9
- package/lib/commonjs/mol-gl/renderable/spheres.d.ts +1 -0
- package/lib/commonjs/mol-gl/renderable/spheres.js +3 -2
- package/lib/commonjs/mol-gl/renderable/text.js +2 -2
- package/lib/commonjs/mol-gl/renderable/texture-mesh.d.ts +1 -0
- package/lib/commonjs/mol-gl/renderable/texture-mesh.js +3 -2
- package/lib/commonjs/mol-gl/renderable/util.js +7 -8
- package/lib/commonjs/mol-gl/renderable.js +2 -3
- package/lib/commonjs/mol-gl/renderer.d.ts +1 -0
- package/lib/commonjs/mol-gl/renderer.js +6 -0
- package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +2 -1
- package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.js +57 -24
- 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 +1 -0
- package/lib/commonjs/mol-gl/shader/chunks/common.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/common.glsl.js +6 -0
- package/lib/commonjs/mol-gl/shader/cylinders.frag.d.ts +2 -1
- package/lib/commonjs/mol-gl/shader/cylinders.frag.js +11 -2
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.js +1 -0
- package/lib/commonjs/mol-gl/shader/dof.frag.d.ts +7 -0
- package/lib/commonjs/mol-gl/shader/dof.frag.js +122 -0
- package/lib/commonjs/mol-gl/shader/ssao-blur.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/ssao-blur.frag.js +9 -6
- package/lib/commonjs/mol-gl/shader-code.js +4 -4
- package/lib/commonjs/mol-gl/webgl/buffer.js +8 -9
- package/lib/commonjs/mol-gl/webgl/compat.js +32 -33
- package/lib/commonjs/mol-gl/webgl/context.js +7 -7
- package/lib/commonjs/mol-gl/webgl/extensions.js +1 -2
- package/lib/commonjs/mol-gl/webgl/framebuffer.js +3 -4
- package/lib/commonjs/mol-gl/webgl/program.js +2 -3
- package/lib/commonjs/mol-gl/webgl/render-item.d.ts +2 -2
- package/lib/commonjs/mol-gl/webgl/render-item.js +5 -5
- package/lib/commonjs/mol-gl/webgl/render-target.js +2 -3
- package/lib/commonjs/mol-gl/webgl/renderbuffer.js +3 -4
- package/lib/commonjs/mol-gl/webgl/resources.js +1 -2
- package/lib/commonjs/mol-gl/webgl/shader.js +2 -3
- package/lib/commonjs/mol-gl/webgl/state.js +1 -2
- package/lib/commonjs/mol-gl/webgl/texture.js +13 -14
- package/lib/commonjs/mol-gl/webgl/timer.d.ts +1 -1
- package/lib/commonjs/mol-gl/webgl/timer.js +10 -4
- package/lib/commonjs/mol-gl/webgl/uniform.js +6 -7
- package/lib/commonjs/mol-gl/webgl/vertex-array.js +1 -2
- package/lib/commonjs/mol-io/common/ascii.js +1 -2
- package/lib/commonjs/mol-io/common/binary-cif/classifier.js +2 -3
- package/lib/commonjs/mol-io/common/binary-cif/decoder.js +1 -2
- package/lib/commonjs/mol-io/common/binary.js +3 -3
- package/lib/commonjs/mol-io/common/msgpack/decode.js +1 -2
- package/lib/commonjs/mol-io/common/msgpack/encode.js +1 -2
- package/lib/commonjs/mol-io/common/simple-buffer.d.ts +0 -1
- package/lib/commonjs/mol-io/common/typed-array.js +6 -6
- package/lib/commonjs/mol-io/common/utf8.js +3 -4
- package/lib/commonjs/mol-io/reader/ccp4/parser.js +6 -7
- package/lib/commonjs/mol-io/reader/cif/binary/field.js +1 -2
- package/lib/commonjs/mol-io/reader/cif/binary/parser.js +1 -2
- package/lib/commonjs/mol-io/reader/cif/data-model.js +8 -8
- 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.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 +9 -1
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +9 -1
- package/lib/commonjs/mol-io/reader/cif/schema.js +4 -4
- package/lib/commonjs/mol-io/reader/cif/text/parser.js +1 -2
- package/lib/commonjs/mol-io/reader/common/text/column/fixed.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/common/text/column/fixed.js +2 -3
- package/lib/commonjs/mol-io/reader/common/text/column/token.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/common/text/column/token.js +4 -5
- package/lib/commonjs/mol-io/reader/common/text/number-parser.js +6 -6
- package/lib/commonjs/mol-io/reader/common/text/tokenizer.js +3 -3
- package/lib/commonjs/mol-io/reader/csv/data-model.js +3 -3
- package/lib/commonjs/mol-io/reader/csv/parser.js +1 -2
- package/lib/commonjs/mol-io/reader/cube/parser.js +1 -2
- package/lib/commonjs/mol-io/reader/dcd/parser.js +2 -3
- package/lib/commonjs/mol-io/reader/dsn6/parser.js +6 -6
- package/lib/commonjs/mol-io/reader/dx/parser.js +1 -2
- package/lib/commonjs/mol-io/reader/gro/parser.js +1 -2
- package/lib/commonjs/mol-io/reader/mol/parser.js +6 -7
- package/lib/commonjs/mol-io/reader/mol2/parser.js +1 -2
- package/lib/commonjs/mol-io/reader/nctraj/parser.js +1 -2
- package/lib/commonjs/mol-io/reader/obj/parser.js +1 -2
- package/lib/commonjs/mol-io/reader/pdb/parser.js +1 -2
- package/lib/commonjs/mol-io/reader/ply/parser.js +1 -2
- package/lib/commonjs/mol-io/reader/ply/schema.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/ply/schema.js +3 -3
- package/lib/commonjs/mol-io/reader/prmtop/parser.js +1 -2
- package/lib/commonjs/mol-io/reader/psf/parser.js +1 -2
- package/lib/commonjs/mol-io/reader/sdf/parser-v3-util.js +4 -5
- package/lib/commonjs/mol-io/reader/sdf/parser.js +1 -2
- package/lib/commonjs/mol-io/reader/top/parser.js +1 -2
- package/lib/commonjs/mol-io/reader/trr/parser.js +1 -2
- package/lib/commonjs/mol-io/reader/xtc/parser.js +1 -2
- package/lib/commonjs/mol-io/reader/xyz/parser.js +1 -2
- package/lib/commonjs/mol-io/writer/cif/encoder/util.js +3 -4
- package/lib/commonjs/mol-math/approx.js +24 -25
- package/lib/commonjs/mol-math/easing.js +18 -19
- package/lib/commonjs/mol-math/geometry/boundary.js +2 -3
- package/lib/commonjs/mol-math/geometry/common.js +2 -3
- package/lib/commonjs/mol-math/geometry/distance-transform.js +1 -2
- package/lib/commonjs/mol-math/geometry/gaussian-density/cpu.js +1 -2
- package/lib/commonjs/mol-math/geometry/gaussian-density/gpu.js +4 -5
- package/lib/commonjs/mol-math/geometry/gaussian-density.js +5 -5
- package/lib/commonjs/mol-math/geometry/instance-grid.js +2 -3
- package/lib/commonjs/mol-math/geometry/lookup3d/grid.js +1 -2
- package/lib/commonjs/mol-math/geometry/molecular-surface.js +2 -2
- package/lib/commonjs/mol-math/geometry/polygon.js +1 -2
- package/lib/commonjs/mol-math/geometry/primitives/axes3d.js +1 -2
- package/lib/commonjs/mol-math/geometry/primitives/box3d.js +1 -2
- package/lib/commonjs/mol-math/geometry/primitives/frustum3d.js +1 -2
- package/lib/commonjs/mol-math/geometry/primitives/plane3d.js +1 -2
- package/lib/commonjs/mol-math/geometry/primitives/sphere3d.js +1 -2
- package/lib/commonjs/mol-math/geometry/spacegroup/cell.js +1 -2
- package/lib/commonjs/mol-math/geometry/spacegroup/tables.js +4 -4
- package/lib/commonjs/mol-math/histogram.js +1 -2
- package/lib/commonjs/mol-math/interpolate.js +12 -13
- package/lib/commonjs/mol-math/linear-algebra/3d/common.js +2 -2
- package/lib/commonjs/mol-math/linear-algebra/3d/euler.js +1 -2
- package/lib/commonjs/mol-math/linear-algebra/3d/mat3.js +1 -2
- package/lib/commonjs/mol-math/linear-algebra/3d/mat4.js +1 -2
- package/lib/commonjs/mol-math/linear-algebra/3d/minimize-rmsd.js +2 -1
- package/lib/commonjs/mol-math/linear-algebra/3d/quat.js +1 -2
- package/lib/commonjs/mol-math/linear-algebra/3d/vec2.js +1 -2
- package/lib/commonjs/mol-math/linear-algebra/3d/vec3.js +1 -2
- package/lib/commonjs/mol-math/linear-algebra/3d/vec4.js +1 -2
- package/lib/commonjs/mol-math/linear-algebra/matrix/svd.js +4 -5
- package/lib/commonjs/mol-math/misc.js +7 -7
- package/lib/commonjs/mol-model/custom-property.js +2 -2
- package/lib/commonjs/mol-model/location.js +4 -4
- package/lib/commonjs/mol-model/loci.d.ts +1 -1
- package/lib/commonjs/mol-model/loci.js +7 -7
- package/lib/commonjs/mol-model/sequence/alignment/alignment.d.ts +2 -1
- package/lib/commonjs/mol-model/sequence/alignment/alignment.js +1 -2
- package/lib/commonjs/mol-model/sequence/alignment/sequence.js +3 -3
- package/lib/commonjs/mol-model/sequence/constants.js +3 -4
- package/lib/commonjs/mol-model/structure/coordinates/coordinates.js +2 -2
- package/lib/commonjs/mol-model/structure/export/categories/atom_site.js +5 -5
- package/lib/commonjs/mol-model/structure/export/categories/atom_site_operator_mapping.js +2 -2
- package/lib/commonjs/mol-model/structure/export/categories/utils.js +6 -7
- package/lib/commonjs/mol-model/structure/export/mmcif.js +3 -3
- package/lib/commonjs/mol-model/structure/model/properties/atomic/bonds.js +2 -3
- package/lib/commonjs/mol-model/structure/model/properties/atomic/measures.js +4 -4
- package/lib/commonjs/mol-model/structure/model/properties/atomic/types.js +14 -14
- package/lib/commonjs/mol-model/structure/model/properties/secondary-structure.js +1 -2
- package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-derived.js +1 -2
- package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-index.js +1 -2
- package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-ranges.js +1 -2
- package/lib/commonjs/mol-model/structure/model/properties/utils/coarse-keys.js +1 -2
- package/lib/commonjs/mol-model/structure/model/properties/utils/coarse-ranges.js +1 -2
- package/lib/commonjs/mol-model/structure/model/types/saccharides.js +1 -1
- package/lib/commonjs/mol-model/structure/model/types.d.ts +3 -3
- package/lib/commonjs/mol-model/structure/model/types.js +12 -12
- package/lib/commonjs/mol-model/structure/model/util.js +2 -3
- package/lib/commonjs/mol-model/structure/query/queries/atom-set.js +3 -4
- package/lib/commonjs/mol-model/structure/query/queries/combinators.js +2 -3
- package/lib/commonjs/mol-model/structure/query/queries/filters.js +7 -8
- package/lib/commonjs/mol-model/structure/query/queries/generators.js +9 -9
- package/lib/commonjs/mol-model/structure/query/queries/internal.js +7 -8
- package/lib/commonjs/mol-model/structure/query/queries/modifiers.js +9 -10
- package/lib/commonjs/mol-model/structure/query/utils/structure-distance.js +2 -3
- package/lib/commonjs/mol-model/structure/query/utils/structure-set.js +5 -6
- package/lib/commonjs/mol-model/structure/structure/carbohydrates/compute.js +1 -2
- package/lib/commonjs/mol-model/structure/structure/carbohydrates/constants.js +4 -4
- package/lib/commonjs/mol-model/structure/structure/element/loci.js +1 -2
- package/lib/commonjs/mol-model/structure/structure/element/util.js +6 -7
- package/lib/commonjs/mol-model/structure/structure/properties.d.ts +1 -0
- package/lib/commonjs/mol-model/structure/structure/properties.js +1 -0
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/common.js +6 -6
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/inter-compute.js +1 -2
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/intra-compute.js +1 -2
- package/lib/commonjs/mol-model/structure/structure/unit/resonance.js +1 -2
- package/lib/commonjs/mol-model/structure/structure/unit/rings/compute.js +3 -4
- package/lib/commonjs/mol-model/structure/structure/util/boundary.js +1 -2
- package/lib/commonjs/mol-model/structure/structure/util/lookup3d.js +2 -2
- package/lib/commonjs/mol-model/structure/structure/util/polymer.js +6 -7
- package/lib/commonjs/mol-model/structure/structure/util/principal-axes.js +2 -3
- package/lib/commonjs/mol-model/structure/structure/util/superposition-sifts-mapping.js +1 -2
- package/lib/commonjs/mol-model/structure/structure/util/superposition.js +3 -4
- package/lib/commonjs/mol-model/structure/util.js +5 -6
- package/lib/commonjs/mol-model/volume/volume.d.ts +6 -6
- package/lib/commonjs/mol-model-formats/shape/ply.d.ts +2 -0
- package/lib/commonjs/mol-model-formats/shape/ply.js +2 -2
- package/lib/commonjs/mol-model-formats/structure/basic/atomic.js +1 -2
- package/lib/commonjs/mol-model-formats/structure/basic/coarse.js +2 -2
- package/lib/commonjs/mol-model-formats/structure/basic/entities.js +2 -3
- package/lib/commonjs/mol-model-formats/structure/basic/parser.js +1 -2
- package/lib/commonjs/mol-model-formats/structure/basic/properties.js +4 -5
- package/lib/commonjs/mol-model-formats/structure/basic/schema.d.ts +1 -0
- package/lib/commonjs/mol-model-formats/structure/basic/schema.js +2 -2
- package/lib/commonjs/mol-model-formats/structure/basic/sequence.js +1 -2
- package/lib/commonjs/mol-model-formats/structure/basic/sort.js +1 -2
- package/lib/commonjs/mol-model-formats/structure/basic/util.js +2 -3
- package/lib/commonjs/mol-model-formats/structure/cif-core.js +2 -2
- package/lib/commonjs/mol-model-formats/structure/common/entity.d.ts +1 -0
- package/lib/commonjs/mol-model-formats/structure/cube.js +1 -2
- package/lib/commonjs/mol-model-formats/structure/dcd.js +1 -2
- package/lib/commonjs/mol-model-formats/structure/gro.js +2 -2
- package/lib/commonjs/mol-model-formats/structure/mmcif.js +3 -3
- package/lib/commonjs/mol-model-formats/structure/mol.js +3 -3
- package/lib/commonjs/mol-model-formats/structure/mol2.js +2 -2
- package/lib/commonjs/mol-model-formats/structure/nctraj.js +1 -2
- package/lib/commonjs/mol-model-formats/structure/pdb/anisotropic.js +3 -4
- package/lib/commonjs/mol-model-formats/structure/pdb/assembly.js +3 -4
- package/lib/commonjs/mol-model-formats/structure/pdb/atom-site.js +3 -4
- package/lib/commonjs/mol-model-formats/structure/pdb/conect.js +1 -2
- package/lib/commonjs/mol-model-formats/structure/pdb/entity.js +2 -3
- package/lib/commonjs/mol-model-formats/structure/pdb/header.js +1 -2
- package/lib/commonjs/mol-model-formats/structure/pdb/secondary-structure.js +2 -3
- package/lib/commonjs/mol-model-formats/structure/pdb/to-cif.js +1 -2
- package/lib/commonjs/mol-model-formats/structure/pdb.js +2 -2
- package/lib/commonjs/mol-model-formats/structure/prmtop.js +2 -2
- package/lib/commonjs/mol-model-formats/structure/property/assembly.js +3 -4
- package/lib/commonjs/mol-model-formats/structure/psf.js +2 -2
- package/lib/commonjs/mol-model-formats/structure/sdf.js +2 -2
- package/lib/commonjs/mol-model-formats/structure/top.js +2 -2
- package/lib/commonjs/mol-model-formats/structure/trr.js +1 -2
- package/lib/commonjs/mol-model-formats/structure/util.js +2 -3
- package/lib/commonjs/mol-model-formats/structure/xtc.js +1 -2
- package/lib/commonjs/mol-model-formats/structure/xyz.js +2 -2
- package/lib/commonjs/mol-model-formats/volume/ccp4.js +3 -3
- package/lib/commonjs/mol-model-formats/volume/cube.js +2 -2
- package/lib/commonjs/mol-model-formats/volume/density-server.js +2 -2
- package/lib/commonjs/mol-model-formats/volume/dsn6.js +2 -2
- package/lib/commonjs/mol-model-formats/volume/dx.js +2 -2
- package/lib/commonjs/mol-model-formats/volume/segmentation.js +2 -2
- package/lib/commonjs/mol-model-props/computed/accessible-surface-area/shrake-rupley/area.js +1 -2
- package/lib/commonjs/mol-model-props/computed/accessible-surface-area/shrake-rupley/radii.js +1 -2
- package/lib/commonjs/mol-model-props/computed/chemistry/functional-group.js +16 -17
- package/lib/commonjs/mol-model-props/computed/chemistry/geometry.js +5 -5
- package/lib/commonjs/mol-model-props/computed/chemistry/util.js +16 -17
- package/lib/commonjs/mol-model-props/computed/chemistry/valence-model.js +4 -4
- package/lib/commonjs/mol-model-props/computed/helix-orientation/helix-orientation.js +1 -2
- package/lib/commonjs/mol-model-props/computed/interactions/common.js +4 -4
- package/lib/commonjs/mol-model-props/computed/interactions/contacts.js +3 -3
- package/lib/commonjs/mol-model-props/computed/interactions/interactions.js +2 -2
- package/lib/commonjs/mol-model-props/computed/interactions/refine.js +1 -2
- 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-inter-unit-cylinder.js +2 -2
- 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-intra-unit-cylinder.js +2 -2
- package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +3 -0
- package/lib/commonjs/mol-model-props/computed/representations/interactions.js +3 -3
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/backbone-hbonds.js +1 -2
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/bends.js +1 -2
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/bridges.js +1 -2
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/dihedral-angles.js +1 -2
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/helices.js +1 -2
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/ladders.js +1 -2
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/protein-info.js +1 -2
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/sheets.js +1 -2
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/trace-lookup.js +1 -2
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/turns.js +1 -2
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp.js +2 -2
- package/lib/commonjs/mol-model-props/computed/themes/accessible-surface-area.js +3 -3
- package/lib/commonjs/mol-model-props/computed/themes/interaction-type.js +3 -3
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/color.js +3 -3
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +4 -0
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.js +4 -4
- package/lib/commonjs/mol-model-props/sequence/themes/sifts-mapping.d.ts +2 -2
- package/lib/commonjs/mol-model-props/sequence/themes/sifts-mapping.js +3 -3
- package/lib/commonjs/mol-plugin/animation-loop.d.ts +1 -0
- package/lib/commonjs/mol-plugin/behavior/behavior.d.ts +9 -9
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/behavior.d.ts +9 -9
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +3 -3
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/transformers.d.ts +3 -3
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/util.js +8 -9
- package/lib/commonjs/mol-plugin/behavior/static/camera.js +6 -7
- package/lib/commonjs/mol-plugin/behavior/static/misc.js +2 -3
- package/lib/commonjs/mol-plugin/behavior/static/representation.js +4 -5
- package/lib/commonjs/mol-plugin/behavior/static/state.js +12 -13
- package/lib/commonjs/mol-plugin/command.js +2 -2
- package/lib/commonjs/mol-plugin/commands.d.ts +23 -87
- package/lib/commonjs/mol-plugin/context.d.ts +3 -2
- package/lib/commonjs/mol-plugin/context.js +4 -2
- package/lib/commonjs/mol-plugin/state.d.ts +7 -7
- package/lib/commonjs/mol-plugin/util/headless-screenshot.d.ts +1 -1
- package/lib/commonjs/mol-plugin/util/headless-screenshot.js +7 -5
- package/lib/commonjs/mol-plugin/util/viewport-screenshot.d.ts +1 -1
- package/lib/commonjs/mol-plugin/util/viewport-screenshot.js +2 -1
- package/lib/commonjs/mol-plugin-state/actions/volume.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/actions/volume.js +4 -12
- package/lib/commonjs/mol-plugin-state/animation/built-in/model-index.d.ts +2 -2
- package/lib/commonjs/mol-plugin-state/animation/built-in/state-snapshots.js +7 -3
- package/lib/commonjs/mol-plugin-state/animation/helpers.js +5 -5
- package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy-preset.js +2 -2
- package/lib/commonjs/mol-plugin-state/builder/structure/representation-preset.js +4 -4
- package/lib/commonjs/mol-plugin-state/formats/provider.js +2 -3
- package/lib/commonjs/mol-plugin-state/formats/registry.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/formats/trajectory.d.ts +9 -9
- package/lib/commonjs/mol-plugin-state/formats/volume.d.ts +0 -1
- package/lib/commonjs/mol-plugin-state/helpers/structure-clipping.js +1 -2
- package/lib/commonjs/mol-plugin-state/helpers/structure-component.js +3 -3
- package/lib/commonjs/mol-plugin-state/helpers/structure-emissive.js +2 -3
- package/lib/commonjs/mol-plugin-state/helpers/structure-overpaint.js +2 -3
- package/lib/commonjs/mol-plugin-state/helpers/structure-representation-params.js +4 -5
- package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.js +9 -9
- package/lib/commonjs/mol-plugin-state/helpers/structure-substance.js +2 -3
- package/lib/commonjs/mol-plugin-state/helpers/structure-transparency.js +2 -3
- package/lib/commonjs/mol-plugin-state/helpers/volume-representation-params.js +4 -5
- package/lib/commonjs/mol-plugin-state/manager/focus-camera/focus-first-residue.js +2 -3
- package/lib/commonjs/mol-plugin-state/manager/focus-camera/orient-axes.js +4 -4
- package/lib/commonjs/mol-plugin-state/manager/structure/hierarchy-state.js +2 -3
- package/lib/commonjs/mol-plugin-state/manager/structure/hierarchy.d.ts +3 -3
- package/lib/commonjs/mol-plugin-state/manager/structure/measurement.d.ts +4 -0
- package/lib/commonjs/mol-plugin-state/manager/volume/hierarchy-state.js +2 -3
- package/lib/commonjs/mol-plugin-state/objects.d.ts +97 -97
- package/lib/commonjs/mol-plugin-state/transforms/data.d.ts +10 -1
- package/lib/commonjs/mol-plugin-state/transforms/data.js +31 -2
- package/lib/commonjs/mol-plugin-state/transforms/helpers.js +6 -7
- package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +6 -0
- package/lib/commonjs/mol-plugin-state/transforms/shape.js +2 -2
- package/lib/commonjs/mol-plugin-ui/base.js +2 -1
- package/lib/commonjs/mol-plugin-ui/controls/color.js +3 -3
- package/lib/commonjs/mol-plugin-ui/controls/common.js +5 -5
- package/lib/commonjs/mol-plugin-ui/controls/icons.d.ts +5 -0
- package/lib/commonjs/mol-plugin-ui/controls/icons.js +87 -73
- package/lib/commonjs/mol-plugin-ui/controls/legend.js +2 -2
- package/lib/commonjs/mol-plugin-ui/controls/parameters.d.ts +3 -3
- package/lib/commonjs/mol-plugin-ui/controls/parameters.js +2 -2
- package/lib/commonjs/mol-plugin-ui/controls.js +3 -3
- package/lib/commonjs/mol-plugin-ui/hooks/use-behavior.js +1 -2
- package/lib/commonjs/mol-plugin-ui/index.js +1 -2
- package/lib/commonjs/mol-plugin-ui/left-panel.d.ts +0 -1
- package/lib/commonjs/mol-plugin-ui/plugin.js +5 -4
- package/lib/commonjs/mol-plugin-ui/react18.js +1 -2
- package/lib/commonjs/mol-plugin-ui/sequence.js +8 -8
- package/lib/commonjs/mol-plugin-ui/spec.d.ts +10 -10
- package/lib/commonjs/mol-plugin-ui/spec.js +1 -1
- package/lib/commonjs/mol-plugin-ui/state/apply-action.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/state/update-transform.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/structure/quick-styles.d.ts +2 -1
- package/lib/commonjs/mol-plugin-ui/structure/quick-styles.js +5 -2
- package/lib/commonjs/mol-plugin-ui/structure/selection.d.ts +2 -2
- package/lib/commonjs/mol-plugin-ui/task.js +2 -3
- package/lib/commonjs/mol-plugin-ui/viewport/simple-settings.js +3 -0
- package/lib/commonjs/mol-repr/representation.d.ts +3 -3
- package/lib/commonjs/mol-repr/shape/loci/angle.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/angle.js +2 -2
- package/lib/commonjs/mol-repr/shape/loci/dihedral.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/dihedral.js +2 -2
- package/lib/commonjs/mol-repr/shape/loci/distance.js +2 -2
- package/lib/commonjs/mol-repr/shape/loci/label.js +2 -2
- package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/orientation.js +2 -2
- package/lib/commonjs/mol-repr/shape/loci/plane.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/plane.js +2 -2
- package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/model/unitcell.js +3 -3
- package/lib/commonjs/mol-repr/shape/representation.js +1 -2
- package/lib/commonjs/mol-repr/structure/complex-representation.js +1 -2
- package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +5 -0
- package/lib/commonjs/mol-repr/structure/complex-visual.js +9 -9
- package/lib/commonjs/mol-repr/structure/params.d.ts +5 -0
- package/lib/commonjs/mol-repr/structure/params.js +2 -2
- package/lib/commonjs/mol-repr/structure/registry.d.ts +11 -0
- package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/backbone.js +3 -3
- package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.js +3 -3
- package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/carbohydrate.js +3 -3
- package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/cartoon.js +3 -3
- package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/ellipsoid.js +3 -3
- package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.js +3 -3
- package/lib/commonjs/mol-repr/structure/representation/gaussian-volume.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/gaussian-volume.js +3 -3
- package/lib/commonjs/mol-repr/structure/representation/label.js +3 -3
- package/lib/commonjs/mol-repr/structure/representation/line.js +3 -3
- package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/molecular-surface.js +3 -3
- package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/orientation.js +3 -3
- package/lib/commonjs/mol-repr/structure/representation/point.js +3 -3
- package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/putty.js +3 -3
- package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/spacefill.js +3 -3
- package/lib/commonjs/mol-repr/structure/representation.js +2 -2
- package/lib/commonjs/mol-repr/structure/units-representation.js +1 -2
- package/lib/commonjs/mol-repr/structure/units-visual.d.ts +5 -0
- package/lib/commonjs/mol-repr/structure/units-visual.js +10 -10
- 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-cylinder.js +4 -4
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-line.js +2 -2
- 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-cylinder.js +4 -4
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/element-cross.js +3 -3
- package/lib/commonjs/mol-repr/structure/visual/element-point.js +3 -3
- package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/element-sphere.js +7 -7
- package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.js +3 -3
- package/lib/commonjs/mol-repr/structure/visual/gaussian-density-volume.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/gaussian-density-volume.js +3 -3
- 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 +7 -7
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-wireframe.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/label-text.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.js +3 -3
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-wireframe.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-atomic-bond.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-atomic-bond.js +4 -4
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-atomic-element.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-atomic-element.js +4 -4
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-atomic-ring-fill.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-atomic-ring-fill.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.js +3 -3
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.js +4 -4
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.js +4 -4
- package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/util/bond.js +8 -8
- package/lib/commonjs/mol-repr/structure/visual/util/common.js +14 -14
- package/lib/commonjs/mol-repr/structure/visual/util/element.js +10 -10
- package/lib/commonjs/mol-repr/structure/visual/util/gaussian.js +8 -8
- package/lib/commonjs/mol-repr/structure/visual/util/link.js +5 -5
- package/lib/commonjs/mol-repr/structure/visual/util/molecular-surface.js +2 -3
- package/lib/commonjs/mol-repr/structure/visual/util/nucleotide.d.ts +60 -60
- package/lib/commonjs/mol-repr/structure/visual/util/nucleotide.js +11 -11
- package/lib/commonjs/mol-repr/structure/visual/util/polymer/backbone.js +3 -4
- package/lib/commonjs/mol-repr/structure/visual/util/polymer/curve-segment.js +5 -6
- package/lib/commonjs/mol-repr/structure/visual/util/polymer/gap-iterator.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/util/polymer/trace-iterator.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/util/polymer.js +8 -8
- package/lib/commonjs/mol-repr/util.js +3 -3
- package/lib/commonjs/mol-repr/volume/direct-volume.d.ts +48 -45
- package/lib/commonjs/mol-repr/volume/direct-volume.js +9 -9
- package/lib/commonjs/mol-repr/volume/isosurface.d.ts +95 -90
- package/lib/commonjs/mol-repr/volume/isosurface.js +10 -10
- package/lib/commonjs/mol-repr/volume/registry.d.ts +63 -60
- package/lib/commonjs/mol-repr/volume/representation.js +4 -4
- package/lib/commonjs/mol-repr/volume/segment.d.ts +80 -75
- package/lib/commonjs/mol-repr/volume/segment.js +8 -8
- package/lib/commonjs/mol-repr/volume/slice.d.ts +45 -45
- package/lib/commonjs/mol-repr/volume/slice.js +5 -5
- package/lib/commonjs/mol-repr/volume/util.js +5 -6
- package/lib/commonjs/mol-script/language/expression-formatter.js +1 -2
- package/lib/commonjs/mol-script/language/helpers.js +3 -4
- package/lib/commonjs/mol-script/language/parser.js +1 -2
- package/lib/commonjs/mol-script/language/symbol-table/core.d.ts +1 -1
- package/lib/commonjs/mol-script/language/symbol.js +5 -5
- package/lib/commonjs/mol-script/runtime/query/base.js +2 -2
- package/lib/commonjs/mol-script/script/mol-script/script-macro.js +4 -5
- package/lib/commonjs/mol-script/script/mol-script/symbols.js +3 -3
- package/lib/commonjs/mol-script/script.js +1 -2
- package/lib/commonjs/mol-script/transpile.js +1 -2
- package/lib/commonjs/mol-script/transpilers/helper.js +28 -28
- package/lib/commonjs/mol-script/transpilers/jmol/properties.js +2 -2
- package/lib/commonjs/mol-script/transpilers/vmd/properties.js +2 -2
- package/lib/commonjs/mol-script/util/id-list.js +1 -2
- package/lib/commonjs/mol-state/object.d.ts +4 -4
- package/lib/commonjs/mol-state/state.d.ts +4 -4
- package/lib/commonjs/mol-state/transform.d.ts +1 -1
- package/lib/commonjs/mol-state/transformer.d.ts +1 -1
- package/lib/commonjs/mol-task/execution/observable.js +4 -5
- package/lib/commonjs/mol-task/util/chunked.js +1 -2
- package/lib/commonjs/mol-task/util/multistep.js +1 -2
- package/lib/commonjs/mol-task/util/scheduler.d.ts +0 -1
- package/lib/commonjs/mol-theme/clipping.js +1 -2
- package/lib/commonjs/mol-theme/color/atom-id.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/atom-id.js +3 -3
- package/lib/commonjs/mol-theme/color/carbohydrate-symbol.js +3 -3
- package/lib/commonjs/mol-theme/color/cartoon.js +3 -3
- package/lib/commonjs/mol-theme/color/chain-id.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/chain-id.js +3 -3
- package/lib/commonjs/mol-theme/color/element-index.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/element-index.js +3 -3
- package/lib/commonjs/mol-theme/color/element-symbol.js +4 -4
- package/lib/commonjs/mol-theme/color/entity-id.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/entity-id.js +3 -3
- package/lib/commonjs/mol-theme/color/entity-source.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/entity-source.js +3 -3
- package/lib/commonjs/mol-theme/color/external-volume.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/external-volume.js +2 -2
- package/lib/commonjs/mol-theme/color/hydrophobicity.js +4 -4
- package/lib/commonjs/mol-theme/color/illustrative.js +3 -3
- package/lib/commonjs/mol-theme/color/model-index.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/model-index.js +3 -3
- package/lib/commonjs/mol-theme/color/molecule-type.js +4 -4
- package/lib/commonjs/mol-theme/color/occupancy.js +4 -4
- package/lib/commonjs/mol-theme/color/operator-hkl.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/operator-hkl.js +3 -3
- package/lib/commonjs/mol-theme/color/operator-name.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/operator-name.js +3 -3
- package/lib/commonjs/mol-theme/color/partial-charge.js +3 -3
- package/lib/commonjs/mol-theme/color/polymer-id.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/polymer-id.js +3 -3
- package/lib/commonjs/mol-theme/color/polymer-index.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/polymer-index.js +3 -3
- package/lib/commonjs/mol-theme/color/residue-name.js +4 -4
- package/lib/commonjs/mol-theme/color/secondary-structure.js +4 -4
- package/lib/commonjs/mol-theme/color/sequence-id.js +3 -3
- package/lib/commonjs/mol-theme/color/shape-group.js +3 -3
- package/lib/commonjs/mol-theme/color/structure-index.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/structure-index.js +3 -3
- package/lib/commonjs/mol-theme/color/trajectory-index.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/trajectory-index.js +3 -3
- package/lib/commonjs/mol-theme/color/uncertainty.js +4 -4
- package/lib/commonjs/mol-theme/color/uniform.js +3 -3
- package/lib/commonjs/mol-theme/color/unit-index.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/unit-index.js +3 -3
- package/lib/commonjs/mol-theme/color/volume-segment.d.ts +2 -2
- package/lib/commonjs/mol-theme/color/volume-segment.js +3 -3
- package/lib/commonjs/mol-theme/color/volume-value.js +3 -3
- package/lib/commonjs/mol-theme/color.d.ts +16 -16
- package/lib/commonjs/mol-theme/color.js +2 -2
- package/lib/commonjs/mol-theme/emissive.js +1 -2
- package/lib/commonjs/mol-theme/label.js +11 -11
- package/lib/commonjs/mol-theme/overpaint.js +1 -2
- package/lib/commonjs/mol-theme/size/physical.js +4 -4
- package/lib/commonjs/mol-theme/size/shape-group.js +3 -3
- package/lib/commonjs/mol-theme/size/uncertainty.js +4 -4
- package/lib/commonjs/mol-theme/size/uniform.js +3 -3
- package/lib/commonjs/mol-theme/substance.js +1 -2
- package/lib/commonjs/mol-theme/theme.d.ts +3 -3
- package/lib/commonjs/mol-theme/transparency.js +1 -2
- package/lib/commonjs/mol-util/array.js +22 -23
- package/lib/commonjs/mol-util/binding.js +1 -2
- package/lib/commonjs/mol-util/clip.js +1 -2
- package/lib/commonjs/mol-util/color/color.js +6 -7
- package/lib/commonjs/mol-util/color/distinct.js +2 -2
- package/lib/commonjs/mol-util/color/lists.js +2 -2
- package/lib/commonjs/mol-util/color/palette.d.ts +4 -3
- package/lib/commonjs/mol-util/color/palette.js +2 -3
- package/lib/commonjs/mol-util/color/params.js +1 -2
- package/lib/commonjs/mol-util/color/scale.d.ts +2 -1
- package/lib/commonjs/mol-util/color/spaces/hcl.js +1 -2
- package/lib/commonjs/mol-util/color/spaces/lab.js +1 -2
- package/lib/commonjs/mol-util/data-source.d.ts +0 -1
- package/lib/commonjs/mol-util/data-source.js +7 -7
- package/lib/commonjs/mol-util/date.js +2 -3
- package/lib/commonjs/mol-util/debug.js +7 -7
- package/lib/commonjs/mol-util/download.js +1 -2
- package/lib/commonjs/mol-util/file-info.js +1 -2
- package/lib/commonjs/mol-util/id-factory.js +1 -2
- package/lib/commonjs/mol-util/index.js +13 -13
- package/lib/commonjs/mol-util/input/event-offset.js +1 -2
- package/lib/commonjs/mol-util/input/input-observer.js +4 -4
- package/lib/commonjs/mol-util/is-little-endian.js +1 -2
- package/lib/commonjs/mol-util/json.js +2 -3
- package/lib/commonjs/mol-util/legend.js +2 -3
- package/lib/commonjs/mol-util/make-dir.js +1 -2
- package/lib/commonjs/mol-util/map.js +1 -2
- package/lib/commonjs/mol-util/marker-action.js +6 -6
- package/lib/commonjs/mol-util/mask.js +2 -2
- package/lib/commonjs/mol-util/material.js +1 -2
- package/lib/commonjs/mol-util/memoize.js +2 -3
- package/lib/commonjs/mol-util/nodejs-shims.d.ts +1 -1
- package/lib/commonjs/mol-util/now.js +2 -2
- package/lib/commonjs/mol-util/number-packing.js +3 -4
- package/lib/commonjs/mol-util/number.js +7 -8
- package/lib/commonjs/mol-util/object.js +14 -15
- package/lib/commonjs/mol-util/param-mapping.js +1 -2
- package/lib/commonjs/mol-util/read.js +6 -7
- package/lib/commonjs/mol-util/reference-cache.js +3 -4
- package/lib/commonjs/mol-util/retry-if.js +1 -2
- package/lib/commonjs/mol-util/sleep.js +1 -2
- package/lib/commonjs/mol-util/string.js +18 -18
- package/lib/commonjs/mol-util/type-helpers.js +3 -4
- package/lib/commonjs/mol-util/url.js +2 -3
- package/lib/commonjs/mol-util/zip/bin.js +9 -10
- package/lib/commonjs/mol-util/zip/checksum.js +2 -3
- package/lib/commonjs/mol-util/zip/deflate.js +1 -2
- package/lib/commonjs/mol-util/zip/huffman.js +1 -2
- package/lib/commonjs/mol-util/zip/inflate.js +1 -2
- package/lib/commonjs/mol-util/zip/util.js +4 -4
- package/lib/commonjs/mol-util/zip/zip.js +8 -9
- package/lib/commonjs/servers/common/file-handle.js +1 -2
- package/lib/commonjs/servers/common/swagger-ui/index.js +2 -3
- package/lib/commonjs/servers/common/util.js +1 -2
- package/lib/commonjs/servers/model/config.d.ts +4 -4
- package/lib/commonjs/servers/model/config.js +2 -2
- package/lib/commonjs/servers/model/preprocess/converter.js +1 -2
- package/lib/commonjs/servers/model/preprocess/parallel.js +2 -3
- package/lib/commonjs/servers/model/preprocess/preprocess.js +1 -2
- package/lib/commonjs/servers/model/preprocess/util.js +2 -3
- package/lib/commonjs/servers/model/property-provider.js +2 -3
- package/lib/commonjs/servers/model/query/atoms.js +1 -2
- package/lib/commonjs/servers/model/server/api-local.js +1 -2
- package/lib/commonjs/servers/model/server/api-schema.js +2 -2
- package/lib/commonjs/servers/model/server/api-web-multiple.js +1 -2
- package/lib/commonjs/servers/model/server/api-web.js +2 -3
- package/lib/commonjs/servers/model/server/api.js +4 -4
- package/lib/commonjs/servers/model/server/jobs.js +3 -3
- package/lib/commonjs/servers/model/server/query.js +2 -3
- package/lib/commonjs/servers/model/server/structure-wrapper.js +6 -6
- package/lib/commonjs/servers/model/utils/fetch-retry.js +1 -2
- package/lib/commonjs/servers/model/utils/tar.d.ts +0 -1
- package/lib/commonjs/servers/model/utils/tar.js +2 -2
- package/lib/commonjs/servers/plugin-state/api-schema.js +2 -2
- package/lib/commonjs/servers/plugin-state/config.js +1 -2
- package/lib/commonjs/servers/volume/common/binary-schema.d.ts +0 -1
- package/lib/commonjs/servers/volume/common/binary-schema.js +5 -5
- package/lib/commonjs/servers/volume/common/data-format.d.ts +0 -1
- package/lib/commonjs/servers/volume/common/data-format.js +2 -3
- package/lib/commonjs/servers/volume/common/file.js +4 -5
- package/lib/commonjs/servers/volume/config.d.ts +1 -5
- package/lib/commonjs/servers/volume/config.js +3 -3
- package/lib/commonjs/servers/volume/pack/data-model.js +2 -3
- package/lib/commonjs/servers/volume/pack/downsampling.js +2 -3
- package/lib/commonjs/servers/volume/pack/format/ccp4.js +2 -2
- package/lib/commonjs/servers/volume/pack/format/dsn6.js +2 -2
- package/lib/commonjs/servers/volume/pack/format.js +4 -5
- package/lib/commonjs/servers/volume/pack/main.js +1 -2
- package/lib/commonjs/servers/volume/pack/sampling.js +2 -3
- package/lib/commonjs/servers/volume/pack/writer.js +1 -2
- package/lib/commonjs/servers/volume/server/algebra/box.js +14 -15
- package/lib/commonjs/servers/volume/server/algebra/coordinate.js +17 -18
- package/lib/commonjs/servers/volume/server/api.js +3 -4
- package/lib/commonjs/servers/volume/server/local-api.js +1 -2
- package/lib/commonjs/servers/volume/server/query/compose.js +1 -2
- package/lib/commonjs/servers/volume/server/query/encode.js +1 -2
- package/lib/commonjs/servers/volume/server/query/execute.js +1 -2
- package/lib/commonjs/servers/volume/server/query/identify.js +1 -2
- package/lib/commonjs/servers/volume/server/web-api.js +1 -2
- package/lib/commonjs/servers/volume/server/web-schema.js +2 -2
- package/lib/examples/lighting/index.d.ts +1 -1
- package/lib/examples/lighting/index.js +2 -1
- package/lib/examples/proteopedia-wrapper/coloring.d.ts +5 -20
- package/lib/extensions/alpha-orbitals/transforms.d.ts +3 -3
- package/lib/extensions/anvil/behavior.d.ts +1 -0
- package/lib/extensions/anvil/representation.d.ts +4 -0
- package/lib/extensions/assembly-symmetry/behavior.d.ts +1 -0
- package/lib/extensions/assembly-symmetry/color.d.ts +2 -2
- package/lib/extensions/assembly-symmetry/representation.d.ts +1 -0
- package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +3 -0
- package/lib/extensions/dnatco/ntc-tube/representation.d.ts +3 -0
- package/lib/extensions/g3d/format.d.ts +3 -3
- package/lib/extensions/geo-export/mesh-exporter.d.ts +2 -2
- package/lib/extensions/geo-export/ui.d.ts +0 -1
- package/lib/extensions/meshes/mesh-extension.d.ts +3 -5
- package/lib/extensions/meshes/mesh-streaming/behavior.d.ts +3 -3
- package/lib/extensions/meshes/mesh-streaming/server-info.d.ts +3 -3
- package/lib/extensions/model-archive/quality-assessment/color/plddt.d.ts +1 -1
- package/lib/extensions/model-archive/quality-assessment/color/plddt.js +8 -5
- package/lib/extensions/model-export/ui.d.ts +0 -1
- package/lib/extensions/mp4-export/controls.d.ts +1 -1
- package/lib/extensions/mp4-export/encoder.js +1 -1
- package/lib/extensions/mp4-export/ui.d.ts +0 -1
- package/lib/extensions/mvs/components/annotation-label/representation.d.ts +32 -34
- package/lib/extensions/mvs/components/annotation-label/visual.d.ts +16 -16
- package/lib/extensions/mvs/components/custom-label/representation.d.ts +32 -32
- package/lib/extensions/mvs/components/custom-label/visual.d.ts +16 -16
- package/lib/extensions/mvs/components/formats.d.ts +6 -6
- package/lib/extensions/mvs/helpers/indexing.d.ts +2 -2
- package/lib/extensions/mvs/helpers/schemas.d.ts +1 -1
- package/lib/extensions/mvs/helpers/utils.d.ts +1 -1
- package/lib/extensions/mvs/load-helpers.d.ts +1 -1
- package/lib/extensions/mvs/tree/mvs/mvs-builder.d.ts +0 -2
- package/lib/extensions/rcsb/validation-report/representation.d.ts +5 -0
- package/lib/extensions/sb-ncbr/index.d.ts +8 -0
- package/lib/extensions/sb-ncbr/index.js +8 -0
- package/lib/extensions/sb-ncbr/tunnels/actions.d.ts +20 -0
- package/lib/extensions/sb-ncbr/tunnels/actions.js +86 -0
- package/lib/extensions/sb-ncbr/tunnels/algorithm.d.ts +26 -0
- package/lib/extensions/sb-ncbr/tunnels/algorithm.js +469 -0
- package/lib/extensions/sb-ncbr/tunnels/behavior.d.ts +40 -0
- package/lib/extensions/sb-ncbr/tunnels/behavior.js +92 -0
- package/lib/extensions/sb-ncbr/tunnels/data-model.d.ts +146 -0
- package/lib/extensions/sb-ncbr/tunnels/data-model.js +23 -0
- package/lib/extensions/sb-ncbr/tunnels/examples.d.ts +12 -0
- package/lib/extensions/sb-ncbr/tunnels/examples.js +49 -0
- package/lib/extensions/sb-ncbr/tunnels/props.d.ts +19 -0
- package/lib/extensions/sb-ncbr/tunnels/props.js +22 -0
- package/lib/extensions/sb-ncbr/tunnels/representation.d.ts +29 -0
- package/lib/extensions/sb-ncbr/tunnels/representation.js +96 -0
- package/lib/extensions/volumes-and-segmentations/entry-root.d.ts +3 -3
- package/lib/extensions/volumes-and-segmentations/entry-state.d.ts +3 -3
- package/lib/extensions/volumes-and-segmentations/global-state.d.ts +3 -3
- package/lib/extensions/volumes-and-segmentations/ui.d.ts +0 -1
- package/lib/extensions/zenodo/ui.d.ts +0 -1
- package/lib/mol-canvas3d/camera/transition.d.ts +1 -1
- package/lib/mol-canvas3d/camera/transition.js +23 -6
- package/lib/mol-canvas3d/canvas3d.d.ts +26 -1
- package/lib/mol-canvas3d/canvas3d.js +4 -0
- package/lib/mol-canvas3d/helper/bounding-sphere-helper.d.ts +1 -6
- 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/dof.d.ts +34 -0
- package/lib/mol-canvas3d/passes/dof.js +163 -0
- package/lib/mol-canvas3d/passes/draw.d.ts +2 -0
- package/lib/mol-canvas3d/passes/draw.js +31 -8
- package/lib/mol-canvas3d/passes/image.d.ts +10 -0
- package/lib/mol-canvas3d/passes/multi-sample.d.ts +2 -1
- package/lib/mol-canvas3d/passes/multi-sample.js +4 -3
- package/lib/mol-canvas3d/passes/postprocessing.d.ts +9 -0
- package/lib/mol-canvas3d/passes/postprocessing.js +10 -0
- package/lib/mol-data/db/column.d.ts +1 -1
- package/lib/mol-geo/geometry/base.d.ts +1 -1
- package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +1 -0
- package/lib/mol-geo/geometry/cylinders/cylinders.js +3 -0
- package/lib/mol-geo/geometry/direct-volume/direct-volume.d.ts +1 -0
- package/lib/mol-geo/geometry/direct-volume/direct-volume.js +3 -0
- package/lib/mol-geo/geometry/image/image.d.ts +1 -1
- package/lib/mol-geo/geometry/lines/lines.d.ts +0 -1
- package/lib/mol-geo/geometry/mesh/mesh.d.ts +1 -0
- package/lib/mol-geo/geometry/mesh/mesh.js +3 -0
- package/lib/mol-geo/geometry/points/points.d.ts +1 -1
- package/lib/mol-geo/geometry/spheres/spheres.d.ts +1 -0
- package/lib/mol-geo/geometry/spheres/spheres.js +3 -0
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +1 -0
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js +3 -0
- package/lib/mol-gl/renderable/cylinders.d.ts +1 -0
- package/lib/mol-gl/renderable/cylinders.js +1 -0
- package/lib/mol-gl/renderable/direct-volume.d.ts +1 -0
- package/lib/mol-gl/renderable/direct-volume.js +1 -0
- package/lib/mol-gl/renderable/mesh.d.ts +1 -0
- package/lib/mol-gl/renderable/mesh.js +1 -0
- package/lib/mol-gl/renderable/schema.d.ts +1 -0
- package/lib/mol-gl/renderable/schema.js +1 -0
- package/lib/mol-gl/renderable/spheres.d.ts +1 -0
- package/lib/mol-gl/renderable/spheres.js +1 -0
- package/lib/mol-gl/renderable/texture-mesh.d.ts +1 -0
- package/lib/mol-gl/renderable/texture-mesh.js +1 -0
- package/lib/mol-gl/renderer.d.ts +1 -0
- package/lib/mol-gl/renderer.js +6 -0
- package/lib/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +2 -1
- package/lib/mol-gl/shader/chunks/apply-light-color.glsl.js +57 -24
- 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 +1 -0
- package/lib/mol-gl/shader/chunks/common.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/common.glsl.js +6 -0
- package/lib/mol-gl/shader/cylinders.frag.d.ts +2 -1
- package/lib/mol-gl/shader/cylinders.frag.js +11 -2
- package/lib/mol-gl/shader/direct-volume.frag.d.ts +1 -1
- package/lib/mol-gl/shader/direct-volume.frag.js +1 -0
- package/lib/mol-gl/shader/dof.frag.d.ts +7 -0
- package/lib/mol-gl/shader/dof.frag.js +119 -0
- package/lib/mol-gl/shader/ssao-blur.frag.d.ts +1 -1
- package/lib/mol-gl/shader/ssao-blur.frag.js +9 -6
- package/lib/mol-gl/shader-code.js +1 -1
- package/lib/mol-gl/webgl/context.js +1 -0
- package/lib/mol-gl/webgl/render-item.d.ts +2 -2
- package/lib/mol-gl/webgl/timer.d.ts +1 -1
- package/lib/mol-gl/webgl/timer.js +8 -1
- package/lib/mol-io/common/simple-buffer.d.ts +0 -1
- 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.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 +9 -1
- package/lib/mol-io/reader/cif/schema/mmcif.js +9 -1
- package/lib/mol-io/reader/common/text/column/fixed.d.ts +1 -1
- package/lib/mol-io/reader/common/text/column/token.d.ts +1 -1
- package/lib/mol-io/reader/ply/schema.d.ts +1 -1
- package/lib/mol-math/linear-algebra/3d/minimize-rmsd.js +2 -1
- package/lib/mol-model/loci.d.ts +1 -1
- package/lib/mol-model/sequence/alignment/alignment.d.ts +2 -1
- package/lib/mol-model/structure/model/types/saccharides.js +1 -1
- package/lib/mol-model/structure/model/types.d.ts +3 -3
- package/lib/mol-model/structure/query/queries/generators.js +2 -2
- package/lib/mol-model/structure/structure/properties.d.ts +1 -0
- package/lib/mol-model/structure/structure/properties.js +1 -0
- package/lib/mol-model/volume/volume.d.ts +6 -6
- package/lib/mol-model-formats/shape/ply.d.ts +2 -0
- package/lib/mol-model-formats/structure/basic/schema.d.ts +1 -0
- package/lib/mol-model-formats/structure/common/entity.d.ts +1 -0
- 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-model-props/sequence/themes/sifts-mapping.d.ts +2 -2
- package/lib/mol-plugin/animation-loop.d.ts +1 -0
- package/lib/mol-plugin/behavior/behavior.d.ts +9 -9
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/behavior.d.ts +9 -9
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +3 -3
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/transformers.d.ts +3 -3
- package/lib/mol-plugin/commands.d.ts +23 -87
- package/lib/mol-plugin/context.d.ts +3 -2
- package/lib/mol-plugin/context.js +4 -2
- package/lib/mol-plugin/state.d.ts +7 -7
- package/lib/mol-plugin/util/headless-screenshot.d.ts +1 -1
- package/lib/mol-plugin/util/headless-screenshot.js +3 -1
- package/lib/mol-plugin/util/viewport-screenshot.d.ts +1 -1
- package/lib/mol-plugin/util/viewport-screenshot.js +2 -1
- package/lib/mol-plugin/version.js +2 -2
- package/lib/mol-plugin-state/actions/volume.d.ts +1 -1
- package/lib/mol-plugin-state/actions/volume.js +4 -12
- package/lib/mol-plugin-state/animation/built-in/model-index.d.ts +2 -2
- package/lib/mol-plugin-state/animation/built-in/state-snapshots.js +7 -3
- package/lib/mol-plugin-state/formats/registry.d.ts +1 -1
- package/lib/mol-plugin-state/formats/trajectory.d.ts +9 -9
- package/lib/mol-plugin-state/formats/volume.d.ts +0 -1
- package/lib/mol-plugin-state/manager/structure/hierarchy.d.ts +3 -3
- package/lib/mol-plugin-state/manager/structure/measurement.d.ts +4 -0
- package/lib/mol-plugin-state/objects.d.ts +97 -97
- package/lib/mol-plugin-state/transforms/data.d.ts +10 -1
- package/lib/mol-plugin-state/transforms/data.js +30 -1
- package/lib/mol-plugin-state/transforms/representation.d.ts +6 -0
- package/lib/mol-plugin-ui/base.js +2 -1
- package/lib/mol-plugin-ui/controls/icons.d.ts +5 -0
- package/lib/mol-plugin-ui/controls/icons.js +10 -0
- package/lib/mol-plugin-ui/controls/parameters.d.ts +3 -3
- package/lib/mol-plugin-ui/controls.js +1 -1
- package/lib/mol-plugin-ui/left-panel.d.ts +0 -1
- package/lib/mol-plugin-ui/plugin.js +3 -2
- package/lib/mol-plugin-ui/skin/base/components/controls.scss +6 -0
- package/lib/mol-plugin-ui/spec.d.ts +10 -10
- package/lib/mol-plugin-ui/spec.js +1 -1
- package/lib/mol-plugin-ui/state/apply-action.d.ts +1 -1
- package/lib/mol-plugin-ui/state/update-transform.d.ts +1 -1
- package/lib/mol-plugin-ui/structure/quick-styles.d.ts +2 -1
- package/lib/mol-plugin-ui/structure/quick-styles.js +5 -2
- package/lib/mol-plugin-ui/structure/selection.d.ts +2 -2
- package/lib/mol-plugin-ui/viewport/simple-settings.js +3 -0
- package/lib/mol-repr/representation.d.ts +3 -3
- package/lib/mol-repr/shape/loci/angle.d.ts +1 -0
- package/lib/mol-repr/shape/loci/dihedral.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-visual.d.ts +5 -0
- package/lib/mol-repr/structure/params.d.ts +5 -0
- package/lib/mol-repr/structure/registry.d.ts +11 -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/molecular-surface.d.ts +3 -0
- package/lib/mol-repr/structure/representation/orientation.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-visual.d.ts +5 -0
- package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +2 -0
- package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +2 -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-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/molecular-surface-mesh.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/structure/visual/util/nucleotide.d.ts +60 -60
- package/lib/mol-repr/volume/direct-volume.d.ts +48 -45
- package/lib/mol-repr/volume/isosurface.d.ts +95 -90
- package/lib/mol-repr/volume/registry.d.ts +63 -60
- package/lib/mol-repr/volume/segment.d.ts +80 -75
- package/lib/mol-repr/volume/slice.d.ts +45 -45
- package/lib/mol-script/language/symbol-table/core.d.ts +1 -1
- package/lib/mol-state/object.d.ts +4 -4
- package/lib/mol-state/state.d.ts +4 -4
- package/lib/mol-state/transform.d.ts +1 -1
- package/lib/mol-state/transformer.d.ts +1 -1
- package/lib/mol-task/util/scheduler.d.ts +0 -1
- package/lib/mol-theme/color/atom-id.d.ts +2 -2
- package/lib/mol-theme/color/chain-id.d.ts +2 -2
- package/lib/mol-theme/color/element-index.d.ts +2 -2
- package/lib/mol-theme/color/entity-id.d.ts +2 -2
- package/lib/mol-theme/color/entity-source.d.ts +2 -2
- package/lib/mol-theme/color/external-volume.d.ts +2 -2
- package/lib/mol-theme/color/model-index.d.ts +2 -2
- package/lib/mol-theme/color/operator-hkl.d.ts +2 -2
- package/lib/mol-theme/color/operator-name.d.ts +2 -2
- package/lib/mol-theme/color/polymer-id.d.ts +2 -2
- package/lib/mol-theme/color/polymer-index.d.ts +2 -2
- package/lib/mol-theme/color/structure-index.d.ts +2 -2
- package/lib/mol-theme/color/trajectory-index.d.ts +2 -2
- package/lib/mol-theme/color/unit-index.d.ts +2 -2
- package/lib/mol-theme/color/volume-segment.d.ts +2 -2
- package/lib/mol-theme/color.d.ts +16 -16
- package/lib/mol-theme/theme.d.ts +3 -3
- package/lib/mol-util/color/palette.d.ts +4 -3
- package/lib/mol-util/color/scale.d.ts +2 -1
- package/lib/mol-util/data-source.d.ts +0 -1
- package/lib/mol-util/nodejs-shims.d.ts +1 -1
- package/lib/servers/model/config.d.ts +4 -4
- package/lib/servers/model/utils/tar.d.ts +0 -1
- package/lib/servers/volume/common/binary-schema.d.ts +0 -1
- package/lib/servers/volume/common/data-format.d.ts +0 -1
- package/lib/servers/volume/config.d.ts +1 -5
- package/package.json +18 -16
|
@@ -1,18 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MesoQuickStyles = exports.MesoQuickStylesControls = exports.ExplorerInfo = exports.SnapshotControls = exports.SessionControls = exports.ExampleControls = exports.LoaderControls = exports.DatabaseControls = exports.LoadModel = exports.LoadExample = exports.LoadDatabase = void 0;
|
|
4
|
+
exports.loadExampleEntry = loadExampleEntry;
|
|
5
|
+
exports.loadUrl = loadUrl;
|
|
6
|
+
exports.loadPdb = loadPdb;
|
|
7
|
+
exports.loadPdbDev = loadPdbDev;
|
|
8
|
+
exports.openState = openState;
|
|
9
|
+
const tslib_1 = require("tslib");
|
|
4
10
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
11
|
/**
|
|
6
|
-
* Copyright (c) 2022-
|
|
12
|
+
* Copyright (c) 2022-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
7
13
|
*
|
|
8
14
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
9
15
|
*/
|
|
16
|
+
const react_markdown_1 = tslib_1.__importDefault(require("react-markdown"));
|
|
10
17
|
const mmcif_1 = require("../../../mol-model-formats/structure/mmcif");
|
|
11
18
|
const trajectory_1 = require("../../../mol-plugin-state/formats/trajectory");
|
|
12
19
|
const objects_1 = require("../../../mol-plugin-state/objects");
|
|
13
|
-
const base_1 = require("../../../mol-plugin-ui/base");
|
|
14
20
|
const common_1 = require("../../../mol-plugin-ui/controls/common");
|
|
15
21
|
const icons_1 = require("../../../mol-plugin-ui/controls/icons");
|
|
22
|
+
const base_1 = require("../../../mol-plugin-ui/base");
|
|
16
23
|
const apply_action_1 = require("../../../mol-plugin-ui/state/apply-action");
|
|
17
24
|
const snapshots_1 = require("../../../mol-plugin-ui/state/snapshots");
|
|
18
25
|
const commands_1 = require("../../../mol-plugin/commands");
|
|
@@ -78,6 +85,7 @@ function adjustPluginProps(ctx) {
|
|
|
78
85
|
radius: 5,
|
|
79
86
|
bias: 1,
|
|
80
87
|
blurKernelSize: 11,
|
|
88
|
+
blurDepthBias: 0.5,
|
|
81
89
|
resolutionScale: 1,
|
|
82
90
|
color: (0, color_1.Color)(0x000000),
|
|
83
91
|
}
|
|
@@ -152,7 +160,6 @@ async function loadExampleEntry(ctx, entry) {
|
|
|
152
160
|
link: entry.link,
|
|
153
161
|
});
|
|
154
162
|
}
|
|
155
|
-
exports.loadExampleEntry = loadExampleEntry;
|
|
156
163
|
async function loadUrl(ctx, url, type) {
|
|
157
164
|
if (type === 'molx' || type === 'molj') {
|
|
158
165
|
await commands_1.PluginCommands.State.Snapshots.OpenUrl(ctx, { url, type });
|
|
@@ -164,14 +171,12 @@ async function loadUrl(ctx, url, type) {
|
|
|
164
171
|
await createHierarchy(ctx, data.ref);
|
|
165
172
|
}
|
|
166
173
|
}
|
|
167
|
-
exports.loadUrl = loadUrl;
|
|
168
174
|
async function loadPdb(ctx, id) {
|
|
169
175
|
await reset(ctx);
|
|
170
176
|
const url = `https://models.rcsb.org/${id.toUpperCase()}.bcif`;
|
|
171
177
|
const data = await ctx.builders.data.download({ url, isBinary: true });
|
|
172
178
|
await createHierarchy(ctx, data.ref);
|
|
173
179
|
}
|
|
174
|
-
exports.loadPdb = loadPdb;
|
|
175
180
|
async function loadPdbDev(ctx, id) {
|
|
176
181
|
await reset(ctx);
|
|
177
182
|
const nId = id.toUpperCase().startsWith('PDBDEV_') ? id : `PDBDEV_${id.padStart(8, '0')}`;
|
|
@@ -179,7 +184,6 @@ async function loadPdbDev(ctx, id) {
|
|
|
179
184
|
const data = await ctx.builders.data.download({ url, isBinary: true });
|
|
180
185
|
await createHierarchy(ctx, data.ref);
|
|
181
186
|
}
|
|
182
|
-
exports.loadPdbDev = loadPdbDev;
|
|
183
187
|
//
|
|
184
188
|
exports.LoadDatabase = mol_state_1.StateAction.build({
|
|
185
189
|
display: { name: 'Database', description: 'Load from Database' },
|
|
@@ -256,7 +260,7 @@ class DatabaseControls extends base_1.PluginUIComponent {
|
|
|
256
260
|
componentDidMount() {
|
|
257
261
|
}
|
|
258
262
|
render() {
|
|
259
|
-
return (0, jsx_runtime_1.jsx)("div", { style: { margin: '5px' }, children: (0, jsx_runtime_1.jsx)(apply_action_1.ApplyActionControl, { state: this.plugin.state.data, action: exports.LoadDatabase, nodeRef: this.plugin.state.data.tree.root.ref, applyLabel: 'Load', hideHeader: true }) });
|
|
263
|
+
return (0, jsx_runtime_1.jsx)("div", { id: 'database', style: { margin: '5px' }, children: (0, jsx_runtime_1.jsx)(apply_action_1.ApplyActionControl, { state: this.plugin.state.data, action: exports.LoadDatabase, nodeRef: this.plugin.state.data.tree.root.ref, applyLabel: 'Load', hideHeader: true }) });
|
|
260
264
|
}
|
|
261
265
|
}
|
|
262
266
|
exports.DatabaseControls = DatabaseControls;
|
|
@@ -264,7 +268,7 @@ class LoaderControls extends base_1.PluginUIComponent {
|
|
|
264
268
|
componentDidMount() {
|
|
265
269
|
}
|
|
266
270
|
render() {
|
|
267
|
-
return (0, jsx_runtime_1.jsx)("div", { style: { margin: '5px' }, children: (0, jsx_runtime_1.jsx)(apply_action_1.ApplyActionControl, { state: this.plugin.state.data, action: exports.LoadModel, nodeRef: this.plugin.state.data.tree.root.ref, applyLabel: 'Load', hideHeader: true }) });
|
|
271
|
+
return (0, jsx_runtime_1.jsx)("div", { id: 'loader', style: { margin: '5px' }, children: (0, jsx_runtime_1.jsx)(apply_action_1.ApplyActionControl, { state: this.plugin.state.data, action: exports.LoadModel, nodeRef: this.plugin.state.data.tree.root.ref, applyLabel: 'Load', hideHeader: true }) });
|
|
268
272
|
}
|
|
269
273
|
}
|
|
270
274
|
exports.LoaderControls = LoaderControls;
|
|
@@ -272,7 +276,7 @@ class ExampleControls extends base_1.PluginUIComponent {
|
|
|
272
276
|
componentDidMount() {
|
|
273
277
|
}
|
|
274
278
|
render() {
|
|
275
|
-
return (0, jsx_runtime_1.jsx)("div", { style: { margin: '5px' }, children: (0, jsx_runtime_1.jsx)(apply_action_1.ApplyActionControl, { state: this.plugin.state.data, action: exports.LoadExample, nodeRef: this.plugin.state.data.tree.root.ref, applyLabel: 'Load', hideHeader: true }) });
|
|
279
|
+
return (0, jsx_runtime_1.jsx)("div", { id: 'example', style: { margin: '5px' }, children: (0, jsx_runtime_1.jsx)(apply_action_1.ApplyActionControl, { state: this.plugin.state.data, action: exports.LoadExample, nodeRef: this.plugin.state.data.tree.root.ref, applyLabel: 'Load', hideHeader: true }) });
|
|
276
280
|
}
|
|
277
281
|
}
|
|
278
282
|
exports.ExampleControls = ExampleControls;
|
|
@@ -290,7 +294,6 @@ async function openState(ctx, file) {
|
|
|
290
294
|
customState.stateRef = cell.transform.ref;
|
|
291
295
|
customState.graphicsMode = ((_a = cell.obj) === null || _a === void 0 ? void 0 : _a.data.graphics) || customState.graphicsMode;
|
|
292
296
|
}
|
|
293
|
-
exports.openState = openState;
|
|
294
297
|
class SessionControls extends base_1.PluginUIComponent {
|
|
295
298
|
constructor() {
|
|
296
299
|
super(...arguments);
|
|
@@ -306,13 +309,474 @@ class SessionControls extends base_1.PluginUIComponent {
|
|
|
306
309
|
};
|
|
307
310
|
}
|
|
308
311
|
render() {
|
|
309
|
-
return (0, jsx_runtime_1.jsx)("div", { style: { margin: '5px' }, children: (0, jsx_runtime_1.jsxs)("div", { className: 'msp-flex-row', children: [(0, jsx_runtime_1.jsx)(common_1.Button, { icon: icons_1.GetAppSvg, onClick: this.downloadToFileZip, title: 'Download the state.', children: "Download" }), (0, jsx_runtime_1.jsxs)("div", { className: 'msp-btn msp-btn-block msp-btn-action msp-loader-msp-btn-file', children: [(0, jsx_runtime_1.jsx)(icons_1.Icon, { svg: icons_1.OpenInBrowserSvg, inline: true }), " Open ", (0, jsx_runtime_1.jsx)("input", { onChange: this.open, type: 'file', multiple: false, accept: '.molx,.molj' })] })] }) });
|
|
312
|
+
return (0, jsx_runtime_1.jsx)("div", { id: 'session', style: { margin: '5px' }, children: (0, jsx_runtime_1.jsxs)("div", { className: 'msp-flex-row', children: [(0, jsx_runtime_1.jsx)(common_1.Button, { icon: icons_1.GetAppSvg, onClick: this.downloadToFileZip, title: 'Download the state.', children: "Download" }), (0, jsx_runtime_1.jsxs)("div", { className: 'msp-btn msp-btn-block msp-btn-action msp-loader-msp-btn-file', children: [(0, jsx_runtime_1.jsx)(icons_1.Icon, { svg: icons_1.OpenInBrowserSvg, inline: true }), " Open ", (0, jsx_runtime_1.jsx)("input", { onChange: this.open, type: 'file', multiple: false, accept: '.molx,.molj' })] })] }) });
|
|
310
313
|
}
|
|
311
314
|
}
|
|
312
315
|
exports.SessionControls = SessionControls;
|
|
313
316
|
class SnapshotControls extends base_1.PluginUIComponent {
|
|
314
317
|
render() {
|
|
315
|
-
return (0, jsx_runtime_1.jsxs)("div", { style: { margin: '5px' }, children: [(0, jsx_runtime_1.jsx)("div", { style: { marginBottom: '10px' }, children: (0, jsx_runtime_1.jsx)(snapshots_1.LocalStateSnapshotList, {}) }), (0, jsx_runtime_1.jsx)("div", { style: { marginBottom: '10px' }, children: (0, jsx_runtime_1.jsx)(snapshots_1.LocalStateSnapshots, {}) }), (0, jsx_runtime_1.jsx)("div", { style: { marginBottom: '10px' }, children: (0, jsx_runtime_1.jsx)(common_1.ExpandGroup, { header: 'Snapshot Options', initiallyExpanded: false, children: (0, jsx_runtime_1.jsx)(snapshots_1.LocalStateSnapshotParams, {}) }) })] });
|
|
318
|
+
return (0, jsx_runtime_1.jsxs)("div", { style: { margin: '5px' }, children: [(0, jsx_runtime_1.jsx)("div", { id: 'snaplist', style: { marginBottom: '10px' }, children: (0, jsx_runtime_1.jsx)(snapshots_1.LocalStateSnapshotList, {}) }), (0, jsx_runtime_1.jsx)("div", { id: 'snap', style: { marginBottom: '10px' }, children: (0, jsx_runtime_1.jsx)(snapshots_1.LocalStateSnapshots, {}) }), (0, jsx_runtime_1.jsx)("div", { id: 'snapoption', style: { marginBottom: '10px' }, children: (0, jsx_runtime_1.jsx)(common_1.ExpandGroup, { header: 'Snapshot Options', initiallyExpanded: false, children: (0, jsx_runtime_1.jsx)(snapshots_1.LocalStateSnapshotParams, {}) }) })] });
|
|
316
319
|
}
|
|
317
320
|
}
|
|
318
321
|
exports.SnapshotControls = SnapshotControls;
|
|
322
|
+
class ExplorerInfo extends base_1.PluginUIComponent {
|
|
323
|
+
constructor() {
|
|
324
|
+
super(...arguments);
|
|
325
|
+
this.state = {
|
|
326
|
+
isDisabled: false,
|
|
327
|
+
showHelp: false
|
|
328
|
+
};
|
|
329
|
+
this.setupDriver = () => {
|
|
330
|
+
// setup the tour of the interface
|
|
331
|
+
const driver = this.plugin.customState.driver;
|
|
332
|
+
if (!driver)
|
|
333
|
+
return;
|
|
334
|
+
driver.setSteps([
|
|
335
|
+
// Left panel
|
|
336
|
+
{ element: '#explorerinfo', popover: { title: 'Explorer Header Info', description: 'This section displays the explorer header with version information, documentation access, and tour navigation. Use the right and left arrow keys to navigate the tour.', side: 'left', align: 'start' } },
|
|
337
|
+
{ element: '#database', popover: { title: 'Import from PDB', description: 'Load structures directly from PDB and PDB-DEV databases.', side: 'bottom', align: 'start' } },
|
|
338
|
+
{ element: '#loader', popover: { title: 'Import from File', description: 'Load local files (.molx, .molj, .zip, .cif, .bcif) using this option.', side: 'bottom', align: 'start' } },
|
|
339
|
+
{ element: '#example', popover: { title: 'Example Models and Tours', description: 'Select from a range of example models and tours provided.', side: 'left', align: 'start' } },
|
|
340
|
+
{ element: '#session', popover: { title: 'Session Management', description: 'Download the current session in .molx format.', side: 'top', align: 'start' } },
|
|
341
|
+
{ element: '#snaplist', popover: { title: 'Snapshot List', description: 'View and manage the list of snapshots. You can reorder them and edit their titles, keys, and descriptions. Snapshot states cannot be edited.', side: 'right', align: 'start' } },
|
|
342
|
+
{ element: '#snap', popover: { title: 'Add Snapshot', description: 'Save the current state (e.g., camera position, color, visibility, etc.) in a snapshot with an optional title, key, and description.', side: 'right', align: 'start' } },
|
|
343
|
+
{ element: '#snapoption', popover: { title: 'Snapshot Options', description: 'These options are saved in the snapshot. Set them before adding a snapshot to see their effect during animation playback.', side: 'right', align: 'start' } },
|
|
344
|
+
{ element: '#exportanimation', popover: { title: 'Export Animation', description: 'Create movies or scenes with rocking, rotating, or snapshots animations.', side: 'right', align: 'start' } },
|
|
345
|
+
{ element: '#viewportsettings', popover: { title: 'Viewport Settings', description: 'Advanced settings for the renderer and trackball.', side: 'right', align: 'start' } },
|
|
346
|
+
// Viewport
|
|
347
|
+
{ element: '#snapinfo', popover: { title: 'Snapshot Description', description: 'Save the current state (e.g., camera position, color, visibility, etc.) in a snapshot with an optional title, key, and description.', side: 'right', align: 'start' } },
|
|
348
|
+
{ element: '#snapinfoctrl', popover: { title: 'Snapshot Description Control', description: 'Control the visibility and text size of the snapshot description widget.', side: 'right', align: 'start' } },
|
|
349
|
+
// Right panel
|
|
350
|
+
{ element: '#modelinfo', popover: { title: 'Model Information', description: 'Summary information about the model, if available.', side: 'right', align: 'start' } },
|
|
351
|
+
{ element: '#selestyle', popover: { title: 'Selection Style', description: 'Choose the rendering style for entity selection accessed via Shift/Ctrl mouse. Options include: Color & Outline, Color, Outline.', side: 'right', align: 'start' } },
|
|
352
|
+
{ element: '#seleinfo', popover: { title: 'Selection List', description: 'View the current list of selected entities.', side: 'right', align: 'start' } },
|
|
353
|
+
{ element: '#measurements', popover: { title: 'Measurements', description: 'Use this widget to create labels, measure distances, angles, dihedral orientations, and planes for the selected entities.', side: 'right', align: 'start' } },
|
|
354
|
+
{ element: '#quickstyles', popover: { title: 'Quick Styles', description: 'Change between a selection of style presets.', side: 'right', align: 'start' } },
|
|
355
|
+
{ element: '#graphicsquality', popover: { title: 'Graphics Quality', description: 'Adjust the overall graphics quality. Lower quality improves performance. Options are: Ultra, Quality (Default), Balanced, Performance, Custom. Custom settings use the Culling & LOD values set in the Tree.', side: 'right', align: 'start' } },
|
|
356
|
+
{ element: '#searchtree', popover: { title: 'Search', description: 'Filter the entity tree based on your queries.', side: 'right', align: 'start' } },
|
|
357
|
+
{ element: '#grouptree', popover: { title: 'Group By', description: 'Change the grouping of the hierarchy tree, e.g., group by instance or by compartment.', side: 'right', align: 'start' } },
|
|
358
|
+
{ element: '#tree', popover: { title: 'Tree Hierarchy', description: 'View the hierarchical tree of entity types in the model.', side: 'right', align: 'start' } },
|
|
359
|
+
{ element: '#focusinfo', popover: { title: 'Selection Description', description: 'Detailed information about the current selection, if present in the loaded file.', side: 'right', align: 'start' } },
|
|
360
|
+
{ popover: { title: 'Happy Exploring!', description: 'That’s all! Go ahead and start exploring or creating mesoscale tours.' } }
|
|
361
|
+
]);
|
|
362
|
+
driver.refresh();
|
|
363
|
+
};
|
|
364
|
+
this.openHelp = () => {
|
|
365
|
+
// open a new page with the documentation
|
|
366
|
+
window.open('https://molstar.org/me/docs', '_blank');
|
|
367
|
+
};
|
|
368
|
+
this.toggleHelp = () => {
|
|
369
|
+
const driver = this.plugin.customState.driver;
|
|
370
|
+
if (!driver || !driver.hasNextStep()) {
|
|
371
|
+
this.setupDriver();
|
|
372
|
+
}
|
|
373
|
+
this.setState({ showHelp: !this.state.showHelp }, () => {
|
|
374
|
+
if (this.state.showHelp && driver) {
|
|
375
|
+
driver.drive(); // start at 0
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
componentDidMount() {
|
|
381
|
+
this.subscribe(this.plugin.state.data.behaviors.isUpdating, v => {
|
|
382
|
+
this.setState({ isDisabled: v });
|
|
383
|
+
});
|
|
384
|
+
this.subscribe(this.plugin.state.events.cell.stateUpdated, e => {
|
|
385
|
+
if (!this.state.isDisabled && state_1.MesoscaleState.has(this.plugin) && state_1.MesoscaleState.ref(this.plugin) === e.ref) {
|
|
386
|
+
this.forceUpdate();
|
|
387
|
+
}
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
render() {
|
|
391
|
+
const driver = this.plugin.customState.driver;
|
|
392
|
+
if (!driver)
|
|
393
|
+
return;
|
|
394
|
+
const legend = `## Welcome to Mol* Mesoscale Explorer`;
|
|
395
|
+
const help = (0, jsx_runtime_1.jsx)(common_1.IconButton, { svg: icons_1.HelpOutlineSvg, toggleState: false, small: true, onClick: this.openHelp, title: 'Open the Documentation' });
|
|
396
|
+
const tour = (0, jsx_runtime_1.jsx)(common_1.IconButton, { svg: icons_1.TourSvg, toggleState: false, small: true, onClick: this.toggleHelp, title: 'Start the interactive tour' });
|
|
397
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", { id: 'explorerinfo', style: { paddingLeft: 4 }, className: 'msp-help-text', children: [(0, jsx_runtime_1.jsx)(react_markdown_1.default, { children: legend }), tour, help] }) });
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
exports.ExplorerInfo = ExplorerInfo;
|
|
401
|
+
class MesoQuickStylesControls extends base_1.CollapsableControls {
|
|
402
|
+
defaultState() {
|
|
403
|
+
return {
|
|
404
|
+
isCollapsed: true,
|
|
405
|
+
header: 'Quick Styles',
|
|
406
|
+
brand: { accent: 'gray', svg: icons_1.MagicWandSvg }
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
renderControls() {
|
|
410
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(MesoQuickStyles, {}) });
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
exports.MesoQuickStylesControls = MesoQuickStylesControls;
|
|
414
|
+
class MesoQuickStyles extends base_1.PluginUIComponent {
|
|
415
|
+
constructor() {
|
|
416
|
+
super(...arguments);
|
|
417
|
+
this.state = {
|
|
418
|
+
celShaded: false,
|
|
419
|
+
};
|
|
420
|
+
this.default_color_values = {
|
|
421
|
+
type: 'group-generate',
|
|
422
|
+
illustrative: false,
|
|
423
|
+
value: [1, 1, 1, 1],
|
|
424
|
+
variability: 20,
|
|
425
|
+
shift: 0,
|
|
426
|
+
lightness: 0,
|
|
427
|
+
alpha: 1,
|
|
428
|
+
emissive: 0
|
|
429
|
+
};
|
|
430
|
+
this.illustrative_color_values = {
|
|
431
|
+
type: 'group-generate',
|
|
432
|
+
illustrative: true,
|
|
433
|
+
value: [1, 1, 1, 1],
|
|
434
|
+
variability: 20,
|
|
435
|
+
shift: 0,
|
|
436
|
+
lightness: 0,
|
|
437
|
+
alpha: 1,
|
|
438
|
+
emissive: 0
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
async default() {
|
|
442
|
+
if (!this.plugin.canvas3d)
|
|
443
|
+
return;
|
|
444
|
+
this.plugin.canvas3d.setProps({
|
|
445
|
+
renderer: {
|
|
446
|
+
exposure: 1.1,
|
|
447
|
+
},
|
|
448
|
+
postprocessing: {
|
|
449
|
+
occlusion: {
|
|
450
|
+
name: 'on',
|
|
451
|
+
params: {
|
|
452
|
+
samples: 32,
|
|
453
|
+
multiScale: {
|
|
454
|
+
name: 'on',
|
|
455
|
+
params: {
|
|
456
|
+
levels: [
|
|
457
|
+
{ radius: 2, bias: 1.0 },
|
|
458
|
+
{ radius: 5, bias: 1.0 },
|
|
459
|
+
{ radius: 8, bias: 1.0 },
|
|
460
|
+
{ radius: 11, bias: 1.0 },
|
|
461
|
+
],
|
|
462
|
+
nearThreshold: 10,
|
|
463
|
+
farThreshold: 1500,
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
radius: 5,
|
|
467
|
+
bias: 1,
|
|
468
|
+
blurKernelSize: 11,
|
|
469
|
+
blurDepthBias: 0.5,
|
|
470
|
+
resolutionScale: 1,
|
|
471
|
+
color: (0, color_1.Color)(0x000000),
|
|
472
|
+
}
|
|
473
|
+
},
|
|
474
|
+
shadow: {
|
|
475
|
+
name: 'on',
|
|
476
|
+
params: {
|
|
477
|
+
bias: 0.6,
|
|
478
|
+
maxDistance: 80,
|
|
479
|
+
steps: 3,
|
|
480
|
+
tolerance: 1.0,
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
outline: {
|
|
484
|
+
name: 'on',
|
|
485
|
+
params: {
|
|
486
|
+
scale: 1,
|
|
487
|
+
threshold: 0.15,
|
|
488
|
+
color: (0, color_1.Color)(0x000000),
|
|
489
|
+
includeTransparent: false,
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
dof: { name: 'off', params: {} },
|
|
493
|
+
}
|
|
494
|
+
});
|
|
495
|
+
const loptions = { ignoreLight: true, materialStyle: { metalness: 0, roughness: 1.0, bumpiness: 0 } };
|
|
496
|
+
const options = { ...loptions, celShaded: false, };
|
|
497
|
+
await this.plugin.managers.structure.component.setOptions(loptions);
|
|
498
|
+
await (0, state_1.updateColors)(this.plugin, this.default_color_values, options);
|
|
499
|
+
}
|
|
500
|
+
async celshading() {
|
|
501
|
+
if (!this.plugin.canvas3d)
|
|
502
|
+
return;
|
|
503
|
+
this.plugin.canvas3d.setProps({
|
|
504
|
+
renderer: {
|
|
505
|
+
exposure: 1.5,
|
|
506
|
+
},
|
|
507
|
+
postprocessing: {
|
|
508
|
+
occlusion: {
|
|
509
|
+
name: 'on',
|
|
510
|
+
params: {
|
|
511
|
+
samples: 32,
|
|
512
|
+
multiScale: {
|
|
513
|
+
name: 'on',
|
|
514
|
+
params: {
|
|
515
|
+
levels: [
|
|
516
|
+
{ radius: 2, bias: 1.0 },
|
|
517
|
+
{ radius: 5, bias: 1.0 },
|
|
518
|
+
{ radius: 8, bias: 1.0 },
|
|
519
|
+
{ radius: 11, bias: 1.0 },
|
|
520
|
+
],
|
|
521
|
+
nearThreshold: 10,
|
|
522
|
+
farThreshold: 1500,
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
radius: 5,
|
|
526
|
+
bias: 1.5,
|
|
527
|
+
blurKernelSize: 11,
|
|
528
|
+
blurDepthBias: 0.5,
|
|
529
|
+
resolutionScale: 1,
|
|
530
|
+
color: (0, color_1.Color)(0x000000),
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
shadow: {
|
|
534
|
+
name: 'on',
|
|
535
|
+
params: {
|
|
536
|
+
bias: 0.4,
|
|
537
|
+
maxDistance: 256,
|
|
538
|
+
steps: 64,
|
|
539
|
+
tolerance: 1.0,
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
outline: { name: 'off', params: {} },
|
|
543
|
+
dof: { name: 'off', params: {} },
|
|
544
|
+
}
|
|
545
|
+
});
|
|
546
|
+
// ignore Light
|
|
547
|
+
const loptions = { ignoreLight: false, materialStyle: { metalness: 0, roughness: 1.0, bumpiness: 0 } };
|
|
548
|
+
const options = { ...loptions, celShaded: true, };
|
|
549
|
+
await this.plugin.managers.structure.component.setOptions(loptions);
|
|
550
|
+
await (0, state_1.updateColors)(this.plugin, this.default_color_values, options);
|
|
551
|
+
}
|
|
552
|
+
async stylizedDof() {
|
|
553
|
+
if (!this.plugin.canvas3d)
|
|
554
|
+
return;
|
|
555
|
+
this.plugin.canvas3d.setProps({
|
|
556
|
+
renderer: {
|
|
557
|
+
exposure: 1.1,
|
|
558
|
+
},
|
|
559
|
+
postprocessing: {
|
|
560
|
+
occlusion: {
|
|
561
|
+
name: 'on',
|
|
562
|
+
params: {
|
|
563
|
+
samples: 32,
|
|
564
|
+
multiScale: {
|
|
565
|
+
name: 'on',
|
|
566
|
+
params: {
|
|
567
|
+
levels: [
|
|
568
|
+
{ radius: 2, bias: 1.0 },
|
|
569
|
+
{ radius: 5, bias: 1.0 },
|
|
570
|
+
{ radius: 8, bias: 1.0 },
|
|
571
|
+
{ radius: 11, bias: 1.0 },
|
|
572
|
+
],
|
|
573
|
+
nearThreshold: 10,
|
|
574
|
+
farThreshold: 1500,
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
radius: 5,
|
|
578
|
+
bias: 1.3,
|
|
579
|
+
blurKernelSize: 11,
|
|
580
|
+
blurDepthBias: 0.5,
|
|
581
|
+
resolutionScale: 1,
|
|
582
|
+
color: (0, color_1.Color)(0x000000),
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
shadow: {
|
|
586
|
+
name: 'on',
|
|
587
|
+
params: {
|
|
588
|
+
bias: 0.4,
|
|
589
|
+
maxDistance: 256,
|
|
590
|
+
steps: 64,
|
|
591
|
+
tolerance: 1.0,
|
|
592
|
+
}
|
|
593
|
+
},
|
|
594
|
+
outline: { name: 'off', params: {} },
|
|
595
|
+
dof: {
|
|
596
|
+
name: 'on',
|
|
597
|
+
params: {
|
|
598
|
+
blurSize: 9,
|
|
599
|
+
blurSpread: 1.0,
|
|
600
|
+
inFocus: 0.0,
|
|
601
|
+
PPM: 200.0,
|
|
602
|
+
center: 'camera-target',
|
|
603
|
+
mode: 'sphere',
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
});
|
|
608
|
+
// ignore Light
|
|
609
|
+
const loptions = { ignoreLight: false, materialStyle: { metalness: 0, roughness: 0.2, bumpiness: 0 } };
|
|
610
|
+
const options = { ...loptions, celShaded: false };
|
|
611
|
+
await this.plugin.managers.structure.component.setOptions(loptions);
|
|
612
|
+
await (0, state_1.updateColors)(this.plugin, this.default_color_values, options);
|
|
613
|
+
}
|
|
614
|
+
async illustrative() {
|
|
615
|
+
if (!this.plugin.canvas3d)
|
|
616
|
+
return;
|
|
617
|
+
this.plugin.canvas3d.setProps({
|
|
618
|
+
renderer: {
|
|
619
|
+
exposure: 1.5,
|
|
620
|
+
},
|
|
621
|
+
postprocessing: {
|
|
622
|
+
occlusion: {
|
|
623
|
+
name: 'on',
|
|
624
|
+
params: {
|
|
625
|
+
samples: 32,
|
|
626
|
+
multiScale: {
|
|
627
|
+
name: 'on',
|
|
628
|
+
params: {
|
|
629
|
+
levels: [
|
|
630
|
+
{ radius: 2, bias: 1.0 },
|
|
631
|
+
{ radius: 5, bias: 1.0 },
|
|
632
|
+
{ radius: 8, bias: 1.0 },
|
|
633
|
+
{ radius: 11, bias: 1.0 },
|
|
634
|
+
],
|
|
635
|
+
nearThreshold: 10,
|
|
636
|
+
farThreshold: 1500,
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
radius: 5,
|
|
640
|
+
bias: 1.5,
|
|
641
|
+
blurKernelSize: 11,
|
|
642
|
+
blurDepthBias: 0.5,
|
|
643
|
+
resolutionScale: 1,
|
|
644
|
+
color: (0, color_1.Color)(0x000000),
|
|
645
|
+
}
|
|
646
|
+
},
|
|
647
|
+
shadow: {
|
|
648
|
+
name: 'on',
|
|
649
|
+
params: {
|
|
650
|
+
bias: 0.4,
|
|
651
|
+
maxDistance: 256,
|
|
652
|
+
steps: 64,
|
|
653
|
+
tolerance: 1.0,
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
outline: {
|
|
657
|
+
name: 'on',
|
|
658
|
+
params: {
|
|
659
|
+
scale: 1,
|
|
660
|
+
threshold: 0.15,
|
|
661
|
+
color: (0, color_1.Color)(0x000000),
|
|
662
|
+
includeTransparent: false,
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
dof: { name: 'off', params: {} },
|
|
666
|
+
}
|
|
667
|
+
});
|
|
668
|
+
// ignore Light
|
|
669
|
+
const loptions = { ignoreLight: true, materialStyle: { metalness: 0, roughness: 1.0, bumpiness: 0 } };
|
|
670
|
+
const options = { ...loptions, celShaded: false, };
|
|
671
|
+
await this.plugin.managers.structure.component.setOptions(loptions);
|
|
672
|
+
await (0, state_1.updateColors)(this.plugin, this.illustrative_color_values, options);
|
|
673
|
+
}
|
|
674
|
+
async shiny() {
|
|
675
|
+
if (!this.plugin.canvas3d)
|
|
676
|
+
return;
|
|
677
|
+
this.plugin.canvas3d.setProps({
|
|
678
|
+
renderer: {
|
|
679
|
+
exposure: 1.5,
|
|
680
|
+
},
|
|
681
|
+
postprocessing: {
|
|
682
|
+
occlusion: {
|
|
683
|
+
name: 'on',
|
|
684
|
+
params: {
|
|
685
|
+
samples: 32,
|
|
686
|
+
multiScale: {
|
|
687
|
+
name: 'on',
|
|
688
|
+
params: {
|
|
689
|
+
levels: [
|
|
690
|
+
{ radius: 2, bias: 1.0 },
|
|
691
|
+
{ radius: 5, bias: 1.0 },
|
|
692
|
+
{ radius: 8, bias: 1.0 },
|
|
693
|
+
{ radius: 11, bias: 1.0 },
|
|
694
|
+
],
|
|
695
|
+
nearThreshold: 10,
|
|
696
|
+
farThreshold: 1500,
|
|
697
|
+
}
|
|
698
|
+
},
|
|
699
|
+
radius: 5,
|
|
700
|
+
bias: 1.3,
|
|
701
|
+
blurKernelSize: 11,
|
|
702
|
+
blurDepthBias: 0.5,
|
|
703
|
+
resolutionScale: 1,
|
|
704
|
+
color: (0, color_1.Color)(0x000000),
|
|
705
|
+
}
|
|
706
|
+
},
|
|
707
|
+
shadow: { name: 'off', params: {} },
|
|
708
|
+
outline: { name: 'off', params: {} },
|
|
709
|
+
dof: { name: 'off', params: {} },
|
|
710
|
+
}
|
|
711
|
+
});
|
|
712
|
+
// ignore Light
|
|
713
|
+
const loptions = { ignoreLight: false, materialStyle: { metalness: 0, roughness: 0.2, bumpiness: 0 } };
|
|
714
|
+
const options = { ...loptions, celShaded: false };
|
|
715
|
+
await this.plugin.managers.structure.component.setOptions(loptions);
|
|
716
|
+
await (0, state_1.updateColors)(this.plugin, this.default_color_values, options);
|
|
717
|
+
}
|
|
718
|
+
async stylized() {
|
|
719
|
+
if (!this.plugin.canvas3d)
|
|
720
|
+
return;
|
|
721
|
+
this.plugin.canvas3d.setProps({
|
|
722
|
+
renderer: {
|
|
723
|
+
exposure: 1.1,
|
|
724
|
+
},
|
|
725
|
+
postprocessing: {
|
|
726
|
+
occlusion: {
|
|
727
|
+
name: 'on',
|
|
728
|
+
params: {
|
|
729
|
+
samples: 32,
|
|
730
|
+
multiScale: {
|
|
731
|
+
name: 'on',
|
|
732
|
+
params: {
|
|
733
|
+
levels: [
|
|
734
|
+
{ radius: 2, bias: 1.0 },
|
|
735
|
+
{ radius: 5, bias: 1.0 },
|
|
736
|
+
{ radius: 8, bias: 1.0 },
|
|
737
|
+
{ radius: 11, bias: 1.0 },
|
|
738
|
+
],
|
|
739
|
+
nearThreshold: 10,
|
|
740
|
+
farThreshold: 1500,
|
|
741
|
+
}
|
|
742
|
+
},
|
|
743
|
+
radius: 5,
|
|
744
|
+
bias: 1.3,
|
|
745
|
+
blurKernelSize: 11,
|
|
746
|
+
blurDepthBias: 0.5,
|
|
747
|
+
resolutionScale: 1,
|
|
748
|
+
color: (0, color_1.Color)(0x000000),
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
shadow: {
|
|
752
|
+
name: 'on',
|
|
753
|
+
params: {
|
|
754
|
+
bias: 0.4,
|
|
755
|
+
maxDistance: 256,
|
|
756
|
+
steps: 64,
|
|
757
|
+
tolerance: 1.0,
|
|
758
|
+
}
|
|
759
|
+
},
|
|
760
|
+
outline: {
|
|
761
|
+
name: 'on',
|
|
762
|
+
params: {
|
|
763
|
+
scale: 1,
|
|
764
|
+
threshold: 0.15,
|
|
765
|
+
color: (0, color_1.Color)(0x000000),
|
|
766
|
+
includeTransparent: false,
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
dof: { name: 'off', params: {} },
|
|
770
|
+
}
|
|
771
|
+
});
|
|
772
|
+
// ignore Light
|
|
773
|
+
const loptions = { ignoreLight: false, materialStyle: { metalness: 0, roughness: 0.2, bumpiness: 0 } };
|
|
774
|
+
const options = { ...loptions, celShaded: false };
|
|
775
|
+
await this.plugin.managers.structure.component.setOptions(loptions);
|
|
776
|
+
await (0, state_1.updateColors)(this.plugin, this.illustrative_color_values, options);
|
|
777
|
+
}
|
|
778
|
+
render() {
|
|
779
|
+
return (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: 'msp-flex-row', children: [(0, jsx_runtime_1.jsx)(common_1.Button, { noOverflow: true, title: 'Applies default representation preset and sets outline and occlusion effects to default', onClick: () => this.default(), style: { width: 'auto' }, children: "Default" }), (0, jsx_runtime_1.jsx)(common_1.Button, { noOverflow: true, title: 'Applies celShading', onClick: () => this.celshading(), style: { width: 'auto' }, children: "Cel-shaded" }), (0, jsx_runtime_1.jsx)(common_1.Button, { noOverflow: true, title: 'Applies illustrative colors preset', onClick: () => this.illustrative(), style: { width: 'auto' }, children: "Illustrative" })] }), (0, jsx_runtime_1.jsxs)("div", { className: 'msp-flex-row', children: [(0, jsx_runtime_1.jsx)(common_1.Button, { noOverflow: true, title: 'Apply shiny material to default', onClick: () => this.shiny(), style: { width: 'auto' }, children: "Shiny" }), (0, jsx_runtime_1.jsx)(common_1.Button, { noOverflow: true, title: 'Enable shiny material, outline, and illustrative colors', onClick: () => this.stylized(), style: { width: 'auto' }, children: "Shiny-Illustrative" }), (0, jsx_runtime_1.jsx)(common_1.Button, { noOverflow: true, title: 'Enable DOF and shiny material', onClick: () => this.stylizedDof(), style: { width: 'auto' }, children: "Shiny-DOF" })] })] });
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
exports.MesoQuickStyles = MesoQuickStyles;
|
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
|
+
* @author Neli Fonseca <neli@ebi.ac.uk>
|
|
6
7
|
*/
|
|
7
8
|
import { loadMVS } from '../../extensions/mvs/load';
|
|
8
9
|
import { MVSData } from '../../extensions/mvs/mvs-data';
|
|
9
10
|
import { SaccharideCompIdMapType } from '../../mol-model/structure/structure/carbohydrates/constants';
|
|
11
|
+
import { Volume } from '../../mol-model/volume';
|
|
10
12
|
import { PresetTrajectoryHierarchy } from '../../mol-plugin-state/builder/structure/hierarchy-preset';
|
|
11
13
|
import { StructureRepresentationPresetProvider } from '../../mol-plugin-state/builder/structure/representation-preset';
|
|
12
14
|
import { BuiltInCoordinatesFormat } from '../../mol-plugin-state/formats/coordinates';
|
|
@@ -41,10 +43,11 @@ export declare const ExtensionMap: {
|
|
|
41
43
|
'sb-ncbr-partial-charges': PluginSpec.Behavior;
|
|
42
44
|
'wwpdb-chemical-component-dictionary': PluginSpec.Behavior;
|
|
43
45
|
mvs: PluginSpec.Behavior;
|
|
46
|
+
tunnels: PluginSpec.Behavior;
|
|
44
47
|
};
|
|
45
48
|
declare const DefaultViewerOptions: {
|
|
46
|
-
customFormats: [string, DataFormatProvider
|
|
47
|
-
extensions: ("mp4-export" | "backgrounds" | "dnatco-ntcs" | "g3d" | "geo-export" | "model-export" | "mvs" | "pdbe-structure-quality-report" | "sb-ncbr-partial-charges" | "volseg" | "wwpdb-chemical-component-dictionary" | "zenodo-import" | "assembly-symmetry" | "rcsb-validation-report" | "anvil-membrane-orientation" | "ma-quality-assessment")[];
|
|
49
|
+
customFormats: [string, DataFormatProvider][];
|
|
50
|
+
extensions: ("mp4-export" | "backgrounds" | "dnatco-ntcs" | "g3d" | "geo-export" | "model-export" | "mvs" | "pdbe-structure-quality-report" | "sb-ncbr-partial-charges" | "volseg" | "wwpdb-chemical-component-dictionary" | "zenodo-import" | "assembly-symmetry" | "rcsb-validation-report" | "anvil-membrane-orientation" | "ma-quality-assessment" | "tunnels")[];
|
|
48
51
|
disabledExtensions: string[];
|
|
49
52
|
layoutIsExpanded: boolean;
|
|
50
53
|
layoutShowControls: boolean;
|
|
@@ -147,6 +150,10 @@ export declare class Viewer {
|
|
|
147
150
|
entryId?: string | string[];
|
|
148
151
|
isLazy?: boolean;
|
|
149
152
|
}): Promise<void>;
|
|
153
|
+
loadFullResolutionEMDBMap(emdbId: string, options: {
|
|
154
|
+
isoValue: Volume.IsoValue;
|
|
155
|
+
color?: Color;
|
|
156
|
+
}): Promise<void>;
|
|
150
157
|
/**
|
|
151
158
|
* @example
|
|
152
159
|
* viewer.loadTrajectory({
|
|
@@ -289,12 +296,12 @@ export declare const PluginExtensions: {
|
|
|
289
296
|
MVSData: {
|
|
290
297
|
SupportedVersion: number;
|
|
291
298
|
fromMVSJ(mvsjString: string): MVSData;
|
|
292
|
-
toMVSJ(mvsData: MVSData, space?: string | number
|
|
299
|
+
toMVSJ(mvsData: MVSData, space?: string | number): string;
|
|
293
300
|
isValid(mvsData: MVSData, options?: {
|
|
294
|
-
noExtra?: boolean
|
|
301
|
+
noExtra?: boolean;
|
|
295
302
|
}): boolean;
|
|
296
303
|
validationIssues(mvsData: MVSData, options?: {
|
|
297
|
-
noExtra?: boolean
|
|
304
|
+
noExtra?: boolean;
|
|
298
305
|
}): string[] | undefined;
|
|
299
306
|
toPrettyString(mvsData: MVSData): string;
|
|
300
307
|
createBuilder(): import("../../extensions/mvs/tree/mvs/mvs-builder").Root;
|