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
|
@@ -33,24 +33,26 @@ var v3dot = linear_algebra_1.Vec3.dot;
|
|
|
33
33
|
var v3unitX = linear_algebra_1.Vec3.unitX;
|
|
34
34
|
var caAdd3 = util_1.ChunkedArray.add3;
|
|
35
35
|
var CosSinCache = new Map();
|
|
36
|
-
function getCosSin(radialSegments) {
|
|
37
|
-
|
|
36
|
+
function getCosSin(radialSegments, shift) {
|
|
37
|
+
var offset = shift ? 1 : 0;
|
|
38
|
+
var hash = (0, util_1.cantorPairing)(radialSegments, offset);
|
|
39
|
+
if (!CosSinCache.has(hash)) {
|
|
38
40
|
var cos = [];
|
|
39
41
|
var sin = [];
|
|
40
42
|
for (var j = 0; j < radialSegments; ++j) {
|
|
41
|
-
var t =
|
|
43
|
+
var t = (j * 2 + offset) / radialSegments * Math.PI;
|
|
42
44
|
cos[j] = Math.cos(t);
|
|
43
45
|
sin[j] = Math.sin(t);
|
|
44
46
|
}
|
|
45
|
-
CosSinCache.set(
|
|
47
|
+
CosSinCache.set(hash, { cos: cos, sin: sin });
|
|
46
48
|
}
|
|
47
|
-
return CosSinCache.get(
|
|
49
|
+
return CosSinCache.get(hash);
|
|
48
50
|
}
|
|
49
51
|
function addTube(state, controlPoints, normalVectors, binormalVectors, linearSegments, radialSegments, widthValues, heightValues, startCap, endCap, crossSection) {
|
|
50
52
|
var currentGroup = state.currentGroup, vertices = state.vertices, normals = state.normals, indices = state.indices, groups = state.groups;
|
|
51
53
|
var vertexCount = vertices.elementCount;
|
|
52
|
-
var _a = getCosSin(radialSegments), cos = _a.cos, sin = _a.sin;
|
|
53
|
-
var q1 = radialSegments / 4;
|
|
54
|
+
var _a = getCosSin(radialSegments, crossSection === 'rounded'), cos = _a.cos, sin = _a.sin;
|
|
55
|
+
var q1 = Math.round(radialSegments / 4);
|
|
54
56
|
var q3 = q1 * 3;
|
|
55
57
|
for (var i = 0; i <= linearSegments; ++i) {
|
|
56
58
|
var i3 = i * 3;
|
|
@@ -67,7 +69,15 @@ function addTube(state, controlPoints, normalVectors, binormalVectors, linearSeg
|
|
|
67
69
|
? (j < q1 || j >= q3) ? height - width : -height + width
|
|
68
70
|
: (j >= q1 && j < q3) ? -height + width : height - width;
|
|
69
71
|
v3scaleAndAdd(surfacePoint, surfacePoint, u, h);
|
|
70
|
-
|
|
72
|
+
if (j === q1 || j === q1 - 1) {
|
|
73
|
+
add2AndScale2(normalVector, u, v, 0, 1);
|
|
74
|
+
}
|
|
75
|
+
else if (j === q3 || j === q3 - 1) {
|
|
76
|
+
add2AndScale2(normalVector, u, v, 0, -1);
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
add2AndScale2(normalVector, u, v, cos[j], sin[j]);
|
|
80
|
+
}
|
|
71
81
|
}
|
|
72
82
|
else {
|
|
73
83
|
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,sEAA2D;AAC3D,
|
|
1
|
+
{"version":3,"file":"tube.js","sourceRoot":"","sources":["../../../../../../src/mol-geo/geometry/mesh/builder/tube.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,sEAA2D;AAC3D,kDAAwE;AAGxE,IAAM,YAAY,GAAG,IAAA,qBAAI,GAAE,CAAC;AAC5B,IAAM,YAAY,GAAG,IAAA,qBAAI,GAAE,CAAC;AAC5B,IAAM,YAAY,GAAG,IAAA,qBAAI,GAAE,CAAC;AAC5B,IAAM,CAAC,GAAG,IAAA,qBAAI,GAAE,CAAC;AACjB,IAAM,CAAC,GAAG,IAAA,qBAAI,GAAE,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,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IACnC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAA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M,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,mBAAY,CAAC,SAAS,CAAC,MAAM,EAAE,gBAAgB,EAAE,YAAY,CAAC,CAAC;AACnE,CAAC;AA5JD,0BA4JC"}
|
|
@@ -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>;
|
|
@@ -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<{
|
|
@@ -17,7 +17,7 @@ import { ComputeRenderable } from '../renderable';
|
|
|
17
17
|
export declare function getGLContext(canvas: HTMLCanvasElement, attribs?: WebGLContextAttributes & {
|
|
18
18
|
preferWebGl1?: boolean;
|
|
19
19
|
}): GLRenderingContext | null;
|
|
20
|
-
export declare function getErrorDescription(gl: GLRenderingContext, error: number): "
|
|
20
|
+
export declare function getErrorDescription(gl: GLRenderingContext, error: number): "no error" | "invalid enum" | "invalid value" | "invalid operation" | "invalid framebuffer operation" | "out of memory" | "context lost" | "unknown error";
|
|
21
21
|
export declare function checkError(gl: GLRenderingContext): void;
|
|
22
22
|
export declare function readPixels(gl: GLRenderingContext, x: number, y: number, width: number, height: number, buffer: Uint8Array | Float32Array | Int32Array): void;
|
|
23
23
|
declare function createStats(): {
|
|
@@ -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;
|
|
@@ -23,16 +23,16 @@ export declare const mmCIF_chemCompBond_schema: {
|
|
|
23
23
|
comp_id: Column.Schema.Str;
|
|
24
24
|
value_order: Column.Schema.Aliased<"sing" | "doub" | "trip" | "quad" | "arom" | "poly" | "delo" | "pi">;
|
|
25
25
|
pdbx_ordinal: Column.Schema.Int;
|
|
26
|
-
pdbx_stereo_config: Column.Schema.Aliased<"
|
|
26
|
+
pdbx_stereo_config: Column.Schema.Aliased<"N" | "E" | "Z">;
|
|
27
27
|
pdbx_aromatic_flag: Column.Schema.Aliased<"N" | "Y">;
|
|
28
28
|
};
|
|
29
29
|
/** Has `type` extended with 'Ion' and 'Lipid' */
|
|
30
30
|
export declare const mmCIF_chemComp_schema: {
|
|
31
|
-
type: Column.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" | "
|
|
31
|
+
type: Column.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" | "Ion" | "Lipid">;
|
|
32
32
|
formula: Column.Schema.Str;
|
|
33
33
|
formula_weight: Column.Schema.Float;
|
|
34
34
|
id: Column.Schema.Str;
|
|
35
|
-
mon_nstd_flag: Column.Schema.Aliased<"
|
|
35
|
+
mon_nstd_flag: Column.Schema.Aliased<"y" | "yes" | "no" | "n">;
|
|
36
36
|
name: Column.Schema.Str;
|
|
37
37
|
pdbx_synonyms: Column.Schema.List<string>;
|
|
38
38
|
};
|
|
@@ -478,7 +478,7 @@ export declare const mmCIF_Schema: {
|
|
|
478
478
|
* _chem_comp.mon_nstd_parent, _chem_comp.mon_nstd_class and
|
|
479
479
|
* _chem_comp.mon_nstd_details data items.
|
|
480
480
|
*/
|
|
481
|
-
mon_nstd_flag: Schema.Aliased<"
|
|
481
|
+
mon_nstd_flag: Schema.Aliased<"y" | "yes" | "no" | "n">;
|
|
482
482
|
/**
|
|
483
483
|
* The full name of the component.
|
|
484
484
|
*/
|
|
@@ -489,7 +489,7 @@ export declare const mmCIF_Schema: {
|
|
|
489
489
|
* linking monomers, monomers with some type of N-terminal (or 5')
|
|
490
490
|
* cap and monomers with some type of C-terminal (or 3') cap.
|
|
491
491
|
*/
|
|
492
|
-
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"
|
|
492
|
+
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">;
|
|
493
493
|
/**
|
|
494
494
|
* Synonym list for the component.
|
|
495
495
|
*/
|
|
@@ -534,7 +534,7 @@ export declare const mmCIF_Schema: {
|
|
|
534
534
|
/**
|
|
535
535
|
* Stereochemical configuration across a double bond.
|
|
536
536
|
*/
|
|
537
|
-
pdbx_stereo_config: Schema.Aliased<"
|
|
537
|
+
pdbx_stereo_config: Schema.Aliased<"N" | "E" | "Z">;
|
|
538
538
|
/**
|
|
539
539
|
* A flag indicating an aromatic bond.
|
|
540
540
|
*/
|
|
@@ -786,12 +786,12 @@ export declare const mmCIF_Schema: {
|
|
|
786
786
|
* one monomer-to-monomer link different from that implied by
|
|
787
787
|
* _entity_poly.type.
|
|
788
788
|
*/
|
|
789
|
-
nstd_linkage: Schema.Aliased<"
|
|
789
|
+
nstd_linkage: Schema.Aliased<"y" | "yes" | "no" | "n">;
|
|
790
790
|
/**
|
|
791
791
|
* A flag to indicate whether the polymer contains at least
|
|
792
792
|
* one monomer that is not considered standard.
|
|
793
793
|
*/
|
|
794
|
-
nstd_monomer: Schema.Aliased<"
|
|
794
|
+
nstd_monomer: Schema.Aliased<"y" | "yes" | "no" | "n">;
|
|
795
795
|
/**
|
|
796
796
|
* The type of the polymer.
|
|
797
797
|
*/
|
|
@@ -885,7 +885,7 @@ export declare const mmCIF_Schema: {
|
|
|
885
885
|
* A flag to indicate whether this monomer in the polymer is
|
|
886
886
|
* heterogeneous in sequence.
|
|
887
887
|
*/
|
|
888
|
-
hetero: Schema.Aliased<"
|
|
888
|
+
hetero: Schema.Aliased<"y" | "yes" | "no" | "n">;
|
|
889
889
|
/**
|
|
890
890
|
* This data item is a pointer to _chem_comp.id in the CHEM_COMP
|
|
891
891
|
* category.
|
|
@@ -1886,7 +1886,7 @@ export declare const mmCIF_Schema: {
|
|
|
1886
1886
|
/**
|
|
1887
1887
|
* The identifying content type of the related entry.
|
|
1888
1888
|
*/
|
|
1889
|
-
content_type: Schema.Aliased<"other" | "minimized average structure" | "representative structure" | "ensemble" | "derivative structure" | "native structure" | "associated EM volume" | "other EM volume" | "associated NMR restraints" | "associated structure factors" | "associated SAS data" | "protein target sequence and/or protocol data" | "
|
|
1889
|
+
content_type: Schema.Aliased<"split" | "other" | "minimized average structure" | "representative structure" | "ensemble" | "derivative structure" | "native structure" | "associated EM volume" | "other EM volume" | "associated NMR restraints" | "associated structure factors" | "associated SAS data" | "protein target sequence and/or protocol data" | "re-refinement" | "complete structure" | "unspecified">;
|
|
1890
1890
|
};
|
|
1891
1891
|
/**
|
|
1892
1892
|
* The PDBX_ENTITY_NONPOLY category provides a mapping between
|
|
@@ -2660,7 +2660,7 @@ export declare const mmCIF_Schema: {
|
|
|
2660
2660
|
* A flag to indicate whether this monomer in the entity is
|
|
2661
2661
|
* heterogeneous in sequence.
|
|
2662
2662
|
*/
|
|
2663
|
-
hetero: Schema.Aliased<"
|
|
2663
|
+
hetero: Schema.Aliased<"y" | "yes" | "no" | "n">;
|
|
2664
2664
|
/**
|
|
2665
2665
|
* This data item is a pointer to _chem_comp.id in the CHEM_COMP
|
|
2666
2666
|
* category.
|
|
@@ -2779,7 +2779,7 @@ export declare const mmCIF_Schema: {
|
|
|
2779
2779
|
* A flag to indicate whether this monomer in the entity is
|
|
2780
2780
|
* heterogeneous in sequence.
|
|
2781
2781
|
*/
|
|
2782
|
-
hetero: Schema.Aliased<"
|
|
2782
|
+
hetero: Schema.Aliased<"y" | "yes" | "no" | "n">;
|
|
2783
2783
|
/**
|
|
2784
2784
|
* Pointer to _atom_site.label_asym_id.
|
|
2785
2785
|
*/
|
|
@@ -3083,7 +3083,7 @@ export declare const mmCIF_Schema: {
|
|
|
3083
3083
|
/**
|
|
3084
3084
|
* The primitive object used to model this segment.
|
|
3085
3085
|
*/
|
|
3086
|
-
model_object_primitive: Schema.Aliased<"other" | "
|
|
3086
|
+
model_object_primitive: Schema.Aliased<"other" | "sphere" | "atomistic" | "gaussian">;
|
|
3087
3087
|
/**
|
|
3088
3088
|
* The identifier for the starting structural model.
|
|
3089
3089
|
* This data item is a pointer to _ihm_starting_model_details.starting_model_id
|
|
@@ -3343,11 +3343,11 @@ export declare const mmCIF_Schema: {
|
|
|
3343
3343
|
/**
|
|
3344
3344
|
* The type of post modeling analysis being carried out.
|
|
3345
3345
|
*/
|
|
3346
|
-
type: Schema.Aliased<"
|
|
3346
|
+
type: Schema.Aliased<"none" | "filter" | "other" | "cluster" | "rescore" | "validation">;
|
|
3347
3347
|
/**
|
|
3348
3348
|
* The parameter/feature used in the post modeling analysis.
|
|
3349
3349
|
*/
|
|
3350
|
-
feature: Schema.Aliased<"
|
|
3350
|
+
feature: Schema.Aliased<"none" | "other" | "energy/score" | "RMSD" | "dRMSD">;
|
|
3351
3351
|
/**
|
|
3352
3352
|
* The number of models at the beginning of the post processing step.
|
|
3353
3353
|
*/
|
|
@@ -3566,7 +3566,7 @@ export declare const mmCIF_Schema: {
|
|
|
3566
3566
|
/**
|
|
3567
3567
|
* The application / utilization of the dataset group in modeling.
|
|
3568
3568
|
*/
|
|
3569
|
-
application: Schema.Aliased<"
|
|
3569
|
+
application: Schema.Aliased<"filter" | "other" | "validation" | "restraint" | "representation" | "sampling">;
|
|
3570
3570
|
/**
|
|
3571
3571
|
* Additional details regarding the dataset group.
|
|
3572
3572
|
*/
|
|
@@ -4595,7 +4595,7 @@ export declare const mmCIF_Schema: {
|
|
|
4595
4595
|
/**
|
|
4596
4596
|
* The type of entity.
|
|
4597
4597
|
*/
|
|
4598
|
-
entity_type: Schema.Aliased<"
|
|
4598
|
+
entity_type: Schema.Aliased<"other" | "non-polymer" | "polymer" | "water">;
|
|
4599
4599
|
};
|
|
4600
4600
|
/**
|
|
4601
4601
|
* Data items in the IHM_POLY_RESIDUE_FEATURE category provides the defintions
|
|
@@ -24,7 +24,7 @@ export declare const PlyTypeByteLength: {
|
|
|
24
24
|
};
|
|
25
25
|
export declare type PlyType = keyof typeof PlyTypeByteLength;
|
|
26
26
|
export declare const PlyTypes: Set<string>;
|
|
27
|
-
export declare function PlyType(str: string): "
|
|
27
|
+
export declare function PlyType(str: string): "double" | "float" | "char" | "int" | "uint8" | "int8" | "uint16" | "int16" | "uint32" | "int32" | "float32" | "ushort" | "uchar" | "short" | "uint" | "float64";
|
|
28
28
|
export interface PlyFile {
|
|
29
29
|
readonly comments: ReadonlyArray<string>;
|
|
30
30
|
readonly elementNames: ReadonlyArray<string>;
|
|
@@ -54,56 +54,56 @@ declare namespace Loci {
|
|
|
54
54
|
export function getPrincipalAxes(loci: Loci): PrincipalAxes | undefined;
|
|
55
55
|
const Granularity: {
|
|
56
56
|
element: (loci: Loci) => Loci;
|
|
57
|
-
residue: (loci: Loci) => StructureElement.Loci | Structure.Loci | Bond.Loci | {
|
|
57
|
+
residue: (loci: Loci) => StructureElement.Loci | Structure.Loci | Bond.Loci | Volume.Loci | Volume.Isosurface.Loci | Volume.Cell.Loci | Shape.Loci | ShapeGroup.Loci | {
|
|
58
58
|
kind: "every-loci";
|
|
59
59
|
} | {
|
|
60
60
|
kind: "empty-loci";
|
|
61
|
-
} | DataLoci<unknown, unknown
|
|
62
|
-
chain: (loci: Loci) => StructureElement.Loci | Structure.Loci | Bond.Loci | {
|
|
61
|
+
} | DataLoci<unknown, unknown>;
|
|
62
|
+
chain: (loci: Loci) => StructureElement.Loci | Structure.Loci | Bond.Loci | Volume.Loci | Volume.Isosurface.Loci | Volume.Cell.Loci | Shape.Loci | ShapeGroup.Loci | {
|
|
63
63
|
kind: "every-loci";
|
|
64
64
|
} | {
|
|
65
65
|
kind: "empty-loci";
|
|
66
|
-
} | DataLoci<unknown, unknown
|
|
67
|
-
entity: (loci: Loci) => StructureElement.Loci | Structure.Loci | Bond.Loci | {
|
|
66
|
+
} | DataLoci<unknown, unknown>;
|
|
67
|
+
entity: (loci: Loci) => StructureElement.Loci | Structure.Loci | Bond.Loci | Volume.Loci | Volume.Isosurface.Loci | Volume.Cell.Loci | Shape.Loci | ShapeGroup.Loci | {
|
|
68
68
|
kind: "every-loci";
|
|
69
69
|
} | {
|
|
70
70
|
kind: "empty-loci";
|
|
71
|
-
} | DataLoci<unknown, unknown
|
|
72
|
-
model: (loci: Loci) => StructureElement.Loci | Structure.Loci | Bond.Loci | {
|
|
71
|
+
} | DataLoci<unknown, unknown>;
|
|
72
|
+
model: (loci: Loci) => StructureElement.Loci | Structure.Loci | Bond.Loci | Volume.Loci | Volume.Isosurface.Loci | Volume.Cell.Loci | Shape.Loci | ShapeGroup.Loci | {
|
|
73
73
|
kind: "every-loci";
|
|
74
74
|
} | {
|
|
75
75
|
kind: "empty-loci";
|
|
76
|
-
} | DataLoci<unknown, unknown
|
|
77
|
-
operator: (loci: Loci) => StructureElement.Loci | Structure.Loci | Bond.Loci | {
|
|
76
|
+
} | DataLoci<unknown, unknown>;
|
|
77
|
+
operator: (loci: Loci) => StructureElement.Loci | Structure.Loci | Bond.Loci | Volume.Loci | Volume.Isosurface.Loci | Volume.Cell.Loci | Shape.Loci | ShapeGroup.Loci | {
|
|
78
78
|
kind: "every-loci";
|
|
79
79
|
} | {
|
|
80
80
|
kind: "empty-loci";
|
|
81
|
-
} | DataLoci<unknown, unknown
|
|
82
|
-
structure: (loci: Loci) => StructureElement.Loci | Structure.Loci | Bond.Loci | {
|
|
81
|
+
} | DataLoci<unknown, unknown>;
|
|
82
|
+
structure: (loci: Loci) => StructureElement.Loci | Structure.Loci | Bond.Loci | Volume.Loci | Volume.Isosurface.Loci | Volume.Cell.Loci | Shape.Loci | {
|
|
83
83
|
kind: "every-loci";
|
|
84
84
|
} | {
|
|
85
85
|
kind: "empty-loci";
|
|
86
|
-
} | DataLoci<unknown, unknown
|
|
87
|
-
elementInstances: (loci: Loci) => StructureElement.Loci | Structure.Loci | Bond.Loci | {
|
|
86
|
+
} | DataLoci<unknown, unknown>;
|
|
87
|
+
elementInstances: (loci: Loci) => StructureElement.Loci | Structure.Loci | Bond.Loci | Volume.Loci | Volume.Isosurface.Loci | Volume.Cell.Loci | Shape.Loci | ShapeGroup.Loci | {
|
|
88
88
|
kind: "every-loci";
|
|
89
89
|
} | {
|
|
90
90
|
kind: "empty-loci";
|
|
91
|
-
} | DataLoci<unknown, unknown
|
|
92
|
-
residueInstances: (loci: Loci) => StructureElement.Loci | Structure.Loci | Bond.Loci | {
|
|
91
|
+
} | DataLoci<unknown, unknown>;
|
|
92
|
+
residueInstances: (loci: Loci) => StructureElement.Loci | Structure.Loci | Bond.Loci | Volume.Loci | Volume.Isosurface.Loci | Volume.Cell.Loci | Shape.Loci | ShapeGroup.Loci | {
|
|
93
93
|
kind: "every-loci";
|
|
94
94
|
} | {
|
|
95
95
|
kind: "empty-loci";
|
|
96
|
-
} | DataLoci<unknown, unknown
|
|
97
|
-
chainInstances: (loci: Loci) => StructureElement.Loci | Structure.Loci | Bond.Loci | {
|
|
96
|
+
} | DataLoci<unknown, unknown>;
|
|
97
|
+
chainInstances: (loci: Loci) => StructureElement.Loci | Structure.Loci | Bond.Loci | Volume.Loci | Volume.Isosurface.Loci | Volume.Cell.Loci | Shape.Loci | ShapeGroup.Loci | {
|
|
98
98
|
kind: "every-loci";
|
|
99
99
|
} | {
|
|
100
100
|
kind: "empty-loci";
|
|
101
|
-
} | DataLoci<unknown, unknown
|
|
101
|
+
} | DataLoci<unknown, unknown>;
|
|
102
102
|
};
|
|
103
103
|
export type Granularity = keyof typeof Granularity;
|
|
104
|
-
export const GranularityOptions: ["
|
|
104
|
+
export const GranularityOptions: ["element" | "operator" | "residue" | "entity" | "model" | "structure" | "chain" | "elementInstances" | "residueInstances" | "chainInstances", string][];
|
|
105
105
|
/** Exclude `Instances` granularity kinds */
|
|
106
|
-
export function simpleGranularity(granularity: Granularity): "
|
|
106
|
+
export function simpleGranularity(granularity: Granularity): "element" | "operator" | "residue" | "entity" | "model" | "structure" | "chain" | "elementInstances" | "residueInstances" | "chainInstances";
|
|
107
107
|
export function applyGranularity(loci: Loci, granularity: Granularity): Loci;
|
|
108
108
|
/**
|
|
109
109
|
* Converts structure related loci to StructureElement.Loci and applies
|
|
@@ -38,7 +38,7 @@ export declare namespace Shape {
|
|
|
38
38
|
function getTheme(shape: Shape): Theme;
|
|
39
39
|
function groupIterator(shape: Shape): LocationIterator;
|
|
40
40
|
function createTransform(transforms: Mat4[], transformData?: TransformData): TransformData;
|
|
41
|
-
function createRenderObject<G extends Geometry>(shape: Shape<G>, props: PD.Values<Geometry.Params<G>>): import("../../mol-gl/render-object").GraphicsRenderObject<"text" | "
|
|
41
|
+
function createRenderObject<G extends Geometry>(shape: Shape<G>, props: PD.Values<Geometry.Params<G>>): import("../../mol-gl/render-object").GraphicsRenderObject<"text" | "image" | "points" | "spheres" | "cylinders" | "lines" | "mesh" | "direct-volume" | "texture-mesh">;
|
|
42
42
|
interface Loci {
|
|
43
43
|
readonly kind: 'shape-loci';
|
|
44
44
|
readonly shape: Shape;
|
|
@@ -10,11 +10,60 @@ export declare function checkStructureMinMaxDistance(ctx: QueryContext, a: Struc
|
|
|
10
10
|
export declare function checkStructureMaxRadiusDistance(ctx: QueryContext, a: Structure, b: Structure, maxDist: number, elementRadius: QueryFn<number>): boolean | 0;
|
|
11
11
|
declare namespace MinMaxDist {
|
|
12
12
|
const enum Result {
|
|
13
|
-
BelowMin
|
|
14
|
-
WithinMax
|
|
15
|
-
Miss
|
|
13
|
+
BelowMin,
|
|
14
|
+
WithinMax,
|
|
15
|
+
Miss
|
|
16
|
+
}
|
|
17
|
+
const distVec = Vec3.zero();
|
|
18
|
+
function inUnit(ctx: QueryContext, unit: Unit, p: Vec3, eRadius: number, minDist: number, maxDist: number, elementRadius: QueryFn<number>) {
|
|
19
|
+
const { elements, conformation: { position } } = unit, dV = distVec;
|
|
20
|
+
ctx.element.unit = unit;
|
|
21
|
+
let withinRange = false;
|
|
22
|
+
for (let i = 0, _i = elements.length; i < _i; i++) {
|
|
23
|
+
const e = elements[i];
|
|
24
|
+
ctx.element.element = e;
|
|
25
|
+
const d = Math.max(0, Vec3.distance(p, position(e, dV)) - eRadius - elementRadius(ctx));
|
|
26
|
+
if (d < minDist)
|
|
27
|
+
return Result.BelowMin;
|
|
28
|
+
if (d < maxDist)
|
|
29
|
+
withinRange = true;
|
|
30
|
+
}
|
|
31
|
+
return withinRange ? Result.WithinMax : Result.Miss;
|
|
32
|
+
}
|
|
33
|
+
function toPoint(ctx: QueryContext, s: Structure, point: Vec3, radius: number, minDist: number, maxDist: number, elementRadius: QueryFn<number>) {
|
|
34
|
+
const { units } = s;
|
|
35
|
+
let withinRange = false;
|
|
36
|
+
for (let i = 0, _i = units.length; i < _i; i++) {
|
|
37
|
+
const iu = inUnit(ctx, units[i], point, radius, minDist, maxDist, elementRadius);
|
|
38
|
+
if (iu === Result.BelowMin)
|
|
39
|
+
return Result.BelowMin;
|
|
40
|
+
if (iu === Result.WithinMax)
|
|
41
|
+
withinRange = true;
|
|
42
|
+
}
|
|
43
|
+
return withinRange ? Result.WithinMax : Result.Miss;
|
|
44
|
+
}
|
|
45
|
+
const distPivot = Vec3.zero();
|
|
46
|
+
function check(ctx: QueryContext, a: Structure, b: Structure, minDist: number, maxDist: number, elementRadius: QueryFn<number>) {
|
|
47
|
+
if (a.elementCount === 0 || b.elementCount === 0)
|
|
48
|
+
return 0;
|
|
49
|
+
const { units } = a;
|
|
50
|
+
let withinRange = false;
|
|
51
|
+
ctx.element.structure = a;
|
|
52
|
+
for (let i = 0, _i = units.length; i < _i; i++) {
|
|
53
|
+
const unit = units[i];
|
|
54
|
+
const { elements, conformation: { position } } = unit;
|
|
55
|
+
ctx.element.unit = unit;
|
|
56
|
+
for (let i = 0, _i = elements.length; i < _i; i++) {
|
|
57
|
+
const e = elements[i];
|
|
58
|
+
ctx.element.element = e;
|
|
59
|
+
const tp = toPoint(ctx, b, position(e, distPivot), elementRadius(ctx), minDist, maxDist, elementRadius);
|
|
60
|
+
if (tp === Result.BelowMin)
|
|
61
|
+
return Result.BelowMin;
|
|
62
|
+
if (tp === Result.WithinMax)
|
|
63
|
+
withinRange = true;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return withinRange;
|
|
16
67
|
}
|
|
17
|
-
function toPoint(ctx: QueryContext, s: Structure, point: Vec3, radius: number, minDist: number, maxDist: number, elementRadius: QueryFn<number>): Result;
|
|
18
|
-
function check(ctx: QueryContext, a: Structure, b: Structure, minDist: number, maxDist: number, elementRadius: QueryFn<number>): boolean | 0 | Result.BelowMin;
|
|
19
68
|
}
|
|
20
69
|
export {};
|
|
@@ -41,7 +41,7 @@ declare const StructureProperties: {
|
|
|
41
41
|
microheterogeneityCompIds: StructureElement.Property<string[]>;
|
|
42
42
|
secondary_structure_type: StructureElement.Property<SecondaryStructureType>;
|
|
43
43
|
secondary_structure_key: StructureElement.Property<number>;
|
|
44
|
-
chem_comp_type: StructureElement.Property<"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" | "
|
|
44
|
+
chem_comp_type: StructureElement.Property<"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" | "Ion" | "Lipid">;
|
|
45
45
|
};
|
|
46
46
|
chain: {
|
|
47
47
|
key: StructureElement.Property<import("../model").ChainIndex>;
|
|
@@ -68,7 +68,7 @@ declare const StructureProperties: {
|
|
|
68
68
|
id: StructureElement.Property<number>;
|
|
69
69
|
chainGroupId: StructureElement.Property<number>;
|
|
70
70
|
multiChain: StructureElement.Property<boolean>;
|
|
71
|
-
object_primitive: StructureElement.Property<"
|
|
71
|
+
object_primitive: StructureElement.Property<"sphere" | "atomistic" | "gaussian">;
|
|
72
72
|
operator_name: StructureElement.Property<string>;
|
|
73
73
|
model_index: StructureElement.Property<number>;
|
|
74
74
|
model_label: StructureElement.Property<string>;
|
|
@@ -181,8 +181,8 @@ declare namespace Unit {
|
|
|
181
181
|
export function areOperatorsEqual(a: Unit, b: Unit): boolean;
|
|
182
182
|
export function areConformationsEqual(a: Unit, b: Unit): boolean;
|
|
183
183
|
export function isSameConformation(u: Unit, model: Model): boolean;
|
|
184
|
-
export function getModelConformationOfKind(kind: Unit.Kind, model: Model):
|
|
185
|
-
export function getConformation(u: Unit):
|
|
184
|
+
export function getModelConformationOfKind(kind: Unit.Kind, model: Model): import("../model/properties/atomic").AtomicConformation | CoarseSphereConformation | CoarseGaussianConformation;
|
|
185
|
+
export function getConformation(u: Unit): import("../model/properties/atomic").AtomicConformation | CoarseSphereConformation | CoarseGaussianConformation;
|
|
186
186
|
export function getModelHierarchyOfKind(kind: Unit.Kind, model: Model): import("../model/properties/atomic").AtomicHierarchy | CoarseElements;
|
|
187
187
|
export function getHierarchy(u: Unit): import("../model/properties/atomic").AtomicHierarchy | CoarseElements;
|
|
188
188
|
export {};
|