molstar 3.8.2 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/viewer/index.html +4 -1
- package/build/viewer/molstar.js +1 -1
- package/lib/apps/viewer/app.d.ts +1 -1
- package/lib/apps/viewer/app.js +1 -1
- package/lib/apps/viewer/index.html +4 -1
- package/lib/cli/cif2bcif/converter.js +1 -1
- package/lib/commonjs/apps/viewer/app.d.ts +1 -1
- package/lib/commonjs/apps/viewer/app.js +2 -1
- package/lib/commonjs/cli/cif2bcif/converter.js +1 -1
- package/lib/commonjs/examples/alpha-orbitals/index.d.ts +1 -1
- package/lib/commonjs/examples/alpha-orbitals/index.js +4 -1
- package/lib/commonjs/examples/basic-wrapper/custom-theme.js +1 -1
- package/lib/commonjs/examples/proteopedia-wrapper/coloring.js +3 -3
- package/lib/commonjs/extensions/alpha-orbitals/density.d.ts +1 -1
- package/lib/commonjs/extensions/alpha-orbitals/density.js +6 -2
- package/lib/commonjs/extensions/alpha-orbitals/orbitals.d.ts +1 -1
- package/lib/commonjs/extensions/alpha-orbitals/orbitals.js +6 -3
- package/lib/commonjs/extensions/anvil/algorithm.js +1 -1
- package/lib/commonjs/extensions/cellpack/color/generate.js +1 -1
- package/lib/commonjs/extensions/cellpack/color/provided.js +1 -1
- package/lib/commonjs/extensions/cellpack/state.js +1 -1
- package/lib/commonjs/extensions/dnatco/confal-pyramids/color.js +1 -1
- package/lib/commonjs/extensions/g3d/model.js +1 -1
- package/lib/commonjs/extensions/model-archive/quality-assessment/color/plddt.js +1 -1
- package/lib/commonjs/extensions/model-archive/quality-assessment/color/qmean.js +1 -1
- package/lib/commonjs/extensions/pdbe/structure-quality-report/color.js +1 -1
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/color.js +4 -4
- package/lib/commonjs/extensions/rcsb/validation-report/color/density-fit.js +1 -1
- package/lib/commonjs/extensions/rcsb/validation-report/color/geometry-quality.js +2 -2
- package/lib/commonjs/extensions/rcsb/validation-report/color/random-coil-index.js +1 -1
- package/lib/commonjs/extensions/rcsb/validation-report/representation.js +2 -2
- package/lib/commonjs/mol-canvas3d/canvas3d.js +4 -0
- package/lib/commonjs/mol-canvas3d/controls/trackball.js +7 -7
- package/lib/commonjs/mol-canvas3d/helper/camera-helper.js +14 -14
- package/lib/commonjs/mol-canvas3d/helper/interaction-events.js +5 -5
- package/lib/commonjs/mol-canvas3d/passes/draw.js +34 -5
- package/lib/commonjs/mol-canvas3d/passes/fxaa.js +5 -0
- package/lib/commonjs/mol-canvas3d/passes/marking.js +5 -0
- package/lib/commonjs/mol-canvas3d/passes/multi-sample.js +9 -0
- package/lib/commonjs/mol-canvas3d/passes/pick.d.ts +18 -5
- package/lib/commonjs/mol-canvas3d/passes/pick.js +125 -24
- package/lib/commonjs/mol-canvas3d/passes/postprocessing.js +5 -0
- package/lib/commonjs/mol-canvas3d/passes/smaa.js +4 -0
- package/lib/commonjs/mol-canvas3d/passes/wboit.js +4 -0
- package/lib/commonjs/mol-data/db/column.js +5 -5
- package/lib/commonjs/mol-data/db/table.js +2 -2
- package/lib/commonjs/mol-data/util/array.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.js +13 -0
- package/lib/commonjs/mol-gl/compute/grid3d.d.ts +2 -2
- package/lib/commonjs/mol-gl/compute/grid3d.js +30 -8
- package/lib/commonjs/mol-gl/compute/histogram-pyramid/reduction.d.ts +1 -1
- package/lib/commonjs/mol-gl/compute/histogram-pyramid/reduction.js +6 -1
- package/lib/commonjs/mol-gl/compute/histogram-pyramid/sum.d.ts +1 -1
- package/lib/commonjs/mol-gl/compute/histogram-pyramid/sum.js +6 -1
- package/lib/commonjs/mol-gl/compute/marching-cubes/active-voxels.d.ts +1 -1
- package/lib/commonjs/mol-gl/compute/marching-cubes/active-voxels.js +6 -1
- package/lib/commonjs/mol-gl/compute/marching-cubes/isosurface.d.ts +1 -1
- package/lib/commonjs/mol-gl/compute/marching-cubes/isosurface.js +10 -10
- package/lib/commonjs/mol-gl/renderer.js +77 -32
- package/lib/commonjs/mol-gl/scene.js +2 -0
- package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/cylinders.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/cylinders.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/image.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/image.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/lines.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/lines.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/mesh.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/mesh.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/points.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/points.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/spheres.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/spheres.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/text.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/text.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader-code.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader-code.js +41 -9
- package/lib/commonjs/mol-gl/webgl/compat.d.ts +34 -1
- package/lib/commonjs/mol-gl/webgl/compat.js +50 -2
- package/lib/commonjs/mol-gl/webgl/context.d.ts +2 -0
- package/lib/commonjs/mol-gl/webgl/context.js +3 -0
- package/lib/commonjs/mol-gl/webgl/extensions.d.ts +3 -2
- package/lib/commonjs/mol-gl/webgl/extensions.js +6 -1
- package/lib/commonjs/mol-gl/webgl/timer.d.ts +22 -0
- package/lib/commonjs/mol-gl/webgl/timer.js +169 -0
- package/lib/commonjs/mol-io/common/binary-cif/array-encoder.js +18 -18
- package/lib/commonjs/mol-io/common/binary-cif/decoder.js +16 -16
- package/lib/commonjs/mol-io/common/binary-cif/encoding.js +9 -9
- package/lib/commonjs/mol-io/reader/cif/binary/field.js +3 -3
- package/lib/commonjs/mol-io/reader/cif/data-model.js +14 -14
- package/lib/commonjs/mol-io/reader/cif/schema.js +1 -1
- package/lib/commonjs/mol-io/reader/cif/text/parser.js +23 -23
- package/lib/commonjs/mol-io/reader/common/text/column/fixed.js +1 -1
- package/lib/commonjs/mol-io/reader/common/text/column/token.js +1 -1
- package/lib/commonjs/mol-io/reader/common/text/number-parser.js +6 -6
- package/lib/commonjs/mol-io/reader/csv/parser.js +8 -8
- package/lib/commonjs/mol-io/writer/cif/encoder/binary.js +10 -10
- package/lib/commonjs/mol-io/writer/cif/encoder/text.js +7 -7
- package/lib/commonjs/mol-io/writer/cif/encoder.js +8 -8
- package/lib/commonjs/mol-io/writer/mol2/encoder.js +4 -4
- package/lib/commonjs/mol-math/geometry/gaussian-density/gpu.js +13 -2
- package/lib/commonjs/mol-model/sequence/alignment/sequence.js +3 -3
- package/lib/commonjs/mol-model/sequence/sequence.js +9 -9
- package/lib/commonjs/mol-model/structure/export/categories/atom_site_operator_mapping.js +3 -3
- package/lib/commonjs/mol-model/structure/export/categories/secondary-structure.js +2 -2
- package/lib/commonjs/mol-model/structure/export/categories/utils.js +1 -1
- package/lib/commonjs/mol-model/structure/model/model.js +2 -2
- package/lib/commonjs/mol-model/structure/model/properties/custom/indexed.js +6 -6
- package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-ranges.js +1 -1
- package/lib/commonjs/mol-model/structure/model/types.js +116 -116
- package/lib/commonjs/mol-model/structure/query/context.js +1 -1
- package/lib/commonjs/mol-model/structure/query/queries/generators.js +5 -5
- package/lib/commonjs/mol-model/structure/query/queries/internal.js +4 -4
- package/lib/commonjs/mol-model/structure/query/queries/modifiers.js +4 -4
- package/lib/commonjs/mol-model/structure/query/utils/structure-distance.d.ts +5 -54
- package/lib/commonjs/mol-model/structure/query/utils/structure-distance.js +9 -9
- package/lib/commonjs/mol-model/structure/structure/carbohydrates/constants.js +106 -106
- package/lib/commonjs/mol-model/structure/structure/element/loci.js +5 -5
- package/lib/commonjs/mol-model/structure/structure/element/stats.js +5 -5
- package/lib/commonjs/mol-model/structure/structure/properties.js +5 -5
- package/lib/commonjs/mol-model/structure/structure/structure.js +11 -11
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/inter-compute.js +5 -5
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/intra-compute.js +4 -4
- package/lib/commonjs/mol-model/structure/structure/unit/bonds.js +2 -2
- package/lib/commonjs/mol-model/structure/structure/unit/resonance.js +1 -1
- package/lib/commonjs/mol-model/structure/structure/unit/rings/compute.js +6 -6
- package/lib/commonjs/mol-model/structure/structure/unit/rings.js +6 -6
- package/lib/commonjs/mol-model/structure/structure/unit.js +16 -16
- package/lib/commonjs/mol-model/structure/structure/util/superposition-sifts-mapping.js +1 -1
- package/lib/commonjs/mol-model/structure/util.js +4 -4
- package/lib/commonjs/mol-model-formats/structure/basic/atomic.js +2 -2
- package/lib/commonjs/mol-model-formats/structure/basic/parser.js +4 -4
- package/lib/commonjs/mol-model-formats/structure/basic/properties.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/basic/sort.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/basic/util.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/cif-core.js +6 -6
- package/lib/commonjs/mol-model-formats/structure/common/entity.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/cube.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/gro.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/mol.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/mol2.js +4 -4
- package/lib/commonjs/mol-model-formats/structure/prmtop.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/property/bonds/chem_comp.js +3 -3
- package/lib/commonjs/mol-model-formats/structure/property/bonds/index-pair.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/property/bonds/struct_conn.js +6 -6
- package/lib/commonjs/mol-model-formats/structure/property/secondary-structure.js +8 -8
- package/lib/commonjs/mol-model-formats/structure/psf.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/top.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/xyz.js +1 -1
- package/lib/commonjs/mol-model-props/computed/accessible-surface-area/shrake-rupley/radii.js +2 -2
- package/lib/commonjs/mol-model-props/computed/accessible-surface-area/shrake-rupley.js +3 -3
- package/lib/commonjs/mol-model-props/computed/accessible-surface-area.js +2 -2
- package/lib/commonjs/mol-model-props/computed/chemistry/functional-group.js +31 -31
- package/lib/commonjs/mol-model-props/computed/chemistry/geometry.js +22 -22
- package/lib/commonjs/mol-model-props/computed/chemistry/valence-model.js +32 -32
- package/lib/commonjs/mol-model-props/computed/interactions/charged.js +39 -39
- package/lib/commonjs/mol-model-props/computed/interactions/common.js +34 -34
- package/lib/commonjs/mol-model-props/computed/interactions/contacts-builder.js +1 -1
- package/lib/commonjs/mol-model-props/computed/interactions/contacts.js +1 -1
- package/lib/commonjs/mol-model-props/computed/interactions/halogen-bonds.js +12 -12
- package/lib/commonjs/mol-model-props/computed/interactions/hydrogen-bonds.js +32 -32
- package/lib/commonjs/mol-model-props/computed/interactions/hydrophobic.js +9 -9
- package/lib/commonjs/mol-model-props/computed/interactions/metal.js +26 -26
- package/lib/commonjs/mol-model-props/computed/interactions/refine.js +20 -20
- package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.js +2 -2
- package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.js +2 -2
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/bends.js +1 -1
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/bridges.js +12 -12
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/helices.js +6 -6
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/ladders.js +3 -3
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/sheets.js +11 -11
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp/turns.js +3 -3
- package/lib/commonjs/mol-model-props/computed/secondary-structure/dssp.js +30 -30
- package/lib/commonjs/mol-model-props/computed/themes/accessible-surface-area.js +1 -1
- package/lib/commonjs/mol-model-props/computed/themes/interaction-type.js +10 -10
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/color.js +1 -1
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/format.js +3 -3
- package/lib/commonjs/mol-model-props/sequence/sifts-mapping.js +1 -1
- package/lib/commonjs/mol-model-props/sequence/themes/sifts-mapping.js +1 -1
- package/lib/commonjs/mol-plugin/animation-loop.d.ts +2 -1
- package/lib/commonjs/mol-plugin/animation-loop.js +18 -5
- package/lib/commonjs/mol-plugin/behavior/dynamic/camera.js +12 -12
- package/lib/commonjs/mol-plugin/behavior/dynamic/representation.js +7 -7
- package/lib/commonjs/mol-plugin/context.d.ts +2 -2
- package/lib/commonjs/mol-plugin/state.d.ts +1 -14
- package/lib/commonjs/mol-plugin-state/formats/volume.d.ts +12 -11
- package/lib/commonjs/mol-plugin-state/formats/volume.js +20 -13
- package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.js +5 -5
- package/lib/commonjs/mol-plugin-state/transforms/representation.js +2 -2
- package/lib/commonjs/mol-plugin-ui/controls/parameters.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/sequence/polymer.js +1 -1
- package/lib/commonjs/mol-plugin-ui/sequence/sequence.js +1 -1
- package/lib/commonjs/mol-plugin-ui/structure/focus.js +1 -1
- package/lib/commonjs/mol-plugin-ui/viewport.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.js +10 -10
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-line.js +10 -10
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.js +12 -12
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.js +12 -12
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.js +16 -16
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.js +1 -1
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.js +9 -0
- package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.js +4 -4
- package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.js +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/util/bond.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/util/common.js +3 -3
- package/lib/commonjs/mol-repr/structure/visual/util/link.js +30 -30
- package/lib/commonjs/mol-repr/structure/visual/util/polymer/backbone.js +6 -6
- package/lib/commonjs/mol-repr/structure/visual/util/polymer/gap-iterator.js +3 -3
- package/lib/commonjs/mol-repr/structure/visual/util/polymer/trace-iterator.js +20 -20
- package/lib/commonjs/mol-repr/structure/visual/util/polymer.js +6 -6
- package/lib/commonjs/mol-script/language/symbol-table/core.d.ts +2 -2
- package/lib/commonjs/mol-script/runtime/query/table.js +13 -13
- package/lib/commonjs/mol-state/object.d.ts +3 -3
- package/lib/commonjs/mol-task/util/user-timing.js +1 -1
- package/lib/commonjs/mol-theme/clipping.js +19 -19
- package/lib/commonjs/mol-theme/color/atom-id.js +1 -1
- package/lib/commonjs/mol-theme/color/carbohydrate-symbol.js +1 -1
- package/lib/commonjs/mol-theme/color/chain-id.js +4 -4
- package/lib/commonjs/mol-theme/color/element-index.js +1 -1
- package/lib/commonjs/mol-theme/color/element-symbol.js +1 -1
- package/lib/commonjs/mol-theme/color/entity-id.js +4 -4
- package/lib/commonjs/mol-theme/color/entity-source.js +5 -4
- package/lib/commonjs/mol-theme/color/hydrophobicity.js +1 -1
- package/lib/commonjs/mol-theme/color/illustrative.js +1 -1
- package/lib/commonjs/mol-theme/color/model-index.js +1 -1
- package/lib/commonjs/mol-theme/color/molecule-type.js +8 -8
- package/lib/commonjs/mol-theme/color/occupancy.js +1 -1
- package/lib/commonjs/mol-theme/color/operator-hkl.js +1 -1
- package/lib/commonjs/mol-theme/color/operator-name.js +1 -1
- package/lib/commonjs/mol-theme/color/partial-charge.js +1 -1
- package/lib/commonjs/mol-theme/color/polymer-id.js +4 -4
- package/lib/commonjs/mol-theme/color/polymer-index.js +1 -1
- package/lib/commonjs/mol-theme/color/residue-name.js +1 -1
- package/lib/commonjs/mol-theme/color/secondary-structure.js +12 -12
- package/lib/commonjs/mol-theme/color/sequence-id.js +7 -7
- package/lib/commonjs/mol-theme/color/shape-group.js +1 -1
- package/lib/commonjs/mol-theme/color/uncertainty.js +1 -1
- package/lib/commonjs/mol-theme/color/uniform.js +1 -1
- package/lib/commonjs/mol-theme/color/unit-index.js +1 -1
- package/lib/commonjs/mol-theme/color/volume-value.js +1 -1
- package/lib/commonjs/mol-theme/label.js +3 -3
- package/lib/commonjs/mol-util/binding.js +4 -4
- package/lib/commonjs/mol-util/debug.d.ts +6 -1
- package/lib/commonjs/mol-util/debug.js +11 -1
- package/lib/commonjs/mol-util/input/input-observer.js +20 -20
- package/lib/commonjs/mol-util/string-builder.js +1 -1
- package/lib/commonjs/servers/model/preprocess/converter.js +1 -1
- package/lib/commonjs/servers/model/server/query.js +1 -1
- package/lib/commonjs/servers/model/utils/fetch-retry.js +3 -2
- package/lib/commonjs/servers/volume/server/algebra/coordinate.js +6 -6
- package/lib/commonjs/servers/volume/server/query/encode.js +1 -1
- package/lib/examples/alpha-orbitals/index.d.ts +1 -1
- package/lib/examples/alpha-orbitals/index.html +11 -0
- package/lib/examples/alpha-orbitals/index.js +4 -1
- package/lib/examples/basic-wrapper/custom-theme.js +1 -1
- package/lib/examples/proteopedia-wrapper/coloring.js +3 -3
- package/lib/extensions/alpha-orbitals/density.d.ts +1 -1
- package/lib/extensions/alpha-orbitals/density.js +6 -2
- package/lib/extensions/alpha-orbitals/orbitals.d.ts +1 -1
- package/lib/extensions/alpha-orbitals/orbitals.js +6 -3
- package/lib/extensions/anvil/algorithm.js +1 -1
- package/lib/extensions/cellpack/color/generate.js +1 -1
- package/lib/extensions/cellpack/color/provided.js +1 -1
- package/lib/extensions/cellpack/state.js +1 -1
- package/lib/extensions/dnatco/confal-pyramids/color.js +1 -1
- package/lib/extensions/g3d/model.js +1 -1
- package/lib/extensions/model-archive/quality-assessment/color/plddt.js +1 -1
- package/lib/extensions/model-archive/quality-assessment/color/qmean.js +1 -1
- package/lib/extensions/pdbe/structure-quality-report/color.js +1 -1
- package/lib/extensions/rcsb/assembly-symmetry/color.js +4 -4
- package/lib/extensions/rcsb/validation-report/color/density-fit.js +1 -1
- package/lib/extensions/rcsb/validation-report/color/geometry-quality.js +2 -2
- package/lib/extensions/rcsb/validation-report/color/random-coil-index.js +1 -1
- package/lib/extensions/rcsb/validation-report/representation.js +2 -2
- package/lib/mol-canvas3d/canvas3d.js +5 -1
- package/lib/mol-canvas3d/controls/trackball.js +7 -7
- package/lib/mol-canvas3d/helper/camera-helper.js +14 -14
- package/lib/mol-canvas3d/helper/interaction-events.js +5 -5
- package/lib/mol-canvas3d/passes/draw.js +34 -5
- package/lib/mol-canvas3d/passes/fxaa.js +5 -0
- package/lib/mol-canvas3d/passes/marking.js +5 -0
- package/lib/mol-canvas3d/passes/multi-sample.js +9 -0
- package/lib/mol-canvas3d/passes/pick.d.ts +18 -5
- package/lib/mol-canvas3d/passes/pick.js +125 -24
- package/lib/mol-canvas3d/passes/postprocessing.js +5 -0
- package/lib/mol-canvas3d/passes/smaa.js +5 -1
- package/lib/mol-canvas3d/passes/wboit.js +5 -1
- package/lib/mol-data/db/column.js +5 -5
- package/lib/mol-data/db/table.js +2 -2
- package/lib/mol-data/util/array.d.ts +1 -1
- package/lib/mol-geo/geometry/texture-mesh/color-smoothing.js +13 -0
- package/lib/mol-gl/compute/grid3d.d.ts +2 -2
- package/lib/mol-gl/compute/grid3d.js +30 -8
- package/lib/mol-gl/compute/histogram-pyramid/reduction.d.ts +1 -1
- package/lib/mol-gl/compute/histogram-pyramid/reduction.js +6 -1
- package/lib/mol-gl/compute/histogram-pyramid/sum.d.ts +1 -1
- package/lib/mol-gl/compute/histogram-pyramid/sum.js +6 -1
- package/lib/mol-gl/compute/marching-cubes/active-voxels.d.ts +1 -1
- package/lib/mol-gl/compute/marching-cubes/active-voxels.js +6 -1
- package/lib/mol-gl/compute/marching-cubes/isosurface.d.ts +1 -1
- package/lib/mol-gl/compute/marching-cubes/isosurface.js +10 -10
- package/lib/mol-gl/renderer.js +77 -32
- package/lib/mol-gl/scene.js +2 -0
- package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/color-frag-params.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/color-frag-params.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/color-vert-params.glsl.js +1 -1
- package/lib/mol-gl/shader/cylinders.frag.d.ts +1 -1
- package/lib/mol-gl/shader/cylinders.frag.js +1 -1
- package/lib/mol-gl/shader/direct-volume.frag.d.ts +1 -1
- package/lib/mol-gl/shader/direct-volume.frag.js +1 -1
- package/lib/mol-gl/shader/image.frag.d.ts +1 -1
- package/lib/mol-gl/shader/image.frag.js +1 -1
- package/lib/mol-gl/shader/lines.frag.d.ts +1 -1
- package/lib/mol-gl/shader/lines.frag.js +1 -1
- package/lib/mol-gl/shader/mesh.frag.d.ts +1 -1
- package/lib/mol-gl/shader/mesh.frag.js +1 -1
- package/lib/mol-gl/shader/points.frag.d.ts +1 -1
- package/lib/mol-gl/shader/points.frag.js +1 -1
- package/lib/mol-gl/shader/spheres.frag.d.ts +1 -1
- package/lib/mol-gl/shader/spheres.frag.js +1 -1
- package/lib/mol-gl/shader/text.frag.d.ts +1 -1
- package/lib/mol-gl/shader/text.frag.js +1 -1
- package/lib/mol-gl/shader-code.d.ts +1 -1
- package/lib/mol-gl/shader-code.js +41 -9
- package/lib/mol-gl/webgl/compat.d.ts +34 -1
- package/lib/mol-gl/webgl/compat.js +48 -1
- package/lib/mol-gl/webgl/context.d.ts +2 -0
- package/lib/mol-gl/webgl/context.js +3 -0
- package/lib/mol-gl/webgl/extensions.d.ts +3 -2
- package/lib/mol-gl/webgl/extensions.js +7 -2
- package/lib/mol-gl/webgl/timer.d.ts +22 -0
- package/lib/mol-gl/webgl/timer.js +164 -0
- package/lib/mol-io/common/binary-cif/array-encoder.js +18 -18
- package/lib/mol-io/common/binary-cif/decoder.js +16 -16
- package/lib/mol-io/common/binary-cif/encoding.js +9 -9
- package/lib/mol-io/reader/cif/binary/field.js +3 -3
- package/lib/mol-io/reader/cif/data-model.js +14 -14
- package/lib/mol-io/reader/cif/schema.js +1 -1
- package/lib/mol-io/reader/cif/text/parser.js +23 -23
- package/lib/mol-io/reader/common/text/column/fixed.js +1 -1
- package/lib/mol-io/reader/common/text/column/token.js +1 -1
- package/lib/mol-io/reader/common/text/number-parser.js +6 -6
- package/lib/mol-io/reader/csv/parser.js +8 -8
- package/lib/mol-io/writer/cif/encoder/binary.js +10 -10
- package/lib/mol-io/writer/cif/encoder/text.js +7 -7
- package/lib/mol-io/writer/cif/encoder.js +8 -8
- package/lib/mol-io/writer/mol2/encoder.js +4 -4
- package/lib/mol-math/geometry/gaussian-density/gpu.js +13 -2
- package/lib/mol-model/sequence/alignment/sequence.js +3 -3
- package/lib/mol-model/sequence/sequence.js +9 -9
- package/lib/mol-model/structure/export/categories/atom_site_operator_mapping.js +3 -3
- package/lib/mol-model/structure/export/categories/secondary-structure.js +2 -2
- package/lib/mol-model/structure/export/categories/utils.js +1 -1
- package/lib/mol-model/structure/model/model.js +2 -2
- package/lib/mol-model/structure/model/properties/custom/indexed.js +6 -6
- package/lib/mol-model/structure/model/properties/utils/atomic-ranges.js +1 -1
- package/lib/mol-model/structure/model/types.js +116 -116
- package/lib/mol-model/structure/query/context.js +1 -1
- package/lib/mol-model/structure/query/queries/generators.js +5 -5
- package/lib/mol-model/structure/query/queries/internal.js +4 -4
- package/lib/mol-model/structure/query/queries/modifiers.js +4 -4
- package/lib/mol-model/structure/query/utils/structure-distance.d.ts +5 -54
- package/lib/mol-model/structure/query/utils/structure-distance.js +9 -9
- package/lib/mol-model/structure/structure/carbohydrates/constants.js +106 -106
- package/lib/mol-model/structure/structure/element/loci.js +5 -5
- package/lib/mol-model/structure/structure/element/stats.js +5 -5
- package/lib/mol-model/structure/structure/properties.js +5 -5
- package/lib/mol-model/structure/structure/structure.js +11 -11
- package/lib/mol-model/structure/structure/unit/bonds/inter-compute.js +5 -5
- package/lib/mol-model/structure/structure/unit/bonds/intra-compute.js +4 -4
- package/lib/mol-model/structure/structure/unit/bonds.js +2 -2
- package/lib/mol-model/structure/structure/unit/resonance.js +1 -1
- package/lib/mol-model/structure/structure/unit/rings/compute.js +6 -6
- package/lib/mol-model/structure/structure/unit/rings.js +6 -6
- package/lib/mol-model/structure/structure/unit.js +16 -16
- package/lib/mol-model/structure/structure/util/superposition-sifts-mapping.js +1 -1
- package/lib/mol-model/structure/util.js +4 -4
- package/lib/mol-model-formats/structure/basic/atomic.js +2 -2
- package/lib/mol-model-formats/structure/basic/parser.js +4 -4
- package/lib/mol-model-formats/structure/basic/properties.js +1 -1
- package/lib/mol-model-formats/structure/basic/sort.js +1 -1
- package/lib/mol-model-formats/structure/basic/util.js +1 -1
- package/lib/mol-model-formats/structure/cif-core.js +6 -6
- package/lib/mol-model-formats/structure/common/entity.js +1 -1
- package/lib/mol-model-formats/structure/cube.js +1 -1
- package/lib/mol-model-formats/structure/gro.js +1 -1
- package/lib/mol-model-formats/structure/mol.js +1 -1
- package/lib/mol-model-formats/structure/mol2.js +4 -4
- package/lib/mol-model-formats/structure/prmtop.js +1 -1
- package/lib/mol-model-formats/structure/property/bonds/chem_comp.js +3 -3
- package/lib/mol-model-formats/structure/property/bonds/index-pair.js +1 -1
- package/lib/mol-model-formats/structure/property/bonds/struct_conn.js +6 -6
- package/lib/mol-model-formats/structure/property/secondary-structure.js +8 -8
- package/lib/mol-model-formats/structure/psf.js +1 -1
- package/lib/mol-model-formats/structure/top.js +1 -1
- package/lib/mol-model-formats/structure/xyz.js +1 -1
- package/lib/mol-model-props/computed/accessible-surface-area/shrake-rupley/radii.js +2 -2
- package/lib/mol-model-props/computed/accessible-surface-area/shrake-rupley.js +3 -3
- package/lib/mol-model-props/computed/accessible-surface-area.js +2 -2
- package/lib/mol-model-props/computed/chemistry/functional-group.js +31 -31
- package/lib/mol-model-props/computed/chemistry/geometry.js +22 -22
- package/lib/mol-model-props/computed/chemistry/valence-model.js +32 -32
- package/lib/mol-model-props/computed/interactions/charged.js +39 -39
- package/lib/mol-model-props/computed/interactions/common.js +34 -34
- package/lib/mol-model-props/computed/interactions/contacts-builder.js +1 -1
- package/lib/mol-model-props/computed/interactions/contacts.js +1 -1
- package/lib/mol-model-props/computed/interactions/halogen-bonds.js +12 -12
- package/lib/mol-model-props/computed/interactions/hydrogen-bonds.js +32 -32
- package/lib/mol-model-props/computed/interactions/hydrophobic.js +9 -9
- package/lib/mol-model-props/computed/interactions/metal.js +26 -26
- package/lib/mol-model-props/computed/interactions/refine.js +20 -20
- package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.js +2 -2
- package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.js +2 -2
- package/lib/mol-model-props/computed/secondary-structure/dssp/bends.js +1 -1
- package/lib/mol-model-props/computed/secondary-structure/dssp/bridges.js +12 -12
- package/lib/mol-model-props/computed/secondary-structure/dssp/helices.js +6 -6
- package/lib/mol-model-props/computed/secondary-structure/dssp/ladders.js +3 -3
- package/lib/mol-model-props/computed/secondary-structure/dssp/sheets.js +11 -11
- package/lib/mol-model-props/computed/secondary-structure/dssp/turns.js +3 -3
- package/lib/mol-model-props/computed/secondary-structure/dssp.js +30 -30
- package/lib/mol-model-props/computed/themes/accessible-surface-area.js +1 -1
- package/lib/mol-model-props/computed/themes/interaction-type.js +10 -10
- package/lib/mol-model-props/integrative/cross-link-restraint/color.js +1 -1
- package/lib/mol-model-props/integrative/cross-link-restraint/format.js +3 -3
- package/lib/mol-model-props/sequence/sifts-mapping.js +1 -1
- package/lib/mol-model-props/sequence/themes/sifts-mapping.js +1 -1
- package/lib/mol-plugin/animation-loop.d.ts +2 -1
- package/lib/mol-plugin/animation-loop.js +18 -5
- package/lib/mol-plugin/behavior/dynamic/camera.js +12 -12
- package/lib/mol-plugin/behavior/dynamic/representation.js +7 -7
- package/lib/mol-plugin/context.d.ts +2 -2
- package/lib/mol-plugin/state.d.ts +1 -14
- package/lib/mol-plugin/version.js +2 -2
- package/lib/mol-plugin-state/formats/volume.d.ts +12 -11
- package/lib/mol-plugin-state/formats/volume.js +20 -13
- package/lib/mol-plugin-state/helpers/structure-selection-query.js +5 -5
- package/lib/mol-plugin-state/transforms/representation.js +2 -2
- package/lib/mol-plugin-ui/controls/parameters.d.ts +1 -1
- package/lib/mol-plugin-ui/sequence/polymer.js +1 -1
- package/lib/mol-plugin-ui/sequence/sequence.js +1 -1
- package/lib/mol-plugin-ui/structure/focus.js +1 -1
- package/lib/mol-plugin-ui/viewport.d.ts +2 -2
- package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.js +10 -10
- package/lib/mol-repr/structure/visual/bond-inter-unit-line.js +10 -10
- package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.js +12 -12
- package/lib/mol-repr/structure/visual/bond-intra-unit-line.js +12 -12
- package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.js +16 -16
- package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.js +1 -1
- package/lib/mol-repr/structure/visual/gaussian-surface-mesh.js +9 -0
- package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.js +4 -4
- package/lib/mol-repr/structure/visual/polymer-direction-wedge.js +1 -1
- package/lib/mol-repr/structure/visual/polymer-trace-mesh.js +2 -2
- package/lib/mol-repr/structure/visual/util/bond.js +2 -2
- package/lib/mol-repr/structure/visual/util/common.js +3 -3
- package/lib/mol-repr/structure/visual/util/link.js +30 -30
- package/lib/mol-repr/structure/visual/util/polymer/backbone.js +6 -6
- package/lib/mol-repr/structure/visual/util/polymer/gap-iterator.js +3 -3
- package/lib/mol-repr/structure/visual/util/polymer/trace-iterator.js +20 -20
- package/lib/mol-repr/structure/visual/util/polymer.js +6 -6
- package/lib/mol-script/language/symbol-table/core.d.ts +2 -2
- package/lib/mol-script/runtime/query/table.js +13 -13
- package/lib/mol-state/object.d.ts +3 -3
- package/lib/mol-task/util/user-timing.js +1 -1
- package/lib/mol-theme/clipping.js +19 -19
- package/lib/mol-theme/color/atom-id.js +1 -1
- package/lib/mol-theme/color/carbohydrate-symbol.js +1 -1
- package/lib/mol-theme/color/chain-id.js +4 -4
- package/lib/mol-theme/color/element-index.js +1 -1
- package/lib/mol-theme/color/element-symbol.js +1 -1
- package/lib/mol-theme/color/entity-id.js +4 -4
- package/lib/mol-theme/color/entity-source.js +5 -4
- package/lib/mol-theme/color/hydrophobicity.js +1 -1
- package/lib/mol-theme/color/illustrative.js +1 -1
- package/lib/mol-theme/color/model-index.js +1 -1
- package/lib/mol-theme/color/molecule-type.js +8 -8
- package/lib/mol-theme/color/occupancy.js +1 -1
- package/lib/mol-theme/color/operator-hkl.js +1 -1
- package/lib/mol-theme/color/operator-name.js +1 -1
- package/lib/mol-theme/color/partial-charge.js +1 -1
- package/lib/mol-theme/color/polymer-id.js +4 -4
- package/lib/mol-theme/color/polymer-index.js +1 -1
- package/lib/mol-theme/color/residue-name.js +1 -1
- package/lib/mol-theme/color/secondary-structure.js +12 -12
- package/lib/mol-theme/color/sequence-id.js +7 -7
- package/lib/mol-theme/color/shape-group.js +1 -1
- package/lib/mol-theme/color/uncertainty.js +1 -1
- package/lib/mol-theme/color/uniform.js +1 -1
- package/lib/mol-theme/color/unit-index.js +1 -1
- package/lib/mol-theme/color/volume-value.js +1 -1
- package/lib/mol-theme/label.js +3 -3
- package/lib/mol-util/binding.js +4 -4
- package/lib/mol-util/debug.d.ts +6 -1
- package/lib/mol-util/debug.js +9 -1
- package/lib/mol-util/input/input-observer.js +20 -20
- package/lib/mol-util/string-builder.js +1 -1
- package/lib/servers/model/preprocess/converter.js +1 -1
- package/lib/servers/model/server/query.js +1 -1
- package/lib/servers/model/utils/fetch-retry.js +3 -2
- package/lib/servers/volume/server/algebra/coordinate.js +6 -6
- package/lib/servers/volume/server/query/encode.js +1 -1
- package/package.json +8 -8
|
@@ -133,71 +133,71 @@ function mapToKind(assignment) {
|
|
|
133
133
|
}
|
|
134
134
|
/** Original priority: H,B,E,G,I,T,S */
|
|
135
135
|
function getOriginalResidueFlag(f) {
|
|
136
|
-
if (common_1.DSSPType.is(f, 1 /* H */))
|
|
136
|
+
if (common_1.DSSPType.is(f, 1 /* DSSPType.Flag.H */))
|
|
137
137
|
return types_1.SecondaryStructureType.SecondaryStructureDssp.H;
|
|
138
|
-
if (common_1.DSSPType.is(f, 4 /* E */))
|
|
138
|
+
if (common_1.DSSPType.is(f, 4 /* DSSPType.Flag.E */))
|
|
139
139
|
return types_1.SecondaryStructureType.SecondaryStructureDssp.E;
|
|
140
|
-
if (common_1.DSSPType.is(f, 2 /* B */))
|
|
140
|
+
if (common_1.DSSPType.is(f, 2 /* DSSPType.Flag.B */))
|
|
141
141
|
return types_1.SecondaryStructureType.SecondaryStructureDssp.B;
|
|
142
|
-
if (common_1.DSSPType.is(f, 8 /* G */))
|
|
142
|
+
if (common_1.DSSPType.is(f, 8 /* DSSPType.Flag.G */))
|
|
143
143
|
return types_1.SecondaryStructureType.SecondaryStructureDssp.G;
|
|
144
|
-
if (common_1.DSSPType.is(f, 16 /* I */))
|
|
144
|
+
if (common_1.DSSPType.is(f, 16 /* DSSPType.Flag.I */))
|
|
145
145
|
return types_1.SecondaryStructureType.SecondaryStructureDssp.I;
|
|
146
|
-
if (common_1.DSSPType.is(f, 64 /* T */))
|
|
146
|
+
if (common_1.DSSPType.is(f, 64 /* DSSPType.Flag.T */))
|
|
147
147
|
return types_1.SecondaryStructureType.SecondaryStructureDssp.T;
|
|
148
|
-
if (common_1.DSSPType.is(f, 32 /* S */))
|
|
148
|
+
if (common_1.DSSPType.is(f, 32 /* DSSPType.Flag.S */))
|
|
149
149
|
return types_1.SecondaryStructureType.SecondaryStructureDssp.S;
|
|
150
|
-
return 0 /* None */;
|
|
150
|
+
return 0 /* SecondaryStructureType.Flag.None */;
|
|
151
151
|
}
|
|
152
152
|
function getOriginalFlagName(f) {
|
|
153
|
-
if (common_1.DSSPType.is(f, 1 /* H */))
|
|
153
|
+
if (common_1.DSSPType.is(f, 1 /* DSSPType.Flag.H */))
|
|
154
154
|
return 'H';
|
|
155
|
-
if (common_1.DSSPType.is(f, 4 /* E */))
|
|
155
|
+
if (common_1.DSSPType.is(f, 4 /* DSSPType.Flag.E */))
|
|
156
156
|
return 'E';
|
|
157
|
-
if (common_1.DSSPType.is(f, 2 /* B */))
|
|
157
|
+
if (common_1.DSSPType.is(f, 2 /* DSSPType.Flag.B */))
|
|
158
158
|
return 'B';
|
|
159
|
-
if (common_1.DSSPType.is(f, 8 /* G */))
|
|
159
|
+
if (common_1.DSSPType.is(f, 8 /* DSSPType.Flag.G */))
|
|
160
160
|
return 'G';
|
|
161
|
-
if (common_1.DSSPType.is(f, 16 /* I */))
|
|
161
|
+
if (common_1.DSSPType.is(f, 16 /* DSSPType.Flag.I */))
|
|
162
162
|
return 'I';
|
|
163
|
-
if (common_1.DSSPType.is(f, 64 /* T */))
|
|
163
|
+
if (common_1.DSSPType.is(f, 64 /* DSSPType.Flag.T */))
|
|
164
164
|
return 'T';
|
|
165
|
-
if (common_1.DSSPType.is(f, 32 /* S */))
|
|
165
|
+
if (common_1.DSSPType.is(f, 32 /* DSSPType.Flag.S */))
|
|
166
166
|
return 'S';
|
|
167
167
|
return '-';
|
|
168
168
|
}
|
|
169
169
|
/** Version 2.1.0 priority: I,H,B,E,G,T,S */
|
|
170
170
|
function getUpdatedResidueFlag(f) {
|
|
171
|
-
if (common_1.DSSPType.is(f, 16 /* I */))
|
|
171
|
+
if (common_1.DSSPType.is(f, 16 /* DSSPType.Flag.I */))
|
|
172
172
|
return types_1.SecondaryStructureType.SecondaryStructureDssp.I;
|
|
173
|
-
if (common_1.DSSPType.is(f, 1 /* H */))
|
|
173
|
+
if (common_1.DSSPType.is(f, 1 /* DSSPType.Flag.H */))
|
|
174
174
|
return types_1.SecondaryStructureType.SecondaryStructureDssp.H;
|
|
175
|
-
if (common_1.DSSPType.is(f, 4 /* E */))
|
|
175
|
+
if (common_1.DSSPType.is(f, 4 /* DSSPType.Flag.E */))
|
|
176
176
|
return types_1.SecondaryStructureType.SecondaryStructureDssp.E;
|
|
177
|
-
if (common_1.DSSPType.is(f, 2 /* B */))
|
|
177
|
+
if (common_1.DSSPType.is(f, 2 /* DSSPType.Flag.B */))
|
|
178
178
|
return types_1.SecondaryStructureType.SecondaryStructureDssp.B;
|
|
179
|
-
if (common_1.DSSPType.is(f, 8 /* G */))
|
|
179
|
+
if (common_1.DSSPType.is(f, 8 /* DSSPType.Flag.G */))
|
|
180
180
|
return types_1.SecondaryStructureType.SecondaryStructureDssp.G;
|
|
181
|
-
if (common_1.DSSPType.is(f, 64 /* T */))
|
|
181
|
+
if (common_1.DSSPType.is(f, 64 /* DSSPType.Flag.T */))
|
|
182
182
|
return types_1.SecondaryStructureType.SecondaryStructureDssp.T;
|
|
183
|
-
if (common_1.DSSPType.is(f, 32 /* S */))
|
|
183
|
+
if (common_1.DSSPType.is(f, 32 /* DSSPType.Flag.S */))
|
|
184
184
|
return types_1.SecondaryStructureType.SecondaryStructureDssp.S;
|
|
185
|
-
return 0 /* None */;
|
|
185
|
+
return 0 /* SecondaryStructureType.Flag.None */;
|
|
186
186
|
}
|
|
187
187
|
function getUpdatedFlagName(f) {
|
|
188
|
-
if (common_1.DSSPType.is(f, 16 /* I */))
|
|
188
|
+
if (common_1.DSSPType.is(f, 16 /* DSSPType.Flag.I */))
|
|
189
189
|
return 'I';
|
|
190
|
-
if (common_1.DSSPType.is(f, 1 /* H */))
|
|
190
|
+
if (common_1.DSSPType.is(f, 1 /* DSSPType.Flag.H */))
|
|
191
191
|
return 'H';
|
|
192
|
-
if (common_1.DSSPType.is(f, 4 /* E */))
|
|
192
|
+
if (common_1.DSSPType.is(f, 4 /* DSSPType.Flag.E */))
|
|
193
193
|
return 'E';
|
|
194
|
-
if (common_1.DSSPType.is(f, 2 /* B */))
|
|
194
|
+
if (common_1.DSSPType.is(f, 2 /* DSSPType.Flag.B */))
|
|
195
195
|
return 'B';
|
|
196
|
-
if (common_1.DSSPType.is(f, 8 /* G */))
|
|
196
|
+
if (common_1.DSSPType.is(f, 8 /* DSSPType.Flag.G */))
|
|
197
197
|
return 'G';
|
|
198
|
-
if (common_1.DSSPType.is(f, 64 /* T */))
|
|
198
|
+
if (common_1.DSSPType.is(f, 64 /* DSSPType.Flag.T */))
|
|
199
199
|
return 'T';
|
|
200
|
-
if (common_1.DSSPType.is(f, 32 /* S */))
|
|
200
|
+
if (common_1.DSSPType.is(f, 32 /* DSSPType.Flag.S */))
|
|
201
201
|
return 'S';
|
|
202
202
|
return '-';
|
|
203
203
|
}
|
|
@@ -69,7 +69,7 @@ exports.AccessibleSurfaceAreaColorTheme = AccessibleSurfaceAreaColorTheme;
|
|
|
69
69
|
exports.AccessibleSurfaceAreaColorThemeProvider = {
|
|
70
70
|
name: 'accessible-surface-area',
|
|
71
71
|
label: 'Accessible Surface Area',
|
|
72
|
-
category: "Residue Property" /* Residue */,
|
|
72
|
+
category: "Residue Property" /* ColorTheme.Category.Residue */,
|
|
73
73
|
factory: AccessibleSurfaceAreaColorTheme,
|
|
74
74
|
getParams: getAccessibleSurfaceAreaColorThemeParams,
|
|
75
75
|
defaultValues: param_definition_1.ParamDefinition.getDefaultValues(exports.AccessibleSurfaceAreaColorThemeParams),
|
|
@@ -36,23 +36,23 @@ var InteractionTypeColorTable = [
|
|
|
36
36
|
];
|
|
37
37
|
function typeColor(type) {
|
|
38
38
|
switch (type) {
|
|
39
|
-
case 4 /* HydrogenBond */:
|
|
39
|
+
case 4 /* InteractionType.HydrogenBond */:
|
|
40
40
|
return InteractionTypeColors.HydrogenBond;
|
|
41
|
-
case 6 /* Hydrophobic */:
|
|
41
|
+
case 6 /* InteractionType.Hydrophobic */:
|
|
42
42
|
return InteractionTypeColors.Hydrophobic;
|
|
43
|
-
case 5 /* HalogenBond */:
|
|
43
|
+
case 5 /* InteractionType.HalogenBond */:
|
|
44
44
|
return InteractionTypeColors.HalogenBond;
|
|
45
|
-
case 1 /* Ionic */:
|
|
45
|
+
case 1 /* InteractionType.Ionic */:
|
|
46
46
|
return InteractionTypeColors.Ionic;
|
|
47
|
-
case 7 /* MetalCoordination */:
|
|
47
|
+
case 7 /* InteractionType.MetalCoordination */:
|
|
48
48
|
return InteractionTypeColors.MetalCoordination;
|
|
49
|
-
case 2 /* CationPi */:
|
|
49
|
+
case 2 /* InteractionType.CationPi */:
|
|
50
50
|
return InteractionTypeColors.CationPi;
|
|
51
|
-
case 3 /* PiStacking */:
|
|
51
|
+
case 3 /* InteractionType.PiStacking */:
|
|
52
52
|
return InteractionTypeColors.PiStacking;
|
|
53
|
-
case 8 /* WeakHydrogenBond */:
|
|
53
|
+
case 8 /* InteractionType.WeakHydrogenBond */:
|
|
54
54
|
return InteractionTypeColors.WeakHydrogenBond;
|
|
55
|
-
case 0 /* Unknown */:
|
|
55
|
+
case 0 /* InteractionType.Unknown */:
|
|
56
56
|
return DefaultColor;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -100,7 +100,7 @@ exports.InteractionTypeColorTheme = InteractionTypeColorTheme;
|
|
|
100
100
|
exports.InteractionTypeColorThemeProvider = {
|
|
101
101
|
name: 'interaction-type',
|
|
102
102
|
label: 'Interaction Type',
|
|
103
|
-
category: "Miscellaneous" /* Misc */,
|
|
103
|
+
category: "Miscellaneous" /* ColorTheme.Category.Misc */,
|
|
104
104
|
factory: InteractionTypeColorTheme,
|
|
105
105
|
getParams: getInteractionTypeColorThemeParams,
|
|
106
106
|
defaultValues: param_definition_1.ParamDefinition.getDefaultValues(exports.InteractionTypeColorThemeParams),
|
|
@@ -55,7 +55,7 @@ exports.CrossLinkColorTheme = CrossLinkColorTheme;
|
|
|
55
55
|
exports.CrossLinkColorThemeProvider = {
|
|
56
56
|
name: 'cross-link',
|
|
57
57
|
label: 'Cross Link',
|
|
58
|
-
category: "Miscellaneous" /* Misc */,
|
|
58
|
+
category: "Miscellaneous" /* ColorTheme.Category.Misc */,
|
|
59
59
|
factory: CrossLinkColorTheme,
|
|
60
60
|
getParams: getCrossLinkColorThemeParams,
|
|
61
61
|
defaultValues: param_definition_1.ParamDefinition.getDefaultValues(exports.CrossLinkColorThemeParams),
|
|
@@ -62,9 +62,9 @@ var ModelCrossLinkRestraint;
|
|
|
62
62
|
}
|
|
63
63
|
function getMapByKind(kind) {
|
|
64
64
|
switch (kind) {
|
|
65
|
-
case 0 /* Atomic */: return atomicElementMap;
|
|
66
|
-
case 1 /* Spheres */: return sphereElementMap;
|
|
67
|
-
case 2 /* Gaussians */: return gaussianElementMap;
|
|
65
|
+
case 0 /* Unit.Kind.Atomic */: return atomicElementMap;
|
|
66
|
+
case 1 /* Unit.Kind.Spheres */: return sphereElementMap;
|
|
67
|
+
case 2 /* Unit.Kind.Gaussians */: return gaussianElementMap;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
/** map from atomic element to cross link indices */
|
|
@@ -72,7 +72,7 @@ var SIFTSMapping;
|
|
|
72
72
|
var residue = new Array(count);
|
|
73
73
|
for (var i = 0; i < count; i++) {
|
|
74
74
|
var row = atomSourceIndex.value(residueOffsets[i]);
|
|
75
|
-
if (db_name.valueKind(row) !== 0 /* Present */) {
|
|
75
|
+
if (db_name.valueKind(row) !== 0 /* Column.ValueKind.Present */) {
|
|
76
76
|
dbName[i] = '';
|
|
77
77
|
accession[i] = '';
|
|
78
78
|
num[i] = '';
|
|
@@ -77,7 +77,7 @@ exports.SIFTSMappingColorTheme = SIFTSMappingColorTheme;
|
|
|
77
77
|
exports.SIFTSMappingColorThemeProvider = {
|
|
78
78
|
name: 'sifts-mapping',
|
|
79
79
|
label: 'SIFTS Mapping',
|
|
80
|
-
category: "Residue Property" /* Residue */,
|
|
80
|
+
category: "Residue Property" /* ColorTheme.Category.Residue */,
|
|
81
81
|
factory: SIFTSMappingColorTheme,
|
|
82
82
|
getParams: getSIFTSMappingColorThemeParams,
|
|
83
83
|
defaultValues: param_definition_1.ParamDefinition.getDefaultValues(exports.SIFTSMappingColorThemeParams),
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
2
|
+
* Copyright (c) 2020-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
5
|
+
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
6
|
*/
|
|
6
7
|
import { PluginContext } from './context';
|
|
7
8
|
import { PluginAnimationManager } from '../mol-plugin-state/manager/animation';
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
|
+
* Copyright (c) 2020-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
6
|
+
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
7
|
*/
|
|
7
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
9
|
exports.PluginAnimationLoop = void 0;
|
|
9
10
|
var tslib_1 = require("tslib");
|
|
10
11
|
var now_1 = require("../mol-util/now");
|
|
12
|
+
var debug_1 = require("../mol-util/debug");
|
|
13
|
+
var timer_1 = require("../mol-gl/webgl/timer");
|
|
11
14
|
var PluginAnimationLoop = /** @class */ (function () {
|
|
12
15
|
function PluginAnimationLoop(plugin) {
|
|
13
16
|
var _this = this;
|
|
@@ -29,14 +32,24 @@ var PluginAnimationLoop = /** @class */ (function () {
|
|
|
29
32
|
configurable: true
|
|
30
33
|
});
|
|
31
34
|
PluginAnimationLoop.prototype.tick = function (t, options) {
|
|
32
|
-
var _a;
|
|
35
|
+
var _a, _b;
|
|
33
36
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
34
|
-
|
|
35
|
-
|
|
37
|
+
var timerResults, _i, timerResults_1, result;
|
|
38
|
+
return tslib_1.__generator(this, function (_c) {
|
|
39
|
+
switch (_c.label) {
|
|
36
40
|
case 0: return [4 /*yield*/, this.plugin.managers.animation.tick(t, options === null || options === void 0 ? void 0 : options.isSynchronous, options === null || options === void 0 ? void 0 : options.animation)];
|
|
37
41
|
case 1:
|
|
38
|
-
|
|
42
|
+
_c.sent();
|
|
39
43
|
(_a = this.plugin.canvas3d) === null || _a === void 0 ? void 0 : _a.tick(t, options);
|
|
44
|
+
if (debug_1.isTimingMode) {
|
|
45
|
+
timerResults = (_b = this.plugin.canvas3d) === null || _b === void 0 ? void 0 : _b.webgl.timer.resolve();
|
|
46
|
+
if (timerResults) {
|
|
47
|
+
for (_i = 0, timerResults_1 = timerResults; _i < timerResults_1.length; _i++) {
|
|
48
|
+
result = timerResults_1[_i];
|
|
49
|
+
(0, timer_1.printTimerResults)([result]);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
40
53
|
return [2 /*return*/];
|
|
41
54
|
}
|
|
42
55
|
});
|
|
@@ -21,13 +21,13 @@ var M = input_observer_1.ModifiersKeys;
|
|
|
21
21
|
var Trigger = binding_1.Binding.Trigger;
|
|
22
22
|
var DefaultFocusLociBindings = {
|
|
23
23
|
clickCenterFocus: (0, binding_1.Binding)([
|
|
24
|
-
Trigger(1 /* Primary */, M.create()),
|
|
25
|
-
Trigger(2 /* Secondary */, M.create()),
|
|
26
|
-
Trigger(1 /* Primary */, M.create({ control: true }))
|
|
24
|
+
Trigger(1 /* B.Flag.Primary */, M.create()),
|
|
25
|
+
Trigger(2 /* B.Flag.Secondary */, M.create()),
|
|
26
|
+
Trigger(1 /* B.Flag.Primary */, M.create({ control: true }))
|
|
27
27
|
], 'Camera center and focus', 'Click element using ${triggers}'),
|
|
28
28
|
clickCenterFocusSelectMode: (0, binding_1.Binding)([
|
|
29
|
-
Trigger(2 /* Secondary */, M.create()),
|
|
30
|
-
Trigger(1 /* Primary */, M.create({ control: true }))
|
|
29
|
+
Trigger(2 /* B.Flag.Secondary */, M.create()),
|
|
30
|
+
Trigger(1 /* B.Flag.Primary */, M.create({ control: true }))
|
|
31
31
|
], 'Camera center and focus', 'Click element using ${triggers}'),
|
|
32
32
|
};
|
|
33
33
|
var FocusLociParams = {
|
|
@@ -78,22 +78,22 @@ exports.CameraAxisHelper = behavior_1.PluginBehavior.create({
|
|
|
78
78
|
}
|
|
79
79
|
class_2.prototype.register = function () {
|
|
80
80
|
var _this = this;
|
|
81
|
-
var lastPlane = 0 /* None */;
|
|
81
|
+
var lastPlane = 0 /* CameraHelperAxis.None */;
|
|
82
82
|
var state = 0;
|
|
83
83
|
this.subscribeObservable(this.ctx.behaviors.interaction.click, function (_a) {
|
|
84
84
|
var current = _a.current;
|
|
85
85
|
if (!_this.ctx.canvas3d || !(0, camera_helper_1.isCameraAxesLoci)(current.loci))
|
|
86
86
|
return;
|
|
87
87
|
var axis = current.loci.elements[0].groupId;
|
|
88
|
-
if (axis === 0 /* None */) {
|
|
89
|
-
lastPlane = 0 /* None */;
|
|
88
|
+
if (axis === 0 /* CameraHelperAxis.None */) {
|
|
89
|
+
lastPlane = 0 /* CameraHelperAxis.None */;
|
|
90
90
|
state = 0;
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
93
|
var camera = _this.ctx.canvas3d.camera;
|
|
94
94
|
var dir, up;
|
|
95
|
-
if (axis >= 1 /* X */ && axis <= 3 /* Z */) {
|
|
96
|
-
lastPlane = 0 /* None */;
|
|
95
|
+
if (axis >= 1 /* CameraHelperAxis.X */ && axis <= 3 /* CameraHelperAxis.Z */) {
|
|
96
|
+
lastPlane = 0 /* CameraHelperAxis.None */;
|
|
97
97
|
state = 0;
|
|
98
98
|
var d = linear_algebra_1.Vec3.sub((0, linear_algebra_1.Vec3)(), camera.target, camera.position);
|
|
99
99
|
var c = linear_algebra_1.Vec3.cross((0, linear_algebra_1.Vec3)(), d, camera.up);
|
|
@@ -111,11 +111,11 @@ exports.CameraAxisHelper = behavior_1.PluginBehavior.create({
|
|
|
111
111
|
lastPlane = axis;
|
|
112
112
|
state = 0;
|
|
113
113
|
}
|
|
114
|
-
if (axis === 4 /* XY */) {
|
|
114
|
+
if (axis === 4 /* CameraHelperAxis.XY */) {
|
|
115
115
|
up = state ? linear_algebra_1.Vec3.unitX : linear_algebra_1.Vec3.unitY;
|
|
116
116
|
dir = linear_algebra_1.Vec3.negUnitZ;
|
|
117
117
|
}
|
|
118
|
-
else if (axis === 5 /* XZ */) {
|
|
118
|
+
else if (axis === 5 /* CameraHelperAxis.XZ */) {
|
|
119
119
|
up = state ? linear_algebra_1.Vec3.unitX : linear_algebra_1.Vec3.unitZ;
|
|
120
120
|
dir = linear_algebra_1.Vec3.negUnitY;
|
|
121
121
|
}
|
|
@@ -25,8 +25,8 @@ var M = input_observer_1.ModifiersKeys;
|
|
|
25
25
|
var Trigger = binding_1.Binding.Trigger;
|
|
26
26
|
//
|
|
27
27
|
var DefaultHighlightLociBindings = {
|
|
28
|
-
hoverHighlightOnly: (0, binding_1.Binding)([Trigger(0 /* None */)], 'Highlight', 'Hover element using ${triggers}'),
|
|
29
|
-
hoverHighlightOnlyExtend: (0, binding_1.Binding)([Trigger(0 /* None */, M.create({ shift: true }))], 'Extend highlight', 'From selected to hovered element along polymer using ${triggers}'),
|
|
28
|
+
hoverHighlightOnly: (0, binding_1.Binding)([Trigger(0 /* B.Flag.None */)], 'Highlight', 'Hover element using ${triggers}'),
|
|
29
|
+
hoverHighlightOnlyExtend: (0, binding_1.Binding)([Trigger(0 /* B.Flag.None */, M.create({ shift: true }))], 'Extend highlight', 'From selected to hovered element along polymer using ${triggers}'),
|
|
30
30
|
};
|
|
31
31
|
var HighlightLociParams = {
|
|
32
32
|
bindings: param_definition_1.ParamDefinition.Value(DefaultHighlightLociBindings, { isHidden: true }),
|
|
@@ -92,11 +92,11 @@ exports.HighlightLoci = behavior_1.PluginBehavior.create({
|
|
|
92
92
|
//
|
|
93
93
|
var DefaultSelectLociBindings = {
|
|
94
94
|
clickSelect: binding_1.Binding.Empty,
|
|
95
|
-
clickToggleExtend: (0, binding_1.Binding)([Trigger(1 /* Primary */, M.create({ shift: true }))], 'Toggle extended selection', '${triggers} to extend selection along polymer'),
|
|
95
|
+
clickToggleExtend: (0, binding_1.Binding)([Trigger(1 /* B.Flag.Primary */, M.create({ shift: true }))], 'Toggle extended selection', '${triggers} to extend selection along polymer'),
|
|
96
96
|
clickSelectOnly: binding_1.Binding.Empty,
|
|
97
|
-
clickToggle: (0, binding_1.Binding)([Trigger(1 /* Primary */, M.create())], 'Toggle selection', '${triggers} on element'),
|
|
97
|
+
clickToggle: (0, binding_1.Binding)([Trigger(1 /* B.Flag.Primary */, M.create())], 'Toggle selection', '${triggers} on element'),
|
|
98
98
|
clickDeselect: binding_1.Binding.Empty,
|
|
99
|
-
clickDeselectAllOnEmpty: (0, binding_1.Binding)([Trigger(1 /* Primary */, M.create())], 'Deselect all', 'Click on nothing using ${triggers}'),
|
|
99
|
+
clickDeselectAllOnEmpty: (0, binding_1.Binding)([Trigger(1 /* B.Flag.Primary */, M.create())], 'Deselect all', 'Click on nothing using ${triggers}'),
|
|
100
100
|
};
|
|
101
101
|
var SelectLociParams = {
|
|
102
102
|
bindings: param_definition_1.ParamDefinition.Value(DefaultSelectLociBindings, { isHidden: true }),
|
|
@@ -243,10 +243,10 @@ exports.DefaultLociLabelProvider = behavior_1.PluginBehavior.create({
|
|
|
243
243
|
//
|
|
244
244
|
var DefaultFocusLociBindings = {
|
|
245
245
|
clickFocus: (0, binding_1.Binding)([
|
|
246
|
-
Trigger(1 /* Primary */, M.create()),
|
|
246
|
+
Trigger(1 /* B.Flag.Primary */, M.create()),
|
|
247
247
|
], 'Representation Focus', 'Click element using ${triggers}'),
|
|
248
248
|
clickFocusAdd: (0, binding_1.Binding)([
|
|
249
|
-
Trigger(1 /* Primary */, M.create({ shift: true })),
|
|
249
|
+
Trigger(1 /* B.Flag.Primary */, M.create({ shift: true })),
|
|
250
250
|
], 'Representation Focus Add', 'Click element using ${triggers}'),
|
|
251
251
|
clickFocusSelectMode: (0, binding_1.Binding)([
|
|
252
252
|
// default is empty
|
|
@@ -45,8 +45,8 @@ import { ViewportScreenshotHelper } from './util/viewport-screenshot';
|
|
|
45
45
|
export declare class PluginContext {
|
|
46
46
|
spec: PluginSpec;
|
|
47
47
|
runTask: <T>(task: Task<T>, params?: {
|
|
48
|
-
useOverlay?: boolean
|
|
49
|
-
}
|
|
48
|
+
useOverlay?: boolean;
|
|
49
|
+
}) => Promise<T>;
|
|
50
50
|
resolveTask: <T>(object: T | Task<T> | undefined) => T | Promise<T> | undefined;
|
|
51
51
|
protected subs: Subscription[];
|
|
52
52
|
private disposed;
|
|
@@ -61,20 +61,7 @@ declare class PluginState extends PluginComponent {
|
|
|
61
61
|
durationInMs: number;
|
|
62
62
|
}>, "animate"> | PD.NamedParams<PD.Normalize<unknown>, "instant">>;
|
|
63
63
|
}>>>;
|
|
64
|
-
setSnapshotParams: (params?:
|
|
65
|
-
durationInMs: PD.Numeric;
|
|
66
|
-
data: PD.BooleanParam;
|
|
67
|
-
behavior: PD.BooleanParam;
|
|
68
|
-
componentManager: PD.BooleanParam;
|
|
69
|
-
animation: PD.BooleanParam;
|
|
70
|
-
startAnimation: PD.BooleanParam;
|
|
71
|
-
canvas3d: PD.BooleanParam;
|
|
72
|
-
interactivity: PD.BooleanParam;
|
|
73
|
-
camera: PD.BooleanParam;
|
|
74
|
-
cameraTransition: PD.Mapped<PD.NamedParams<PD.Normalize<{
|
|
75
|
-
durationInMs: number;
|
|
76
|
-
}>, "animate"> | PD.NamedParams<PD.Normalize<unknown>, "instant">>;
|
|
77
|
-
}>> | undefined) => void;
|
|
64
|
+
setSnapshotParams: (params?: PluginState.SnapshotParams) => void;
|
|
78
65
|
getSnapshot(params?: PluginState.SnapshotParams): PluginState.Snapshot;
|
|
79
66
|
setSnapshot(snapshot: PluginState.Snapshot): Promise<void>;
|
|
80
67
|
updateTransform(state: State, a: StateTransform.Ref, params: any, canUndo?: string | boolean): Promise<void>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2018-
|
|
2
|
+
* Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
|
+
* @author Aliaksei Chareshneu <chareshneu.tech@gmail.com>
|
|
6
7
|
*/
|
|
7
8
|
import { PluginContext } from '../../mol-plugin/context';
|
|
8
9
|
import { StateObjectSelector } from '../../mol-state';
|
|
@@ -20,7 +21,7 @@ export declare const Ccp4Provider: {
|
|
|
20
21
|
description: string;
|
|
21
22
|
category: string;
|
|
22
23
|
binaryExtensions: string[];
|
|
23
|
-
parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params
|
|
24
|
+
parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params) => Promise<{
|
|
24
25
|
format: StateObjectSelector<PluginStateObject.Format.Ccp4, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Data.Binary, PluginStateObject.Format.Ccp4, import("../../mol-util/param-definition").ParamDefinition.Normalize<{}>>>;
|
|
25
26
|
volume: StateObjectSelector<PluginStateObject.Volume.Data, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Format.Ccp4, PluginStateObject.Volume.Data, import("../../mol-util/param-definition").ParamDefinition.Normalize<{
|
|
26
27
|
voxelSize: import("../../mol-math/linear-algebra/3d/vec3").Vec3;
|
|
@@ -35,7 +36,7 @@ export declare const Dsn6Provider: {
|
|
|
35
36
|
description: string;
|
|
36
37
|
category: string;
|
|
37
38
|
binaryExtensions: string[];
|
|
38
|
-
parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params
|
|
39
|
+
parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params) => Promise<{
|
|
39
40
|
format: StateObjectSelector<PluginStateObject.Format.Dsn6, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Data.Binary, PluginStateObject.Format.Dsn6, import("../../mol-util/param-definition").ParamDefinition.Normalize<{}>>>;
|
|
40
41
|
volume: StateObjectSelector<PluginStateObject.Volume.Data, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Format.Dsn6, PluginStateObject.Volume.Data, import("../../mol-util/param-definition").ParamDefinition.Normalize<{
|
|
41
42
|
voxelSize: import("../../mol-math/linear-algebra/3d/vec3").Vec3;
|
|
@@ -50,7 +51,7 @@ export declare const DxProvider: {
|
|
|
50
51
|
category: string;
|
|
51
52
|
stringExtensions: string[];
|
|
52
53
|
binaryExtensions: string[];
|
|
53
|
-
parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params
|
|
54
|
+
parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params) => Promise<{
|
|
54
55
|
volume: StateObjectSelector<PluginStateObject.Volume.Data, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Format.Dx, PluginStateObject.Volume.Data, import("../../mol-util/param-definition").ParamDefinition.Normalize<{}>>>;
|
|
55
56
|
}>;
|
|
56
57
|
visuals: typeof defaultVisuals;
|
|
@@ -60,7 +61,7 @@ export declare const CubeProvider: {
|
|
|
60
61
|
description: string;
|
|
61
62
|
category: string;
|
|
62
63
|
stringExtensions: string[];
|
|
63
|
-
parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params
|
|
64
|
+
parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params) => Promise<{
|
|
64
65
|
format: StateObjectSelector<PluginStateObject.Format.Cube, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Data.String, PluginStateObject.Format.Cube, import("../../mol-util/param-definition").ParamDefinition.Normalize<{}>>>;
|
|
65
66
|
volume: StateObjectSelector<PluginStateObject.Volume.Data, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Format.Cube, PluginStateObject.Volume.Data, import("../../mol-util/param-definition").ParamDefinition.Normalize<{
|
|
66
67
|
dataIndex: number;
|
|
@@ -102,7 +103,7 @@ export declare const DscifProvider: {
|
|
|
102
103
|
stringExtensions: string[];
|
|
103
104
|
binaryExtensions: string[];
|
|
104
105
|
isApplicable: (info: import("../../mol-util/file-info").FileInfo, data: string | Uint8Array) => boolean;
|
|
105
|
-
parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: DsCifParams
|
|
106
|
+
parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: DsCifParams) => Promise<{
|
|
106
107
|
volumes: StateObjectSelector<PluginStateObject.Volume.Data, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>[];
|
|
107
108
|
}>;
|
|
108
109
|
visuals: (plugin: PluginContext, data: {
|
|
@@ -114,7 +115,7 @@ export declare const BuiltInVolumeFormats: readonly [readonly ["ccp4", {
|
|
|
114
115
|
description: string;
|
|
115
116
|
category: string;
|
|
116
117
|
binaryExtensions: string[];
|
|
117
|
-
parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params
|
|
118
|
+
parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params) => Promise<{
|
|
118
119
|
format: StateObjectSelector<PluginStateObject.Format.Ccp4, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Data.Binary, PluginStateObject.Format.Ccp4, import("../../mol-util/param-definition").ParamDefinition.Normalize<{}>>>;
|
|
119
120
|
volume: StateObjectSelector<PluginStateObject.Volume.Data, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Format.Ccp4, PluginStateObject.Volume.Data, import("../../mol-util/param-definition").ParamDefinition.Normalize<{
|
|
120
121
|
voxelSize: import("../../mol-math/linear-algebra/3d/vec3").Vec3;
|
|
@@ -128,7 +129,7 @@ export declare const BuiltInVolumeFormats: readonly [readonly ["ccp4", {
|
|
|
128
129
|
description: string;
|
|
129
130
|
category: string;
|
|
130
131
|
binaryExtensions: string[];
|
|
131
|
-
parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params
|
|
132
|
+
parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params) => Promise<{
|
|
132
133
|
format: StateObjectSelector<PluginStateObject.Format.Dsn6, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Data.Binary, PluginStateObject.Format.Dsn6, import("../../mol-util/param-definition").ParamDefinition.Normalize<{}>>>;
|
|
133
134
|
volume: StateObjectSelector<PluginStateObject.Volume.Data, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Format.Dsn6, PluginStateObject.Volume.Data, import("../../mol-util/param-definition").ParamDefinition.Normalize<{
|
|
134
135
|
voxelSize: import("../../mol-math/linear-algebra/3d/vec3").Vec3;
|
|
@@ -141,7 +142,7 @@ export declare const BuiltInVolumeFormats: readonly [readonly ["ccp4", {
|
|
|
141
142
|
description: string;
|
|
142
143
|
category: string;
|
|
143
144
|
stringExtensions: string[];
|
|
144
|
-
parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params
|
|
145
|
+
parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params) => Promise<{
|
|
145
146
|
format: StateObjectSelector<PluginStateObject.Format.Cube, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Data.String, PluginStateObject.Format.Cube, import("../../mol-util/param-definition").ParamDefinition.Normalize<{}>>>;
|
|
146
147
|
volume: StateObjectSelector<PluginStateObject.Volume.Data, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Format.Cube, PluginStateObject.Volume.Data, import("../../mol-util/param-definition").ParamDefinition.Normalize<{
|
|
147
148
|
dataIndex: number;
|
|
@@ -178,7 +179,7 @@ export declare const BuiltInVolumeFormats: readonly [readonly ["ccp4", {
|
|
|
178
179
|
category: string;
|
|
179
180
|
stringExtensions: string[];
|
|
180
181
|
binaryExtensions: string[];
|
|
181
|
-
parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params
|
|
182
|
+
parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: Params) => Promise<{
|
|
182
183
|
volume: StateObjectSelector<PluginStateObject.Volume.Data, import("../../mol-state/transformer").StateTransformer<PluginStateObject.Format.Dx, PluginStateObject.Volume.Data, import("../../mol-util/param-definition").ParamDefinition.Normalize<{}>>>;
|
|
183
184
|
}>;
|
|
184
185
|
visuals: typeof defaultVisuals;
|
|
@@ -189,7 +190,7 @@ export declare const BuiltInVolumeFormats: readonly [readonly ["ccp4", {
|
|
|
189
190
|
stringExtensions: string[];
|
|
190
191
|
binaryExtensions: string[];
|
|
191
192
|
isApplicable: (info: import("../../mol-util/file-info").FileInfo, data: string | Uint8Array) => boolean;
|
|
192
|
-
parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: DsCifParams
|
|
193
|
+
parse: (plugin: PluginContext, data: import("../../mol-state").StateObjectRef<PluginStateObject.Data.String | PluginStateObject.Data.Binary>, params?: DsCifParams) => Promise<{
|
|
193
194
|
volumes: StateObjectSelector<PluginStateObject.Volume.Data, import("../../mol-state/transformer").StateTransformer<import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, import("../../mol-state/object").StateObject<any, import("../../mol-state/object").StateObject.Type<any>>, any>>[];
|
|
194
195
|
}>;
|
|
195
196
|
visuals: (plugin: PluginContext, data: {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2018-
|
|
3
|
+
* Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
6
6
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
7
|
+
* @author Aliaksei Chareshneu <chareshneu.tech@gmail.com>
|
|
7
8
|
*/
|
|
8
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
10
|
exports.BuiltInVolumeFormats = exports.DscifProvider = exports.CubeProvider = exports.DxProvider = exports.Dsn6Provider = exports.Ccp4Provider = exports.VolumeFormatCategory = void 0;
|
|
@@ -246,35 +247,41 @@ exports.DscifProvider = (0, provider_1.DataFormatProvider)({
|
|
|
246
247
|
},
|
|
247
248
|
parse: function (plugin, data, params) { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
248
249
|
var cifCell, b, blocks, volumes, i, _i, blocks_1, block, entryId, _a, volumes_1, v;
|
|
249
|
-
|
|
250
|
-
|
|
250
|
+
var _b;
|
|
251
|
+
return tslib_1.__generator(this, function (_c) {
|
|
252
|
+
switch (_c.label) {
|
|
251
253
|
case 0: return [4 /*yield*/, plugin.build().to(data).apply(transforms_1.StateTransforms.Data.ParseCif).commit()];
|
|
252
254
|
case 1:
|
|
253
|
-
cifCell =
|
|
255
|
+
cifCell = _c.sent();
|
|
254
256
|
b = plugin.build().to(cifCell);
|
|
255
|
-
blocks = cifCell.obj.data.blocks
|
|
256
|
-
if (blocks.length
|
|
257
|
-
throw new Error('
|
|
257
|
+
blocks = cifCell.obj.data.blocks;
|
|
258
|
+
if (blocks.length === 0)
|
|
259
|
+
throw new Error('no data blocks');
|
|
258
260
|
volumes = [];
|
|
259
261
|
i = 0;
|
|
260
262
|
for (_i = 0, blocks_1 = blocks; _i < blocks_1.length; _i++) {
|
|
261
263
|
block = blocks_1[_i];
|
|
264
|
+
// Skip "server" data block.
|
|
265
|
+
if (block.header.toUpperCase() === 'SERVER')
|
|
266
|
+
continue;
|
|
262
267
|
entryId = Array.isArray(params === null || params === void 0 ? void 0 : params.entryId) ? params === null || params === void 0 ? void 0 : params.entryId[i] : params === null || params === void 0 ? void 0 : params.entryId;
|
|
263
|
-
|
|
264
|
-
|
|
268
|
+
if (((_b = block.categories['volume_data_3d_info']) === null || _b === void 0 ? void 0 : _b.rowCount) > 0) {
|
|
269
|
+
volumes.push(b.apply(transforms_1.StateTransforms.Volume.VolumeFromDensityServerCif, { blockHeader: block.header, entryId: entryId }).selector);
|
|
270
|
+
i++;
|
|
271
|
+
}
|
|
265
272
|
}
|
|
266
273
|
return [4 /*yield*/, b.commit()];
|
|
267
274
|
case 2:
|
|
268
|
-
|
|
275
|
+
_c.sent();
|
|
269
276
|
_a = 0, volumes_1 = volumes;
|
|
270
|
-
|
|
277
|
+
_c.label = 3;
|
|
271
278
|
case 3:
|
|
272
279
|
if (!(_a < volumes_1.length)) return [3 /*break*/, 6];
|
|
273
280
|
v = volumes_1[_a];
|
|
274
281
|
return [4 /*yield*/, tryObtainRecommendedIsoValue(plugin, v.data)];
|
|
275
282
|
case 4:
|
|
276
|
-
|
|
277
|
-
|
|
283
|
+
_c.sent();
|
|
284
|
+
_c.label = 5;
|
|
278
285
|
case 5:
|
|
279
286
|
_a++;
|
|
280
287
|
return [3 /*break*/, 3];
|
|
@@ -224,7 +224,7 @@ var helix = StructureSelectionQuery('Helix', builder_1.MolScriptBuilder.struct.m
|
|
|
224
224
|
'entity-test': _proteinEntityTest,
|
|
225
225
|
'residue-test': builder_1.MolScriptBuilder.core.flags.hasAny([
|
|
226
226
|
builder_1.MolScriptBuilder.ammp('secondaryStructureFlags'),
|
|
227
|
-
builder_1.MolScriptBuilder.core.type.bitflags([2 /* Helix */])
|
|
227
|
+
builder_1.MolScriptBuilder.core.type.bitflags([2 /* SecondaryStructureType.Flag.Helix */])
|
|
228
228
|
])
|
|
229
229
|
})
|
|
230
230
|
]), {
|
|
@@ -238,7 +238,7 @@ var beta = StructureSelectionQuery('Beta Strand/Sheet', builder_1.MolScriptBuild
|
|
|
238
238
|
'entity-test': _proteinEntityTest,
|
|
239
239
|
'residue-test': builder_1.MolScriptBuilder.core.flags.hasAny([
|
|
240
240
|
builder_1.MolScriptBuilder.ammp('secondaryStructureFlags'),
|
|
241
|
-
builder_1.MolScriptBuilder.core.type.bitflags([4 /* Beta */])
|
|
241
|
+
builder_1.MolScriptBuilder.core.type.bitflags([4 /* SecondaryStructureType.Flag.Beta */])
|
|
242
242
|
])
|
|
243
243
|
})
|
|
244
244
|
]), {
|
|
@@ -341,7 +341,7 @@ var ligandPlusConnected = StructureSelectionQuery('Ligand with Connected', build
|
|
|
341
341
|
'bond-test': builder_1.MolScriptBuilder.core.flags.hasAny([
|
|
342
342
|
builder_1.MolScriptBuilder.struct.bondProperty.flags(),
|
|
343
343
|
builder_1.MolScriptBuilder.core.type.bitflags([
|
|
344
|
-
1 /* Covalent */ | 2 /* MetallicCoordination */
|
|
344
|
+
1 /* BondType.Flag.Covalent */ | 2 /* BondType.Flag.MetallicCoordination */
|
|
345
345
|
])
|
|
346
346
|
])
|
|
347
347
|
})
|
|
@@ -385,7 +385,7 @@ var disulfideBridges = StructureSelectionQuery('Disulfide Bridges', builder_1.Mo
|
|
|
385
385
|
builder_1.MolScriptBuilder.struct.generator.bondedAtomicPairs({
|
|
386
386
|
0: builder_1.MolScriptBuilder.core.flags.hasAny([
|
|
387
387
|
builder_1.MolScriptBuilder.struct.bondProperty.flags(),
|
|
388
|
-
builder_1.MolScriptBuilder.core.type.bitflags([8 /* Disulfide */])
|
|
388
|
+
builder_1.MolScriptBuilder.core.type.bitflags([8 /* BondType.Flag.Disulfide */])
|
|
389
389
|
])
|
|
390
390
|
})
|
|
391
391
|
])
|
|
@@ -503,7 +503,7 @@ var covalentlyOrMetallicBonded = StructureSelectionQuery('Residues with Cov. or
|
|
|
503
503
|
'bond-test': builder_1.MolScriptBuilder.core.flags.hasAny([
|
|
504
504
|
builder_1.MolScriptBuilder.struct.bondProperty.flags(),
|
|
505
505
|
builder_1.MolScriptBuilder.core.type.bitflags([
|
|
506
|
-
1 /* Covalent */ | 2 /* MetallicCoordination */
|
|
506
|
+
1 /* BondType.Flag.Covalent */ | 2 /* BondType.Flag.MetallicCoordination */
|
|
507
507
|
])
|
|
508
508
|
])
|
|
509
509
|
})
|