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
|
@@ -5,21 +5,6 @@
|
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
/*! *****************************************************************************
|
|
9
|
-
Copyright (c) Microsoft Corporation.
|
|
10
|
-
|
|
11
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
12
|
-
purpose with or without fee is hereby granted.
|
|
13
|
-
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
15
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
16
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
17
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
18
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
19
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
20
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
21
|
-
***************************************************************************** */
|
|
22
|
-
|
|
23
8
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
24
9
|
|
|
25
10
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
6
|
-
<title>Mol* Docking Viewer</title>
|
|
7
|
-
<style>
|
|
8
|
-
#app {
|
|
9
|
-
position: absolute;
|
|
10
|
-
left: 100px;
|
|
11
|
-
top: 100px;
|
|
12
|
-
width: 800px;
|
|
13
|
-
height: 600px;
|
|
14
|
-
}
|
|
15
|
-
</style>
|
|
16
|
-
<link rel="stylesheet" type="text/css" href="molstar.css" />
|
|
17
|
-
</head>
|
|
18
|
-
<body>
|
|
19
|
-
<div id="app"></div>
|
|
20
|
-
<script type="text/javascript" src="./molstar.js"></script>
|
|
21
|
-
<script type="text/javascript">
|
|
22
|
-
function getParam(name, regex) {
|
|
23
|
-
var r = new RegExp(name + '=' + '(' + regex + ')[&]?', 'i');
|
|
24
|
-
return decodeURIComponent(((window.location.search || '').match(r) || [])[1] || '');
|
|
25
|
-
}
|
|
26
|
-
var pdbqt = getParam('pdbqt', '[^&]+').trim() || '../../examples/ace2.pdbqt';
|
|
27
|
-
var mol2 = getParam('mol2', '[^&]+').trim() || '../../examples/ace2-hit.mol2';
|
|
28
|
-
|
|
29
|
-
DockingViewer.create('app', [0x33DD22, 0x1133EE], true).then(viewer => {
|
|
30
|
-
viewer.loadStructuresFromUrlsAndMerge([
|
|
31
|
-
{ url: pdbqt, format: 'pdbqt' },
|
|
32
|
-
{ url: mol2, format: 'mol2' }
|
|
33
|
-
]);
|
|
34
|
-
});
|
|
35
|
-
</script>
|
|
36
|
-
</body>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
6
|
+
<title>Mol* Docking Viewer</title>
|
|
7
|
+
<style>
|
|
8
|
+
#app {
|
|
9
|
+
position: absolute;
|
|
10
|
+
left: 100px;
|
|
11
|
+
top: 100px;
|
|
12
|
+
width: 800px;
|
|
13
|
+
height: 600px;
|
|
14
|
+
}
|
|
15
|
+
</style>
|
|
16
|
+
<link rel="stylesheet" type="text/css" href="molstar.css" />
|
|
17
|
+
</head>
|
|
18
|
+
<body>
|
|
19
|
+
<div id="app"></div>
|
|
20
|
+
<script type="text/javascript" src="./molstar.js"></script>
|
|
21
|
+
<script type="text/javascript">
|
|
22
|
+
function getParam(name, regex) {
|
|
23
|
+
var r = new RegExp(name + '=' + '(' + regex + ')[&]?', 'i');
|
|
24
|
+
return decodeURIComponent(((window.location.search || '').match(r) || [])[1] || '');
|
|
25
|
+
}
|
|
26
|
+
var pdbqt = getParam('pdbqt', '[^&]+').trim() || '../../examples/ace2.pdbqt';
|
|
27
|
+
var mol2 = getParam('mol2', '[^&]+').trim() || '../../examples/ace2-hit.mol2';
|
|
28
|
+
|
|
29
|
+
DockingViewer.create('app', [0x33DD22, 0x1133EE], true).then(viewer => {
|
|
30
|
+
viewer.loadStructuresFromUrlsAndMerge([
|
|
31
|
+
{ url: pdbqt, format: 'pdbqt' },
|
|
32
|
+
{ url: mol2, format: 'mol2' }
|
|
33
|
+
]);
|
|
34
|
+
});
|
|
35
|
+
</script>
|
|
36
|
+
</body>
|
|
37
37
|
</html>
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
6
|
-
<link rel="icon" href="./favicon.ico" type="image/x-icon">
|
|
7
|
-
<title>Embedded Mol* Viewer</title>
|
|
8
|
-
<style>
|
|
9
|
-
#app {
|
|
10
|
-
position: absolute;
|
|
11
|
-
left: 100px;
|
|
12
|
-
top: 100px;
|
|
13
|
-
width: 800px;
|
|
14
|
-
height: 600px;
|
|
15
|
-
}
|
|
16
|
-
</style>
|
|
17
|
-
<link rel="stylesheet" type="text/css" href="molstar.css" />
|
|
18
|
-
</head>
|
|
19
|
-
<body>
|
|
20
|
-
<div id="app"></div>
|
|
21
|
-
<script type="text/javascript" src="./molstar.js"></script>
|
|
22
|
-
<script type="text/javascript">
|
|
23
|
-
molstar.Viewer.create('app', {
|
|
24
|
-
layoutIsExpanded: true,
|
|
25
|
-
layoutShowControls: false,
|
|
26
|
-
layoutShowRemoteState: false,
|
|
27
|
-
layoutShowSequence: true,
|
|
28
|
-
layoutShowLog: false,
|
|
29
|
-
layoutShowLeftPanel: true,
|
|
30
|
-
|
|
31
|
-
viewportShowExpand: true,
|
|
32
|
-
viewportShowSelectionMode: false,
|
|
33
|
-
viewportShowAnimation: false,
|
|
34
|
-
|
|
35
|
-
pdbProvider: 'rcsb',
|
|
36
|
-
emdbProvider: 'rcsb',
|
|
37
|
-
}).then(viewer => {
|
|
38
|
-
viewer.loadPdb('7bv2');
|
|
39
|
-
viewer.loadEmdb('EMD-30210', { detail: 6 });
|
|
40
|
-
// viewer.loadAllModelsOrAssemblyFromUrl('https://cs.litemol.org/5ire/full', 'mmcif', false, { representationParams: { theme: { globalName: 'operator-name' } } })
|
|
41
|
-
});
|
|
42
|
-
</script>
|
|
43
|
-
</body>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
6
|
+
<link rel="icon" href="./favicon.ico" type="image/x-icon">
|
|
7
|
+
<title>Embedded Mol* Viewer</title>
|
|
8
|
+
<style>
|
|
9
|
+
#app {
|
|
10
|
+
position: absolute;
|
|
11
|
+
left: 100px;
|
|
12
|
+
top: 100px;
|
|
13
|
+
width: 800px;
|
|
14
|
+
height: 600px;
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
<link rel="stylesheet" type="text/css" href="molstar.css" />
|
|
18
|
+
</head>
|
|
19
|
+
<body>
|
|
20
|
+
<div id="app"></div>
|
|
21
|
+
<script type="text/javascript" src="./molstar.js"></script>
|
|
22
|
+
<script type="text/javascript">
|
|
23
|
+
molstar.Viewer.create('app', {
|
|
24
|
+
layoutIsExpanded: true,
|
|
25
|
+
layoutShowControls: false,
|
|
26
|
+
layoutShowRemoteState: false,
|
|
27
|
+
layoutShowSequence: true,
|
|
28
|
+
layoutShowLog: false,
|
|
29
|
+
layoutShowLeftPanel: true,
|
|
30
|
+
|
|
31
|
+
viewportShowExpand: true,
|
|
32
|
+
viewportShowSelectionMode: false,
|
|
33
|
+
viewportShowAnimation: false,
|
|
34
|
+
|
|
35
|
+
pdbProvider: 'rcsb',
|
|
36
|
+
emdbProvider: 'rcsb',
|
|
37
|
+
}).then(viewer => {
|
|
38
|
+
viewer.loadPdb('7bv2');
|
|
39
|
+
viewer.loadEmdb('EMD-30210', { detail: 6 });
|
|
40
|
+
// viewer.loadAllModelsOrAssemblyFromUrl('https://cs.litemol.org/5ire/full', 'mmcif', false, { representationParams: { theme: { globalName: 'operator-name' } } })
|
|
41
|
+
});
|
|
42
|
+
</script>
|
|
43
|
+
</body>
|
|
44
44
|
</html>
|
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
6
|
-
<link rel="icon" href="./favicon.ico" type="image/x-icon">
|
|
7
|
-
<title>Mol* Viewer</title>
|
|
8
|
-
<style>
|
|
9
|
-
* {
|
|
10
|
-
margin: 0;
|
|
11
|
-
padding: 0;
|
|
12
|
-
box-sizing: border-box;
|
|
13
|
-
}
|
|
14
|
-
html, body {
|
|
15
|
-
width: 100%;
|
|
16
|
-
height: 100%;
|
|
17
|
-
overflow: hidden;
|
|
18
|
-
}
|
|
19
|
-
hr {
|
|
20
|
-
margin: 10px;
|
|
21
|
-
}
|
|
22
|
-
h1, h2, h3, h4, h5 {
|
|
23
|
-
margin-top: 5px;
|
|
24
|
-
margin-bottom: 3px;
|
|
25
|
-
}
|
|
26
|
-
button {
|
|
27
|
-
padding: 2px;
|
|
28
|
-
}
|
|
29
|
-
#app {
|
|
30
|
-
position: absolute;
|
|
31
|
-
left: 100px;
|
|
32
|
-
top: 100px;
|
|
33
|
-
width: 800px;
|
|
34
|
-
height: 600px;
|
|
35
|
-
}
|
|
36
|
-
</style>
|
|
37
|
-
<link rel="stylesheet" type="text/css" href="molstar.css" />
|
|
38
|
-
</head>
|
|
39
|
-
<body>
|
|
40
|
-
<div id="app"></div>
|
|
41
|
-
<script type="text/javascript" src="./molstar.js"></script>
|
|
42
|
-
<script type="text/javascript">
|
|
43
|
-
function getParam(name, regex) {
|
|
44
|
-
var r = new RegExp(name + '=' + '(' + regex + ')[&]?', 'i');
|
|
45
|
-
return decodeURIComponent(((window.location.search || '').match(r) || [])[1] || '');
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
var debugMode = getParam('debug-mode', '[^&]+').trim() === '1';
|
|
49
|
-
if (debugMode) molstar.setDebugMode(debugMode, debugMode);
|
|
50
|
-
|
|
51
|
-
var hideControls = getParam('hide-controls', '[^&]+').trim() === '1';
|
|
52
|
-
var collapseLeftPanel = getParam('collapse-left-panel', '[^&]+').trim() === '1';
|
|
53
|
-
var pdbProvider = getParam('pdb-provider', '[^&]+').trim().toLowerCase();
|
|
54
|
-
var emdbProvider = getParam('emdb-provider', '[^&]+').trim().toLowerCase();
|
|
55
|
-
var mapProvider = getParam('map-provider', '[^&]+').trim().toLowerCase();
|
|
56
|
-
var pixelScale = getParam('pixel-scale', '[^&]+').trim();
|
|
57
|
-
var pickScale = getParam('pick-scale', '[^&]+').trim();
|
|
58
|
-
var pickPadding = getParam('pick-padding', '[^&]+').trim();
|
|
59
|
-
var disableWboit = getParam('disable-wboit', '[^&]+').trim() === '1';
|
|
60
|
-
var preferWebgl1 = getParam('prefer-webgl1', '[^&]+').trim() === '1' || void 0;
|
|
61
|
-
|
|
62
|
-
molstar.Viewer.create('app', {
|
|
63
|
-
layoutShowControls: !hideControls,
|
|
64
|
-
viewportShowExpand: false,
|
|
65
|
-
collapseLeftPanel: collapseLeftPanel,
|
|
66
|
-
pdbProvider: pdbProvider || 'pdbe',
|
|
67
|
-
emdbProvider: emdbProvider || 'pdbe',
|
|
68
|
-
volumeStreamingServer: (mapProvider || 'pdbe') === 'rcsb'
|
|
69
|
-
? 'https://maps.rcsb.org'
|
|
70
|
-
: 'https://www.ebi.ac.uk/pdbe/densities',
|
|
71
|
-
pixelScale: parseFloat(pixelScale) || 1,
|
|
72
|
-
pickScale: parseFloat(pickScale) || 0.25,
|
|
73
|
-
pickPadding: isNaN(parseFloat(pickPadding)) ? 1 : parseFloat(pickPadding),
|
|
74
|
-
enableWboit: disableWboit ? false : void 0, // use default value if disable-wboit is not set
|
|
75
|
-
preferWebgl1: preferWebgl1,
|
|
76
|
-
}).then(viewer => {
|
|
77
|
-
var snapshotId = getParam('snapshot-id', '[^&]+').trim();
|
|
78
|
-
if (snapshotId) viewer.setRemoteSnapshot(snapshotId);
|
|
79
|
-
|
|
80
|
-
var snapshotUrl = getParam('snapshot-url', '[^&]+').trim();
|
|
81
|
-
var snapshotUrlType = getParam('snapshot-url-type', '[^&]+').toLowerCase().trim() || 'molj';
|
|
82
|
-
if (snapshotUrl && snapshotUrlType) viewer.loadSnapshotFromUrl(snapshotUrl, snapshotUrlType);
|
|
83
|
-
|
|
84
|
-
var structureUrl = getParam('structure-url', '[^&]+').trim();
|
|
85
|
-
var structureUrlFormat = getParam('structure-url-format', '[a-z]+').toLowerCase().trim();
|
|
86
|
-
var structureUrlIsBinary = getParam('structure-url-is-binary', '[^&]+').trim() === '1';
|
|
87
|
-
if (structureUrl) viewer.loadStructureFromUrl(structureUrl, structureUrlFormat, structureUrlIsBinary);
|
|
88
|
-
|
|
89
|
-
var pdb = getParam('pdb', '[^&]+').trim();
|
|
90
|
-
if (pdb) viewer.loadPdb(pdb);
|
|
91
|
-
|
|
92
|
-
var pdbDev = getParam('pdb-dev', '[^&]+').trim();
|
|
93
|
-
if (pdbDev) viewer.loadPdbDev(pdbDev);
|
|
94
|
-
|
|
95
|
-
var emdb = getParam('emdb', '[^&]+').trim();
|
|
96
|
-
if (emdb) viewer.loadEmdb(emdb);
|
|
97
|
-
|
|
98
|
-
var afdb = getParam('afdb', '[^&]+').trim();
|
|
99
|
-
if (afdb) viewer.loadAlphaFoldDb(afdb);
|
|
100
|
-
|
|
101
|
-
var modelArchive = getParam('model-archive', '[^&]+').trim();
|
|
102
|
-
if (modelArchive) viewer.loadModelArchive(modelArchive);
|
|
103
|
-
});
|
|
104
|
-
</script>
|
|
105
|
-
<!-- __MOLSTAR_ANALYTICS__ -->
|
|
106
|
-
</body>
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
6
|
+
<link rel="icon" href="./favicon.ico" type="image/x-icon">
|
|
7
|
+
<title>Mol* Viewer</title>
|
|
8
|
+
<style>
|
|
9
|
+
* {
|
|
10
|
+
margin: 0;
|
|
11
|
+
padding: 0;
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
}
|
|
14
|
+
html, body {
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 100%;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
}
|
|
19
|
+
hr {
|
|
20
|
+
margin: 10px;
|
|
21
|
+
}
|
|
22
|
+
h1, h2, h3, h4, h5 {
|
|
23
|
+
margin-top: 5px;
|
|
24
|
+
margin-bottom: 3px;
|
|
25
|
+
}
|
|
26
|
+
button {
|
|
27
|
+
padding: 2px;
|
|
28
|
+
}
|
|
29
|
+
#app {
|
|
30
|
+
position: absolute;
|
|
31
|
+
left: 100px;
|
|
32
|
+
top: 100px;
|
|
33
|
+
width: 800px;
|
|
34
|
+
height: 600px;
|
|
35
|
+
}
|
|
36
|
+
</style>
|
|
37
|
+
<link rel="stylesheet" type="text/css" href="molstar.css" />
|
|
38
|
+
</head>
|
|
39
|
+
<body>
|
|
40
|
+
<div id="app"></div>
|
|
41
|
+
<script type="text/javascript" src="./molstar.js"></script>
|
|
42
|
+
<script type="text/javascript">
|
|
43
|
+
function getParam(name, regex) {
|
|
44
|
+
var r = new RegExp(name + '=' + '(' + regex + ')[&]?', 'i');
|
|
45
|
+
return decodeURIComponent(((window.location.search || '').match(r) || [])[1] || '');
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
var debugMode = getParam('debug-mode', '[^&]+').trim() === '1';
|
|
49
|
+
if (debugMode) molstar.setDebugMode(debugMode, debugMode);
|
|
50
|
+
|
|
51
|
+
var hideControls = getParam('hide-controls', '[^&]+').trim() === '1';
|
|
52
|
+
var collapseLeftPanel = getParam('collapse-left-panel', '[^&]+').trim() === '1';
|
|
53
|
+
var pdbProvider = getParam('pdb-provider', '[^&]+').trim().toLowerCase();
|
|
54
|
+
var emdbProvider = getParam('emdb-provider', '[^&]+').trim().toLowerCase();
|
|
55
|
+
var mapProvider = getParam('map-provider', '[^&]+').trim().toLowerCase();
|
|
56
|
+
var pixelScale = getParam('pixel-scale', '[^&]+').trim();
|
|
57
|
+
var pickScale = getParam('pick-scale', '[^&]+').trim();
|
|
58
|
+
var pickPadding = getParam('pick-padding', '[^&]+').trim();
|
|
59
|
+
var disableWboit = getParam('disable-wboit', '[^&]+').trim() === '1';
|
|
60
|
+
var preferWebgl1 = getParam('prefer-webgl1', '[^&]+').trim() === '1' || void 0;
|
|
61
|
+
|
|
62
|
+
molstar.Viewer.create('app', {
|
|
63
|
+
layoutShowControls: !hideControls,
|
|
64
|
+
viewportShowExpand: false,
|
|
65
|
+
collapseLeftPanel: collapseLeftPanel,
|
|
66
|
+
pdbProvider: pdbProvider || 'pdbe',
|
|
67
|
+
emdbProvider: emdbProvider || 'pdbe',
|
|
68
|
+
volumeStreamingServer: (mapProvider || 'pdbe') === 'rcsb'
|
|
69
|
+
? 'https://maps.rcsb.org'
|
|
70
|
+
: 'https://www.ebi.ac.uk/pdbe/densities',
|
|
71
|
+
pixelScale: parseFloat(pixelScale) || 1,
|
|
72
|
+
pickScale: parseFloat(pickScale) || 0.25,
|
|
73
|
+
pickPadding: isNaN(parseFloat(pickPadding)) ? 1 : parseFloat(pickPadding),
|
|
74
|
+
enableWboit: disableWboit ? false : void 0, // use default value if disable-wboit is not set
|
|
75
|
+
preferWebgl1: preferWebgl1,
|
|
76
|
+
}).then(viewer => {
|
|
77
|
+
var snapshotId = getParam('snapshot-id', '[^&]+').trim();
|
|
78
|
+
if (snapshotId) viewer.setRemoteSnapshot(snapshotId);
|
|
79
|
+
|
|
80
|
+
var snapshotUrl = getParam('snapshot-url', '[^&]+').trim();
|
|
81
|
+
var snapshotUrlType = getParam('snapshot-url-type', '[^&]+').toLowerCase().trim() || 'molj';
|
|
82
|
+
if (snapshotUrl && snapshotUrlType) viewer.loadSnapshotFromUrl(snapshotUrl, snapshotUrlType);
|
|
83
|
+
|
|
84
|
+
var structureUrl = getParam('structure-url', '[^&]+').trim();
|
|
85
|
+
var structureUrlFormat = getParam('structure-url-format', '[a-z]+').toLowerCase().trim();
|
|
86
|
+
var structureUrlIsBinary = getParam('structure-url-is-binary', '[^&]+').trim() === '1';
|
|
87
|
+
if (structureUrl) viewer.loadStructureFromUrl(structureUrl, structureUrlFormat, structureUrlIsBinary);
|
|
88
|
+
|
|
89
|
+
var pdb = getParam('pdb', '[^&]+').trim();
|
|
90
|
+
if (pdb) viewer.loadPdb(pdb);
|
|
91
|
+
|
|
92
|
+
var pdbDev = getParam('pdb-dev', '[^&]+').trim();
|
|
93
|
+
if (pdbDev) viewer.loadPdbDev(pdbDev);
|
|
94
|
+
|
|
95
|
+
var emdb = getParam('emdb', '[^&]+').trim();
|
|
96
|
+
if (emdb) viewer.loadEmdb(emdb);
|
|
97
|
+
|
|
98
|
+
var afdb = getParam('afdb', '[^&]+').trim();
|
|
99
|
+
if (afdb) viewer.loadAlphaFoldDb(afdb);
|
|
100
|
+
|
|
101
|
+
var modelArchive = getParam('model-archive', '[^&]+').trim();
|
|
102
|
+
if (modelArchive) viewer.loadModelArchive(modelArchive);
|
|
103
|
+
});
|
|
104
|
+
</script>
|
|
105
|
+
<!-- __MOLSTAR_ANALYTICS__ -->
|
|
106
|
+
</body>
|
|
107
107
|
</html>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
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 Josh McMenemy <josh.mcmenemy@gmail.com>
|
|
6
|
+
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
7
|
*/
|
|
7
8
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
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 Josh McMenemy <josh.mcmenemy@gmail.com>
|
|
6
|
+
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
7
|
*/
|
|
7
8
|
import { __awaiter, __generator } from "tslib";
|
|
8
9
|
import * as argparse from 'argparse';
|
|
@@ -25,7 +26,7 @@ function extractIonNames(ccd) {
|
|
|
25
26
|
return ionNames;
|
|
26
27
|
}
|
|
27
28
|
function writeIonNamesFile(filePath, ionNames) {
|
|
28
|
-
var output = "/**\n * Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.\n *\n * Code-generated ion names params file. Names extracted from CCD components.\n *\n * @author molstar/chem-comp-dict/create-
|
|
29
|
+
var output = "/**\n * Copyright (c) 2020-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.\n *\n * Code-generated ion names params file. Names extracted from CCD components.\n *\n * @author molstar/chem-comp-dict/create-ions cli\n */\n\nexport const IonNames = new Set(".concat(JSON.stringify(ionNames).replace(/"/g, "'").replace(/,/g, ', '), ");\n");
|
|
29
30
|
writeFile(filePath, output);
|
|
30
31
|
}
|
|
31
32
|
function run(out, forceDownload) {
|
|
@@ -302,7 +302,7 @@ var MMCIF_DIC_URL = 'http://mmcif.wwpdb.org/dictionaries/ascii/mmcif_pdbx_v50.di
|
|
|
302
302
|
var IHM_DIC_PATH = "".concat(DIC_DIR, "/ihm-extension.dic");
|
|
303
303
|
var IHM_DIC_URL = 'https://raw.githubusercontent.com/ihmwg/IHM-dictionary/master/ihm-extension.dic';
|
|
304
304
|
var MA_DIC_PATH = "".concat(DIC_DIR, "/ma-extension.dic");
|
|
305
|
-
var MA_DIC_URL = 'https://raw.githubusercontent.com/ihmwg/
|
|
305
|
+
var MA_DIC_URL = 'https://raw.githubusercontent.com/ihmwg/ModelCIF/master/dist/mmcif_ma.dic';
|
|
306
306
|
var CIF_CORE_DIC_PATH = "".concat(DIC_DIR, "/cif_core.dic");
|
|
307
307
|
var CIF_CORE_DIC_URL = 'https://raw.githubusercontent.com/COMCIFS/cif_core/master/cif_core.dic';
|
|
308
308
|
var CIF_CORE_ENUM_PATH = "".concat(DIC_DIR, "/templ_enum.cif");
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
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 Josh McMenemy <josh.mcmenemy@gmail.com>
|
|
6
|
+
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
7
|
*/
|
|
7
8
|
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
3
|
/**
|
|
4
|
-
* Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
|
+
* Copyright (c) 2020-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
5
5
|
*
|
|
6
6
|
* @author Josh McMenemy <josh.mcmenemy@gmail.com>
|
|
7
|
+
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
7
8
|
*/
|
|
8
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
10
|
var tslib_1 = require("tslib");
|
|
@@ -27,7 +28,7 @@ function extractIonNames(ccd) {
|
|
|
27
28
|
return ionNames;
|
|
28
29
|
}
|
|
29
30
|
function writeIonNamesFile(filePath, ionNames) {
|
|
30
|
-
var output = "/**\n * Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.\n *\n * Code-generated ion names params file. Names extracted from CCD components.\n *\n * @author molstar/chem-comp-dict/create-
|
|
31
|
+
var output = "/**\n * Copyright (c) 2020-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.\n *\n * Code-generated ion names params file. Names extracted from CCD components.\n *\n * @author molstar/chem-comp-dict/create-ions cli\n */\n\nexport const IonNames = new Set(".concat(JSON.stringify(ionNames).replace(/"/g, "'").replace(/,/g, ', '), ");\n");
|
|
31
32
|
writeFile(filePath, output);
|
|
32
33
|
}
|
|
33
34
|
function run(out, forceDownload) {
|
|
@@ -304,7 +304,7 @@ var MMCIF_DIC_URL = 'http://mmcif.wwpdb.org/dictionaries/ascii/mmcif_pdbx_v50.di
|
|
|
304
304
|
var IHM_DIC_PATH = "".concat(DIC_DIR, "/ihm-extension.dic");
|
|
305
305
|
var IHM_DIC_URL = 'https://raw.githubusercontent.com/ihmwg/IHM-dictionary/master/ihm-extension.dic';
|
|
306
306
|
var MA_DIC_PATH = "".concat(DIC_DIR, "/ma-extension.dic");
|
|
307
|
-
var MA_DIC_URL = 'https://raw.githubusercontent.com/ihmwg/
|
|
307
|
+
var MA_DIC_URL = 'https://raw.githubusercontent.com/ihmwg/ModelCIF/master/dist/mmcif_ma.dic';
|
|
308
308
|
var CIF_CORE_DIC_PATH = "".concat(DIC_DIR, "/cif_core.dic");
|
|
309
309
|
var CIF_CORE_DIC_URL = 'https://raw.githubusercontent.com/COMCIFS/cif_core/master/cif_core.dic';
|
|
310
310
|
var CIF_CORE_ENUM_PATH = "".concat(DIC_DIR, "/templ_enum.cif");
|
|
@@ -30,14 +30,14 @@ var AlphaOrbitalsExample = /** @class */ (function () {
|
|
|
30
30
|
this.currentParams = tslib_1.__assign({}, this.state.value);
|
|
31
31
|
}
|
|
32
32
|
AlphaOrbitalsExample.prototype.init = function (target) {
|
|
33
|
-
var _a;
|
|
34
33
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
35
|
-
var defaultSpec,
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
var defaultSpec, _a;
|
|
35
|
+
var _this = this;
|
|
36
|
+
return tslib_1.__generator(this, function (_b) {
|
|
37
|
+
switch (_b.label) {
|
|
38
38
|
case 0:
|
|
39
39
|
defaultSpec = (0, spec_1.DefaultPluginUISpec)();
|
|
40
|
-
|
|
40
|
+
_a = this;
|
|
41
41
|
return [4 /*yield*/, (0, react18_1.createPluginUI)(typeof target === 'string' ? document.getElementById(target) : target, tslib_1.__assign(tslib_1.__assign({}, defaultSpec), { layout: {
|
|
42
42
|
initial: {
|
|
43
43
|
isExpanded: false,
|
|
@@ -56,17 +56,22 @@ var AlphaOrbitalsExample = /** @class */ (function () {
|
|
|
56
56
|
[config_1.PluginConfig.Viewport.ShowAnimation, false],
|
|
57
57
|
] }))];
|
|
58
58
|
case 1:
|
|
59
|
-
|
|
59
|
+
_a.plugin = _b.sent();
|
|
60
60
|
this.plugin.managers.interactivity.setProps({ granularity: 'element' });
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
61
|
+
this.plugin.behaviors.canvas3d.initialized.subscribe(function (init) {
|
|
62
|
+
var _a;
|
|
63
|
+
if (!init)
|
|
64
|
+
return;
|
|
65
|
+
if (!(0, grid3d_1.canComputeGrid3dOnGPU)((_a = _this.plugin.canvas3d) === null || _a === void 0 ? void 0 : _a.webgl)) {
|
|
66
|
+
commands_1.PluginCommands.Toast.Show(_this.plugin, {
|
|
67
|
+
title: 'Error',
|
|
68
|
+
message: "Browser/device does not support required WebGL extension (OES_texture_float)."
|
|
69
|
+
});
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
_this.load(tslib_1.__assign({ moleculeSdf: example_data_1.DemoMoleculeSDF }, example_data_1.DemoOrbitals));
|
|
73
|
+
(0, controls_1.mountControls)(_this, document.getElementById('controls'));
|
|
74
|
+
});
|
|
70
75
|
return [2 /*return*/];
|
|
71
76
|
}
|
|
72
77
|
});
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
6
6
|
*/
|
|
7
7
|
import { Color } from '../../mol-util/color';
|
|
8
|
-
import { ColorTheme } from '../../mol-theme/color';
|
|
8
|
+
import { ColorTheme, LocationColor } from '../../mol-theme/color';
|
|
9
9
|
import { ParamDefinition as PD } from '../../mol-util/param-definition';
|
|
10
10
|
import { ThemeDataContext } from '../../mol-theme/theme';
|
|
11
11
|
export declare function createProteopediaCustomTheme(colors: number[]): {
|
|
@@ -16,11 +16,26 @@ export declare function createProteopediaCustomTheme(colors: number[]): {
|
|
|
16
16
|
colors: PD.ObjectList<PD.Normalize<{
|
|
17
17
|
color: Color;
|
|
18
18
|
}>>;
|
|
19
|
-
}>) =>
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
}>) => {
|
|
20
|
+
readonly granularity: import("../../mol-geo/geometry/color-data").ColorTypeLocation;
|
|
21
|
+
readonly color: LocationColor;
|
|
22
|
+
} & {
|
|
23
|
+
readonly factory: ColorTheme.Factory<{
|
|
24
|
+
colors: PD.ObjectList<PD.Normalize<{
|
|
25
|
+
color: Color;
|
|
26
|
+
}>>;
|
|
27
|
+
}, import("../../mol-geo/geometry/color-data").ColorTypeLocation>;
|
|
28
|
+
readonly props: Readonly<PD.Values<{
|
|
29
|
+
colors: PD.ObjectList<PD.Normalize<{
|
|
30
|
+
color: Color;
|
|
31
|
+
}>>;
|
|
22
32
|
}>>;
|
|
23
|
-
|
|
33
|
+
readonly palette?: Readonly<ColorTheme.Palette> | undefined;
|
|
34
|
+
readonly preferSmoothing?: boolean | undefined;
|
|
35
|
+
readonly contextHash?: number | undefined;
|
|
36
|
+
readonly description?: string | undefined;
|
|
37
|
+
readonly legend?: Readonly<import("../../mol-util/legend").TableLegend | import("../../mol-util/legend").ScaleLegend> | undefined;
|
|
38
|
+
};
|
|
24
39
|
getParams: (ctx: ThemeDataContext) => {
|
|
25
40
|
colors: PD.ObjectList<PD.Normalize<{
|
|
26
41
|
color: Color;
|
|
@@ -42,7 +42,7 @@ declare const MembraneOrientation3D: StateTransformer<PluginStateObject.Molecule
|
|
|
42
42
|
flatShaded: boolean;
|
|
43
43
|
ignoreLight: boolean;
|
|
44
44
|
xrayShaded: boolean;
|
|
45
|
-
|
|
45
|
+
transparentBackfaces: string;
|
|
46
46
|
bumpFrequency: number;
|
|
47
47
|
bumpAmplitude: number;
|
|
48
48
|
}>>;
|