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
|
@@ -1,21 +1,25 @@
|
|
|
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 Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
5
|
*/
|
|
6
6
|
import { Color } from '../mol-util/color';
|
|
7
7
|
import { Location } from '../mol-model/location';
|
|
8
|
-
import { ColorType } from '../mol-geo/geometry/color-data';
|
|
8
|
+
import { ColorType, ColorTypeDirect, ColorTypeGrid, ColorTypeLocation } from '../mol-geo/geometry/color-data';
|
|
9
9
|
import { ParamDefinition as PD } from '../mol-util/param-definition';
|
|
10
10
|
import { ThemeDataContext, ThemeRegistry, ThemeProvider } from './theme';
|
|
11
11
|
import { ScaleLegend, TableLegend } from '../mol-util/legend';
|
|
12
|
-
import { TextureFilter } from '../mol-gl/webgl/texture';
|
|
12
|
+
import { Texture, TextureFilter } from '../mol-gl/webgl/texture';
|
|
13
|
+
import { Vec3, Vec4 } from '../mol-math/linear-algebra';
|
|
13
14
|
export declare type LocationColor = (location: Location, isSecondary: boolean) => Color;
|
|
15
|
+
export interface ColorVolume {
|
|
16
|
+
colors: Texture;
|
|
17
|
+
dimension: Vec3;
|
|
18
|
+
transform: Vec4;
|
|
19
|
+
}
|
|
14
20
|
export { ColorTheme };
|
|
15
|
-
|
|
16
|
-
readonly factory: ColorTheme.Factory<P>;
|
|
17
|
-
readonly granularity: ColorType;
|
|
18
|
-
readonly color: LocationColor;
|
|
21
|
+
declare type ColorThemeShared<P extends PD.Params, G extends ColorType> = {
|
|
22
|
+
readonly factory: ColorTheme.Factory<P, G>;
|
|
19
23
|
readonly props: Readonly<PD.Values<P>>;
|
|
20
24
|
/**
|
|
21
25
|
* if palette is defined, 24bit RGB color value normalized to interval [0, 1]
|
|
@@ -26,7 +30,19 @@ interface ColorTheme<P extends PD.Params> {
|
|
|
26
30
|
readonly contextHash?: number;
|
|
27
31
|
readonly description?: string;
|
|
28
32
|
readonly legend?: Readonly<ScaleLegend | TableLegend>;
|
|
29
|
-
}
|
|
33
|
+
};
|
|
34
|
+
declare type ColorThemeLocation<P extends PD.Params> = {
|
|
35
|
+
readonly granularity: ColorTypeLocation;
|
|
36
|
+
readonly color: LocationColor;
|
|
37
|
+
} & ColorThemeShared<P, ColorTypeLocation>;
|
|
38
|
+
declare type ColorThemeGrid<P extends PD.Params> = {
|
|
39
|
+
readonly granularity: ColorTypeGrid;
|
|
40
|
+
readonly grid: ColorVolume;
|
|
41
|
+
} & ColorThemeShared<P, ColorTypeGrid>;
|
|
42
|
+
declare type ColorThemeDirect<P extends PD.Params> = {
|
|
43
|
+
readonly granularity: ColorTypeDirect;
|
|
44
|
+
} & ColorThemeShared<P, ColorTypeDirect>;
|
|
45
|
+
declare type ColorTheme<P extends PD.Params, G extends ColorType = ColorTypeLocation> = G extends ColorTypeLocation ? ColorThemeLocation<P> : G extends ColorTypeGrid ? ColorThemeGrid<P> : G extends ColorTypeDirect ? ColorThemeDirect<P> : never;
|
|
30
46
|
declare namespace ColorTheme {
|
|
31
47
|
export const enum Category {
|
|
32
48
|
Atom = "Atom Property",
|
|
@@ -44,15 +60,15 @@ declare namespace ColorTheme {
|
|
|
44
60
|
export type Props = {
|
|
45
61
|
[k: string]: any;
|
|
46
62
|
};
|
|
47
|
-
export type Factory<P extends PD.Params> = (ctx: ThemeDataContext, props: PD.Values<P>) => ColorTheme<P>;
|
|
48
|
-
export const EmptyFactory: () =>
|
|
63
|
+
export type Factory<P extends PD.Params, G extends ColorType> = (ctx: ThemeDataContext, props: PD.Values<P>) => ColorTheme<P, G>;
|
|
64
|
+
export const EmptyFactory: () => ColorThemeLocation<{}>;
|
|
49
65
|
export const Empty: ColorTheme<{}>;
|
|
50
|
-
export function areEqual(themeA: ColorTheme<any>, themeB: ColorTheme<any>): boolean;
|
|
51
|
-
export interface Provider<P extends PD.Params = any, Id extends string = string> extends ThemeProvider<ColorTheme<P>, P, Id> {
|
|
66
|
+
export function areEqual(themeA: ColorTheme<any, any>, themeB: ColorTheme<any, any>): boolean;
|
|
67
|
+
export interface Provider<P extends PD.Params = any, Id extends string = string, G extends ColorType = ColorType> extends ThemeProvider<ColorTheme<P, G>, P, Id, G> {
|
|
52
68
|
}
|
|
53
69
|
export const EmptyProvider: Provider<{}>;
|
|
54
|
-
export type Registry = ThemeRegistry<ColorTheme<any>>;
|
|
55
|
-
export function createRegistry(): ThemeRegistry<
|
|
70
|
+
export type Registry = ThemeRegistry<ColorTheme<any, any>>;
|
|
71
|
+
export function createRegistry(): ThemeRegistry<ColorThemeLocation<{}> | ColorThemeDirect<{}> | ColorThemeGrid<{}>>;
|
|
56
72
|
export const BuiltIn: {
|
|
57
73
|
'atom-id': Provider<{
|
|
58
74
|
palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
|
|
@@ -68,8 +84,8 @@ declare namespace ColorTheme {
|
|
|
68
84
|
colors: import("../mol-util/color/color").ColorListEntry[];
|
|
69
85
|
};
|
|
70
86
|
}>, "colors">>;
|
|
71
|
-
}, "atom-id">;
|
|
72
|
-
'carbohydrate-symbol': Provider<{}, "carbohydrate-symbol">;
|
|
87
|
+
}, "atom-id", ColorType>;
|
|
88
|
+
'carbohydrate-symbol': Provider<{}, "carbohydrate-symbol", ColorType>;
|
|
73
89
|
'chain-id': Provider<{
|
|
74
90
|
palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
|
|
75
91
|
maxCount: number;
|
|
@@ -85,7 +101,7 @@ declare namespace ColorTheme {
|
|
|
85
101
|
};
|
|
86
102
|
}>, "colors">>;
|
|
87
103
|
asymId: PD.Select<"label" | "auth">;
|
|
88
|
-
}, "chain-id">;
|
|
104
|
+
}, "chain-id", ColorType>;
|
|
89
105
|
'element-index': Provider<{
|
|
90
106
|
palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
|
|
91
107
|
maxCount: number;
|
|
@@ -100,7 +116,7 @@ declare namespace ColorTheme {
|
|
|
100
116
|
colors: import("../mol-util/color/color").ColorListEntry[];
|
|
101
117
|
};
|
|
102
118
|
}>, "colors">>;
|
|
103
|
-
}, "element-index">;
|
|
119
|
+
}, "element-index", ColorType>;
|
|
104
120
|
'element-symbol': Provider<{
|
|
105
121
|
carbonColor: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "element-symbol"> | PD.NamedParams<PD.Normalize<{
|
|
106
122
|
palette: PD.NamedParams<PD.Normalize<{
|
|
@@ -271,7 +287,7 @@ declare namespace ColorTheme {
|
|
|
271
287
|
LV: Color;
|
|
272
288
|
UUH: Color;
|
|
273
289
|
}>, "custom">>;
|
|
274
|
-
}, "element-symbol">;
|
|
290
|
+
}, "element-symbol", ColorType>;
|
|
275
291
|
'entity-id': Provider<{
|
|
276
292
|
palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
|
|
277
293
|
maxCount: number;
|
|
@@ -286,7 +302,7 @@ declare namespace ColorTheme {
|
|
|
286
302
|
colors: import("../mol-util/color/color").ColorListEntry[];
|
|
287
303
|
};
|
|
288
304
|
}>, "colors">>;
|
|
289
|
-
}, "entity-id">;
|
|
305
|
+
}, "entity-id", ColorType>;
|
|
290
306
|
'entity-source': Provider<{
|
|
291
307
|
palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
|
|
292
308
|
maxCount: number;
|
|
@@ -301,11 +317,11 @@ declare namespace ColorTheme {
|
|
|
301
317
|
colors: import("../mol-util/color/color").ColorListEntry[];
|
|
302
318
|
};
|
|
303
319
|
}>, "colors">>;
|
|
304
|
-
}, "entity-source">;
|
|
320
|
+
}, "entity-source", ColorType>;
|
|
305
321
|
hydrophobicity: Provider<{
|
|
306
322
|
list: PD.ColorList;
|
|
307
323
|
scale: PD.Select<"DGwif" | "DGwoct" | "Oct-IF">;
|
|
308
|
-
}, "hydrophobicity">;
|
|
324
|
+
}, "hydrophobicity", ColorType>;
|
|
309
325
|
illustrative: Provider<{
|
|
310
326
|
style: PD.Mapped<PD.NamedParams<PD.Normalize<{
|
|
311
327
|
palette: PD.NamedParams<PD.Normalize<{
|
|
@@ -357,7 +373,7 @@ declare namespace ColorTheme {
|
|
|
357
373
|
}>, "custom">;
|
|
358
374
|
}>, "molecule-type">>;
|
|
359
375
|
carbonLightness: PD.Numeric;
|
|
360
|
-
}, "illustrative">;
|
|
376
|
+
}, "illustrative", ColorType>;
|
|
361
377
|
'model-index': Provider<{
|
|
362
378
|
palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
|
|
363
379
|
maxCount: number;
|
|
@@ -372,7 +388,7 @@ declare namespace ColorTheme {
|
|
|
372
388
|
colors: import("../mol-util/color/color").ColorListEntry[];
|
|
373
389
|
};
|
|
374
390
|
}>, "colors">>;
|
|
375
|
-
}, "model-index">;
|
|
391
|
+
}, "model-index", ColorType>;
|
|
376
392
|
'molecule-type': Provider<{
|
|
377
393
|
saturation: PD.Numeric;
|
|
378
394
|
lightness: PD.Numeric;
|
|
@@ -385,11 +401,11 @@ declare namespace ColorTheme {
|
|
|
385
401
|
PNA: Color;
|
|
386
402
|
saccharide: Color;
|
|
387
403
|
}>, "custom">>;
|
|
388
|
-
}, "molecule-type">;
|
|
404
|
+
}, "molecule-type", ColorType>;
|
|
389
405
|
occupancy: Provider<{
|
|
390
406
|
domain: PD.Interval;
|
|
391
407
|
list: PD.ColorList;
|
|
392
|
-
}, "occupancy">;
|
|
408
|
+
}, "occupancy", ColorType>;
|
|
393
409
|
'operator-hkl': Provider<{
|
|
394
410
|
palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
|
|
395
411
|
maxCount: number;
|
|
@@ -404,7 +420,7 @@ declare namespace ColorTheme {
|
|
|
404
420
|
colors: import("../mol-util/color/color").ColorListEntry[];
|
|
405
421
|
};
|
|
406
422
|
}>, "colors">>;
|
|
407
|
-
}, "operator-hkl">;
|
|
423
|
+
}, "operator-hkl", ColorType>;
|
|
408
424
|
'operator-name': Provider<{
|
|
409
425
|
palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
|
|
410
426
|
maxCount: number;
|
|
@@ -419,11 +435,11 @@ declare namespace ColorTheme {
|
|
|
419
435
|
colors: import("../mol-util/color/color").ColorListEntry[];
|
|
420
436
|
};
|
|
421
437
|
}>, "colors">>;
|
|
422
|
-
}, "operator-name">;
|
|
438
|
+
}, "operator-name", ColorType>;
|
|
423
439
|
'partial-charge': Provider<{
|
|
424
440
|
domain: PD.Interval;
|
|
425
441
|
list: PD.ColorList;
|
|
426
|
-
}, "partial-charge">;
|
|
442
|
+
}, "partial-charge", ColorType>;
|
|
427
443
|
'polymer-id': Provider<{
|
|
428
444
|
palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
|
|
429
445
|
maxCount: number;
|
|
@@ -438,7 +454,7 @@ declare namespace ColorTheme {
|
|
|
438
454
|
colors: import("../mol-util/color/color").ColorListEntry[];
|
|
439
455
|
};
|
|
440
456
|
}>, "colors">>;
|
|
441
|
-
}, "polymer-id">;
|
|
457
|
+
}, "polymer-id", ColorType>;
|
|
442
458
|
'polymer-index': Provider<{
|
|
443
459
|
palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
|
|
444
460
|
maxCount: number;
|
|
@@ -453,7 +469,7 @@ declare namespace ColorTheme {
|
|
|
453
469
|
colors: import("../mol-util/color/color").ColorListEntry[];
|
|
454
470
|
};
|
|
455
471
|
}>, "colors">>;
|
|
456
|
-
}, "polymer-index">;
|
|
472
|
+
}, "polymer-index", ColorType>;
|
|
457
473
|
'residue-name': Provider<{
|
|
458
474
|
saturation: PD.Numeric;
|
|
459
475
|
lightness: PD.Numeric;
|
|
@@ -495,7 +511,7 @@ declare namespace ColorTheme {
|
|
|
495
511
|
CPN: Color;
|
|
496
512
|
TPN: Color;
|
|
497
513
|
}>, "custom">>;
|
|
498
|
-
}, "residue-name">;
|
|
514
|
+
}, "residue-name", ColorType>;
|
|
499
515
|
'secondary-structure': Provider<{
|
|
500
516
|
saturation: PD.Numeric;
|
|
501
517
|
lightness: PD.Numeric;
|
|
@@ -512,15 +528,15 @@ declare namespace ColorTheme {
|
|
|
512
528
|
rna: Color;
|
|
513
529
|
carbohydrate: Color;
|
|
514
530
|
}>, "custom">>;
|
|
515
|
-
}, "secondary-structure">;
|
|
531
|
+
}, "secondary-structure", ColorType>;
|
|
516
532
|
'sequence-id': Provider<{
|
|
517
533
|
list: PD.ColorList;
|
|
518
|
-
}, "sequence-id">;
|
|
519
|
-
'shape-group': Provider<{}, "shape-group">;
|
|
534
|
+
}, "sequence-id", ColorType>;
|
|
535
|
+
'shape-group': Provider<{}, "shape-group", ColorType>;
|
|
520
536
|
uncertainty: Provider<{
|
|
521
537
|
domain: PD.Interval;
|
|
522
538
|
list: PD.ColorList;
|
|
523
|
-
}, "uncertainty">;
|
|
539
|
+
}, "uncertainty", ColorType>;
|
|
524
540
|
'unit-index': Provider<{
|
|
525
541
|
palette: PD.Mapped<PD.NamedParams<PD.Normalize<{
|
|
526
542
|
maxCount: number;
|
|
@@ -535,13 +551,13 @@ declare namespace ColorTheme {
|
|
|
535
551
|
colors: import("../mol-util/color/color").ColorListEntry[];
|
|
536
552
|
};
|
|
537
553
|
}>, "colors">>;
|
|
538
|
-
}, "unit-index">;
|
|
554
|
+
}, "unit-index", ColorType>;
|
|
539
555
|
uniform: Provider<{
|
|
540
556
|
value: PD.Color;
|
|
541
|
-
}, "uniform">;
|
|
557
|
+
}, "uniform", ColorType>;
|
|
542
558
|
'volume-value': Provider<{
|
|
543
559
|
colorList: PD.ColorList;
|
|
544
|
-
}, "volume-value">;
|
|
560
|
+
}, "volume-value", ColorType>;
|
|
545
561
|
};
|
|
546
562
|
type _BuiltIn = typeof BuiltIn;
|
|
547
563
|
export type BuiltIn = keyof _BuiltIn;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2018-
|
|
3
|
+
* Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
*/
|
|
@@ -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 Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
5
|
*/
|
|
@@ -10,6 +10,7 @@ import { Volume } from '../mol-model/volume';
|
|
|
10
10
|
import { ParamDefinition as PD } from '../mol-util/param-definition';
|
|
11
11
|
import { Shape } from '../mol-model/shape';
|
|
12
12
|
import { CustomProperty } from '../mol-model-props/common/custom-property';
|
|
13
|
+
import { ColorType } from '../mol-geo/geometry/color-data';
|
|
13
14
|
export interface ThemeRegistryContext {
|
|
14
15
|
colorThemeRegistry: ColorTheme.Registry;
|
|
15
16
|
sizeThemeRegistry: SizeTheme.Registry;
|
|
@@ -22,7 +23,7 @@ export interface ThemeDataContext {
|
|
|
22
23
|
}
|
|
23
24
|
export { Theme };
|
|
24
25
|
interface Theme {
|
|
25
|
-
color: ColorTheme<any>;
|
|
26
|
+
color: ColorTheme<any, any>;
|
|
26
27
|
size: SizeTheme<any>;
|
|
27
28
|
}
|
|
28
29
|
declare namespace Theme {
|
|
@@ -35,7 +36,7 @@ declare namespace Theme {
|
|
|
35
36
|
export function releaseDependencies(theme: ThemeRegistryContext, data: ThemeDataContext, props: Props): void;
|
|
36
37
|
export {};
|
|
37
38
|
}
|
|
38
|
-
export interface ThemeProvider<T extends ColorTheme<P> | SizeTheme<P>, P extends PD.Params, Id extends string = string> {
|
|
39
|
+
export interface ThemeProvider<T extends ColorTheme<P, G> | SizeTheme<P>, P extends PD.Params, Id extends string = string, G extends ColorType = ColorType> {
|
|
39
40
|
readonly name: Id;
|
|
40
41
|
readonly label: string;
|
|
41
42
|
readonly category: string;
|
|
@@ -48,18 +49,18 @@ export interface ThemeProvider<T extends ColorTheme<P> | SizeTheme<P>, P extends
|
|
|
48
49
|
detach: (data: ThemeDataContext) => void;
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
|
-
export declare class ThemeRegistry<T extends ColorTheme<any> | SizeTheme<any>> {
|
|
52
|
+
export declare class ThemeRegistry<T extends ColorTheme<any, any> | SizeTheme<any>> {
|
|
52
53
|
private emptyProvider;
|
|
53
54
|
private _list;
|
|
54
55
|
private _map;
|
|
55
56
|
private _name;
|
|
56
57
|
get default(): {
|
|
57
58
|
name: string;
|
|
58
|
-
provider: ThemeProvider<T, any, string>;
|
|
59
|
+
provider: ThemeProvider<T, any, string, ColorType>;
|
|
59
60
|
};
|
|
60
61
|
get list(): {
|
|
61
62
|
name: string;
|
|
62
|
-
provider: ThemeProvider<T, any, string>;
|
|
63
|
+
provider: ThemeProvider<T, any, string, ColorType>;
|
|
63
64
|
}[];
|
|
64
65
|
get types(): [string, string, string][];
|
|
65
66
|
constructor(builtInThemes: {
|
|
@@ -74,7 +75,7 @@ export declare class ThemeRegistry<T extends ColorTheme<any> | SizeTheme<any>> {
|
|
|
74
75
|
create(name: string, ctx: ThemeDataContext, props?: {}): T;
|
|
75
76
|
getApplicableList(ctx: ThemeDataContext): {
|
|
76
77
|
name: string;
|
|
77
|
-
provider: ThemeProvider<T, any, string>;
|
|
78
|
+
provider: ThemeProvider<T, any, string, ColorType>;
|
|
78
79
|
}[];
|
|
79
80
|
getApplicableTypes(ctx: ThemeDataContext): [string, string, string][];
|
|
80
81
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2018-
|
|
3
|
+
* Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
*/
|
|
@@ -260,10 +260,8 @@ function resolveJobEntry(entry, structure, encoder) {
|
|
|
260
260
|
encoder.writeCategory(_model_server_result, entry);
|
|
261
261
|
encoder.writeCategory(_model_server_params, entry);
|
|
262
262
|
if (entry.queryDefinition.niceName === 'Ligand') {
|
|
263
|
-
if (encoder instanceof encoder_1.MolEncoder) {
|
|
264
|
-
encoder.setComponentAtomData(chem_comp_2.ComponentAtom.Provider.get(structure.models[0]));
|
|
265
|
-
}
|
|
266
263
|
if (encoder instanceof encoder_1.MolEncoder || encoder instanceof encoder_2.Mol2Encoder) {
|
|
264
|
+
encoder.setComponentAtomData(chem_comp_2.ComponentAtom.Provider.get(structure.models[0]));
|
|
267
265
|
encoder.setComponentBondData(chem_comp_1.ComponentBond.Provider.get(structure.models[0]));
|
|
268
266
|
}
|
|
269
267
|
}
|
|
@@ -1,62 +1,62 @@
|
|
|
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* Alpha Orbitals Example</title>
|
|
7
|
-
<style>
|
|
8
|
-
* {
|
|
9
|
-
margin: 0;
|
|
10
|
-
padding: 0;
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
}
|
|
13
|
-
#app {
|
|
14
|
-
position: absolute;
|
|
15
|
-
left: 0;
|
|
16
|
-
top: 0;
|
|
17
|
-
bottom: 0;
|
|
18
|
-
right: 0;
|
|
19
|
-
}
|
|
20
|
-
#controls {
|
|
21
|
-
position: absolute;
|
|
22
|
-
left: 8px;
|
|
23
|
-
top: 8px;
|
|
24
|
-
width: 300px;
|
|
25
|
-
}
|
|
26
|
-
#sponsor {
|
|
27
|
-
position: absolute;
|
|
28
|
-
left: 8px;
|
|
29
|
-
bottom: 8px;
|
|
30
|
-
font-family: "Helvetica Neue", "Segoe UI", Helvetica, "Source Sans Pro", Arial, sans-serif;
|
|
31
|
-
font-size: 12px;
|
|
32
|
-
text-align: center;
|
|
33
|
-
}
|
|
34
|
-
#sponsor svg {
|
|
35
|
-
fill: #128EA4;
|
|
36
|
-
width: 100px;
|
|
37
|
-
}
|
|
38
|
-
#sponsor a {
|
|
39
|
-
text-decoration: none;
|
|
40
|
-
color: #128EA4;
|
|
41
|
-
}
|
|
42
|
-
</style>
|
|
43
|
-
<link rel="stylesheet" type="text/css" href="molstar.css" />
|
|
44
|
-
<script type="text/javascript" src="./index.js"></script>
|
|
45
|
-
</head>
|
|
46
|
-
<body>
|
|
47
|
-
<div id="app"></div>
|
|
48
|
-
<div id='controls'></div>
|
|
49
|
-
<div id='sponsor'>
|
|
50
|
-
<a href='https://www.entos.ai/envision' target="_blank" rel="noopener">
|
|
51
|
-
<svg class="makeStyles-root-46" viewBox="0 0 190 36" xmlns="http://www.w3.org/2000/svg"><path d="M32.2591 28.6707C32.2591 32.3914 29.2421 35.407 25.5214 35.407C22.0752 35.407 19.2338 32.8206 18.8325 29.4831V29.4775C18.8143 29.3312 18.8018 29.1835 18.7934 29.0344C18.7934 29.0316 18.7921 29.0274 18.7921 29.0246V29.0177C18.7865 28.902 18.7837 28.7864 18.7837 28.6707C18.7837 26.2557 20.0532 24.1389 21.9609 22.9503C21.9623 22.9489 21.9651 22.9489 21.9665 22.9475C22.0933 22.8666 22.2243 22.7914 22.3581 22.7203C22.3581 22.7203 22.3595 22.7203 22.3595 22.7189C23.3029 22.2173 24.3787 21.933 25.5214 21.933C29.2421 21.933 32.2591 24.9486 32.2591 28.6707Z"></path><path d="M25.5214 14.0692C29.2421 14.0692 32.2591 11.0522 32.2591 7.33146C32.2591 3.61074 29.2421 0.59375 25.5214 0.59375C22.0529 0.59375 19.1962 3.21637 18.8255 6.58592C18.8185 6.67092 18.8116 6.75454 18.8018 6.83815C18.7893 7.00119 18.7837 7.16563 18.7837 7.33146C18.7837 9.73669 20.0434 11.8465 21.94 13.038C22.0891 13.116 22.2355 13.201 22.3776 13.2916C22.3783 13.2923 22.379 13.2926 22.3797 13.293C22.3804 13.2933 22.3811 13.2937 22.3818 13.2944C23.3196 13.7891 24.3871 14.0692 25.5214 14.0692Z"></path><path d="M19.3645 12.4113C20.2926 12.4113 21.1694 12.638 21.94 13.038C20.0434 11.8465 18.7837 9.73669 18.7837 7.33146C18.7837 7.16563 18.7893 7.00119 18.8018 6.83815C18.4688 9.76455 16.1385 12.0866 13.2065 12.4044C13.8545 13.1193 14.3785 13.9484 14.745 14.857C15.7497 13.3798 17.4443 12.4113 19.3645 12.4113Z"></path><path d="M14.7312 21.1249V21.1236C14.1279 20.2331 13.7767 19.1587 13.7767 18.0007V17.9728C13.7767 15.3084 12.2285 13.0035 9.9835 11.911C9.98141 11.9103 9.97967 11.9096 9.97793 11.9089C9.97619 11.9082 9.97444 11.9075 9.97235 11.9068C9.96817 11.904 9.96538 11.9026 9.9612 11.9012C9.95981 11.9012 9.95981 11.8998 9.95981 11.8998C9.9417 11.8915 9.92394 11.8831 9.90618 11.8747C9.8884 11.8664 9.87063 11.858 9.85251 11.8497C9.82046 11.8343 9.78701 11.819 9.75357 11.8051L9.74521 11.8009C8.91745 11.4372 8.0019 11.2351 7.03898 11.2351C3.31826 11.2351 0.30127 14.2521 0.30127 17.9728C0.30127 21.6935 3.31826 24.7105 7.03898 24.7105C7.98797 24.7105 8.89098 24.514 9.71037 24.1601C9.71246 24.1594 9.7142 24.1583 9.71594 24.1573C9.71768 24.1562 9.71943 24.1552 9.72152 24.1545C9.8107 24.1169 9.8985 24.0765 9.9849 24.0333L9.98629 24.0319C10.7625 23.6919 11.6181 23.5037 12.5197 23.5037C12.7524 23.5037 12.9824 23.5163 13.2081 23.54C13.2082 23.5399 13.2081 23.54 13.2081 23.54C15.0168 23.7365 16.5971 24.695 17.6185 26.0885C17.9195 25.1688 18.3752 24.3201 18.9563 23.5732C17.1964 23.4464 15.6635 22.5058 14.7312 21.1249Z"></path><g clip-path="url(#clip0)"><path d="M106.391 18.0021C106.391 11.3724 101.039 6 94.4389 6H88.4585C81.8581 6 76.5061 11.3724 76.5061 18.0021V30.0042H81.2845V18.0021C81.2845 14.0268 84.4941 10.8008 88.4585 10.8008H94.4347C98.395 10.8008 101.609 14.0226 101.609 18.0021V30.0042H106.391V18.0021Z"></path><path d="M149.432 6H142.258C135.653 6 130.301 11.3724 130.301 18.0021C130.301 24.6319 135.653 30.0042 142.258 30.0042H149.432C156.036 30.0042 161.388 24.6319 161.388 18.0021C161.388 11.3724 156.032 6 149.432 6ZM149.432 25.1992H142.258C138.297 25.1992 135.084 21.9774 135.084 17.9979C135.084 14.0183 138.293 10.7966 142.258 10.7966H149.432C153.392 10.7966 156.606 14.0183 156.606 17.9979C156.606 21.9774 153.392 25.1992 149.432 25.1992Z"></path><path d="M74.1151 25.1992H58.5736C55.4526 25.1992 52.804 23.1924 51.8171 20.3983H74.1151V17.9979C74.1151 17.1808 74.1868 16.3807 74.3175 15.5975H51.8171C52.804 12.8033 55.4526 10.7966 58.5736 10.7966H76.0383C77.1475 8.87458 78.6911 7.22773 80.5299 6H58.5736C51.969 6 46.6169 11.3724 46.6169 18.0021C46.6169 24.6276 51.969 30 58.5736 30H74.1151V25.1992Z"></path><path d="M120.74 6H115.958H102.369C104.212 7.22773 105.751 8.87458 106.861 10.8008H115.958V30H120.74V10.8008H129.838C130.947 8.87458 132.486 7.22773 134.329 6H120.74Z"></path><path d="M182.906 15.6017H169.756C168.436 15.6017 167.365 14.5264 167.365 13.2013C167.365 11.8762 168.436 10.8008 169.756 10.8008H188.882V6H169.756C165.796 6 162.582 9.22173 162.582 13.2013C162.582 17.1808 165.791 20.4025 169.756 20.4025H182.906C184.226 20.4025 185.297 21.4779 185.297 22.803C185.297 24.1281 184.226 25.2034 182.906 25.2034H161.852C160.743 27.1297 159.199 28.7765 157.361 30.0042H182.906C186.866 30.0042 190.08 26.7825 190.08 22.803C190.08 18.8234 186.866 15.6017 182.906 15.6017Z"></path></g><defs><clipPath id="clip0"><rect width="190" height="24" fill="white" transform="translate(0 6)"></rect></clipPath></defs></svg>
|
|
52
|
-
<div>
|
|
53
|
-
Entos Envision
|
|
54
|
-
</div>
|
|
55
|
-
</a>
|
|
56
|
-
</div>
|
|
57
|
-
<script>
|
|
58
|
-
AlphaOrbitalsExample.init('app')
|
|
59
|
-
</script>
|
|
60
|
-
<!-- __MOLSTAR_ANALYTICS__ -->
|
|
61
|
-
</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* Alpha Orbitals Example</title>
|
|
7
|
+
<style>
|
|
8
|
+
* {
|
|
9
|
+
margin: 0;
|
|
10
|
+
padding: 0;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
}
|
|
13
|
+
#app {
|
|
14
|
+
position: absolute;
|
|
15
|
+
left: 0;
|
|
16
|
+
top: 0;
|
|
17
|
+
bottom: 0;
|
|
18
|
+
right: 0;
|
|
19
|
+
}
|
|
20
|
+
#controls {
|
|
21
|
+
position: absolute;
|
|
22
|
+
left: 8px;
|
|
23
|
+
top: 8px;
|
|
24
|
+
width: 300px;
|
|
25
|
+
}
|
|
26
|
+
#sponsor {
|
|
27
|
+
position: absolute;
|
|
28
|
+
left: 8px;
|
|
29
|
+
bottom: 8px;
|
|
30
|
+
font-family: "Helvetica Neue", "Segoe UI", Helvetica, "Source Sans Pro", Arial, sans-serif;
|
|
31
|
+
font-size: 12px;
|
|
32
|
+
text-align: center;
|
|
33
|
+
}
|
|
34
|
+
#sponsor svg {
|
|
35
|
+
fill: #128EA4;
|
|
36
|
+
width: 100px;
|
|
37
|
+
}
|
|
38
|
+
#sponsor a {
|
|
39
|
+
text-decoration: none;
|
|
40
|
+
color: #128EA4;
|
|
41
|
+
}
|
|
42
|
+
</style>
|
|
43
|
+
<link rel="stylesheet" type="text/css" href="molstar.css" />
|
|
44
|
+
<script type="text/javascript" src="./index.js"></script>
|
|
45
|
+
</head>
|
|
46
|
+
<body>
|
|
47
|
+
<div id="app"></div>
|
|
48
|
+
<div id='controls'></div>
|
|
49
|
+
<div id='sponsor'>
|
|
50
|
+
<a href='https://www.entos.ai/envision' target="_blank" rel="noopener">
|
|
51
|
+
<svg class="makeStyles-root-46" viewBox="0 0 190 36" xmlns="http://www.w3.org/2000/svg"><path d="M32.2591 28.6707C32.2591 32.3914 29.2421 35.407 25.5214 35.407C22.0752 35.407 19.2338 32.8206 18.8325 29.4831V29.4775C18.8143 29.3312 18.8018 29.1835 18.7934 29.0344C18.7934 29.0316 18.7921 29.0274 18.7921 29.0246V29.0177C18.7865 28.902 18.7837 28.7864 18.7837 28.6707C18.7837 26.2557 20.0532 24.1389 21.9609 22.9503C21.9623 22.9489 21.9651 22.9489 21.9665 22.9475C22.0933 22.8666 22.2243 22.7914 22.3581 22.7203C22.3581 22.7203 22.3595 22.7203 22.3595 22.7189C23.3029 22.2173 24.3787 21.933 25.5214 21.933C29.2421 21.933 32.2591 24.9486 32.2591 28.6707Z"></path><path d="M25.5214 14.0692C29.2421 14.0692 32.2591 11.0522 32.2591 7.33146C32.2591 3.61074 29.2421 0.59375 25.5214 0.59375C22.0529 0.59375 19.1962 3.21637 18.8255 6.58592C18.8185 6.67092 18.8116 6.75454 18.8018 6.83815C18.7893 7.00119 18.7837 7.16563 18.7837 7.33146C18.7837 9.73669 20.0434 11.8465 21.94 13.038C22.0891 13.116 22.2355 13.201 22.3776 13.2916C22.3783 13.2923 22.379 13.2926 22.3797 13.293C22.3804 13.2933 22.3811 13.2937 22.3818 13.2944C23.3196 13.7891 24.3871 14.0692 25.5214 14.0692Z"></path><path d="M19.3645 12.4113C20.2926 12.4113 21.1694 12.638 21.94 13.038C20.0434 11.8465 18.7837 9.73669 18.7837 7.33146C18.7837 7.16563 18.7893 7.00119 18.8018 6.83815C18.4688 9.76455 16.1385 12.0866 13.2065 12.4044C13.8545 13.1193 14.3785 13.9484 14.745 14.857C15.7497 13.3798 17.4443 12.4113 19.3645 12.4113Z"></path><path d="M14.7312 21.1249V21.1236C14.1279 20.2331 13.7767 19.1587 13.7767 18.0007V17.9728C13.7767 15.3084 12.2285 13.0035 9.9835 11.911C9.98141 11.9103 9.97967 11.9096 9.97793 11.9089C9.97619 11.9082 9.97444 11.9075 9.97235 11.9068C9.96817 11.904 9.96538 11.9026 9.9612 11.9012C9.95981 11.9012 9.95981 11.8998 9.95981 11.8998C9.9417 11.8915 9.92394 11.8831 9.90618 11.8747C9.8884 11.8664 9.87063 11.858 9.85251 11.8497C9.82046 11.8343 9.78701 11.819 9.75357 11.8051L9.74521 11.8009C8.91745 11.4372 8.0019 11.2351 7.03898 11.2351C3.31826 11.2351 0.30127 14.2521 0.30127 17.9728C0.30127 21.6935 3.31826 24.7105 7.03898 24.7105C7.98797 24.7105 8.89098 24.514 9.71037 24.1601C9.71246 24.1594 9.7142 24.1583 9.71594 24.1573C9.71768 24.1562 9.71943 24.1552 9.72152 24.1545C9.8107 24.1169 9.8985 24.0765 9.9849 24.0333L9.98629 24.0319C10.7625 23.6919 11.6181 23.5037 12.5197 23.5037C12.7524 23.5037 12.9824 23.5163 13.2081 23.54C13.2082 23.5399 13.2081 23.54 13.2081 23.54C15.0168 23.7365 16.5971 24.695 17.6185 26.0885C17.9195 25.1688 18.3752 24.3201 18.9563 23.5732C17.1964 23.4464 15.6635 22.5058 14.7312 21.1249Z"></path><g clip-path="url(#clip0)"><path d="M106.391 18.0021C106.391 11.3724 101.039 6 94.4389 6H88.4585C81.8581 6 76.5061 11.3724 76.5061 18.0021V30.0042H81.2845V18.0021C81.2845 14.0268 84.4941 10.8008 88.4585 10.8008H94.4347C98.395 10.8008 101.609 14.0226 101.609 18.0021V30.0042H106.391V18.0021Z"></path><path d="M149.432 6H142.258C135.653 6 130.301 11.3724 130.301 18.0021C130.301 24.6319 135.653 30.0042 142.258 30.0042H149.432C156.036 30.0042 161.388 24.6319 161.388 18.0021C161.388 11.3724 156.032 6 149.432 6ZM149.432 25.1992H142.258C138.297 25.1992 135.084 21.9774 135.084 17.9979C135.084 14.0183 138.293 10.7966 142.258 10.7966H149.432C153.392 10.7966 156.606 14.0183 156.606 17.9979C156.606 21.9774 153.392 25.1992 149.432 25.1992Z"></path><path d="M74.1151 25.1992H58.5736C55.4526 25.1992 52.804 23.1924 51.8171 20.3983H74.1151V17.9979C74.1151 17.1808 74.1868 16.3807 74.3175 15.5975H51.8171C52.804 12.8033 55.4526 10.7966 58.5736 10.7966H76.0383C77.1475 8.87458 78.6911 7.22773 80.5299 6H58.5736C51.969 6 46.6169 11.3724 46.6169 18.0021C46.6169 24.6276 51.969 30 58.5736 30H74.1151V25.1992Z"></path><path d="M120.74 6H115.958H102.369C104.212 7.22773 105.751 8.87458 106.861 10.8008H115.958V30H120.74V10.8008H129.838C130.947 8.87458 132.486 7.22773 134.329 6H120.74Z"></path><path d="M182.906 15.6017H169.756C168.436 15.6017 167.365 14.5264 167.365 13.2013C167.365 11.8762 168.436 10.8008 169.756 10.8008H188.882V6H169.756C165.796 6 162.582 9.22173 162.582 13.2013C162.582 17.1808 165.791 20.4025 169.756 20.4025H182.906C184.226 20.4025 185.297 21.4779 185.297 22.803C185.297 24.1281 184.226 25.2034 182.906 25.2034H161.852C160.743 27.1297 159.199 28.7765 157.361 30.0042H182.906C186.866 30.0042 190.08 26.7825 190.08 22.803C190.08 18.8234 186.866 15.6017 182.906 15.6017Z"></path></g><defs><clipPath id="clip0"><rect width="190" height="24" fill="white" transform="translate(0 6)"></rect></clipPath></defs></svg>
|
|
52
|
+
<div>
|
|
53
|
+
Entos Envision
|
|
54
|
+
</div>
|
|
55
|
+
</a>
|
|
56
|
+
</div>
|
|
57
|
+
<script>
|
|
58
|
+
AlphaOrbitalsExample.init('app')
|
|
59
|
+
</script>
|
|
60
|
+
<!-- __MOLSTAR_ANALYTICS__ -->
|
|
61
|
+
</body>
|
|
62
62
|
</html>
|
|
@@ -27,14 +27,14 @@ var AlphaOrbitalsExample = /** @class */ (function () {
|
|
|
27
27
|
this.currentParams = __assign({}, this.state.value);
|
|
28
28
|
}
|
|
29
29
|
AlphaOrbitalsExample.prototype.init = function (target) {
|
|
30
|
-
var _a;
|
|
31
30
|
return __awaiter(this, void 0, void 0, function () {
|
|
32
|
-
var defaultSpec,
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
var defaultSpec, _a;
|
|
32
|
+
var _this = this;
|
|
33
|
+
return __generator(this, function (_b) {
|
|
34
|
+
switch (_b.label) {
|
|
35
35
|
case 0:
|
|
36
36
|
defaultSpec = DefaultPluginUISpec();
|
|
37
|
-
|
|
37
|
+
_a = this;
|
|
38
38
|
return [4 /*yield*/, createPluginUI(typeof target === 'string' ? document.getElementById(target) : target, __assign(__assign({}, defaultSpec), { layout: {
|
|
39
39
|
initial: {
|
|
40
40
|
isExpanded: false,
|
|
@@ -53,17 +53,22 @@ var AlphaOrbitalsExample = /** @class */ (function () {
|
|
|
53
53
|
[PluginConfig.Viewport.ShowAnimation, false],
|
|
54
54
|
] }))];
|
|
55
55
|
case 1:
|
|
56
|
-
|
|
56
|
+
_a.plugin = _b.sent();
|
|
57
57
|
this.plugin.managers.interactivity.setProps({ granularity: 'element' });
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
58
|
+
this.plugin.behaviors.canvas3d.initialized.subscribe(function (init) {
|
|
59
|
+
var _a;
|
|
60
|
+
if (!init)
|
|
61
|
+
return;
|
|
62
|
+
if (!canComputeGrid3dOnGPU((_a = _this.plugin.canvas3d) === null || _a === void 0 ? void 0 : _a.webgl)) {
|
|
63
|
+
PluginCommands.Toast.Show(_this.plugin, {
|
|
64
|
+
title: 'Error',
|
|
65
|
+
message: "Browser/device does not support required WebGL extension (OES_texture_float)."
|
|
66
|
+
});
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
_this.load(__assign({ moleculeSdf: DemoMoleculeSDF }, DemoOrbitals));
|
|
70
|
+
mountControls(_this, document.getElementById('controls'));
|
|
71
|
+
});
|
|
67
72
|
return [2 /*return*/];
|
|
68
73
|
}
|
|
69
74
|
});
|