molstar 3.6.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -20
- package/README.md +202 -202
- package/build/viewer/embedded.html +43 -43
- package/build/viewer/index.html +106 -106
- package/build/viewer/molstar.css +1 -1
- package/build/viewer/molstar.js +1 -1
- package/build/viewer/molstar.js.LICENSE.txt +0 -15
- package/lib/apps/docking-viewer/index.html +36 -36
- package/lib/apps/viewer/embedded.html +43 -43
- package/lib/apps/viewer/index.html +106 -106
- package/lib/cli/chem-comp-dict/create-ions.d.ts +2 -1
- package/lib/cli/chem-comp-dict/create-ions.js +3 -2
- package/lib/cli/cifschema/index.js +1 -1
- package/lib/cli/cifschema/util/cif-dic.js +1 -0
- package/lib/commonjs/cli/chem-comp-dict/create-ions.d.ts +2 -1
- package/lib/commonjs/cli/chem-comp-dict/create-ions.js +3 -2
- package/lib/commonjs/cli/cifschema/index.js +1 -1
- package/lib/commonjs/cli/cifschema/util/cif-dic.js +1 -0
- package/lib/commonjs/examples/alpha-orbitals/index.js +20 -15
- package/lib/commonjs/examples/proteopedia-wrapper/coloring.d.ts +20 -5
- package/lib/commonjs/extensions/anvil/behavior.d.ts +1 -1
- package/lib/commonjs/extensions/anvil/representation.d.ts +4 -4
- package/lib/commonjs/extensions/cellpack/representation.d.ts +1 -1
- package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +3 -3
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +1 -1
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.d.ts +1 -1
- package/lib/commonjs/extensions/rcsb/graphql/types.d.ts +284 -0
- package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +5 -5
- package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +2 -2
- 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-canvas3d/helper/helper.d.ts +2 -2
- package/lib/commonjs/mol-canvas3d/passes/draw.d.ts +0 -2
- package/lib/commonjs/mol-canvas3d/passes/draw.js +35 -70
- package/lib/commonjs/mol-canvas3d/passes/image.d.ts +1 -1
- package/lib/commonjs/mol-canvas3d/passes/pick.d.ts +1 -1
- package/lib/commonjs/mol-canvas3d/passes/pick.js +1 -1
- package/lib/commonjs/mol-canvas3d/passes/postprocessing.d.ts +1 -0
- package/lib/commonjs/mol-canvas3d/passes/postprocessing.js +16 -11
- package/lib/commonjs/mol-geo/geometry/color-data.d.ts +7 -10
- package/lib/commonjs/mol-geo/geometry/color-data.js +7 -4
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +2 -2
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.js +3 -2
- package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +1 -0
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.js +3 -2
- package/lib/commonjs/mol-geo/geometry/points/points.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.js +3 -2
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js +15 -4
- package/lib/commonjs/mol-geo/geometry/transparency-data.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/transparency-data.js +3 -1
- package/lib/commonjs/mol-gl/renderable/cylinders.d.ts +2 -1
- package/lib/commonjs/mol-gl/renderable/cylinders.js +2 -2
- package/lib/commonjs/mol-gl/renderable/mesh.d.ts +2 -1
- package/lib/commonjs/mol-gl/renderable/mesh.js +2 -2
- package/lib/commonjs/mol-gl/renderable/schema.d.ts +2 -2
- package/lib/commonjs/mol-gl/renderable/schema.js +2 -2
- package/lib/commonjs/mol-gl/renderable/spheres.d.ts +2 -1
- package/lib/commonjs/mol-gl/renderable/spheres.js +2 -2
- package/lib/commonjs/mol-gl/renderable/texture-mesh.d.ts +2 -1
- package/lib/commonjs/mol-gl/renderable/texture-mesh.js +2 -2
- package/lib/commonjs/mol-gl/renderer.d.ts +5 -5
- package/lib/commonjs/mol-gl/renderer.js +114 -64
- package/lib/commonjs/mol-gl/scene.d.ts +1 -0
- package/lib/commonjs/mol-gl/scene.js +26 -1
- package/lib/commonjs/mol-gl/shader/chunks/apply-interior-color.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/apply-interior-color.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/check-picking-alpha.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/check-picking-alpha.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/chunks/common-frag-params.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/common-frag-params.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/common.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/common.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/wboit-write.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/wboit-write.glsl.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/outlines.frag.d.ts +3 -2
- package/lib/commonjs/mol-gl/shader/outlines.frag.js +3 -2
- package/lib/commonjs/mol-gl/shader/postprocessing.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/postprocessing.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/ssao.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/ssao.frag.js +2 -2
- package/lib/commonjs/mol-gl/webgl/render-target.d.ts +3 -1
- package/lib/commonjs/mol-gl/webgl/render-target.js +3 -1
- package/lib/commonjs/mol-gl/webgl/renderbuffer.d.ts +2 -1
- package/lib/commonjs/mol-gl/webgl/renderbuffer.js +8 -1
- package/lib/commonjs/mol-gl/webgl/state.d.ts +7 -1
- package/lib/commonjs/mol-gl/webgl/state.js +28 -1
- package/lib/commonjs/mol-gl/webgl/texture.js +3 -0
- package/lib/commonjs/mol-io/reader/cif/schema/bird.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/bird.js +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/ccd.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/ccd.js +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/cif-core.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/cif-core.js +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +3 -4
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +2 -3
- package/lib/commonjs/mol-io/reader/dx/parser.js +1 -1
- package/lib/commonjs/mol-io/writer/ligand-encoder.d.ts +4 -2
- package/lib/commonjs/mol-io/writer/ligand-encoder.js +9 -4
- package/lib/commonjs/mol-io/writer/mol/encoder.js +16 -4
- package/lib/commonjs/mol-io/writer/mol2/encoder.js +17 -4
- package/lib/commonjs/mol-math/geometry/lookup3d/grid.d.ts +1 -1
- package/lib/commonjs/mol-math/geometry/lookup3d/grid.js +3 -3
- package/lib/commonjs/mol-model/structure/model/properties/seconday-structure.d.ts +4 -2
- package/lib/commonjs/mol-model/structure/model/properties/seconday-structure.js +2 -1
- package/lib/commonjs/mol-model/structure/model/types/ions.d.ts +2 -2
- package/lib/commonjs/mol-model/structure/model/types/ions.js +2 -2
- package/lib/commonjs/mol-model/structure/model/types/saccharides.js +1 -1
- package/lib/commonjs/mol-model/structure/model/types.d.ts +1 -1
- package/lib/commonjs/mol-model/structure/model/types.js +43 -41
- package/lib/commonjs/mol-model-formats/shape/ply.d.ts +2 -2
- package/lib/commonjs/mol-model-formats/structure/common/property.js +2 -0
- package/lib/commonjs/mol-model-formats/structure/property/secondary-structure.d.ts +1 -1
- package/lib/commonjs/mol-model-formats/structure/property/secondary-structure.js +2 -2
- package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -1
- package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +1 -1
- package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +3 -3
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +4 -4
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +3 -2
- package/lib/commonjs/mol-plugin/commands.d.ts +1 -1
- package/lib/commonjs/mol-plugin/util/viewport-screenshot.d.ts +3 -3
- package/lib/commonjs/mol-plugin-state/helpers/root-structure.js +3 -1
- package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +6 -6
- package/lib/commonjs/mol-plugin-ui/base.d.ts +3 -1
- package/lib/commonjs/mol-plugin-ui/controls/color.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/controls/common.d.ts +2 -0
- package/lib/commonjs/mol-plugin-ui/hooks/use-behavior.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/hooks/use-behavior.js +21 -7
- package/lib/commonjs/mol-plugin-ui/plugin.d.ts +2 -0
- package/lib/commonjs/mol-plugin-ui/plugin.js +2 -2
- package/lib/commonjs/mol-plugin-ui/spec.d.ts +1 -0
- package/lib/commonjs/mol-plugin-ui/state/common.js +6 -7
- package/lib/commonjs/mol-plugin-ui/task.d.ts +2 -21
- package/lib/commonjs/mol-plugin-ui/task.js +39 -43
- package/lib/commonjs/mol-plugin-ui/viewport/help.d.ts +4 -1
- package/lib/commonjs/mol-repr/shape/loci/angle.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/loci/dihedral.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/loci/plane.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/params.d.ts +4 -4
- package/lib/commonjs/mol-repr/structure/registry.d.ts +10 -10
- package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/units-visual.d.ts +4 -4
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +4 -4
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/util.d.ts +1 -1
- package/lib/commonjs/mol-repr/util.js +1 -1
- package/lib/commonjs/mol-repr/volume/isosurface.d.ts +5 -5
- package/lib/commonjs/mol-repr/volume/registry.d.ts +1 -1
- package/lib/commonjs/mol-repr/volume/slice.js +1 -1
- package/lib/commonjs/mol-script/language/builder.d.ts +0 -1
- package/lib/commonjs/mol-theme/color/volume-value.d.ts +3 -2
- package/lib/commonjs/mol-theme/color/volume-value.js +1 -3
- package/lib/commonjs/mol-theme/color.d.ts +55 -39
- package/lib/commonjs/mol-theme/color.js +1 -1
- package/lib/commonjs/mol-theme/theme.d.ts +8 -7
- package/lib/commonjs/mol-theme/theme.js +1 -1
- package/lib/commonjs/servers/model/server/query.js +1 -3
- package/lib/commonjs/servers/model/version.d.ts +1 -1
- package/lib/commonjs/servers/model/version.js +1 -1
- package/lib/examples/alpha-orbitals/index.html +61 -61
- package/lib/examples/alpha-orbitals/index.js +20 -15
- package/lib/examples/basic-wrapper/index.html +137 -137
- package/lib/examples/lighting/index.html +88 -88
- package/lib/examples/proteopedia-wrapper/coloring.d.ts +20 -5
- package/lib/examples/proteopedia-wrapper/index.html +236 -236
- package/lib/extensions/anvil/behavior.d.ts +1 -1
- package/lib/extensions/anvil/representation.d.ts +4 -4
- package/lib/extensions/cellpack/representation.d.ts +1 -1
- package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +3 -3
- package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +1 -1
- package/lib/extensions/rcsb/assembly-symmetry/representation.d.ts +1 -1
- package/lib/extensions/rcsb/graphql/types.d.ts +284 -0
- package/lib/extensions/rcsb/validation-report/representation.d.ts +5 -5
- package/lib/mol-canvas3d/canvas3d.d.ts +2 -2
- 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-canvas3d/helper/helper.d.ts +2 -2
- package/lib/mol-canvas3d/passes/draw.d.ts +0 -2
- package/lib/mol-canvas3d/passes/draw.js +32 -67
- package/lib/mol-canvas3d/passes/image.d.ts +1 -1
- package/lib/mol-canvas3d/passes/pick.d.ts +1 -1
- package/lib/mol-canvas3d/passes/pick.js +1 -1
- package/lib/mol-canvas3d/passes/postprocessing.d.ts +1 -0
- package/lib/mol-canvas3d/passes/postprocessing.js +16 -11
- package/lib/mol-geo/geometry/color-data.d.ts +7 -10
- package/lib/mol-geo/geometry/color-data.js +7 -4
- package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +2 -2
- package/lib/mol-geo/geometry/cylinders/cylinders.js +3 -2
- package/lib/mol-geo/geometry/lines/lines.d.ts +1 -0
- package/lib/mol-geo/geometry/mesh/mesh.d.ts +1 -1
- package/lib/mol-geo/geometry/mesh/mesh.js +3 -2
- package/lib/mol-geo/geometry/points/points.d.ts +1 -1
- package/lib/mol-geo/geometry/spheres/spheres.d.ts +1 -1
- package/lib/mol-geo/geometry/spheres/spheres.js +3 -2
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +1 -1
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js +15 -4
- package/lib/mol-geo/geometry/transparency-data.d.ts +1 -1
- package/lib/mol-geo/geometry/transparency-data.js +3 -1
- package/lib/mol-gl/renderable/cylinders.d.ts +2 -1
- package/lib/mol-gl/renderable/cylinders.js +2 -2
- package/lib/mol-gl/renderable/mesh.d.ts +2 -1
- package/lib/mol-gl/renderable/mesh.js +2 -2
- package/lib/mol-gl/renderable/schema.d.ts +2 -2
- package/lib/mol-gl/renderable/schema.js +2 -2
- package/lib/mol-gl/renderable/spheres.d.ts +2 -1
- package/lib/mol-gl/renderable/spheres.js +2 -2
- package/lib/mol-gl/renderable/texture-mesh.d.ts +2 -1
- package/lib/mol-gl/renderable/texture-mesh.js +2 -2
- package/lib/mol-gl/renderer.d.ts +5 -5
- package/lib/mol-gl/renderer.js +114 -64
- package/lib/mol-gl/scene.d.ts +1 -0
- package/lib/mol-gl/scene.js +26 -1
- package/lib/mol-gl/shader/chunks/apply-interior-color.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/apply-interior-color.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/check-picking-alpha.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/check-picking-alpha.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/chunks/common-frag-params.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/common-frag-params.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/common.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/common.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/wboit-write.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/wboit-write.glsl.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/outlines.frag.d.ts +3 -2
- package/lib/mol-gl/shader/outlines.frag.js +3 -2
- package/lib/mol-gl/shader/postprocessing.frag.d.ts +1 -1
- package/lib/mol-gl/shader/postprocessing.frag.js +1 -1
- package/lib/mol-gl/shader/ssao.frag.d.ts +2 -2
- package/lib/mol-gl/shader/ssao.frag.js +2 -2
- package/lib/mol-gl/webgl/render-target.d.ts +3 -1
- package/lib/mol-gl/webgl/render-target.js +3 -1
- package/lib/mol-gl/webgl/renderbuffer.d.ts +2 -1
- package/lib/mol-gl/webgl/renderbuffer.js +8 -1
- package/lib/mol-gl/webgl/state.d.ts +7 -1
- package/lib/mol-gl/webgl/state.js +28 -1
- package/lib/mol-gl/webgl/texture.js +3 -0
- package/lib/mol-io/reader/cif/schema/bird.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema/bird.js +1 -1
- package/lib/mol-io/reader/cif/schema/ccd.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema/ccd.js +1 -1
- package/lib/mol-io/reader/cif/schema/cif-core.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema/cif-core.js +1 -1
- package/lib/mol-io/reader/cif/schema/mmcif.d.ts +3 -4
- package/lib/mol-io/reader/cif/schema/mmcif.js +2 -3
- package/lib/mol-io/reader/dx/parser.js +1 -1
- package/lib/mol-io/writer/ligand-encoder.d.ts +4 -2
- package/lib/mol-io/writer/ligand-encoder.js +9 -4
- package/lib/mol-io/writer/mol/encoder.js +16 -4
- package/lib/mol-io/writer/mol2/encoder.js +17 -4
- package/lib/mol-math/geometry/lookup3d/grid.d.ts +1 -1
- package/lib/mol-math/geometry/lookup3d/grid.js +3 -3
- package/lib/mol-model/structure/model/properties/seconday-structure.d.ts +4 -2
- package/lib/mol-model/structure/model/properties/seconday-structure.js +2 -1
- package/lib/mol-model/structure/model/types/ions.d.ts +2 -2
- package/lib/mol-model/structure/model/types/ions.js +2 -2
- package/lib/mol-model/structure/model/types/saccharides.js +1 -1
- package/lib/mol-model/structure/model/types.d.ts +1 -1
- package/lib/mol-model/structure/model/types.js +43 -41
- package/lib/mol-model-formats/shape/ply.d.ts +2 -2
- package/lib/mol-model-formats/structure/common/property.js +2 -0
- package/lib/mol-model-formats/structure/property/secondary-structure.d.ts +1 -1
- package/lib/mol-model-formats/structure/property/secondary-structure.js +2 -2
- package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -1
- package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +1 -1
- package/lib/mol-model-props/computed/representations/interactions.d.ts +3 -3
- package/lib/mol-model-props/integrative/cross-link-restraint/representation.d.ts +4 -4
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +3 -2
- package/lib/mol-plugin/commands.d.ts +1 -1
- package/lib/mol-plugin/util/viewport-screenshot.d.ts +3 -3
- package/lib/mol-plugin/version.js +2 -2
- package/lib/mol-plugin-state/helpers/root-structure.js +3 -1
- package/lib/mol-plugin-state/transforms/representation.d.ts +6 -6
- package/lib/mol-plugin-ui/base.d.ts +3 -1
- package/lib/mol-plugin-ui/controls/color.d.ts +1 -1
- package/lib/mol-plugin-ui/controls/common.d.ts +2 -0
- package/lib/mol-plugin-ui/hooks/use-behavior.d.ts +1 -1
- package/lib/mol-plugin-ui/hooks/use-behavior.js +20 -7
- package/lib/mol-plugin-ui/plugin.d.ts +2 -0
- package/lib/mol-plugin-ui/plugin.js +2 -2
- package/lib/mol-plugin-ui/skin/base/base.scss +32 -32
- package/lib/mol-plugin-ui/skin/base/components/controls-base.scss +333 -333
- package/lib/mol-plugin-ui/skin/base/components/controls.scss +418 -418
- package/lib/mol-plugin-ui/skin/base/components/help.scss +27 -27
- package/lib/mol-plugin-ui/skin/base/components/line-graph.scss +67 -67
- package/lib/mol-plugin-ui/skin/base/components/log.scss +100 -100
- package/lib/mol-plugin-ui/skin/base/components/misc.scss +643 -643
- package/lib/mol-plugin-ui/skin/base/components/sequence.scss +125 -125
- package/lib/mol-plugin-ui/skin/base/components/slider.scss +165 -165
- package/lib/mol-plugin-ui/skin/base/components/tasks.scss +99 -99
- package/lib/mol-plugin-ui/skin/base/components/toast.scss +83 -83
- package/lib/mol-plugin-ui/skin/base/components/transformer.scss +163 -163
- package/lib/mol-plugin-ui/skin/base/components/viewport.scss +128 -128
- package/lib/mol-plugin-ui/skin/base/layout/common.scss +71 -71
- package/lib/mol-plugin-ui/skin/base/layout/controls-landscape.scss +89 -89
- package/lib/mol-plugin-ui/skin/base/layout/controls-outside.scss +98 -98
- package/lib/mol-plugin-ui/skin/base/layout/controls-portrait.scss +108 -108
- package/lib/mol-plugin-ui/skin/base/layout.scss +40 -40
- package/lib/mol-plugin-ui/skin/base/logo.scss +12 -12
- package/lib/mol-plugin-ui/skin/base/normalize.scss +209 -209
- package/lib/mol-plugin-ui/skin/base/ui.scss +40 -40
- package/lib/mol-plugin-ui/skin/base/variables.scss +85 -85
- package/lib/mol-plugin-ui/skin/blue.scss +1 -1
- package/lib/mol-plugin-ui/skin/colors/blue.scss +23 -23
- package/lib/mol-plugin-ui/skin/colors/dark.scss +23 -23
- package/lib/mol-plugin-ui/skin/colors/light.scss +29 -29
- package/lib/mol-plugin-ui/skin/dark.scss +1 -1
- package/lib/mol-plugin-ui/skin/light.scss +1 -1
- package/lib/mol-plugin-ui/spec.d.ts +1 -0
- package/lib/mol-plugin-ui/state/common.js +7 -8
- package/lib/mol-plugin-ui/task.d.ts +2 -21
- package/lib/mol-plugin-ui/task.js +40 -46
- package/lib/mol-plugin-ui/viewport/help.d.ts +4 -1
- package/lib/mol-repr/shape/loci/angle.d.ts +1 -1
- package/lib/mol-repr/shape/loci/dihedral.d.ts +1 -1
- package/lib/mol-repr/shape/loci/orientation.d.ts +1 -1
- package/lib/mol-repr/shape/loci/plane.d.ts +1 -1
- package/lib/mol-repr/shape/model/unitcell.d.ts +1 -1
- package/lib/mol-repr/structure/complex-visual.d.ts +3 -3
- package/lib/mol-repr/structure/params.d.ts +4 -4
- package/lib/mol-repr/structure/registry.d.ts +10 -10
- package/lib/mol-repr/structure/representation/backbone.d.ts +3 -3
- package/lib/mol-repr/structure/representation/ball-and-stick.d.ts +3 -3
- package/lib/mol-repr/structure/representation/carbohydrate.d.ts +3 -3
- package/lib/mol-repr/structure/representation/cartoon.d.ts +3 -3
- package/lib/mol-repr/structure/representation/ellipsoid.d.ts +3 -3
- package/lib/mol-repr/structure/representation/gaussian-surface.d.ts +3 -3
- package/lib/mol-repr/structure/representation/molecular-surface.d.ts +3 -3
- package/lib/mol-repr/structure/representation/orientation.d.ts +3 -3
- package/lib/mol-repr/structure/representation/putty.d.ts +3 -3
- package/lib/mol-repr/structure/representation/spacefill.d.ts +3 -3
- package/lib/mol-repr/structure/units-visual.d.ts +4 -4
- package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +2 -2
- package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +2 -2
- package/lib/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +1 -1
- package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +1 -1
- package/lib/mol-repr/structure/visual/element-sphere.d.ts +2 -2
- package/lib/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +4 -4
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +2 -2
- package/lib/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -2
- package/lib/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -1
- package/lib/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -1
- package/lib/mol-repr/structure/visual/polymer-trace-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -1
- package/lib/mol-repr/util.d.ts +1 -1
- package/lib/mol-repr/util.js +1 -1
- package/lib/mol-repr/volume/isosurface.d.ts +5 -5
- package/lib/mol-repr/volume/registry.d.ts +1 -1
- package/lib/mol-repr/volume/slice.js +1 -1
- package/lib/mol-script/language/builder.d.ts +0 -1
- package/lib/mol-theme/color/volume-value.d.ts +3 -2
- package/lib/mol-theme/color/volume-value.js +2 -4
- package/lib/mol-theme/color.d.ts +55 -39
- package/lib/mol-theme/color.js +1 -1
- package/lib/mol-theme/theme.d.ts +8 -7
- package/lib/mol-theme/theme.js +1 -1
- package/lib/servers/model/server/query.js +1 -3
- package/lib/servers/model/version.d.ts +1 -1
- package/lib/servers/model/version.js +1 -1
- package/package.json +162 -162
|
@@ -415,47 +415,49 @@ export var SecondaryStructureType;
|
|
|
415
415
|
SecondaryStructureType.is = BitFlags.has;
|
|
416
416
|
SecondaryStructureType.create = BitFlags.create;
|
|
417
417
|
SecondaryStructureType.SecondaryStructureMmcif = {
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
418
|
+
helx_lh_27_p: 2 /* Helix */ | 32 /* LeftHanded */ | 1024 /* Helix27 */,
|
|
419
|
+
helx_lh_3t_p: 2 /* Helix */ | 32 /* LeftHanded */ | 2048 /* Helix3Ten */,
|
|
420
|
+
helx_lh_al_p: 2 /* Helix */ | 32 /* LeftHanded */ | 4096 /* HelixAlpha */,
|
|
421
|
+
helx_lh_a_n: 1 /* DoubleHelix */ | 32 /* LeftHanded */ | 524288 /* DoubleHelixA */,
|
|
422
|
+
helx_lh_b_n: 1 /* DoubleHelix */ | 32 /* LeftHanded */ | 1048576 /* DoubleHelixB */,
|
|
423
|
+
helx_lh_ga_p: 2 /* Helix */ | 32 /* LeftHanded */ | 8192 /* HelixGamma */,
|
|
424
|
+
helx_lh_n: 1 /* DoubleHelix */ | 32 /* LeftHanded */,
|
|
425
|
+
helx_lh_om_p: 2 /* Helix */ | 32 /* LeftHanded */ | 16384 /* HelixOmega */,
|
|
426
|
+
helx_lh_ot_n: 1 /* DoubleHelix */ | 32 /* LeftHanded */ | 131072 /* DoubleHelixOther */,
|
|
427
|
+
helx_lh_ot_p: 2 /* Helix */ | 32 /* LeftHanded */ | 512 /* HelixOther */,
|
|
428
|
+
helx_lh_p: 2 /* Helix */ | 32 /* LeftHanded */,
|
|
429
|
+
helx_lh_pi_p: 2 /* Helix */ | 32 /* LeftHanded */ | 32768 /* HelixPi */,
|
|
430
|
+
helx_lh_pp_p: 2 /* Helix */ | 32 /* LeftHanded */ | 65536 /* HelixPolyproline */,
|
|
431
|
+
helx_lh_z_n: 1 /* DoubleHelix */ | 32 /* LeftHanded */ | 262144 /* DoubleHelixZ */,
|
|
432
|
+
helx_n: 1 /* DoubleHelix */,
|
|
433
|
+
helx_ot_n: 1 /* DoubleHelix */,
|
|
434
|
+
helx_ot_p: 2 /* Helix */,
|
|
435
|
+
helx_p: 2 /* Helix */,
|
|
436
|
+
helx_rh_27_p: 2 /* Helix */ | 64 /* RightHanded */ | 1024 /* Helix27 */,
|
|
437
|
+
helx_rh_3t_p: 2 /* Helix */ | 64 /* RightHanded */ | 2048 /* Helix3Ten */,
|
|
438
|
+
helx_rh_al_p: 2 /* Helix */ | 64 /* RightHanded */ | 4096 /* HelixAlpha */,
|
|
439
|
+
helx_rh_a_n: 1 /* DoubleHelix */ | 64 /* RightHanded */ | 524288 /* DoubleHelixA */,
|
|
440
|
+
helx_rh_b_n: 1 /* DoubleHelix */ | 64 /* RightHanded */ | 1048576 /* DoubleHelixB */,
|
|
441
|
+
helx_rh_ga_p: 2 /* Helix */ | 64 /* RightHanded */ | 8192 /* HelixGamma */,
|
|
442
|
+
helx_rh_n: 1 /* DoubleHelix */ | 64 /* RightHanded */,
|
|
443
|
+
helx_rh_om_p: 2 /* Helix */ | 64 /* RightHanded */ | 16384 /* HelixOmega */,
|
|
444
|
+
helx_rh_ot_n: 1 /* DoubleHelix */ | 64 /* RightHanded */ | 131072 /* DoubleHelixOther */,
|
|
445
|
+
helx_rh_ot_p: 2 /* Helix */ | 64 /* RightHanded */ | 512 /* HelixOther */,
|
|
446
|
+
helx_rh_p: 2 /* Helix */ | 64 /* RightHanded */,
|
|
447
|
+
helx_rh_pi_p: 2 /* Helix */ | 64 /* RightHanded */ | 32768 /* HelixPi */,
|
|
448
|
+
helx_rh_pp_p: 2 /* Helix */ | 64 /* RightHanded */ | 65536 /* HelixPolyproline */,
|
|
449
|
+
helx_rh_z_n: 1 /* DoubleHelix */ | 64 /* RightHanded */ | 262144 /* DoubleHelixZ */,
|
|
450
|
+
strn: 4 /* Beta */ | 4194304 /* BetaStrand */,
|
|
451
|
+
turn_ot_p: 16 /* Turn */ | 33554432 /* TurnOther */,
|
|
452
|
+
turn_p: 16 /* Turn */,
|
|
453
|
+
turn_ty1p_p: 16 /* Turn */ | 256 /* InverseTurn */ | 67108864 /* Turn1 */,
|
|
454
|
+
turn_ty1_p: 16 /* Turn */ | 128 /* ClassicTurn */ | 67108864 /* Turn1 */,
|
|
455
|
+
turn_ty2p_p: 16 /* Turn */ | 256 /* InverseTurn */ | 134217728 /* Turn2 */,
|
|
456
|
+
turn_ty2_p: 16 /* Turn */ | 128 /* ClassicTurn */ | 134217728 /* Turn2 */,
|
|
457
|
+
turn_ty3p_p: 16 /* Turn */ | 256 /* InverseTurn */ | 268435456 /* Turn3 */,
|
|
458
|
+
turn_ty3_p: 16 /* Turn */ | 128 /* ClassicTurn */ | 268435456 /* Turn3 */,
|
|
459
|
+
bend: 8 /* Bend */,
|
|
460
|
+
other: 0 /* None */, // secondary structure type that does not conform to an accepted category, random coil (protein)
|
|
459
461
|
};
|
|
460
462
|
SecondaryStructureType.SecondaryStructurePdb = {
|
|
461
463
|
1: 2 /* Helix */ | 64 /* RightHanded */ | 4096 /* HelixAlpha */,
|
|
@@ -30,7 +30,7 @@ export declare const PlyShapeParams: {
|
|
|
30
30
|
flatShaded: PD.BooleanParam;
|
|
31
31
|
ignoreLight: PD.BooleanParam;
|
|
32
32
|
xrayShaded: PD.BooleanParam;
|
|
33
|
-
|
|
33
|
+
transparentBackfaces: PD.Select<string>;
|
|
34
34
|
bumpFrequency: PD.Numeric;
|
|
35
35
|
bumpAmplitude: PD.Numeric;
|
|
36
36
|
alpha: PD.Numeric;
|
|
@@ -72,7 +72,7 @@ export declare function shapeFromPly(source: PlyFile, params?: {}): Task<ShapePr
|
|
|
72
72
|
flatShaded: PD.BooleanParam;
|
|
73
73
|
ignoreLight: PD.BooleanParam;
|
|
74
74
|
xrayShaded: PD.BooleanParam;
|
|
75
|
-
|
|
75
|
+
transparentBackfaces: PD.Select<string>;
|
|
76
76
|
bumpFrequency: PD.Numeric;
|
|
77
77
|
bumpAmplitude: PD.Numeric;
|
|
78
78
|
alpha: PD.Numeric;
|
|
@@ -22,6 +22,8 @@ var FormatRegistry = /** @class */ (function () {
|
|
|
22
22
|
return this.map.get(kind);
|
|
23
23
|
};
|
|
24
24
|
FormatRegistry.prototype.isApplicable = function (model) {
|
|
25
|
+
if (!this.map.has(model.sourceData.kind))
|
|
26
|
+
return false;
|
|
25
27
|
var isApplicable = this.applicable.get(model.sourceData.kind);
|
|
26
28
|
return isApplicable ? isApplicable(model) : true;
|
|
27
29
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
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>
|
|
@@ -1,5 +1,5 @@
|
|
|
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>
|
|
@@ -63,7 +63,7 @@ function addHelices(cat, coordinates, map, elements) {
|
|
|
63
63
|
var element = {
|
|
64
64
|
kind: 'helix',
|
|
65
65
|
flags: type,
|
|
66
|
-
type_id: conf_type_id.valueKind(i) === 0 /* Present */ ? conf_type_id.value(i) : '
|
|
66
|
+
type_id: conf_type_id.valueKind(i) === 0 /* Present */ ? conf_type_id.value(i) : 'helx_p',
|
|
67
67
|
helix_class: pdbx_PDB_helix_class.value(i),
|
|
68
68
|
details: details.valueKind(i) === 0 /* Present */ ? details.value(i) : void 0
|
|
69
69
|
};
|
|
@@ -25,7 +25,7 @@ export declare const InteractionsInterUnitParams: {
|
|
|
25
25
|
flatShaded: PD.BooleanParam;
|
|
26
26
|
ignoreLight: PD.BooleanParam;
|
|
27
27
|
xrayShaded: PD.BooleanParam;
|
|
28
|
-
|
|
28
|
+
transparentBackfaces: PD.Select<string>;
|
|
29
29
|
bumpFrequency: PD.Numeric;
|
|
30
30
|
bumpAmplitude: PD.Numeric;
|
|
31
31
|
alpha: PD.Numeric;
|
|
@@ -25,7 +25,7 @@ export declare const InteractionsIntraUnitParams: {
|
|
|
25
25
|
flatShaded: PD.BooleanParam;
|
|
26
26
|
ignoreLight: PD.BooleanParam;
|
|
27
27
|
xrayShaded: PD.BooleanParam;
|
|
28
|
-
|
|
28
|
+
transparentBackfaces: PD.Select<string>;
|
|
29
29
|
bumpFrequency: PD.Numeric;
|
|
30
30
|
bumpAmplitude: PD.Numeric;
|
|
31
31
|
alpha: PD.Numeric;
|
|
@@ -29,7 +29,7 @@ export declare const InteractionsParams: {
|
|
|
29
29
|
flatShaded: PD.BooleanParam;
|
|
30
30
|
ignoreLight: PD.BooleanParam;
|
|
31
31
|
xrayShaded: PD.BooleanParam;
|
|
32
|
-
|
|
32
|
+
transparentBackfaces: PD.Select<string>;
|
|
33
33
|
bumpFrequency: PD.Numeric;
|
|
34
34
|
bumpAmplitude: PD.Numeric;
|
|
35
35
|
alpha: PD.Numeric;
|
|
@@ -72,7 +72,7 @@ export declare function getInteractionParams(ctx: ThemeRegistryContext, structur
|
|
|
72
72
|
flatShaded: PD.BooleanParam;
|
|
73
73
|
ignoreLight: PD.BooleanParam;
|
|
74
74
|
xrayShaded: PD.BooleanParam;
|
|
75
|
-
|
|
75
|
+
transparentBackfaces: PD.Select<string>;
|
|
76
76
|
bumpFrequency: PD.Numeric;
|
|
77
77
|
bumpAmplitude: PD.Numeric;
|
|
78
78
|
alpha: PD.Numeric;
|
|
@@ -116,7 +116,7 @@ export declare const InteractionsRepresentationProvider: StructureRepresentation
|
|
|
116
116
|
flatShaded: PD.BooleanParam;
|
|
117
117
|
ignoreLight: PD.BooleanParam;
|
|
118
118
|
xrayShaded: PD.BooleanParam;
|
|
119
|
-
|
|
119
|
+
transparentBackfaces: PD.Select<string>;
|
|
120
120
|
bumpFrequency: PD.Numeric;
|
|
121
121
|
bumpAmplitude: PD.Numeric;
|
|
122
122
|
alpha: PD.Numeric;
|
|
@@ -30,7 +30,7 @@ export declare const CrossLinkRestraintCylinderParams: {
|
|
|
30
30
|
flatShaded: PD.BooleanParam;
|
|
31
31
|
ignoreLight: PD.BooleanParam;
|
|
32
32
|
xrayShaded: PD.BooleanParam;
|
|
33
|
-
|
|
33
|
+
transparentBackfaces: PD.Select<string>;
|
|
34
34
|
bumpFrequency: PD.Numeric;
|
|
35
35
|
bumpAmplitude: PD.Numeric;
|
|
36
36
|
alpha: PD.Numeric;
|
|
@@ -73,7 +73,7 @@ export declare const CrossLinkRestraintParams: {
|
|
|
73
73
|
flatShaded: PD.BooleanParam;
|
|
74
74
|
ignoreLight: PD.BooleanParam;
|
|
75
75
|
xrayShaded: PD.BooleanParam;
|
|
76
|
-
|
|
76
|
+
transparentBackfaces: PD.Select<string>;
|
|
77
77
|
bumpFrequency: PD.Numeric;
|
|
78
78
|
bumpAmplitude: PD.Numeric;
|
|
79
79
|
alpha: PD.Numeric;
|
|
@@ -115,7 +115,7 @@ export declare function getCrossLinkRestraintParams(ctx: ThemeRegistryContext, s
|
|
|
115
115
|
flatShaded: PD.BooleanParam;
|
|
116
116
|
ignoreLight: PD.BooleanParam;
|
|
117
117
|
xrayShaded: PD.BooleanParam;
|
|
118
|
-
|
|
118
|
+
transparentBackfaces: PD.Select<string>;
|
|
119
119
|
bumpFrequency: PD.Numeric;
|
|
120
120
|
bumpAmplitude: PD.Numeric;
|
|
121
121
|
alpha: PD.Numeric;
|
|
@@ -158,7 +158,7 @@ export declare const CrossLinkRestraintRepresentationProvider: StructureRepresen
|
|
|
158
158
|
flatShaded: PD.BooleanParam;
|
|
159
159
|
ignoreLight: PD.BooleanParam;
|
|
160
160
|
xrayShaded: PD.BooleanParam;
|
|
161
|
-
|
|
161
|
+
transparentBackfaces: PD.Select<string>;
|
|
162
162
|
bumpFrequency: PD.Numeric;
|
|
163
163
|
bumpAmplitude: PD.Numeric;
|
|
164
164
|
alpha: PD.Numeric;
|
|
@@ -9,12 +9,12 @@ import { Volume } from '../../../../mol-model/volume';
|
|
|
9
9
|
import { Structure } from '../../../../mol-model/structure';
|
|
10
10
|
declare const VolumeServerInfo_base: {
|
|
11
11
|
new (data: VolumeServerInfo.Data, props?: {
|
|
12
|
-
/** Precision data the server can show. */
|
|
13
|
-
label: string;
|
|
12
|
+
label: string; /** Precision data the server can show. */
|
|
14
13
|
description?: string | undefined;
|
|
15
14
|
} | undefined): {
|
|
16
15
|
id: import("../../../../mol-util/uuid").UUID;
|
|
17
16
|
type: PluginStateObject.TypeInfo;
|
|
17
|
+
/** The value are stored in blockSize^3 cubes */
|
|
18
18
|
label: string;
|
|
19
19
|
description?: string | undefined;
|
|
20
20
|
data: VolumeServerInfo.Data;
|
|
@@ -23,6 +23,7 @@ declare const VolumeServerInfo_base: {
|
|
|
23
23
|
is(obj?: import("../../../../mol-state/object").StateObject<any, import("../../../../mol-state/object").StateObject.Type<any>> | undefined): obj is {
|
|
24
24
|
id: import("../../../../mol-util/uuid").UUID;
|
|
25
25
|
type: PluginStateObject.TypeInfo;
|
|
26
|
+
/** The value are stored in blockSize^3 cubes */
|
|
26
27
|
label: string;
|
|
27
28
|
description?: string | undefined;
|
|
28
29
|
data: VolumeServerInfo.Data;
|
|
@@ -37,7 +37,7 @@ declare class ViewportScreenshotHelper extends PluginComponent {
|
|
|
37
37
|
flipSided: boolean;
|
|
38
38
|
flatShaded: boolean;
|
|
39
39
|
xrayShaded: boolean;
|
|
40
|
-
|
|
40
|
+
transparentBackfaces: string;
|
|
41
41
|
bumpFrequency: number;
|
|
42
42
|
bumpAmplitude: number;
|
|
43
43
|
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest";
|
|
@@ -70,7 +70,7 @@ declare class ViewportScreenshotHelper extends PluginComponent {
|
|
|
70
70
|
flipSided: boolean;
|
|
71
71
|
flatShaded: boolean;
|
|
72
72
|
xrayShaded: boolean;
|
|
73
|
-
|
|
73
|
+
transparentBackfaces: string;
|
|
74
74
|
bumpFrequency: number;
|
|
75
75
|
bumpAmplitude: number;
|
|
76
76
|
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest";
|
|
@@ -111,7 +111,7 @@ declare class ViewportScreenshotHelper extends PluginComponent {
|
|
|
111
111
|
flipSided: boolean;
|
|
112
112
|
flatShaded: boolean;
|
|
113
113
|
xrayShaded: boolean;
|
|
114
|
-
|
|
114
|
+
transparentBackfaces: string;
|
|
115
115
|
bumpFrequency: number;
|
|
116
116
|
bumpAmplitude: number;
|
|
117
117
|
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export var PLUGIN_VERSION = '3.
|
|
2
|
-
export var PLUGIN_VERSION_DATE = new Date(typeof __MOLSTAR_DEBUG_TIMESTAMP__ !== 'undefined' ? __MOLSTAR_DEBUG_TIMESTAMP__ :
|
|
1
|
+
export var PLUGIN_VERSION = '3.8.0';
|
|
2
|
+
export var PLUGIN_VERSION_DATE = new Date(typeof __MOLSTAR_DEBUG_TIMESTAMP__ !== 'undefined' ? __MOLSTAR_DEBUG_TIMESTAMP__ : 1651360161830);
|
|
@@ -13,6 +13,7 @@ import { Vec3 } from '../../mol-math/linear-algebra';
|
|
|
13
13
|
import { Symmetry } from '../../mol-model/structure/model/properties/symmetry';
|
|
14
14
|
import { PluginStateObject as SO } from '../objects';
|
|
15
15
|
import { ModelSymmetry } from '../../mol-model-formats/structure/property/symmetry';
|
|
16
|
+
import { assertUnreachable } from '../../mol-util/type-helpers';
|
|
16
17
|
var CommonStructureParams = {
|
|
17
18
|
dynamicBonds: PD.Optional(PD.Boolean(false, { description: 'Ensure bonds are recalculated upon model changes. Also enables calculation of inter-unit bonds in water molecules and ions.' })),
|
|
18
19
|
};
|
|
@@ -195,7 +196,8 @@ export var RootStructureDefinition;
|
|
|
195
196
|
if (params.name === 'symmetry-assembly') {
|
|
196
197
|
return [2 /*return*/, buildSymmetryAssembly(ctx, model, params.params.generators, symmetry, props)];
|
|
197
198
|
}
|
|
198
|
-
|
|
199
|
+
assertUnreachable(params);
|
|
200
|
+
return [2 /*return*/];
|
|
199
201
|
});
|
|
200
202
|
});
|
|
201
203
|
}
|
|
@@ -150,7 +150,7 @@ declare const ModelUnitcell3D: StateTransformer<SO.Molecule.Model, SO.Shape.Repr
|
|
|
150
150
|
flatShaded: boolean;
|
|
151
151
|
ignoreLight: boolean;
|
|
152
152
|
xrayShaded: boolean;
|
|
153
|
-
|
|
153
|
+
transparentBackfaces: string;
|
|
154
154
|
bumpFrequency: number;
|
|
155
155
|
bumpAmplitude: number;
|
|
156
156
|
alpha: number;
|
|
@@ -173,7 +173,7 @@ declare const StructureBoundingBox3D: StateTransformer<SO.Molecule.Structure, SO
|
|
|
173
173
|
flatShaded: boolean;
|
|
174
174
|
ignoreLight: boolean;
|
|
175
175
|
xrayShaded: boolean;
|
|
176
|
-
|
|
176
|
+
transparentBackfaces: string;
|
|
177
177
|
bumpFrequency: number;
|
|
178
178
|
bumpAmplitude: number;
|
|
179
179
|
alpha: number;
|
|
@@ -278,7 +278,7 @@ declare const StructureSelectionsAngle3D: StateTransformer<SO.Molecule.Structure
|
|
|
278
278
|
flipSided: boolean;
|
|
279
279
|
flatShaded: boolean;
|
|
280
280
|
xrayShaded: boolean;
|
|
281
|
-
|
|
281
|
+
transparentBackfaces: string;
|
|
282
282
|
bumpFrequency: number;
|
|
283
283
|
bumpAmplitude: number;
|
|
284
284
|
lineSizeAttenuation: boolean;
|
|
@@ -330,7 +330,7 @@ declare const StructureSelectionsDihedral3D: StateTransformer<SO.Molecule.Struct
|
|
|
330
330
|
flipSided: boolean;
|
|
331
331
|
flatShaded: boolean;
|
|
332
332
|
xrayShaded: boolean;
|
|
333
|
-
|
|
333
|
+
transparentBackfaces: string;
|
|
334
334
|
bumpFrequency: number;
|
|
335
335
|
bumpAmplitude: number;
|
|
336
336
|
lineSizeAttenuation: boolean;
|
|
@@ -388,7 +388,7 @@ declare const StructureSelectionsOrientation3D: StateTransformer<SO.Molecule.Str
|
|
|
388
388
|
flatShaded: boolean;
|
|
389
389
|
ignoreLight: boolean;
|
|
390
390
|
xrayShaded: boolean;
|
|
391
|
-
|
|
391
|
+
transparentBackfaces: string;
|
|
392
392
|
bumpFrequency: number;
|
|
393
393
|
bumpAmplitude: number;
|
|
394
394
|
alpha: number;
|
|
@@ -414,7 +414,7 @@ declare const StructureSelectionsPlane3D: StateTransformer<SO.Molecule.Structure
|
|
|
414
414
|
flatShaded: boolean;
|
|
415
415
|
ignoreLight: boolean;
|
|
416
416
|
xrayShaded: boolean;
|
|
417
|
-
|
|
417
|
+
transparentBackfaces: string;
|
|
418
418
|
bumpFrequency: number;
|
|
419
419
|
bumpAmplitude: number;
|
|
420
420
|
alpha: number;
|
|
@@ -9,7 +9,9 @@ import { Observable } from 'rxjs';
|
|
|
9
9
|
import { PluginUIContext } from './context';
|
|
10
10
|
import { ColorAccent } from './controls/common';
|
|
11
11
|
export declare const PluginReactContext: React.Context<PluginUIContext>;
|
|
12
|
-
export declare abstract class PluginUIComponent<P = {}, S = {}, SS = {}> extends React.Component<P
|
|
12
|
+
export declare abstract class PluginUIComponent<P = {}, S = {}, SS = {}> extends React.Component<P & {
|
|
13
|
+
children?: any;
|
|
14
|
+
}, S, SS> {
|
|
13
15
|
static contextType: React.Context<PluginUIContext>;
|
|
14
16
|
readonly plugin: PluginUIContext;
|
|
15
17
|
private subs;
|
|
@@ -27,5 +27,5 @@ export declare class CombinedColorControl extends React.PureComponent<ParamProps
|
|
|
27
27
|
swatch(): JSX.Element;
|
|
28
28
|
render(): JSX.Element;
|
|
29
29
|
}
|
|
30
|
-
export declare function ColorOptions():
|
|
30
|
+
export declare function ColorOptions(): any;
|
|
31
31
|
export declare function ColorValueOption(color: Color): JSX.Element | null;
|
|
@@ -18,6 +18,7 @@ export declare class ControlGroup extends React.Component<{
|
|
|
18
18
|
noTopMargin?: boolean;
|
|
19
19
|
childrenClassName?: string;
|
|
20
20
|
maxHeight?: string;
|
|
21
|
+
children?: any;
|
|
21
22
|
}, {
|
|
22
23
|
isExpanded: boolean;
|
|
23
24
|
}> {
|
|
@@ -139,6 +140,7 @@ export declare class ToggleButton extends React.PureComponent<ToggleButtonProps>
|
|
|
139
140
|
render(): JSX.Element;
|
|
140
141
|
}
|
|
141
142
|
export declare class ExpandGroup extends React.PureComponent<{
|
|
143
|
+
children?: any;
|
|
142
144
|
header: string;
|
|
143
145
|
headerStyle?: React.CSSProperties;
|
|
144
146
|
initiallyExpanded?: boolean;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2020-
|
|
2
|
+
* Copyright (c) 2020-22 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
5
5
|
*/
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _a = useState({}), next = _a[1];
|
|
10
|
-
var current = useRef();
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { skip } from 'rxjs';
|
|
8
|
+
function useBehaviorLegacy(s) {
|
|
9
|
+
var _a = React.useState({}), next = _a[1];
|
|
10
|
+
var current = React.useRef();
|
|
11
11
|
current.current = s === null || s === void 0 ? void 0 : s.value;
|
|
12
|
-
useEffect(function () {
|
|
12
|
+
React.useEffect(function () {
|
|
13
13
|
if (!s) {
|
|
14
14
|
return;
|
|
15
15
|
}
|
|
@@ -21,3 +21,16 @@ export function useBehavior(s) {
|
|
|
21
21
|
}, [s]);
|
|
22
22
|
return s === null || s === void 0 ? void 0 : s.value;
|
|
23
23
|
}
|
|
24
|
+
function useBehaviorReact18(s) {
|
|
25
|
+
return React.useSyncExternalStore(React.useCallback(function (callback) {
|
|
26
|
+
var sub = s === null || s === void 0 ? void 0 : s.pipe(skip(1)).subscribe(callback);
|
|
27
|
+
return function () { return sub === null || sub === void 0 ? void 0 : sub.unsubscribe(); };
|
|
28
|
+
}, [s]), React.useCallback(function () { return s === null || s === void 0 ? void 0 : s.value; }, [s]));
|
|
29
|
+
}
|
|
30
|
+
var _useBehavior = !!React.useSyncExternalStore
|
|
31
|
+
? useBehaviorReact18
|
|
32
|
+
: useBehaviorLegacy;
|
|
33
|
+
// eslint-disable-next-line
|
|
34
|
+
export function useBehavior(s) {
|
|
35
|
+
return _useBehavior(s);
|
|
36
|
+
}
|
|
@@ -11,12 +11,14 @@ import { PluginUIComponent } from './base';
|
|
|
11
11
|
import { PluginUIContext } from './context';
|
|
12
12
|
export declare class Plugin extends React.Component<{
|
|
13
13
|
plugin: PluginUIContext;
|
|
14
|
+
children?: any;
|
|
14
15
|
}, {}> {
|
|
15
16
|
region(kind: 'left' | 'right' | 'bottom' | 'main', element: JSX.Element): JSX.Element;
|
|
16
17
|
render(): JSX.Element;
|
|
17
18
|
}
|
|
18
19
|
export declare class PluginContextContainer extends React.Component<{
|
|
19
20
|
plugin: PluginUIContext;
|
|
21
|
+
children?: any;
|
|
20
22
|
}> {
|
|
21
23
|
render(): JSX.Element;
|
|
22
24
|
}
|
|
@@ -134,11 +134,11 @@ var Layout = /** @class */ (function (_super) {
|
|
|
134
134
|
configurable: true
|
|
135
135
|
});
|
|
136
136
|
Layout.prototype.render = function () {
|
|
137
|
-
var _a, _b, _c, _d;
|
|
137
|
+
var _a, _b, _c, _d, _e;
|
|
138
138
|
var layout = this.plugin.layout.state;
|
|
139
139
|
var controls = ((_a = this.plugin.spec.components) === null || _a === void 0 ? void 0 : _a.controls) || {};
|
|
140
140
|
var viewport = ((_c = (_b = this.plugin.spec.components) === null || _b === void 0 ? void 0 : _b.viewport) === null || _c === void 0 ? void 0 : _c.view) || DefaultViewport;
|
|
141
|
-
return _jsx("div", __assign({ className: 'msp-plugin' }, { children: _jsxs("div", __assign({ className: this.layoutClassName, onDragEnter: this.onDragEnter }, { children: [_jsxs("div", __assign({ className: this.layoutVisibilityClassName }, { children: [this.region('main', viewport), layout.showControls && controls.top !== 'none' && this.region('top', controls.top || SequenceView), layout.showControls && controls.left !== 'none' && this.region('left', controls.left || LeftPanelControls), layout.showControls && controls.right !== 'none' && this.region('right', controls.right || ControlsWrapper), layout.showControls && controls.bottom !== 'none' && this.region('bottom', controls.bottom || Log)] })), !((_d = this.plugin.spec.components) === null || _d === void 0 ? void 0 : _d.hideTaskOverlay) && _jsx(OverlayTaskProgress, {}), _jsx(DragOverlay, { plugin: this.plugin, showDragOverlay: this.showDragOverlay })] })) }));
|
|
141
|
+
return _jsx("div", __assign({ className: 'msp-plugin' }, { children: _jsxs("div", __assign({ className: this.layoutClassName, onDragEnter: this.onDragEnter }, { children: [_jsxs("div", __assign({ className: this.layoutVisibilityClassName }, { children: [this.region('main', viewport), layout.showControls && controls.top !== 'none' && this.region('top', controls.top || SequenceView), layout.showControls && controls.left !== 'none' && this.region('left', controls.left || LeftPanelControls), layout.showControls && controls.right !== 'none' && this.region('right', controls.right || ControlsWrapper), layout.showControls && controls.bottom !== 'none' && this.region('bottom', controls.bottom || Log)] })), !((_d = this.plugin.spec.components) === null || _d === void 0 ? void 0 : _d.hideTaskOverlay) && _jsx(OverlayTaskProgress, {}), !((_e = this.plugin.spec.components) === null || _e === void 0 ? void 0 : _e.disableDragOverlay) && _jsx(DragOverlay, { plugin: this.plugin, showDragOverlay: this.showDragOverlay })] })) }));
|
|
142
142
|
};
|
|
143
143
|
return Layout;
|
|
144
144
|
}(PluginUIComponent));
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
@mixin user-select($select) {
|
|
3
|
-
-webkit-user-select: $select;
|
|
4
|
-
-moz-user-select: $select;
|
|
5
|
-
-ms-user-select: $select; // IE10+
|
|
6
|
-
user-select: $select;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.msp-plugin {
|
|
10
|
-
font-family: "Helvetica Neue", "Segoe UI", Helvetica, "Source Sans Pro", Arial, sans-serif;
|
|
11
|
-
font-size: 14px;
|
|
12
|
-
line-height: 1.42857143;
|
|
13
|
-
|
|
14
|
-
position: absolute;
|
|
15
|
-
left: 0;
|
|
16
|
-
top: 0;
|
|
17
|
-
right: 0;
|
|
18
|
-
bottom: 0;
|
|
19
|
-
|
|
20
|
-
@import 'variables';
|
|
21
|
-
|
|
22
|
-
@import "normalize";
|
|
23
|
-
|
|
24
|
-
@import 'layout';
|
|
25
|
-
@import 'ui';
|
|
26
|
-
@import 'logo';
|
|
27
|
-
|
|
28
|
-
.msp-plugin-content {
|
|
29
|
-
color: $font-color;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
background: $default-background;
|
|
1
|
+
|
|
2
|
+
@mixin user-select($select) {
|
|
3
|
+
-webkit-user-select: $select;
|
|
4
|
+
-moz-user-select: $select;
|
|
5
|
+
-ms-user-select: $select; // IE10+
|
|
6
|
+
user-select: $select;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.msp-plugin {
|
|
10
|
+
font-family: "Helvetica Neue", "Segoe UI", Helvetica, "Source Sans Pro", Arial, sans-serif;
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
line-height: 1.42857143;
|
|
13
|
+
|
|
14
|
+
position: absolute;
|
|
15
|
+
left: 0;
|
|
16
|
+
top: 0;
|
|
17
|
+
right: 0;
|
|
18
|
+
bottom: 0;
|
|
19
|
+
|
|
20
|
+
@import 'variables';
|
|
21
|
+
|
|
22
|
+
@import "normalize";
|
|
23
|
+
|
|
24
|
+
@import 'layout';
|
|
25
|
+
@import 'ui';
|
|
26
|
+
@import 'logo';
|
|
27
|
+
|
|
28
|
+
.msp-plugin-content {
|
|
29
|
+
color: $font-color;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
background: $default-background;
|
|
33
33
|
}
|