molstar 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/viewer/molstar.js +1 -1
- package/lib/apps/docking-viewer/viewport.d.ts +2 -2
- package/lib/cli/chem-comp-dict/util.d.ts +4 -4
- package/lib/commonjs/apps/docking-viewer/viewport.d.ts +2 -2
- package/lib/commonjs/apps/viewer/index.d.ts +2 -2
- package/lib/commonjs/cli/chem-comp-dict/util.d.ts +4 -4
- package/lib/commonjs/extensions/alpha-orbitals/transforms.d.ts +1 -1
- package/lib/commonjs/extensions/anvil/behavior.d.ts +2 -2
- package/lib/commonjs/extensions/anvil/representation.d.ts +5 -5
- package/lib/commonjs/extensions/cellpack/representation.d.ts +2 -2
- package/lib/commonjs/extensions/dnatco/confal-pyramids/behavior.d.ts +1 -1
- package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +6 -6
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +6 -6
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.d.ts +1 -1
- package/lib/commonjs/extensions/rcsb/validation-report/behavior.d.ts +3 -3
- package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +10 -10
- package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +4 -4
- package/lib/commonjs/mol-canvas3d/helper/camera-helper.d.ts +1 -1
- package/lib/commonjs/mol-canvas3d/helper/handle-helper.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/base.d.ts +3 -3
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/image/image.d.ts +3 -3
- package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/mesh/builder/tube.js +18 -8
- package/lib/commonjs/mol-geo/geometry/mesh/builder/tube.js.map +1 -1
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/points/points.d.ts +3 -3
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/text/text.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +1 -1
- package/lib/commonjs/mol-gl/renderer.d.ts +2 -2
- package/lib/commonjs/mol-gl/webgl/context.d.ts +1 -1
- package/lib/commonjs/mol-io/common/typed-array.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/ccd.d.ts +2 -2
- package/lib/commonjs/mol-io/reader/cif/schema/density-server.d.ts +3 -3
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif-extras.d.ts +3 -3
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +14 -14
- package/lib/commonjs/mol-io/reader/ply/schema.d.ts +1 -1
- package/lib/commonjs/mol-model/loci.d.ts +20 -20
- package/lib/commonjs/mol-model/shape/shape.d.ts +1 -1
- package/lib/commonjs/mol-model/structure/query/utils/structure-distance.d.ts +54 -5
- package/lib/commonjs/mol-model/structure/structure/properties.d.ts +2 -2
- package/lib/commonjs/mol-model/structure/structure/unit.d.ts +2 -2
- package/lib/commonjs/mol-model-formats/shape/ply.d.ts +6 -6
- package/lib/commonjs/mol-model-formats/structure/basic/schema.d.ts +5 -5
- package/lib/commonjs/mol-model-formats/structure/common/component.d.ts +8 -8
- package/lib/commonjs/mol-model-props/computed/interactions/hydrogen-bonds.d.ts +1 -1
- package/lib/commonjs/mol-model-props/computed/interactions/hydrogen-bonds.js +1 -7
- package/lib/commonjs/mol-model-props/computed/interactions/hydrogen-bonds.js.map +1 -1
- package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +2 -2
- package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +2 -2
- package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +6 -6
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +8 -8
- package/lib/commonjs/mol-plugin/behavior/behavior.d.ts +1 -1
- package/lib/commonjs/mol-plugin/behavior/dynamic/representation.d.ts +2 -2
- package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +1 -1
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/behavior.d.ts +4 -4
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/transformers.d.ts +2 -2
- package/lib/commonjs/mol-plugin/commands.d.ts +2 -2
- package/lib/commonjs/mol-plugin/config.d.ts +1 -1
- package/lib/commonjs/mol-plugin/layout.d.ts +4 -4
- package/lib/commonjs/mol-plugin/util/viewport-screenshot.d.ts +3 -3
- package/lib/commonjs/mol-plugin-state/actions/structure.d.ts +2 -2
- package/lib/commonjs/mol-plugin-state/animation/built-in/model-index.d.ts +3 -3
- package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +5 -5
- package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy.d.ts +5 -5
- package/lib/commonjs/mol-plugin-state/builder/structure/representation-preset.d.ts +15 -15
- package/lib/commonjs/mol-plugin-state/builder/structure/representation.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/formats/volume.d.ts +10 -10
- package/lib/commonjs/mol-plugin-state/helpers/root-structure.d.ts +5 -5
- package/lib/commonjs/mol-plugin-state/helpers/structure-component.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/manager/interactivity.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/manager/structure/component.d.ts +3 -3
- package/lib/commonjs/mol-plugin-state/transforms/data.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/transforms/model.d.ts +7 -7
- package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +10 -10
- package/lib/commonjs/mol-plugin-ui/controls/parameters.d.ts +2 -2
- package/lib/commonjs/mol-plugin-ui/sequence/polymer.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/structure/measurements.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/loci/angle.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/loci/common.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/loci/dihedral.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/loci/distance.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/loci/label.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +2 -2
- package/lib/commonjs/mol-repr/shape/loci/plane.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +12 -12
- package/lib/commonjs/mol-repr/structure/params.d.ts +11 -11
- package/lib/commonjs/mol-repr/structure/registry.d.ts +41 -41
- package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +6 -6
- package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +15 -15
- package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +6 -6
- package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +9 -9
- package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +15 -15
- package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +6 -6
- package/lib/commonjs/mol-repr/structure/representation/gaussian-volume.d.ts +6 -6
- package/lib/commonjs/mol-repr/structure/representation/label.d.ts +9 -9
- package/lib/commonjs/mol-repr/structure/representation/line.d.ts +18 -18
- package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +6 -6
- package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +6 -6
- package/lib/commonjs/mol-repr/structure/representation/point.d.ts +9 -9
- package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +6 -6
- package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +6 -6
- package/lib/commonjs/mol-repr/structure/units-visual.d.ts +17 -17
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +10 -10
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-line.d.ts +5 -5
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +10 -10
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.d.ts +5 -5
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/element-cross.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/element-point.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +4 -4
- package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/gaussian-density-volume.d.ts +4 -4
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +8 -8
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/label-text.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +4 -4
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +4 -4
- package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +5 -5
- package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/util/bond.d.ts +18 -18
- package/lib/commonjs/mol-repr/structure/visual/util/common.d.ts +2 -2
- package/lib/commonjs/mol-repr/volume/direct-volume.d.ts +8 -8
- package/lib/commonjs/mol-repr/volume/isosurface.d.ts +12 -12
- package/lib/commonjs/mol-repr/volume/registry.d.ts +8 -8
- package/lib/commonjs/mol-repr/volume/representation.d.ts +1 -1
- package/lib/commonjs/mol-repr/volume/slice.d.ts +12 -12
- package/lib/commonjs/mol-theme/color/element-symbol.d.ts +4 -4
- package/lib/commonjs/mol-theme/color.d.ts +2 -2
- package/lib/commonjs/mol-util/color/lists.d.ts +3 -3
- package/lib/commonjs/mol-util/color/names.d.ts +1 -1
- package/lib/commonjs/mol-util/color/palette.d.ts +1 -1
- package/lib/commonjs/mol-util/color/scale.d.ts +1 -1
- package/lib/commonjs/servers/model/config.d.ts +2 -2
- package/lib/extensions/anvil/behavior.d.ts +2 -2
- package/lib/extensions/anvil/representation.d.ts +5 -5
- package/lib/extensions/cellpack/representation.d.ts +2 -2
- package/lib/extensions/dnatco/confal-pyramids/behavior.d.ts +1 -1
- package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +6 -6
- package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +6 -6
- package/lib/extensions/rcsb/assembly-symmetry/representation.d.ts +1 -1
- package/lib/extensions/rcsb/validation-report/behavior.d.ts +3 -3
- package/lib/extensions/rcsb/validation-report/representation.d.ts +10 -10
- package/lib/mol-canvas3d/canvas3d.d.ts +4 -4
- package/lib/mol-canvas3d/helper/camera-helper.d.ts +1 -1
- package/lib/mol-canvas3d/helper/handle-helper.d.ts +1 -1
- package/lib/mol-data/int/impl/ordered-set.d.ts +3 -3
- package/lib/mol-geo/geometry/base.d.ts +3 -3
- package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +1 -1
- package/lib/mol-geo/geometry/direct-volume/direct-volume.d.ts +1 -1
- package/lib/mol-geo/geometry/image/image.d.ts +3 -3
- package/lib/mol-geo/geometry/lines/lines.d.ts +1 -1
- package/lib/mol-geo/geometry/mesh/builder/tube.js +19 -9
- package/lib/mol-geo/geometry/mesh/builder/tube.js.map +1 -1
- package/lib/mol-geo/geometry/mesh/mesh.d.ts +1 -1
- package/lib/mol-geo/geometry/points/points.d.ts +3 -3
- package/lib/mol-geo/geometry/spheres/spheres.d.ts +1 -1
- package/lib/mol-geo/geometry/text/text.d.ts +1 -1
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +1 -1
- package/lib/mol-gl/renderer.d.ts +2 -2
- package/lib/mol-io/common/typed-array.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema/ccd.d.ts +2 -2
- package/lib/mol-io/reader/cif/schema/density-server.d.ts +3 -3
- package/lib/mol-io/reader/cif/schema/mmcif-extras.d.ts +3 -3
- package/lib/mol-io/reader/cif/schema/mmcif.d.ts +14 -14
- package/lib/mol-io/reader/ply/schema.d.ts +1 -1
- package/lib/mol-model/loci.d.ts +20 -20
- package/lib/mol-model/shape/shape.d.ts +1 -1
- package/lib/mol-model/structure/structure/properties.d.ts +2 -2
- package/lib/mol-model/structure/structure/unit.d.ts +2 -2
- package/lib/mol-model-formats/shape/ply.d.ts +6 -6
- package/lib/mol-model-formats/structure/basic/schema.d.ts +5 -5
- package/lib/mol-model-formats/structure/common/component.d.ts +8 -8
- package/lib/mol-model-props/computed/interactions/hydrogen-bonds.d.ts +1 -1
- package/lib/mol-model-props/computed/interactions/hydrogen-bonds.js +1 -7
- package/lib/mol-model-props/computed/interactions/hydrogen-bonds.js.map +1 -1
- package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +2 -2
- package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +2 -2
- package/lib/mol-model-props/computed/representations/interactions.d.ts +6 -6
- package/lib/mol-model-props/integrative/cross-link-restraint/representation.d.ts +8 -8
- package/lib/mol-plugin/behavior/behavior.d.ts +1 -1
- package/lib/mol-plugin/behavior/dynamic/representation.d.ts +2 -2
- package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +1 -1
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/behavior.d.ts +4 -4
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/transformers.d.ts +2 -2
- package/lib/mol-plugin/commands.d.ts +2 -2
- package/lib/mol-plugin/layout.d.ts +4 -4
- package/lib/mol-plugin/util/viewport-screenshot.d.ts +3 -3
- package/lib/mol-plugin/version.js +2 -2
- package/lib/mol-plugin-state/actions/structure.d.ts +1 -1
- package/lib/mol-plugin-state/animation/built-in/model-index.d.ts +3 -3
- package/lib/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +5 -5
- package/lib/mol-plugin-state/builder/structure/hierarchy.d.ts +5 -5
- package/lib/mol-plugin-state/builder/structure/representation-preset.d.ts +15 -15
- package/lib/mol-plugin-state/builder/structure/representation.d.ts +1 -1
- package/lib/mol-plugin-state/formats/volume.d.ts +10 -10
- package/lib/mol-plugin-state/helpers/root-structure.d.ts +5 -5
- package/lib/mol-plugin-state/helpers/structure-component.d.ts +1 -1
- package/lib/mol-plugin-state/manager/interactivity.d.ts +1 -1
- package/lib/mol-plugin-state/manager/structure/component.d.ts +3 -3
- package/lib/mol-plugin-state/transforms/data.d.ts +1 -1
- package/lib/mol-plugin-state/transforms/model.d.ts +7 -7
- package/lib/mol-plugin-state/transforms/representation.d.ts +10 -10
- package/lib/mol-plugin-ui/structure/measurements.d.ts +1 -1
- package/lib/mol-plugin-ui/structure/selection.d.ts +1 -1
- package/lib/mol-repr/shape/loci/angle.d.ts +1 -1
- package/lib/mol-repr/shape/loci/common.d.ts +1 -1
- package/lib/mol-repr/shape/loci/dihedral.d.ts +1 -1
- package/lib/mol-repr/shape/loci/distance.d.ts +1 -1
- package/lib/mol-repr/shape/loci/label.d.ts +1 -1
- package/lib/mol-repr/shape/loci/orientation.d.ts +2 -2
- package/lib/mol-repr/shape/loci/plane.d.ts +1 -1
- package/lib/mol-repr/shape/model/unitcell.d.ts +2 -2
- package/lib/mol-repr/structure/complex-visual.d.ts +12 -12
- package/lib/mol-repr/structure/params.d.ts +11 -11
- package/lib/mol-repr/structure/registry.d.ts +41 -41
- package/lib/mol-repr/structure/representation/backbone.d.ts +6 -6
- package/lib/mol-repr/structure/representation/ball-and-stick.d.ts +15 -15
- package/lib/mol-repr/structure/representation/carbohydrate.d.ts +6 -6
- package/lib/mol-repr/structure/representation/cartoon.d.ts +9 -9
- package/lib/mol-repr/structure/representation/ellipsoid.d.ts +15 -15
- package/lib/mol-repr/structure/representation/gaussian-surface.d.ts +6 -6
- package/lib/mol-repr/structure/representation/gaussian-volume.d.ts +6 -6
- package/lib/mol-repr/structure/representation/label.d.ts +9 -9
- package/lib/mol-repr/structure/representation/line.d.ts +18 -18
- package/lib/mol-repr/structure/representation/molecular-surface.d.ts +6 -6
- package/lib/mol-repr/structure/representation/orientation.d.ts +6 -6
- package/lib/mol-repr/structure/representation/point.d.ts +9 -9
- package/lib/mol-repr/structure/representation/putty.d.ts +6 -6
- package/lib/mol-repr/structure/representation/spacefill.d.ts +6 -6
- package/lib/mol-repr/structure/units-visual.d.ts +17 -17
- package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +10 -10
- package/lib/mol-repr/structure/visual/bond-inter-unit-line.d.ts +5 -5
- package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +10 -10
- package/lib/mol-repr/structure/visual/bond-intra-unit-line.d.ts +5 -5
- package/lib/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +2 -2
- package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +2 -2
- package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +2 -2
- package/lib/mol-repr/structure/visual/element-cross.d.ts +2 -2
- package/lib/mol-repr/structure/visual/element-point.d.ts +3 -3
- package/lib/mol-repr/structure/visual/element-sphere.d.ts +4 -4
- package/lib/mol-repr/structure/visual/ellipsoid-mesh.d.ts +2 -2
- package/lib/mol-repr/structure/visual/gaussian-density-volume.d.ts +4 -4
- package/lib/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +8 -8
- package/lib/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +2 -2
- package/lib/mol-repr/structure/visual/label-text.d.ts +3 -3
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +2 -2
- package/lib/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +2 -2
- package/lib/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +2 -2
- package/lib/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +2 -2
- package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +2 -2
- package/lib/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +4 -4
- package/lib/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +4 -4
- package/lib/mol-repr/structure/visual/polymer-direction-wedge.d.ts +2 -2
- package/lib/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +2 -2
- package/lib/mol-repr/structure/visual/polymer-trace-mesh.d.ts +5 -5
- package/lib/mol-repr/structure/visual/polymer-tube-mesh.d.ts +2 -2
- package/lib/mol-repr/structure/visual/util/bond.d.ts +18 -18
- package/lib/mol-repr/structure/visual/util/common.d.ts +2 -2
- package/lib/mol-repr/volume/direct-volume.d.ts +8 -8
- package/lib/mol-repr/volume/isosurface.d.ts +12 -12
- package/lib/mol-repr/volume/registry.d.ts +8 -8
- package/lib/mol-repr/volume/representation.d.ts +1 -1
- package/lib/mol-repr/volume/slice.d.ts +12 -12
- package/lib/mol-theme/color/element-symbol.d.ts +4 -4
- package/lib/mol-theme/color.d.ts +2 -2
- package/lib/mol-util/color/names.d.ts +1 -1
- package/lib/mol-util/color/palette.d.ts +1 -1
- package/lib/mol-util/color/scale.d.ts +1 -1
- package/lib/servers/model/config.d.ts +2 -2
- package/lib/tsconfig.commonjs.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/lib/commonjs/mol-repr/structure/visual/util/color.d.ts +0 -24
- package/lib/commonjs/mol-repr/structure/visual/util/color.js +0 -100
- package/lib/commonjs/mol-repr/structure/visual/util/color.js.map +0 -1
- package/lib/mol-gl/_spec/shader.spec.d.ts +0 -0
- package/lib/mol-gl/_spec/shader.spec.js +0 -2
- package/lib/mol-gl/_spec/shader.spec.js.map +0 -1
- package/lib/mol-gl/compute/copy.d.ts +0 -20
- package/lib/mol-gl/compute/copy.js +0 -24
- package/lib/mol-gl/compute/copy.js.map +0 -1
- package/lib/mol-repr/structure/visual/orientation-axes-mesh.d.ts +0 -35
- package/lib/mol-repr/structure/visual/orientation-axes-mesh.js +0 -43
- package/lib/mol-repr/structure/visual/orientation-axes-mesh.js.map +0 -1
- package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh copy.d.ts +0 -31
- package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh copy.js +0 -48
- package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh copy.js.map +0 -1
- package/lib/mol-repr/structure/visual/util/color.d.ts +0 -24
- package/lib/mol-repr/structure/visual/util/color.js +0 -94
- package/lib/mol-repr/structure/visual/util/color.js.map +0 -1
- package/lib/mol-repr/structure/visual/util/orientation.d.ts +0 -17
- package/lib/mol-repr/structure/visual/util/orientation.js +0 -71
- package/lib/mol-repr/structure/visual/util/orientation.js.map +0 -1
|
@@ -10,7 +10,7 @@ import { StructureRepresentation, StructureRepresentationProvider } from '../../
|
|
|
10
10
|
import { ParamDefinition as PD } from '../../../mol-util/param-definition';
|
|
11
11
|
import { ThemeRegistryContext } from '../../../mol-theme/theme';
|
|
12
12
|
export declare const ConfalPyramidsParams: {
|
|
13
|
-
unitKinds: PD.MultiSelect<"
|
|
13
|
+
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
14
14
|
includeParent: PD.BooleanParam;
|
|
15
15
|
doubleSided: PD.BooleanParam;
|
|
16
16
|
flipSided: PD.BooleanParam;
|
|
@@ -18,11 +18,11 @@ export declare const ConfalPyramidsParams: {
|
|
|
18
18
|
ignoreLight: PD.BooleanParam;
|
|
19
19
|
xrayShaded: PD.BooleanParam;
|
|
20
20
|
alpha: PD.Numeric;
|
|
21
|
-
quality: PD.Select<"
|
|
21
|
+
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
22
22
|
};
|
|
23
23
|
export declare type ConfalPyramidsParams = typeof ConfalPyramidsParams;
|
|
24
24
|
export declare function getConfalPyramidsParams(ctx: ThemeRegistryContext, structure: Structure): {
|
|
25
|
-
unitKinds: PD.MultiSelect<"
|
|
25
|
+
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
26
26
|
includeParent: PD.BooleanParam;
|
|
27
27
|
doubleSided: PD.BooleanParam;
|
|
28
28
|
flipSided: PD.BooleanParam;
|
|
@@ -30,12 +30,12 @@ export declare function getConfalPyramidsParams(ctx: ThemeRegistryContext, struc
|
|
|
30
30
|
ignoreLight: PD.BooleanParam;
|
|
31
31
|
xrayShaded: PD.BooleanParam;
|
|
32
32
|
alpha: PD.Numeric;
|
|
33
|
-
quality: PD.Select<"
|
|
33
|
+
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
34
34
|
};
|
|
35
35
|
export declare type ConfalPyramidsRepresentation = StructureRepresentation<ConfalPyramidsParams>;
|
|
36
36
|
export declare function ConfalPyramidsRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter<Structure, ConfalPyramidsParams>): ConfalPyramidsRepresentation;
|
|
37
37
|
export declare const ConfalPyramidsRepresentationProvider: StructureRepresentationProvider<{
|
|
38
|
-
unitKinds: PD.MultiSelect<"
|
|
38
|
+
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
39
39
|
includeParent: PD.BooleanParam;
|
|
40
40
|
doubleSided: PD.BooleanParam;
|
|
41
41
|
flipSided: PD.BooleanParam;
|
|
@@ -43,5 +43,5 @@ export declare const ConfalPyramidsRepresentationProvider: StructureRepresentati
|
|
|
43
43
|
ignoreLight: PD.BooleanParam;
|
|
44
44
|
xrayShaded: PD.BooleanParam;
|
|
45
45
|
alpha: PD.Numeric;
|
|
46
|
-
quality: PD.Select<"
|
|
46
|
+
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
47
47
|
}, "confal-pyramids">;
|
|
@@ -25,18 +25,18 @@ declare const AssemblySymmetry3D: StateTransformer<PluginStateObject.Molecule.St
|
|
|
25
25
|
ignoreLight: boolean;
|
|
26
26
|
xrayShaded: boolean;
|
|
27
27
|
alpha: number;
|
|
28
|
-
quality: "
|
|
28
|
+
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest";
|
|
29
29
|
axesColor: PD.NamedParams<PD.Normalize<{
|
|
30
30
|
colorValue: any;
|
|
31
31
|
}>, "uniform"> | PD.NamedParams<PD.Normalize<unknown>, "byOrder">;
|
|
32
32
|
}>>;
|
|
33
33
|
export declare const AssemblySymmetryPresetParams: {
|
|
34
34
|
ignoreHydrogens: PD.Base<boolean | undefined>;
|
|
35
|
-
quality: PD.Base<"
|
|
35
|
+
quality: PD.Base<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined>;
|
|
36
36
|
theme: PD.Base<PD.Normalize<{
|
|
37
|
-
globalName: "occupancy" | "
|
|
38
|
-
carbonColor: "
|
|
39
|
-
symmetryColor: "occupancy" | "
|
|
37
|
+
globalName: "uniform" | "occupancy" | "element-index" | "element-symbol" | "carbohydrate-symbol" | "chain-id" | "operator-name" | "molecule-type" | "polymer-id" | "polymer-index" | "residue-name" | "secondary-structure" | "sequence-id" | "shape-group" | "unit-index" | "uncertainty" | "entity-source" | "illustrative" | "hydrophobicity" | "model-index" | "operator-hkl" | "partial-charge" | "atom-id" | "entity-id" | undefined;
|
|
38
|
+
carbonColor: "element-symbol" | "chain-id" | "operator-name" | undefined;
|
|
39
|
+
symmetryColor: "uniform" | "occupancy" | "element-index" | "element-symbol" | "carbohydrate-symbol" | "chain-id" | "operator-name" | "molecule-type" | "polymer-id" | "polymer-index" | "residue-name" | "secondary-structure" | "sequence-id" | "shape-group" | "unit-index" | "uncertainty" | "entity-source" | "illustrative" | "hydrophobicity" | "model-index" | "operator-hkl" | "partial-charge" | "atom-id" | "entity-id" | undefined;
|
|
40
40
|
focus: PD.Normalize<{
|
|
41
41
|
name: any;
|
|
42
42
|
params: any;
|
|
@@ -45,7 +45,7 @@ export declare const AssemblySymmetryPresetParams: {
|
|
|
45
45
|
};
|
|
46
46
|
export declare const AssemblySymmetryPreset: StructureRepresentationPresetProvider<{
|
|
47
47
|
ignoreHydrogens: boolean | undefined;
|
|
48
|
-
quality: "
|
|
48
|
+
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined;
|
|
49
49
|
theme: PD.Normalize<{
|
|
50
50
|
globalName: any;
|
|
51
51
|
carbonColor: any;
|
|
@@ -17,7 +17,7 @@ export declare const AssemblySymmetryParams: {
|
|
|
17
17
|
ignoreLight: PD.BooleanParam;
|
|
18
18
|
xrayShaded: PD.BooleanParam;
|
|
19
19
|
alpha: PD.Numeric;
|
|
20
|
-
quality: PD.Select<"
|
|
20
|
+
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
21
21
|
axesColor: PD.Mapped<PD.NamedParams<PD.Normalize<{
|
|
22
22
|
colorValue: Color;
|
|
23
23
|
}>, "uniform"> | PD.NamedParams<PD.Normalize<unknown>, "byOrder">>;
|
|
@@ -12,7 +12,7 @@ export declare const RCSBValidationReport: import("../../../mol-state/transforme
|
|
|
12
12
|
}>;
|
|
13
13
|
export declare const ValidationReportGeometryQualityPreset: StructureRepresentationPresetProvider<{
|
|
14
14
|
ignoreHydrogens: boolean | undefined;
|
|
15
|
-
quality: "
|
|
15
|
+
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined;
|
|
16
16
|
theme: PD.Normalize<{
|
|
17
17
|
globalName: any;
|
|
18
18
|
carbonColor: any;
|
|
@@ -48,7 +48,7 @@ export declare const ValidationReportGeometryQualityPreset: StructureRepresentat
|
|
|
48
48
|
}>;
|
|
49
49
|
export declare const ValidationReportDensityFitPreset: StructureRepresentationPresetProvider<{
|
|
50
50
|
ignoreHydrogens: boolean | undefined;
|
|
51
|
-
quality: "
|
|
51
|
+
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined;
|
|
52
52
|
theme: PD.Normalize<{
|
|
53
53
|
globalName: any;
|
|
54
54
|
carbonColor: any;
|
|
@@ -76,7 +76,7 @@ export declare const ValidationReportDensityFitPreset: StructureRepresentationPr
|
|
|
76
76
|
}>;
|
|
77
77
|
export declare const ValidationReportRandomCoilIndexPreset: StructureRepresentationPresetProvider<{
|
|
78
78
|
ignoreHydrogens: boolean | undefined;
|
|
79
|
-
quality: "
|
|
79
|
+
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined;
|
|
80
80
|
theme: PD.Normalize<{
|
|
81
81
|
globalName: any;
|
|
82
82
|
carbonColor: any;
|
|
@@ -24,7 +24,7 @@ export declare const IntraUnitClashParams: {
|
|
|
24
24
|
dashCap: PD.BooleanParam;
|
|
25
25
|
stubCap: PD.BooleanParam;
|
|
26
26
|
radialSegments: PD.Numeric;
|
|
27
|
-
unitKinds: PD.MultiSelect<"
|
|
27
|
+
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
28
28
|
includeParent: PD.BooleanParam;
|
|
29
29
|
doubleSided: PD.BooleanParam;
|
|
30
30
|
flipSided: PD.BooleanParam;
|
|
@@ -32,7 +32,7 @@ export declare const IntraUnitClashParams: {
|
|
|
32
32
|
ignoreLight: PD.BooleanParam;
|
|
33
33
|
xrayShaded: PD.BooleanParam;
|
|
34
34
|
alpha: PD.Numeric;
|
|
35
|
-
quality: PD.Select<"
|
|
35
|
+
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
36
36
|
};
|
|
37
37
|
export declare type IntraUnitClashParams = typeof IntraUnitClashParams;
|
|
38
38
|
export declare function IntraUnitClashVisual(materialId: number): UnitsVisual<IntraUnitClashParams>;
|
|
@@ -49,7 +49,7 @@ export declare const InterUnitClashParams: {
|
|
|
49
49
|
dashCap: PD.BooleanParam;
|
|
50
50
|
stubCap: PD.BooleanParam;
|
|
51
51
|
radialSegments: PD.Numeric;
|
|
52
|
-
unitKinds: PD.MultiSelect<"
|
|
52
|
+
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
53
53
|
includeParent: PD.BooleanParam;
|
|
54
54
|
doubleSided: PD.BooleanParam;
|
|
55
55
|
flipSided: PD.BooleanParam;
|
|
@@ -57,12 +57,12 @@ export declare const InterUnitClashParams: {
|
|
|
57
57
|
ignoreLight: PD.BooleanParam;
|
|
58
58
|
xrayShaded: PD.BooleanParam;
|
|
59
59
|
alpha: PD.Numeric;
|
|
60
|
-
quality: PD.Select<"
|
|
60
|
+
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
61
61
|
};
|
|
62
62
|
export declare type InterUnitClashParams = typeof InterUnitClashParams;
|
|
63
63
|
export declare function InterUnitClashVisual(materialId: number): ComplexVisual<InterUnitClashParams>;
|
|
64
64
|
export declare const ClashesParams: {
|
|
65
|
-
unitKinds: PD.MultiSelect<"
|
|
65
|
+
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
66
66
|
visuals: PD.MultiSelect<"intra-clash" | "inter-clash">;
|
|
67
67
|
linkCap: PD.BooleanParam;
|
|
68
68
|
sizeFactor: PD.Numeric;
|
|
@@ -83,11 +83,11 @@ export declare const ClashesParams: {
|
|
|
83
83
|
ignoreLight: PD.BooleanParam;
|
|
84
84
|
xrayShaded: PD.BooleanParam;
|
|
85
85
|
alpha: PD.Numeric;
|
|
86
|
-
quality: PD.Select<"
|
|
86
|
+
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
87
87
|
};
|
|
88
88
|
export declare type ClashesParams = typeof ClashesParams;
|
|
89
89
|
export declare function getClashesParams(ctx: ThemeRegistryContext, structure: Structure): {
|
|
90
|
-
unitKinds: PD.MultiSelect<"
|
|
90
|
+
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
91
91
|
visuals: PD.MultiSelect<"intra-clash" | "inter-clash">;
|
|
92
92
|
linkCap: PD.BooleanParam;
|
|
93
93
|
sizeFactor: PD.Numeric;
|
|
@@ -108,12 +108,12 @@ export declare function getClashesParams(ctx: ThemeRegistryContext, structure: S
|
|
|
108
108
|
ignoreLight: PD.BooleanParam;
|
|
109
109
|
xrayShaded: PD.BooleanParam;
|
|
110
110
|
alpha: PD.Numeric;
|
|
111
|
-
quality: PD.Select<"
|
|
111
|
+
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
112
112
|
};
|
|
113
113
|
export declare type ClashesRepresentation = StructureRepresentation<ClashesParams>;
|
|
114
114
|
export declare function ClashesRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter<Structure, ClashesParams>): ClashesRepresentation;
|
|
115
115
|
export declare const ClashesRepresentationProvider: StructureRepresentationProvider<{
|
|
116
|
-
unitKinds: PD.MultiSelect<"
|
|
116
|
+
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
117
117
|
visuals: PD.MultiSelect<"intra-clash" | "inter-clash">;
|
|
118
118
|
linkCap: PD.BooleanParam;
|
|
119
119
|
sizeFactor: PD.Numeric;
|
|
@@ -134,5 +134,5 @@ export declare const ClashesRepresentationProvider: StructureRepresentationProvi
|
|
|
134
134
|
ignoreLight: PD.BooleanParam;
|
|
135
135
|
xrayShaded: PD.BooleanParam;
|
|
136
136
|
alpha: PD.Numeric;
|
|
137
|
-
quality: PD.Select<"
|
|
137
|
+
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
138
138
|
}, ValidationReport.Tag.Clashes>;
|
|
@@ -98,13 +98,13 @@ export declare const Canvas3DParams: {
|
|
|
98
98
|
selectStrength: number;
|
|
99
99
|
markerPriority: number;
|
|
100
100
|
xrayEdgeFalloff: number;
|
|
101
|
-
style: PD.NamedParams<PD.Normalize<unknown>, "metallic"> | PD.NamedParams<PD.Normalize<{
|
|
101
|
+
style: PD.NamedParams<PD.Normalize<unknown>, "flat"> | PD.NamedParams<PD.Normalize<unknown>, "metallic"> | PD.NamedParams<PD.Normalize<{
|
|
102
102
|
lightIntensity: any;
|
|
103
103
|
ambientIntensity: any;
|
|
104
104
|
metalness: any;
|
|
105
105
|
roughness: any;
|
|
106
106
|
reflectivity: any;
|
|
107
|
-
}>, "custom"> | PD.NamedParams<PD.Normalize<unknown>, "matte"> | PD.NamedParams<PD.Normalize<unknown>, "
|
|
107
|
+
}>, "custom"> | PD.NamedParams<PD.Normalize<unknown>, "matte"> | PD.NamedParams<PD.Normalize<unknown>, "glossy"> | PD.NamedParams<PD.Normalize<unknown>, "plastic">;
|
|
108
108
|
clip: PD.Normalize<{
|
|
109
109
|
variant: any;
|
|
110
110
|
objects: any;
|
|
@@ -244,13 +244,13 @@ export declare const DefaultCanvas3DParams: PD.Values<{
|
|
|
244
244
|
selectStrength: number;
|
|
245
245
|
markerPriority: number;
|
|
246
246
|
xrayEdgeFalloff: number;
|
|
247
|
-
style: PD.NamedParams<PD.Normalize<unknown>, "metallic"> | PD.NamedParams<PD.Normalize<{
|
|
247
|
+
style: PD.NamedParams<PD.Normalize<unknown>, "flat"> | PD.NamedParams<PD.Normalize<unknown>, "metallic"> | PD.NamedParams<PD.Normalize<{
|
|
248
248
|
lightIntensity: any;
|
|
249
249
|
ambientIntensity: any;
|
|
250
250
|
metalness: any;
|
|
251
251
|
roughness: any;
|
|
252
252
|
reflectivity: any;
|
|
253
|
-
}>, "custom"> | PD.NamedParams<PD.Normalize<unknown>, "matte"> | PD.NamedParams<PD.Normalize<unknown>, "
|
|
253
|
+
}>, "custom"> | PD.NamedParams<PD.Normalize<unknown>, "matte"> | PD.NamedParams<PD.Normalize<unknown>, "glossy"> | PD.NamedParams<PD.Normalize<unknown>, "plastic">;
|
|
254
254
|
clip: PD.Normalize<{
|
|
255
255
|
variant: any;
|
|
256
256
|
objects: any;
|
|
@@ -22,7 +22,7 @@ export declare const CameraHelperParams: {
|
|
|
22
22
|
flipSided: boolean;
|
|
23
23
|
flatShaded: boolean;
|
|
24
24
|
xrayShaded: boolean;
|
|
25
|
-
quality: "
|
|
25
|
+
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest";
|
|
26
26
|
}>, "on">>;
|
|
27
27
|
};
|
|
28
28
|
export declare type CameraHelperParams = typeof CameraHelperParams;
|
|
@@ -24,7 +24,7 @@ export declare const HandleHelperParams: {
|
|
|
24
24
|
flipSided: boolean;
|
|
25
25
|
flatShaded: boolean;
|
|
26
26
|
xrayShaded: boolean;
|
|
27
|
-
quality: "
|
|
27
|
+
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest";
|
|
28
28
|
}>, "on">>;
|
|
29
29
|
};
|
|
30
30
|
export declare type HandleHelperParams = typeof HandleHelperParams;
|
|
@@ -31,9 +31,9 @@ export declare function findPredecessorIndex(set: OrderedSetImpl, x: number): nu
|
|
|
31
31
|
export declare function findPredecessorIndexInInterval(set: OrderedSetImpl, x: number, bounds: I): number;
|
|
32
32
|
export declare function findRange(set: OrderedSetImpl, min: number, max: number): I<number>;
|
|
33
33
|
export declare function intersectionSize(a: OrderedSetImpl, b: OrderedSetImpl): number;
|
|
34
|
-
export declare function union(a: OrderedSetImpl, b: OrderedSetImpl):
|
|
35
|
-
export declare function intersect(a: OrderedSetImpl, b: OrderedSetImpl):
|
|
36
|
-
export declare function subtract(a: OrderedSetImpl, b: OrderedSetImpl):
|
|
34
|
+
export declare function union(a: OrderedSetImpl, b: OrderedSetImpl): I<number> | S<number>;
|
|
35
|
+
export declare function intersect(a: OrderedSetImpl, b: OrderedSetImpl): I<number> | S<number>;
|
|
36
|
+
export declare function subtract(a: OrderedSetImpl, b: OrderedSetImpl): I<number> | S<number>;
|
|
37
37
|
export declare function forEach(set: OrderedSetImpl, f: (value: number, i: number, ctx: any) => void, ctx: any): any;
|
|
38
38
|
export declare function forEachSegment(set: OrderedSetImpl, segment: (v: number) => number, f: (value: number, segIndex: number, ctx: any) => void, ctx: any): any;
|
|
39
39
|
export declare function indexedIntersect(idxA: OrderedSetImpl, a: S, b: S): OrderedSetImpl;
|
|
@@ -22,8 +22,8 @@ export declare const VisualQualityInfo: {
|
|
|
22
22
|
lowest: {};
|
|
23
23
|
};
|
|
24
24
|
export declare type VisualQuality = keyof typeof VisualQualityInfo;
|
|
25
|
-
export declare const VisualQualityNames: ("
|
|
26
|
-
export declare const VisualQualityOptions: ["
|
|
25
|
+
export declare const VisualQualityNames: ("auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest")[];
|
|
26
|
+
export declare const VisualQualityOptions: ["auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest", string][];
|
|
27
27
|
export declare const ColorSmoothingParams: {
|
|
28
28
|
smoothColors: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "auto"> | PD.NamedParams<PD.Normalize<{
|
|
29
29
|
resolutionFactor: number;
|
|
@@ -39,7 +39,7 @@ export declare function getColorSmoothingProps(smoothColors: PD.Values<ColorSmoo
|
|
|
39
39
|
export declare namespace BaseGeometry {
|
|
40
40
|
const Params: {
|
|
41
41
|
alpha: PD.Numeric;
|
|
42
|
-
quality: PD.Select<"
|
|
42
|
+
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
43
43
|
};
|
|
44
44
|
type Params = typeof Params;
|
|
45
45
|
const ShadingCategory: PD.Info;
|
|
@@ -44,7 +44,7 @@ export declare namespace Cylinders {
|
|
|
44
44
|
ignoreLight: PD.BooleanParam;
|
|
45
45
|
xrayShaded: PD.BooleanParam;
|
|
46
46
|
alpha: PD.Numeric;
|
|
47
|
-
quality: PD.Select<"
|
|
47
|
+
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
48
48
|
};
|
|
49
49
|
type Params = typeof Params;
|
|
50
50
|
const Utils: GeometryUtils<Cylinders, Params>;
|
|
@@ -72,7 +72,7 @@ export declare namespace DirectVolume {
|
|
|
72
72
|
stepsPerCell: PD.Numeric;
|
|
73
73
|
jumpLength: PD.Numeric;
|
|
74
74
|
alpha: PD.Numeric;
|
|
75
|
-
quality: PD.Select<"
|
|
75
|
+
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
76
76
|
};
|
|
77
77
|
type Params = typeof Params;
|
|
78
78
|
const Utils: GeometryUtils<DirectVolume, Params>;
|
|
@@ -16,7 +16,7 @@ export declare const InterpolationTypes: {
|
|
|
16
16
|
bspline: string;
|
|
17
17
|
};
|
|
18
18
|
export declare type InterpolationTypes = keyof typeof InterpolationTypes;
|
|
19
|
-
export declare const InterpolationTypeNames: ("
|
|
19
|
+
export declare const InterpolationTypeNames: ("nearest" | "bspline" | "catmulrom" | "mitchell")[];
|
|
20
20
|
export { Image };
|
|
21
21
|
interface Image {
|
|
22
22
|
readonly kind: 'image';
|
|
@@ -31,9 +31,9 @@ declare namespace Image {
|
|
|
31
31
|
function create(imageTexture: TextureImage<Uint8Array>, corners: Float32Array, groupTexture: TextureImage<Uint8Array>, image?: Image): Image;
|
|
32
32
|
function createEmpty(image?: Image): Image;
|
|
33
33
|
const Params: {
|
|
34
|
-
interpolation: PD.Select<"
|
|
34
|
+
interpolation: PD.Select<"nearest" | "bspline" | "catmulrom" | "mitchell">;
|
|
35
35
|
alpha: PD.Numeric;
|
|
36
|
-
quality: PD.Select<"
|
|
36
|
+
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
37
37
|
};
|
|
38
38
|
type Params = typeof Params;
|
|
39
39
|
const Utils: GeometryUtils<Image, Params>;
|
|
@@ -40,7 +40,7 @@ export declare namespace Lines {
|
|
|
40
40
|
sizeFactor: PD.Numeric;
|
|
41
41
|
lineSizeAttenuation: PD.BooleanParam;
|
|
42
42
|
alpha: PD.Numeric;
|
|
43
|
-
quality: PD.Select<"
|
|
43
|
+
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
44
44
|
};
|
|
45
45
|
type Params = typeof Params;
|
|
46
46
|
const Utils: GeometryUtils<Lines, Params>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
6
6
|
*/
|
|
7
7
|
import { Vec3 } from '../../../../mol-math/linear-algebra';
|
|
8
|
-
import { ChunkedArray } from '../../../../mol-data/util';
|
|
8
|
+
import { cantorPairing, ChunkedArray } from '../../../../mol-data/util';
|
|
9
9
|
var normalVector = Vec3();
|
|
10
10
|
var surfacePoint = Vec3();
|
|
11
11
|
var controlPoint = Vec3();
|
|
@@ -30,24 +30,26 @@ var v3dot = Vec3.dot;
|
|
|
30
30
|
var v3unitX = Vec3.unitX;
|
|
31
31
|
var caAdd3 = ChunkedArray.add3;
|
|
32
32
|
var CosSinCache = new Map();
|
|
33
|
-
function getCosSin(radialSegments) {
|
|
34
|
-
|
|
33
|
+
function getCosSin(radialSegments, shift) {
|
|
34
|
+
var offset = shift ? 1 : 0;
|
|
35
|
+
var hash = cantorPairing(radialSegments, offset);
|
|
36
|
+
if (!CosSinCache.has(hash)) {
|
|
35
37
|
var cos = [];
|
|
36
38
|
var sin = [];
|
|
37
39
|
for (var j = 0; j < radialSegments; ++j) {
|
|
38
|
-
var t =
|
|
40
|
+
var t = (j * 2 + offset) / radialSegments * Math.PI;
|
|
39
41
|
cos[j] = Math.cos(t);
|
|
40
42
|
sin[j] = Math.sin(t);
|
|
41
43
|
}
|
|
42
|
-
CosSinCache.set(
|
|
44
|
+
CosSinCache.set(hash, { cos: cos, sin: sin });
|
|
43
45
|
}
|
|
44
|
-
return CosSinCache.get(
|
|
46
|
+
return CosSinCache.get(hash);
|
|
45
47
|
}
|
|
46
48
|
export function addTube(state, controlPoints, normalVectors, binormalVectors, linearSegments, radialSegments, widthValues, heightValues, startCap, endCap, crossSection) {
|
|
47
49
|
var currentGroup = state.currentGroup, vertices = state.vertices, normals = state.normals, indices = state.indices, groups = state.groups;
|
|
48
50
|
var vertexCount = vertices.elementCount;
|
|
49
|
-
var _a = getCosSin(radialSegments), cos = _a.cos, sin = _a.sin;
|
|
50
|
-
var q1 = radialSegments / 4;
|
|
51
|
+
var _a = getCosSin(radialSegments, crossSection === 'rounded'), cos = _a.cos, sin = _a.sin;
|
|
52
|
+
var q1 = Math.round(radialSegments / 4);
|
|
51
53
|
var q3 = q1 * 3;
|
|
52
54
|
for (var i = 0; i <= linearSegments; ++i) {
|
|
53
55
|
var i3 = i * 3;
|
|
@@ -64,7 +66,15 @@ export function addTube(state, controlPoints, normalVectors, binormalVectors, li
|
|
|
64
66
|
? (j < q1 || j >= q3) ? height - width : -height + width
|
|
65
67
|
: (j >= q1 && j < q3) ? -height + width : height - width;
|
|
66
68
|
v3scaleAndAdd(surfacePoint, surfacePoint, u, h);
|
|
67
|
-
|
|
69
|
+
if (j === q1 || j === q1 - 1) {
|
|
70
|
+
add2AndScale2(normalVector, u, v, 0, 1);
|
|
71
|
+
}
|
|
72
|
+
else if (j === q3 || j === q3 - 1) {
|
|
73
|
+
add2AndScale2(normalVector, u, v, 0, -1);
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
add2AndScale2(normalVector, u, v, cos[j], sin[j]);
|
|
77
|
+
}
|
|
68
78
|
}
|
|
69
79
|
else {
|
|
70
80
|
add3AndScale2(surfacePoint, u, v, controlPoint, height * cos[j], width * sin[j]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tube.js","sourceRoot":"","sources":["../../../../../src/mol-geo/geometry/mesh/builder/tube.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"tube.js","sourceRoot":"","sources":["../../../../../src/mol-geo/geometry/mesh/builder/tube.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAGxE,IAAM,YAAY,GAAG,IAAI,EAAE,CAAC;AAC5B,IAAM,YAAY,GAAG,IAAI,EAAE,CAAC;AAC5B,IAAM,YAAY,GAAG,IAAI,EAAE,CAAC;AAC5B,IAAM,CAAC,GAAG,IAAI,EAAE,CAAC;AACjB,IAAM,CAAC,GAAG,IAAI,EAAE,CAAC;AAEjB,SAAS,aAAa,CAAC,GAAS,EAAE,CAAO,EAAE,CAAO,EAAE,EAAU,EAAE,EAAU;IACtE,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IACnC,GAAG,CAAC,CAAC,CAAC,GAAG,CAA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C,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;aACxF;iBAAM;gBACH,aAAa,CAAC,YAAY,EAAE,CAAC,EAAE,CAAC,EAAE,YAAY,EAAE,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;aACpF;YAED,MAAM,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;YACpE,MAAM,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;YAEnE,MAAM,CACF,OAAO,EACP,WAAW,GAAG,CAAC,EACf,WAAW,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,cAAc,EACtC,YAAY,CACf,CAAC;SACL;KACJ;IAED,IAAM,gBAAgB,GAAG,CAAC,cAAc,GAAG,CAAC,CAAC,GAAG,cAAc,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,cAAc,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACzI,YAAY,CAAC,SAAS,CAAC,MAAM,EAAE,gBAAgB,EAAE,YAAY,CAAC,CAAC;AACnE,CAAC"}
|
|
@@ -63,7 +63,7 @@ export declare namespace Mesh {
|
|
|
63
63
|
ignoreLight: PD.BooleanParam;
|
|
64
64
|
xrayShaded: PD.BooleanParam;
|
|
65
65
|
alpha: PD.Numeric;
|
|
66
|
-
quality: PD.Select<"
|
|
66
|
+
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
67
67
|
};
|
|
68
68
|
type Params = typeof Params;
|
|
69
69
|
const Utils: GeometryUtils<Mesh, Params>;
|
|
@@ -34,13 +34,13 @@ export declare namespace Points {
|
|
|
34
34
|
fuzzy: string;
|
|
35
35
|
};
|
|
36
36
|
type StyleTypes = keyof typeof StyleTypes;
|
|
37
|
-
const StyleTypeNames: ("
|
|
37
|
+
const StyleTypeNames: ("circle" | "square" | "fuzzy")[];
|
|
38
38
|
const Params: {
|
|
39
39
|
sizeFactor: PD.Numeric;
|
|
40
40
|
pointSizeAttenuation: PD.BooleanParam;
|
|
41
|
-
pointStyle: PD.Select<"
|
|
41
|
+
pointStyle: PD.Select<"circle" | "square" | "fuzzy">;
|
|
42
42
|
alpha: PD.Numeric;
|
|
43
|
-
quality: PD.Select<"
|
|
43
|
+
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
44
44
|
};
|
|
45
45
|
type Params = typeof Params;
|
|
46
46
|
const Utils: GeometryUtils<Points, Params>;
|
|
@@ -35,7 +35,7 @@ export declare namespace Spheres {
|
|
|
35
35
|
ignoreLight: PD.BooleanParam;
|
|
36
36
|
xrayShaded: PD.BooleanParam;
|
|
37
37
|
alpha: PD.Numeric;
|
|
38
|
-
quality: PD.Select<"
|
|
38
|
+
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
39
39
|
};
|
|
40
40
|
type Params = typeof Params;
|
|
41
41
|
const Utils: GeometryUtils<Spheres, Params>;
|
|
@@ -59,7 +59,7 @@ export declare namespace Text {
|
|
|
59
59
|
fontVariant: PD.Select<import("./font-atlas").FontVariant>;
|
|
60
60
|
fontWeight: PD.Select<import("./font-atlas").FontWeight>;
|
|
61
61
|
alpha: PD.Numeric;
|
|
62
|
-
quality: PD.Select<"
|
|
62
|
+
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
63
63
|
};
|
|
64
64
|
type Params = typeof Params;
|
|
65
65
|
const Utils: GeometryUtils<Text, Params>;
|
|
@@ -46,7 +46,7 @@ export declare namespace TextureMesh {
|
|
|
46
46
|
ignoreLight: PD.BooleanParam;
|
|
47
47
|
xrayShaded: PD.BooleanParam;
|
|
48
48
|
alpha: PD.Numeric;
|
|
49
|
-
quality: PD.Select<"
|
|
49
|
+
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
50
50
|
};
|
|
51
51
|
type Params = typeof Params;
|
|
52
52
|
const Utils: GeometryUtils<TextureMesh, Params>;
|
package/lib/mol-gl/renderer.d.ts
CHANGED
|
@@ -59,13 +59,13 @@ export declare const RendererParams: {
|
|
|
59
59
|
selectStrength: PD.Numeric;
|
|
60
60
|
markerPriority: PD.Select<number>;
|
|
61
61
|
xrayEdgeFalloff: PD.Numeric;
|
|
62
|
-
style: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "metallic"> | PD.NamedParams<PD.Normalize<{
|
|
62
|
+
style: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "flat"> | PD.NamedParams<PD.Normalize<unknown>, "metallic"> | PD.NamedParams<PD.Normalize<{
|
|
63
63
|
lightIntensity: number;
|
|
64
64
|
ambientIntensity: number;
|
|
65
65
|
metalness: number;
|
|
66
66
|
roughness: number;
|
|
67
67
|
reflectivity: number;
|
|
68
|
-
}>, "custom"> | PD.NamedParams<PD.Normalize<unknown>, "matte"> | PD.NamedParams<PD.Normalize<unknown>, "
|
|
68
|
+
}>, "custom"> | PD.NamedParams<PD.Normalize<unknown>, "matte"> | PD.NamedParams<PD.Normalize<unknown>, "glossy"> | PD.NamedParams<PD.Normalize<unknown>, "plastic">>;
|
|
69
69
|
clip: PD.Group<PD.Normalize<{
|
|
70
70
|
variant: Clipping.Variant;
|
|
71
71
|
objects: PD.Normalize<{
|
|
@@ -25,6 +25,6 @@ export interface TypedArrayBufferContext {
|
|
|
25
25
|
}
|
|
26
26
|
export declare function getElementByteSize(type: TypedArrayValueType): 1 | 2 | 4;
|
|
27
27
|
export declare function makeTypedArray(type: TypedArrayValueType, buffer: ArrayBuffer, byteOffset?: number, length?: number): TypedArrayValueArray;
|
|
28
|
-
export declare function createTypedArray(type: TypedArrayValueType, size: number):
|
|
28
|
+
export declare function createTypedArray(type: TypedArrayValueType, size: number): Int8Array | Int16Array | Uint16Array | Float32Array;
|
|
29
29
|
export declare function createTypedArrayBufferContext(size: number, type: TypedArrayValueType): TypedArrayBufferContext;
|
|
30
30
|
export declare function readTypedArray(ctx: TypedArrayBufferContext, file: FileHandle, position: number, byteCount: number, valueByteOffset: number, littleEndian?: boolean): Promise<TypedArrayValueArray>;
|
|
@@ -93,7 +93,7 @@ export declare const CCD_Schema: {
|
|
|
93
93
|
* linking monomers, monomers with some type of N-terminal (or 5')
|
|
94
94
|
* cap and monomers with some type of C-terminal (or 3') cap.
|
|
95
95
|
*/
|
|
96
|
-
type: Schema.Aliased<"D-peptide linking" | "L-peptide linking" | "D-peptide NH3 amino terminus" | "L-peptide NH3 amino terminus" | "D-peptide COOH carboxy terminus" | "L-peptide COOH carboxy terminus" | "DNA linking" | "RNA linking" | "L-RNA linking" | "L-DNA linking" | "DNA OH 5 prime terminus" | "RNA OH 5 prime terminus" | "DNA OH 3 prime terminus" | "RNA OH 3 prime terminus" | "D-saccharide, beta linking" | "D-saccharide, alpha linking" | "L-saccharide, beta linking" | "L-saccharide, alpha linking" | "L-saccharide" | "D-saccharide" | "saccharide" | "non-polymer" | "peptide linking" | "peptide-like" | "L-gamma-peptide, C-delta linking" | "D-gamma-peptide, C-delta linking" | "L-beta-peptide, C-gamma linking" | "D-beta-peptide, C-gamma linking"
|
|
96
|
+
type: Schema.Aliased<"other" | "D-peptide linking" | "L-peptide linking" | "D-peptide NH3 amino terminus" | "L-peptide NH3 amino terminus" | "D-peptide COOH carboxy terminus" | "L-peptide COOH carboxy terminus" | "DNA linking" | "RNA linking" | "L-RNA linking" | "L-DNA linking" | "DNA OH 5 prime terminus" | "RNA OH 5 prime terminus" | "DNA OH 3 prime terminus" | "RNA OH 3 prime terminus" | "D-saccharide, beta linking" | "D-saccharide, alpha linking" | "L-saccharide, beta linking" | "L-saccharide, alpha linking" | "L-saccharide" | "D-saccharide" | "saccharide" | "non-polymer" | "peptide linking" | "peptide-like" | "L-gamma-peptide, C-delta linking" | "D-gamma-peptide, C-delta linking" | "L-beta-peptide, C-gamma linking" | "D-beta-peptide, C-gamma linking">;
|
|
97
97
|
/**
|
|
98
98
|
* Synonym list for the component.
|
|
99
99
|
*/
|
|
@@ -318,7 +318,7 @@ export declare const CCD_Schema: {
|
|
|
318
318
|
/**
|
|
319
319
|
* Stereochemical configuration across a double bond.
|
|
320
320
|
*/
|
|
321
|
-
pdbx_stereo_config: Schema.Aliased<"
|
|
321
|
+
pdbx_stereo_config: Schema.Aliased<"N" | "E" | "Z">;
|
|
322
322
|
/**
|
|
323
323
|
* A flag indicating an aromatic bond.
|
|
324
324
|
*/
|
|
@@ -10,11 +10,11 @@ export declare const DensityServer_Header_Schema: {
|
|
|
10
10
|
server_version: Schema.Str;
|
|
11
11
|
datetime_utc: Schema.Str;
|
|
12
12
|
guid: Schema.Str;
|
|
13
|
-
is_empty: Schema.Aliased<"y" | "
|
|
14
|
-
has_error: Schema.Aliased<"y" | "
|
|
13
|
+
is_empty: Schema.Aliased<"y" | "yes" | "no" | "n">;
|
|
14
|
+
has_error: Schema.Aliased<"y" | "yes" | "no" | "n">;
|
|
15
15
|
error: Schema.Str;
|
|
16
16
|
query_source_id: Schema.Str;
|
|
17
|
-
query_type: Schema.Aliased<"
|
|
17
|
+
query_type: Schema.Aliased<"cell" | "box">;
|
|
18
18
|
query_box_type: Schema.Aliased<"cartesian" | "fractional">;
|
|
19
19
|
query_box_a: Schema.Tensor;
|
|
20
20
|
query_box_b: Schema.Tensor;
|