molstar 3.0.0-dev.2 → 3.0.0-dev.6
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 +187 -187
- package/build/viewer/embedded.html +43 -43
- package/build/viewer/index.html +102 -94
- package/build/viewer/molstar.css +1 -1
- package/build/viewer/molstar.js +1 -1
- package/lib/apps/docking-viewer/index.d.ts +2 -1
- package/lib/apps/docking-viewer/index.html +36 -36
- package/lib/apps/docking-viewer/index.js +87 -74
- package/lib/apps/docking-viewer/viewport.js +2 -1
- package/lib/apps/viewer/embedded.html +43 -43
- package/lib/apps/viewer/index.d.ts +36 -215
- package/lib/apps/viewer/index.html +102 -94
- package/lib/apps/viewer/index.js +139 -52
- package/lib/cli/cifschema/index.d.ts +1 -1
- package/lib/cli/cifschema/index.js +15 -35
- package/lib/commonjs/apps/docking-viewer/index.d.ts +2 -1
- package/lib/commonjs/apps/docking-viewer/index.js +86 -73
- package/lib/commonjs/apps/docking-viewer/viewport.js +2 -1
- package/lib/commonjs/apps/viewer/index.d.ts +36 -215
- package/lib/commonjs/apps/viewer/index.js +139 -52
- package/lib/commonjs/cli/cifschema/index.d.ts +1 -1
- package/lib/commonjs/cli/cifschema/index.js +15 -35
- package/lib/commonjs/examples/alpha-orbitals/index.js +2 -3
- package/lib/commonjs/examples/basic-wrapper/index.js +23 -11
- package/lib/commonjs/examples/lighting/index.d.ts +1 -1
- package/lib/commonjs/examples/lighting/index.js +58 -41
- package/lib/commonjs/examples/proteopedia-wrapper/index.js +26 -14
- package/lib/commonjs/extensions/alpha-orbitals/transforms.d.ts +0 -1
- package/lib/commonjs/extensions/alpha-orbitals/transforms.js +1 -14
- package/lib/commonjs/extensions/anvil/behavior.d.ts +3 -0
- package/lib/commonjs/extensions/anvil/representation.d.ts +13 -0
- package/lib/commonjs/extensions/cellpack/representation.d.ts +3 -0
- package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +9 -0
- package/lib/commonjs/extensions/geo-export/obj-exporter.js +1 -1
- package/lib/commonjs/extensions/geo-export/usdz-exporter.js +1 -1
- package/lib/commonjs/extensions/model-archive/quality-assessment/behavior.d.ts +68 -0
- package/lib/commonjs/extensions/model-archive/quality-assessment/behavior.js +236 -0
- package/lib/commonjs/extensions/model-archive/quality-assessment/color/plddt.d.ts +14 -0
- package/lib/commonjs/extensions/model-archive/quality-assessment/color/plddt.js +125 -0
- package/lib/commonjs/extensions/model-archive/quality-assessment/color/qmean.d.ts +12 -0
- package/lib/commonjs/extensions/model-archive/quality-assessment/color/qmean.js +111 -0
- package/lib/commonjs/extensions/model-archive/quality-assessment/prop.d.ts +28 -0
- package/lib/commonjs/extensions/model-archive/quality-assessment/prop.js +130 -0
- package/lib/commonjs/extensions/mp4-export/controls.d.ts +1 -0
- package/lib/commonjs/extensions/mp4-export/controls.js +9 -7
- package/lib/commonjs/extensions/pdbe/structure-quality-report/prop.js +1 -1
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +3 -0
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/prop.js +1 -1
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.d.ts +3 -0
- package/lib/commonjs/extensions/rcsb/validation-report/prop.js +1 -1
- package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +15 -0
- package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +6 -0
- package/lib/commonjs/mol-canvas3d/canvas3d.js +10 -3
- package/lib/commonjs/mol-canvas3d/helper/camera-helper.d.ts +3 -0
- package/lib/commonjs/mol-canvas3d/helper/handle-helper.d.ts +3 -0
- package/lib/commonjs/mol-canvas3d/helper/helper.d.ts +4 -0
- package/lib/commonjs/mol-canvas3d/passes/image.d.ts +3 -0
- package/lib/commonjs/mol-canvas3d/passes/multi-sample.d.ts +2 -1
- package/lib/commonjs/mol-canvas3d/passes/multi-sample.js +4 -2
- package/lib/commonjs/mol-canvas3d/passes/postprocessing.d.ts +1 -0
- package/lib/commonjs/mol-canvas3d/passes/postprocessing.js +4 -2
- package/lib/commonjs/mol-geo/geometry/base.d.ts +2 -0
- package/lib/commonjs/mol-geo/geometry/base.js +2 -0
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +4 -1
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.js +4 -2
- package/lib/commonjs/mol-geo/geometry/direct-volume/direct-volume.d.ts +1 -0
- package/lib/commonjs/mol-geo/geometry/image/image.d.ts +1 -0
- package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +2 -0
- package/lib/commonjs/mol-geo/geometry/mesh/color-smoothing.js +1 -1
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +3 -0
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.js +4 -2
- package/lib/commonjs/mol-geo/geometry/points/points.d.ts +1 -0
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +3 -0
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.js +4 -2
- package/lib/commonjs/mol-geo/geometry/substance-data.js +3 -3
- package/lib/commonjs/mol-geo/geometry/text/text.d.ts +1 -0
- package/lib/commonjs/mol-geo/geometry/texture-mesh/color-smoothing.js +3 -3
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +3 -0
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js +4 -2
- package/lib/commonjs/mol-gl/renderable/cylinders.d.ts +31 -28
- package/lib/commonjs/mol-gl/renderable/cylinders.js +2 -2
- package/lib/commonjs/mol-gl/renderable/direct-volume.d.ts +1 -0
- package/lib/commonjs/mol-gl/renderable/image.d.ts +1 -0
- package/lib/commonjs/mol-gl/renderable/lines.d.ts +1 -0
- package/lib/commonjs/mol-gl/renderable/mesh.d.ts +28 -25
- package/lib/commonjs/mol-gl/renderable/mesh.js +2 -2
- package/lib/commonjs/mol-gl/renderable/points.d.ts +1 -0
- package/lib/commonjs/mol-gl/renderable/schema.d.ts +1 -0
- package/lib/commonjs/mol-gl/renderable/schema.js +3 -3
- package/lib/commonjs/mol-gl/renderable/spheres.d.ts +31 -28
- package/lib/commonjs/mol-gl/renderable/spheres.js +2 -2
- package/lib/commonjs/mol-gl/renderable/text.d.ts +1 -0
- package/lib/commonjs/mol-gl/renderable/texture-mesh.d.ts +3 -0
- package/lib/commonjs/mol-gl/renderable/texture-mesh.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-frag-params.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/color-vert-params.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/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/light-frag-params.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/light-frag-params.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/cylinders.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/cylinders.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.js +1 -1
- package/lib/commonjs/mol-gl/shader/mesh.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/mesh.frag.js +1 -1
- 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/spheres.frag.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/spheres.frag.js +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +326 -1
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +326 -1
- package/lib/commonjs/mol-math/geometry/symmetry-operator.js +3 -2
- package/lib/commonjs/mol-model/structure/model/model.d.ts +1 -0
- package/lib/commonjs/mol-model/structure/model/model.js +15 -5
- package/lib/commonjs/mol-model/structure/model/properties/atomic/hierarchy.d.ts +6 -1
- package/lib/commonjs/mol-model/structure/model/properties/atomic/hierarchy.js +1 -1
- package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-derived.d.ts +1 -1
- package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-derived.js +4 -1
- package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-index.d.ts +1 -1
- package/lib/commonjs/mol-model/structure/model/properties/utils/atomic-index.js +12 -1
- package/lib/commonjs/mol-model/structure/model/types.js +9 -0
- package/lib/commonjs/mol-model/structure/structure/unit/rings.js +2 -0
- package/lib/commonjs/mol-model-formats/shape/ply.d.ts +6 -0
- package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +3 -0
- package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +3 -0
- package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +9 -0
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +12 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +1 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +3 -2
- package/lib/commonjs/mol-plugin/commands.d.ts +3 -0
- package/lib/commonjs/mol-plugin/config.d.ts +2 -0
- package/lib/commonjs/mol-plugin/config.js +10 -3
- package/lib/commonjs/mol-plugin/util/viewport-screenshot.d.ts +9 -0
- package/lib/commonjs/mol-plugin-state/actions/structure.d.ts +7 -1
- package/lib/commonjs/mol-plugin-state/actions/structure.js +150 -72
- package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +5 -355
- package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy-preset.js +13 -8
- package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy.d.ts +1 -71
- package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.js +33 -19
- package/lib/commonjs/mol-plugin-state/manager/structure/component.d.ts +2 -0
- package/lib/commonjs/mol-plugin-state/manager/structure/component.js +1 -1
- package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +22 -0
- package/lib/commonjs/mol-plugin-ui/controls/parameters.d.ts +3 -2
- package/lib/commonjs/mol-plugin-ui/controls/parameters.js +11 -6
- package/lib/commonjs/mol-plugin-ui/hooks/use-behavior.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/hooks/use-behavior.js +8 -17
- package/lib/commonjs/mol-plugin-ui/index.d.ts +4 -4
- package/lib/commonjs/mol-plugin-ui/index.js +13 -16
- package/lib/commonjs/mol-plugin-ui/plugin.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/plugin.js +76 -10
- package/lib/commonjs/mol-repr/shape/loci/angle.d.ts +3 -0
- package/lib/commonjs/mol-repr/shape/loci/common.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/dihedral.d.ts +3 -0
- package/lib/commonjs/mol-repr/shape/loci/distance.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/label.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +3 -0
- package/lib/commonjs/mol-repr/shape/loci/plane.d.ts +3 -0
- package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +12 -0
- package/lib/commonjs/mol-repr/structure/params.d.ts +16 -0
- package/lib/commonjs/mol-repr/structure/registry.d.ts +35 -1
- package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +9 -0
- package/lib/commonjs/mol-repr/structure/representation/backbone.js +2 -1
- package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +9 -0
- package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.js +2 -1
- package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +9 -0
- package/lib/commonjs/mol-repr/structure/representation/carbohydrate.js +2 -1
- package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +9 -0
- package/lib/commonjs/mol-repr/structure/representation/cartoon.js +2 -1
- package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +9 -0
- package/lib/commonjs/mol-repr/structure/representation/ellipsoid.js +2 -1
- package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +9 -0
- package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.js +2 -1
- package/lib/commonjs/mol-repr/structure/representation/gaussian-volume.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/label.d.ts +6 -3
- package/lib/commonjs/mol-repr/structure/representation/line.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +9 -0
- package/lib/commonjs/mol-repr/structure/representation/molecular-surface.js +2 -1
- package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +9 -0
- package/lib/commonjs/mol-repr/structure/representation/orientation.js +2 -1
- package/lib/commonjs/mol-repr/structure/representation/point.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +9 -0
- package/lib/commonjs/mol-repr/structure/representation/putty.js +2 -1
- package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +9 -0
- package/lib/commonjs/mol-repr/structure/representation/spacefill.js +2 -1
- package/lib/commonjs/mol-repr/structure/units-visual.d.ts +16 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +6 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-line.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +6 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/visual/element-cross.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/element-point.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +6 -0
- package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/visual/gaussian-density-volume.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +12 -0
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/label-text.d.ts +3 -2
- package/lib/commonjs/mol-repr/structure/visual/label-text.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +6 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +6 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.js +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/visual/util/bond.js +1 -1
- package/lib/commonjs/mol-repr/volume/direct-volume.d.ts +3 -0
- package/lib/commonjs/mol-repr/volume/isosurface.d.ts +16 -0
- package/lib/commonjs/mol-repr/volume/isosurface.js +2 -1
- package/lib/commonjs/mol-repr/volume/registry.d.ts +5 -0
- package/lib/commonjs/mol-repr/volume/representation.d.ts +1 -0
- package/lib/commonjs/mol-repr/volume/slice.d.ts +3 -0
- package/lib/commonjs/mol-script/language/builder.d.ts +0 -1
- package/lib/commonjs/mol-theme/color/illustrative.d.ts +2 -0
- package/lib/commonjs/mol-theme/color/illustrative.js +2 -2
- package/lib/commonjs/mol-theme/color.d.ts +1 -0
- package/lib/commonjs/mol-util/material.d.ts +5 -1
- package/lib/commonjs/mol-util/material.js +9 -7
- package/lib/examples/alpha-orbitals/index.html +61 -60
- package/lib/examples/alpha-orbitals/index.js +3 -4
- package/lib/examples/basic-wrapper/index.html +137 -136
- package/lib/examples/basic-wrapper/index.js +24 -12
- package/lib/examples/lighting/index.d.ts +1 -1
- package/lib/examples/lighting/index.html +88 -86
- package/lib/examples/lighting/index.js +59 -42
- package/lib/examples/proteopedia-wrapper/index.html +236 -235
- package/lib/examples/proteopedia-wrapper/index.js +27 -15
- package/lib/extensions/alpha-orbitals/transforms.d.ts +0 -1
- package/lib/extensions/alpha-orbitals/transforms.js +1 -14
- package/lib/extensions/anvil/behavior.d.ts +3 -0
- package/lib/extensions/anvil/representation.d.ts +13 -0
- package/lib/extensions/cellpack/representation.d.ts +3 -0
- package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +9 -0
- package/lib/extensions/geo-export/obj-exporter.js +1 -1
- package/lib/extensions/geo-export/usdz-exporter.js +1 -1
- package/lib/extensions/model-archive/quality-assessment/behavior.d.ts +68 -0
- package/lib/extensions/model-archive/quality-assessment/behavior.js +233 -0
- package/lib/extensions/model-archive/quality-assessment/color/plddt.d.ts +14 -0
- package/lib/extensions/model-archive/quality-assessment/color/plddt.js +120 -0
- package/lib/extensions/model-archive/quality-assessment/color/qmean.d.ts +12 -0
- package/lib/extensions/model-archive/quality-assessment/color/qmean.js +106 -0
- package/lib/extensions/model-archive/quality-assessment/prop.d.ts +28 -0
- package/lib/extensions/model-archive/quality-assessment/prop.js +127 -0
- package/lib/extensions/mp4-export/controls.d.ts +1 -0
- package/lib/extensions/mp4-export/controls.js +9 -7
- package/lib/extensions/pdbe/structure-quality-report/prop.js +1 -1
- package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +3 -0
- package/lib/extensions/rcsb/assembly-symmetry/prop.js +1 -1
- package/lib/extensions/rcsb/assembly-symmetry/representation.d.ts +3 -0
- package/lib/extensions/rcsb/validation-report/prop.js +1 -1
- package/lib/extensions/rcsb/validation-report/representation.d.ts +15 -0
- package/lib/mol-canvas3d/canvas3d.d.ts +6 -0
- package/lib/mol-canvas3d/canvas3d.js +10 -3
- package/lib/mol-canvas3d/helper/camera-helper.d.ts +3 -0
- package/lib/mol-canvas3d/helper/handle-helper.d.ts +3 -0
- package/lib/mol-canvas3d/helper/helper.d.ts +4 -0
- package/lib/mol-canvas3d/passes/image.d.ts +3 -0
- package/lib/mol-canvas3d/passes/multi-sample.d.ts +2 -1
- package/lib/mol-canvas3d/passes/multi-sample.js +4 -2
- package/lib/mol-canvas3d/passes/postprocessing.d.ts +1 -0
- package/lib/mol-canvas3d/passes/postprocessing.js +4 -2
- package/lib/mol-geo/geometry/base.d.ts +2 -0
- package/lib/mol-geo/geometry/base.js +2 -0
- package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +4 -1
- package/lib/mol-geo/geometry/cylinders/cylinders.js +4 -2
- package/lib/mol-geo/geometry/direct-volume/direct-volume.d.ts +1 -0
- package/lib/mol-geo/geometry/image/image.d.ts +1 -0
- package/lib/mol-geo/geometry/lines/lines.d.ts +2 -0
- package/lib/mol-geo/geometry/mesh/color-smoothing.js +1 -1
- package/lib/mol-geo/geometry/mesh/mesh.d.ts +3 -0
- package/lib/mol-geo/geometry/mesh/mesh.js +4 -2
- package/lib/mol-geo/geometry/points/points.d.ts +1 -0
- package/lib/mol-geo/geometry/spheres/spheres.d.ts +3 -0
- package/lib/mol-geo/geometry/spheres/spheres.js +4 -2
- package/lib/mol-geo/geometry/substance-data.js +3 -3
- package/lib/mol-geo/geometry/text/text.d.ts +1 -0
- package/lib/mol-geo/geometry/texture-mesh/color-smoothing.js +3 -3
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +3 -0
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js +4 -2
- package/lib/mol-gl/renderable/cylinders.d.ts +31 -28
- package/lib/mol-gl/renderable/cylinders.js +3 -3
- package/lib/mol-gl/renderable/direct-volume.d.ts +1 -0
- package/lib/mol-gl/renderable/image.d.ts +1 -0
- package/lib/mol-gl/renderable/lines.d.ts +1 -0
- package/lib/mol-gl/renderable/mesh.d.ts +28 -25
- package/lib/mol-gl/renderable/mesh.js +3 -3
- package/lib/mol-gl/renderable/points.d.ts +1 -0
- package/lib/mol-gl/renderable/schema.d.ts +1 -0
- package/lib/mol-gl/renderable/schema.js +3 -3
- package/lib/mol-gl/renderable/spheres.d.ts +31 -28
- package/lib/mol-gl/renderable/spheres.js +3 -3
- package/lib/mol-gl/renderable/text.d.ts +1 -0
- package/lib/mol-gl/renderable/texture-mesh.d.ts +3 -0
- package/lib/mol-gl/renderable/texture-mesh.js +1 -1
- package/lib/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/apply-light-color.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/assign-material-color.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/assign-material-color.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/color-frag-params.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/color-frag-params.glsl.js +1 -1
- package/lib/mol-gl/shader/chunks/color-vert-params.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/color-vert-params.glsl.js +1 -1
- package/lib/mol-gl/shader/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/light-frag-params.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/light-frag-params.glsl.js +1 -1
- package/lib/mol-gl/shader/cylinders.frag.d.ts +1 -1
- package/lib/mol-gl/shader/cylinders.frag.js +1 -1
- package/lib/mol-gl/shader/direct-volume.frag.d.ts +1 -1
- package/lib/mol-gl/shader/direct-volume.frag.js +1 -1
- package/lib/mol-gl/shader/mesh.frag.d.ts +1 -1
- package/lib/mol-gl/shader/mesh.frag.js +1 -1
- 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/spheres.frag.d.ts +1 -1
- package/lib/mol-gl/shader/spheres.frag.js +1 -1
- package/lib/mol-io/reader/cif/schema/mmcif.d.ts +326 -1
- package/lib/mol-io/reader/cif/schema/mmcif.js +326 -1
- package/lib/mol-math/geometry/symmetry-operator.js +3 -2
- package/lib/mol-model/structure/model/model.d.ts +1 -0
- package/lib/mol-model/structure/model/model.js +15 -5
- package/lib/mol-model/structure/model/properties/atomic/hierarchy.d.ts +6 -1
- package/lib/mol-model/structure/model/properties/atomic/hierarchy.js +1 -1
- package/lib/mol-model/structure/model/properties/utils/atomic-derived.d.ts +1 -1
- package/lib/mol-model/structure/model/properties/utils/atomic-derived.js +5 -2
- package/lib/mol-model/structure/model/properties/utils/atomic-index.d.ts +1 -1
- package/lib/mol-model/structure/model/properties/utils/atomic-index.js +12 -1
- package/lib/mol-model/structure/model/types.js +9 -0
- package/lib/mol-model/structure/structure/unit/rings.js +2 -0
- package/lib/mol-model-formats/shape/ply.d.ts +6 -0
- package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +3 -0
- package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +3 -0
- package/lib/mol-model-props/computed/representations/interactions.d.ts +9 -0
- package/lib/mol-model-props/integrative/cross-link-restraint/representation.d.ts +12 -0
- package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +1 -0
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +3 -2
- package/lib/mol-plugin/commands.d.ts +3 -0
- package/lib/mol-plugin/config.d.ts +2 -0
- package/lib/mol-plugin/config.js +9 -3
- package/lib/mol-plugin/util/viewport-screenshot.d.ts +9 -0
- package/lib/mol-plugin/version.js +2 -2
- package/lib/mol-plugin-state/actions/structure.d.ts +7 -1
- package/lib/mol-plugin-state/actions/structure.js +150 -72
- package/lib/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +5 -355
- package/lib/mol-plugin-state/builder/structure/hierarchy-preset.js +14 -9
- package/lib/mol-plugin-state/builder/structure/hierarchy.d.ts +1 -71
- package/lib/mol-plugin-state/helpers/structure-selection-query.js +34 -20
- package/lib/mol-plugin-state/manager/structure/component.d.ts +2 -0
- package/lib/mol-plugin-state/manager/structure/component.js +2 -2
- package/lib/mol-plugin-state/transforms/representation.d.ts +22 -0
- package/lib/mol-plugin-ui/controls/parameters.d.ts +3 -2
- package/lib/mol-plugin-ui/controls/parameters.js +12 -7
- package/lib/mol-plugin-ui/hooks/use-behavior.d.ts +1 -1
- package/lib/mol-plugin-ui/hooks/use-behavior.js +9 -18
- package/lib/mol-plugin-ui/index.d.ts +4 -4
- package/lib/mol-plugin-ui/index.js +11 -13
- package/lib/mol-plugin-ui/plugin.d.ts +1 -1
- package/lib/mol-plugin-ui/plugin.js +76 -10
- 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 -616
- 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 +127 -127
- 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-repr/shape/loci/angle.d.ts +3 -0
- package/lib/mol-repr/shape/loci/common.d.ts +1 -0
- package/lib/mol-repr/shape/loci/dihedral.d.ts +3 -0
- package/lib/mol-repr/shape/loci/distance.d.ts +1 -0
- package/lib/mol-repr/shape/loci/label.d.ts +1 -0
- package/lib/mol-repr/shape/loci/orientation.d.ts +3 -0
- package/lib/mol-repr/shape/loci/plane.d.ts +3 -0
- package/lib/mol-repr/shape/model/unitcell.d.ts +3 -0
- package/lib/mol-repr/structure/complex-visual.d.ts +12 -0
- package/lib/mol-repr/structure/params.d.ts +16 -0
- package/lib/mol-repr/structure/registry.d.ts +35 -1
- package/lib/mol-repr/structure/representation/backbone.d.ts +9 -0
- package/lib/mol-repr/structure/representation/backbone.js +2 -1
- package/lib/mol-repr/structure/representation/ball-and-stick.d.ts +9 -0
- package/lib/mol-repr/structure/representation/ball-and-stick.js +2 -1
- package/lib/mol-repr/structure/representation/carbohydrate.d.ts +9 -0
- package/lib/mol-repr/structure/representation/carbohydrate.js +2 -1
- package/lib/mol-repr/structure/representation/cartoon.d.ts +9 -0
- package/lib/mol-repr/structure/representation/cartoon.js +2 -1
- package/lib/mol-repr/structure/representation/ellipsoid.d.ts +9 -0
- package/lib/mol-repr/structure/representation/ellipsoid.js +2 -1
- package/lib/mol-repr/structure/representation/gaussian-surface.d.ts +9 -0
- package/lib/mol-repr/structure/representation/gaussian-surface.js +2 -1
- package/lib/mol-repr/structure/representation/gaussian-volume.d.ts +3 -0
- package/lib/mol-repr/structure/representation/label.d.ts +6 -3
- package/lib/mol-repr/structure/representation/line.d.ts +3 -0
- package/lib/mol-repr/structure/representation/molecular-surface.d.ts +9 -0
- package/lib/mol-repr/structure/representation/molecular-surface.js +2 -1
- package/lib/mol-repr/structure/representation/orientation.d.ts +9 -0
- package/lib/mol-repr/structure/representation/orientation.js +2 -1
- package/lib/mol-repr/structure/representation/point.d.ts +3 -0
- package/lib/mol-repr/structure/representation/putty.d.ts +9 -0
- package/lib/mol-repr/structure/representation/putty.js +2 -1
- package/lib/mol-repr/structure/representation/spacefill.d.ts +9 -0
- package/lib/mol-repr/structure/representation/spacefill.js +2 -1
- package/lib/mol-repr/structure/units-visual.d.ts +16 -0
- package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +6 -0
- package/lib/mol-repr/structure/visual/bond-inter-unit-line.d.ts +1 -0
- package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +6 -0
- package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.js +2 -2
- package/lib/mol-repr/structure/visual/bond-intra-unit-line.d.ts +1 -0
- package/lib/mol-repr/structure/visual/bond-intra-unit-line.js +2 -2
- package/lib/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +3 -0
- package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +3 -0
- package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +3 -0
- package/lib/mol-repr/structure/visual/element-cross.d.ts +1 -0
- package/lib/mol-repr/structure/visual/element-point.d.ts +1 -0
- package/lib/mol-repr/structure/visual/element-sphere.d.ts +6 -0
- package/lib/mol-repr/structure/visual/ellipsoid-mesh.d.ts +3 -0
- package/lib/mol-repr/structure/visual/gaussian-density-volume.d.ts +2 -0
- package/lib/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +12 -0
- package/lib/mol-repr/structure/visual/gaussian-surface-wireframe.d.ts +1 -0
- package/lib/mol-repr/structure/visual/label-text.d.ts +3 -2
- package/lib/mol-repr/structure/visual/label-text.js +2 -2
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +3 -0
- package/lib/mol-repr/structure/visual/molecular-surface-wireframe.d.ts +1 -0
- package/lib/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +3 -0
- package/lib/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +3 -0
- package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +3 -0
- package/lib/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +6 -0
- package/lib/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +6 -0
- package/lib/mol-repr/structure/visual/polymer-direction-wedge.d.ts +3 -0
- package/lib/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +3 -0
- package/lib/mol-repr/structure/visual/polymer-trace-mesh.d.ts +3 -0
- package/lib/mol-repr/structure/visual/polymer-trace-mesh.js +1 -1
- package/lib/mol-repr/structure/visual/polymer-tube-mesh.d.ts +3 -0
- package/lib/mol-repr/structure/visual/util/bond.js +1 -1
- package/lib/mol-repr/volume/direct-volume.d.ts +3 -0
- package/lib/mol-repr/volume/isosurface.d.ts +16 -0
- package/lib/mol-repr/volume/isosurface.js +2 -1
- package/lib/mol-repr/volume/registry.d.ts +5 -0
- package/lib/mol-repr/volume/representation.d.ts +1 -0
- package/lib/mol-repr/volume/slice.d.ts +3 -0
- package/lib/mol-script/language/builder.d.ts +0 -1
- package/lib/mol-theme/color/illustrative.d.ts +2 -0
- package/lib/mol-theme/color/illustrative.js +2 -2
- package/lib/mol-theme/color.d.ts +1 -0
- package/lib/mol-util/material.d.ts +5 -1
- package/lib/mol-util/material.js +9 -7
- package/package.json +162 -160
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
3
|
/**
|
|
4
|
-
* Copyright (c) 2017-
|
|
4
|
+
* Copyright (c) 2017-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
5
5
|
*
|
|
6
6
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
7
7
|
*/
|
|
@@ -25,7 +25,7 @@ function getDicNamespace(block) {
|
|
|
25
25
|
function runGenerateSchemaMmcif(name, fieldNamesPath, typescript, out, moldbImportPath, addAliases) {
|
|
26
26
|
if (typescript === void 0) { typescript = false; }
|
|
27
27
|
return (0, tslib_1.__awaiter)(this, void 0, void 0, function () {
|
|
28
|
-
var mmcifDic, ihmDic,
|
|
28
|
+
var mmcifDic, ihmDic, maDic, mmcifDicVersion, ihmDicVersion, maDicVersion, version, frames, schema;
|
|
29
29
|
return (0, tslib_1.__generator)(this, function (_a) {
|
|
30
30
|
switch (_a.label) {
|
|
31
31
|
case 0: return [4 /*yield*/, ensureMmcifDicAvailable()];
|
|
@@ -44,30 +44,22 @@ function runGenerateSchemaMmcif(name, fieldNamesPath, typescript, out, moldbImpo
|
|
|
44
44
|
ihmDic = _a.sent();
|
|
45
45
|
if (ihmDic.isError)
|
|
46
46
|
throw ihmDic;
|
|
47
|
-
return [4 /*yield*/,
|
|
47
|
+
return [4 /*yield*/, ensureMaDicAvailable()];
|
|
48
48
|
case 5:
|
|
49
49
|
_a.sent();
|
|
50
|
-
return [4 /*yield*/, (0, parser_2.parseCifText)(fs.readFileSync(
|
|
50
|
+
return [4 /*yield*/, (0, parser_2.parseCifText)(fs.readFileSync(MA_DIC_PATH, 'utf8')).run()];
|
|
51
51
|
case 6:
|
|
52
|
-
|
|
53
|
-
if (
|
|
54
|
-
throw
|
|
55
|
-
return [4 /*yield*/, ensureCarbCompDicAvailable()];
|
|
56
|
-
case 7:
|
|
57
|
-
_a.sent();
|
|
58
|
-
return [4 /*yield*/, (0, parser_2.parseCifText)(fs.readFileSync(CARB_COMP_DIC_PATH, 'utf8')).run()];
|
|
59
|
-
case 8:
|
|
60
|
-
carbCompDic = _a.sent();
|
|
61
|
-
if (carbCompDic.isError)
|
|
62
|
-
throw carbCompDic;
|
|
52
|
+
maDic = _a.sent();
|
|
53
|
+
if (maDic.isError)
|
|
54
|
+
throw maDic;
|
|
63
55
|
mmcifDicVersion = getDicVersion(mmcifDic.result.blocks[0]);
|
|
64
56
|
ihmDicVersion = getDicVersion(ihmDic.result.blocks[0]);
|
|
65
|
-
|
|
66
|
-
version = "Dictionary versions: mmCIF ".concat(mmcifDicVersion, ", IHM ").concat(ihmDicVersion, ",
|
|
67
|
-
frames = (0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)(
|
|
57
|
+
maDicVersion = getDicVersion(maDic.result.blocks[0]);
|
|
58
|
+
version = "Dictionary versions: mmCIF ".concat(mmcifDicVersion, ", IHM ").concat(ihmDicVersion, ", MA ").concat(maDicVersion, ".");
|
|
59
|
+
frames = (0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)([], mmcifDic.result.blocks[0].saveFrames, true), ihmDic.result.blocks[0].saveFrames, true), maDic.result.blocks[0].saveFrames, true);
|
|
68
60
|
schema = (0, cif_dic_1.generateSchema)(frames);
|
|
69
61
|
return [4 /*yield*/, runGenerateSchema(name, version, schema, fieldNamesPath, typescript, out, moldbImportPath, addAliases)];
|
|
70
|
-
case
|
|
62
|
+
case 7:
|
|
71
63
|
_a.sent();
|
|
72
64
|
return [2 /*return*/];
|
|
73
65
|
}
|
|
@@ -251,20 +243,10 @@ function ensureIhmDicAvailable() {
|
|
|
251
243
|
}
|
|
252
244
|
}); });
|
|
253
245
|
}
|
|
254
|
-
function
|
|
255
|
-
return (0, tslib_1.__awaiter)(this, void 0, void 0, function () { return (0, tslib_1.__generator)(this, function (_a) {
|
|
256
|
-
switch (_a.label) {
|
|
257
|
-
case 0: return [4 /*yield*/, ensureDicAvailable(CARB_BRANCH_DIC_PATH, CARB_BRANCH_DIC_URL)];
|
|
258
|
-
case 1:
|
|
259
|
-
_a.sent();
|
|
260
|
-
return [2 /*return*/];
|
|
261
|
-
}
|
|
262
|
-
}); });
|
|
263
|
-
}
|
|
264
|
-
function ensureCarbCompDicAvailable() {
|
|
246
|
+
function ensureMaDicAvailable() {
|
|
265
247
|
return (0, tslib_1.__awaiter)(this, void 0, void 0, function () { return (0, tslib_1.__generator)(this, function (_a) {
|
|
266
248
|
switch (_a.label) {
|
|
267
|
-
case 0: return [4 /*yield*/, ensureDicAvailable(
|
|
249
|
+
case 0: return [4 /*yield*/, ensureDicAvailable(MA_DIC_PATH, MA_DIC_URL)];
|
|
268
250
|
case 1:
|
|
269
251
|
_a.sent();
|
|
270
252
|
return [2 /*return*/];
|
|
@@ -321,10 +303,8 @@ var MMCIF_DIC_PATH = "".concat(DIC_DIR, "/mmcif_pdbx_v50.dic");
|
|
|
321
303
|
var MMCIF_DIC_URL = 'http://mmcif.wwpdb.org/dictionaries/ascii/mmcif_pdbx_v50.dic';
|
|
322
304
|
var IHM_DIC_PATH = "".concat(DIC_DIR, "/ihm-extension.dic");
|
|
323
305
|
var IHM_DIC_URL = 'https://raw.githubusercontent.com/ihmwg/IHM-dictionary/master/ihm-extension.dic';
|
|
324
|
-
var
|
|
325
|
-
var
|
|
326
|
-
var CARB_COMP_DIC_PATH = "".concat(DIC_DIR, "/chem_comp-extension.dic");
|
|
327
|
-
var CARB_COMP_DIC_URL = 'https://raw.githubusercontent.com/pdbxmmcifwg/carbohydrate-extension/master/dict/chem_comp-extension.dic';
|
|
306
|
+
var MA_DIC_PATH = "".concat(DIC_DIR, "/ma-extension.dic");
|
|
307
|
+
var MA_DIC_URL = 'https://raw.githubusercontent.com/ihmwg/MA-dictionary/master/mmcif_ma.dic';
|
|
328
308
|
var CIF_CORE_DIC_PATH = "".concat(DIC_DIR, "/cif_core.dic");
|
|
329
309
|
var CIF_CORE_DIC_URL = 'https://raw.githubusercontent.com/COMCIFS/cif_core/master/cif_core.dic';
|
|
330
310
|
var CIF_CORE_ENUM_PATH = "".concat(DIC_DIR, "/templ_enum.cif");
|
|
@@ -38,7 +38,7 @@ var AlphaOrbitalsExample = /** @class */ (function () {
|
|
|
38
38
|
case 0:
|
|
39
39
|
defaultSpec = (0, spec_1.DefaultPluginUISpec)();
|
|
40
40
|
_b = this;
|
|
41
|
-
return [4 /*yield*/, (0, mol_plugin_ui_1.
|
|
41
|
+
return [4 /*yield*/, (0, mol_plugin_ui_1.createPluginUI)(typeof target === 'string' ? document.getElementById(target) : target, (0, tslib_1.__assign)((0, tslib_1.__assign)({}, defaultSpec), { layout: {
|
|
42
42
|
initial: {
|
|
43
43
|
isExpanded: false,
|
|
44
44
|
showControls: false
|
|
@@ -150,12 +150,11 @@ var AlphaOrbitalsExample = /** @class */ (function () {
|
|
|
150
150
|
return {
|
|
151
151
|
alpha: 0.85,
|
|
152
152
|
color: color,
|
|
153
|
-
directVolume: this.state.value.gpuSurface,
|
|
154
153
|
kind: kind,
|
|
155
154
|
relativeIsovalue: this.state.value.isoValue,
|
|
156
155
|
pickable: false,
|
|
157
156
|
xrayShaded: true,
|
|
158
|
-
tryUseGpu:
|
|
157
|
+
tryUseGpu: true
|
|
159
158
|
};
|
|
160
159
|
};
|
|
161
160
|
AlphaOrbitalsExample.prototype.load = function (input) {
|
|
@@ -180,18 +180,30 @@ var BasicWrapper = /** @class */ (function () {
|
|
|
180
180
|
};
|
|
181
181
|
}
|
|
182
182
|
BasicWrapper.prototype.init = function (target) {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
183
|
+
return (0, tslib_1.__awaiter)(this, void 0, void 0, function () {
|
|
184
|
+
var _a;
|
|
185
|
+
return (0, tslib_1.__generator)(this, function (_b) {
|
|
186
|
+
switch (_b.label) {
|
|
187
|
+
case 0:
|
|
188
|
+
_a = this;
|
|
189
|
+
return [4 /*yield*/, (0, mol_plugin_ui_1.createPluginUI)(typeof target === 'string' ? document.getElementById(target) : target, (0, tslib_1.__assign)((0, tslib_1.__assign)({}, (0, spec_1.DefaultPluginUISpec)()), { layout: {
|
|
190
|
+
initial: {
|
|
191
|
+
isExpanded: false,
|
|
192
|
+
showControls: false
|
|
193
|
+
}
|
|
194
|
+
}, components: {
|
|
195
|
+
remoteState: 'none'
|
|
196
|
+
} }))];
|
|
197
|
+
case 1:
|
|
198
|
+
_a.plugin = _b.sent();
|
|
199
|
+
this.plugin.representation.structure.themes.colorThemeRegistry.add(coloring_1.StripedResidues.colorThemeProvider);
|
|
200
|
+
this.plugin.representation.structure.themes.colorThemeRegistry.add(custom_theme_1.CustomColorThemeProvider);
|
|
201
|
+
this.plugin.managers.lociLabels.addProvider(coloring_1.StripedResidues.labelProvider);
|
|
202
|
+
this.plugin.customModelProperties.register(coloring_1.StripedResidues.propertyProvider, true);
|
|
203
|
+
return [2 /*return*/];
|
|
187
204
|
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
} }));
|
|
191
|
-
this.plugin.representation.structure.themes.colorThemeRegistry.add(coloring_1.StripedResidues.colorThemeProvider);
|
|
192
|
-
this.plugin.representation.structure.themes.colorThemeRegistry.add(custom_theme_1.CustomColorThemeProvider);
|
|
193
|
-
this.plugin.managers.lociLabels.addProvider(coloring_1.StripedResidues.labelProvider);
|
|
194
|
-
this.plugin.customModelProperties.register(coloring_1.StripedResidues.propertyProvider, true);
|
|
205
|
+
});
|
|
206
|
+
});
|
|
195
207
|
};
|
|
196
208
|
BasicWrapper.prototype.load = function (_a) {
|
|
197
209
|
var url = _a.url, _b = _a.format, format = _b === void 0 ? 'mmcif' : _b, _c = _a.isBinary, isBinary = _c === void 0 ? false : _c, _d = _a.assemblyId, assemblyId = _d === void 0 ? '' : _d;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
|
+
* Copyright (c) 2019-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
*/
|
|
@@ -10,43 +10,46 @@ var mol_plugin_ui_1 = require("../../mol-plugin-ui");
|
|
|
10
10
|
var spec_1 = require("../../mol-plugin-ui/spec");
|
|
11
11
|
var commands_1 = require("../../mol-plugin/commands");
|
|
12
12
|
var assets_1 = require("../../mol-util/assets");
|
|
13
|
+
var color_1 = require("../../mol-util/color");
|
|
13
14
|
require("./index.html");
|
|
14
15
|
require('mol-plugin-ui/skin/light.scss');
|
|
15
16
|
var Canvas3DPresets = {
|
|
16
17
|
illustrative: {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
canvas3d: {
|
|
19
|
+
postprocessing: {
|
|
20
|
+
occlusion: { name: 'on', params: { samples: 32, radius: 6, bias: 1.4, blurKernelSize: 15 } },
|
|
21
|
+
outline: { name: 'on', params: { scale: 1, threshold: 0.33, color: (0, color_1.Color)(0x000000) } }
|
|
22
|
+
},
|
|
23
|
+
renderer: {
|
|
24
|
+
ambientIntensity: 1.0,
|
|
25
|
+
light: []
|
|
26
|
+
}
|
|
26
27
|
}
|
|
27
28
|
},
|
|
28
29
|
occlusion: {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
30
|
+
canvas3d: {
|
|
31
|
+
postprocessing: {
|
|
32
|
+
occlusion: { name: 'on', params: { samples: 32, radius: 6, bias: 1.4, blurKernelSize: 15 } },
|
|
33
|
+
outline: { name: 'off', params: {} }
|
|
34
|
+
},
|
|
35
|
+
renderer: {
|
|
36
|
+
ambientIntensity: 0.4,
|
|
37
|
+
light: [{ inclination: 180, azimuth: 0, color: color_1.Color.fromNormalizedRgb(1.0, 1.0, 1.0),
|
|
38
|
+
intensity: 0.6 }]
|
|
39
|
+
}
|
|
38
40
|
}
|
|
39
41
|
},
|
|
40
42
|
standard: {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
canvas3d: {
|
|
44
|
+
postprocessing: {
|
|
45
|
+
occlusion: { name: 'off', params: {} },
|
|
46
|
+
outline: { name: 'off', params: {} }
|
|
47
|
+
},
|
|
48
|
+
renderer: {
|
|
49
|
+
ambientIntensity: 0.4,
|
|
50
|
+
light: [{ inclination: 180, azimuth: 0, color: color_1.Color.fromNormalizedRgb(1.0, 1.0, 1.0),
|
|
51
|
+
intensity: 0.6 }]
|
|
52
|
+
}
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
};
|
|
@@ -57,24 +60,38 @@ var LightingDemo = /** @class */ (function () {
|
|
|
57
60
|
this.preset = 'illustrative';
|
|
58
61
|
}
|
|
59
62
|
LightingDemo.prototype.init = function (target) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
return (0, tslib_1.__awaiter)(this, void 0, void 0, function () {
|
|
64
|
+
var _a;
|
|
65
|
+
return (0, tslib_1.__generator)(this, function (_b) {
|
|
66
|
+
switch (_b.label) {
|
|
67
|
+
case 0:
|
|
68
|
+
_a = this;
|
|
69
|
+
return [4 /*yield*/, (0, mol_plugin_ui_1.createPluginUI)(typeof target === 'string' ? document.getElementById(target) : target, (0, tslib_1.__assign)((0, tslib_1.__assign)({}, (0, spec_1.DefaultPluginUISpec)()), { layout: {
|
|
70
|
+
initial: {
|
|
71
|
+
isExpanded: false,
|
|
72
|
+
showControls: false
|
|
73
|
+
},
|
|
74
|
+
}, components: {
|
|
75
|
+
controls: { left: 'none', right: 'none', top: 'none', bottom: 'none' }
|
|
76
|
+
} }))];
|
|
77
|
+
case 1:
|
|
78
|
+
_a.plugin = _b.sent();
|
|
79
|
+
this.setPreset('illustrative');
|
|
80
|
+
return [2 /*return*/];
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
});
|
|
69
84
|
};
|
|
70
85
|
LightingDemo.prototype.setPreset = function (preset) {
|
|
71
86
|
var _a;
|
|
72
87
|
var props = Canvas3DPresets[preset];
|
|
73
|
-
if (((_a = props.postprocessing.occlusion) === null || _a === void 0 ? void 0 : _a.name) === 'on') {
|
|
74
|
-
props.postprocessing.occlusion.params.radius = this.radius;
|
|
75
|
-
props.postprocessing.occlusion.params.bias = this.bias;
|
|
88
|
+
if (((_a = props.canvas3d.postprocessing.occlusion) === null || _a === void 0 ? void 0 : _a.name) === 'on') {
|
|
89
|
+
props.canvas3d.postprocessing.occlusion.params.radius = this.radius;
|
|
90
|
+
props.canvas3d.postprocessing.occlusion.params.bias = this.bias;
|
|
76
91
|
}
|
|
77
|
-
commands_1.PluginCommands.Canvas3D.SetSettings(this.plugin, {
|
|
92
|
+
commands_1.PluginCommands.Canvas3D.SetSettings(this.plugin, {
|
|
93
|
+
settings: (0, tslib_1.__assign)((0, tslib_1.__assign)({}, props), { renderer: (0, tslib_1.__assign)((0, tslib_1.__assign)({}, this.plugin.canvas3d.props.renderer), props.canvas3d.renderer), postprocessing: (0, tslib_1.__assign)((0, tslib_1.__assign)({}, this.plugin.canvas3d.props.postprocessing), props.canvas3d.postprocessing) })
|
|
94
|
+
});
|
|
78
95
|
};
|
|
79
96
|
LightingDemo.prototype.load = function (_a, radius, bias) {
|
|
80
97
|
var url = _a.url, _b = _a.format, format = _b === void 0 ? 'mmcif' : _b, _c = _a.isBinary, isBinary = _c === void 0 ? true : _c, _d = _a.assemblyId, assemblyId = _d === void 0 ? '' : _d;
|
|
@@ -235,21 +235,33 @@ var MolStarProteopediaWrapper = /** @class */ (function () {
|
|
|
235
235
|
};
|
|
236
236
|
}
|
|
237
237
|
MolStarProteopediaWrapper.prototype.init = function (target, options) {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
238
|
+
return (0, tslib_1.__awaiter)(this, void 0, void 0, function () {
|
|
239
|
+
var _a, customColoring;
|
|
240
|
+
return (0, tslib_1.__generator)(this, function (_b) {
|
|
241
|
+
switch (_b.label) {
|
|
242
|
+
case 0:
|
|
243
|
+
_a = this;
|
|
244
|
+
return [4 /*yield*/, (0, mol_plugin_ui_1.createPluginUI)(typeof target === 'string' ? document.getElementById(target) : target, (0, tslib_1.__assign)((0, tslib_1.__assign)({}, (0, spec_1.DefaultPluginUISpec)()), { animations: [
|
|
245
|
+
model_index_1.AnimateModelIndex
|
|
246
|
+
], layout: {
|
|
247
|
+
initial: {
|
|
248
|
+
isExpanded: false,
|
|
249
|
+
showControls: false
|
|
250
|
+
}
|
|
251
|
+
}, components: {
|
|
252
|
+
remoteState: 'none'
|
|
253
|
+
} }))];
|
|
254
|
+
case 1:
|
|
255
|
+
_a.plugin = _b.sent();
|
|
256
|
+
customColoring = (0, coloring_1.createProteopediaCustomTheme)((options && options.customColorList) || []);
|
|
257
|
+
this.plugin.representation.structure.themes.colorThemeRegistry.add(customColoring);
|
|
258
|
+
this.plugin.representation.structure.themes.colorThemeRegistry.add(annotation_1.EvolutionaryConservation.colorThemeProvider);
|
|
259
|
+
this.plugin.managers.lociLabels.addProvider(annotation_1.EvolutionaryConservation.labelProvider);
|
|
260
|
+
this.plugin.customModelProperties.register(annotation_1.EvolutionaryConservation.propertyProvider, true);
|
|
261
|
+
return [2 /*return*/];
|
|
244
262
|
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
} }));
|
|
248
|
-
var customColoring = (0, coloring_1.createProteopediaCustomTheme)((options && options.customColorList) || []);
|
|
249
|
-
this.plugin.representation.structure.themes.colorThemeRegistry.add(customColoring);
|
|
250
|
-
this.plugin.representation.structure.themes.colorThemeRegistry.add(annotation_1.EvolutionaryConservation.colorThemeProvider);
|
|
251
|
-
this.plugin.managers.lociLabels.addProvider(annotation_1.EvolutionaryConservation.labelProvider);
|
|
252
|
-
this.plugin.customModelProperties.register(annotation_1.EvolutionaryConservation.propertyProvider, true);
|
|
263
|
+
});
|
|
264
|
+
});
|
|
253
265
|
};
|
|
254
266
|
Object.defineProperty(MolStarProteopediaWrapper.prototype, "state", {
|
|
255
267
|
get: function () {
|
|
@@ -72,7 +72,6 @@ export declare const CreateOrbitalDensityVolume: StateTransformer<BasisAndOrbita
|
|
|
72
72
|
}>, "on">;
|
|
73
73
|
}>>;
|
|
74
74
|
export declare const CreateOrbitalRepresentation3D: StateTransformer<PluginStateObject.Volume.Data, PluginStateObject.Volume.Representation3D, PD.Normalize<{
|
|
75
|
-
directVolume: boolean;
|
|
76
75
|
relativeIsovalue: number;
|
|
77
76
|
kind: "negative" | "positive";
|
|
78
77
|
color: import("../../mol-util/color").Color;
|
|
@@ -179,7 +179,6 @@ exports.CreateOrbitalRepresentation3D = objects_1.PluginStateTransform.BuiltIn({
|
|
|
179
179
|
from: objects_1.PluginStateObject.Volume.Data,
|
|
180
180
|
to: objects_1.PluginStateObject.Volume.Representation3D,
|
|
181
181
|
params: {
|
|
182
|
-
directVolume: param_definition_1.ParamDefinition.Boolean(false),
|
|
183
182
|
relativeIsovalue: param_definition_1.ParamDefinition.Numeric(1, { min: 0.01, max: 5, step: 0.01 }),
|
|
184
183
|
kind: param_definition_1.ParamDefinition.Select('positive', [['positive', 'Positive'], ['negative', 'Negative']]),
|
|
185
184
|
color: param_definition_1.ParamDefinition.Color(names_1.ColorNames.blue),
|
|
@@ -252,19 +251,7 @@ function volumeParams(plugin, volume, params) {
|
|
|
252
251
|
if (!isovalues)
|
|
253
252
|
throw new Error('Isovalues are not computed.');
|
|
254
253
|
var value = isovalues[params.kind];
|
|
255
|
-
return (0, volume_representation_params_1.createVolumeRepresentationParams)(plugin, volume.data,
|
|
256
|
-
type: 'direct-volume',
|
|
257
|
-
typeParams: {
|
|
258
|
-
alpha: params.alpha,
|
|
259
|
-
renderMode: {
|
|
260
|
-
name: 'isosurface',
|
|
261
|
-
params: { isoValue: { kind: 'absolute', absoluteValue: (value !== null && value !== void 0 ? value : 1000) * params.relativeIsovalue }, singleLayer: false }
|
|
262
|
-
},
|
|
263
|
-
xrayShaded: params.xrayShaded
|
|
264
|
-
},
|
|
265
|
-
color: 'uniform',
|
|
266
|
-
colorParams: { value: params.color }
|
|
267
|
-
} : {
|
|
254
|
+
return (0, volume_representation_params_1.createVolumeRepresentationParams)(plugin, volume.data, {
|
|
268
255
|
type: 'isosurface',
|
|
269
256
|
typeParams: { isoValue: { kind: 'absolute', absoluteValue: (value !== null && value !== void 0 ? value : 1000) * params.relativeIsovalue }, alpha: params.alpha, xrayShaded: params.xrayShaded, tryUseGpu: params.tryUseGpu },
|
|
270
257
|
color: 'uniform',
|
|
@@ -30,6 +30,7 @@ declare const MembraneOrientation3D: StateTransformer<PluginStateObject.Molecule
|
|
|
30
30
|
material: PD.Normalize<{
|
|
31
31
|
metalness: number;
|
|
32
32
|
roughness: number;
|
|
33
|
+
bumpiness: number;
|
|
33
34
|
}>;
|
|
34
35
|
sectorOpacity: number;
|
|
35
36
|
doubleSided: boolean;
|
|
@@ -37,6 +38,8 @@ declare const MembraneOrientation3D: StateTransformer<PluginStateObject.Molecule
|
|
|
37
38
|
flatShaded: boolean;
|
|
38
39
|
ignoreLight: boolean;
|
|
39
40
|
xrayShaded: boolean;
|
|
41
|
+
bumpFrequency: number;
|
|
42
|
+
bumpAmplitude: number;
|
|
40
43
|
}>>;
|
|
41
44
|
export declare const MembraneOrientationPreset: StructureRepresentationPresetProvider<{
|
|
42
45
|
ignoreHydrogens: boolean | undefined;
|
|
@@ -18,11 +18,14 @@ declare const BilayerPlanesParams: {
|
|
|
18
18
|
flatShaded: PD.BooleanParam;
|
|
19
19
|
ignoreLight: PD.BooleanParam;
|
|
20
20
|
xrayShaded: PD.BooleanParam;
|
|
21
|
+
bumpFrequency: PD.Numeric;
|
|
22
|
+
bumpAmplitude: PD.Numeric;
|
|
21
23
|
alpha: PD.Numeric;
|
|
22
24
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
23
25
|
material: PD.Group<PD.Normalize<{
|
|
24
26
|
metalness: number;
|
|
25
27
|
roughness: number;
|
|
28
|
+
bumpiness: number;
|
|
26
29
|
}>>;
|
|
27
30
|
};
|
|
28
31
|
export declare type BilayerPlanesParams = typeof BilayerPlanesParams;
|
|
@@ -39,6 +42,7 @@ declare const BilayerRimsParams: {
|
|
|
39
42
|
material: PD.Group<PD.Normalize<{
|
|
40
43
|
metalness: number;
|
|
41
44
|
roughness: number;
|
|
45
|
+
bumpiness: number;
|
|
42
46
|
}>>;
|
|
43
47
|
};
|
|
44
48
|
export declare type BilayerRimsParams = typeof BilayerRimsParams;
|
|
@@ -56,6 +60,7 @@ export declare const MembraneOrientationParams: {
|
|
|
56
60
|
material: PD.Group<PD.Normalize<{
|
|
57
61
|
metalness: number;
|
|
58
62
|
roughness: number;
|
|
63
|
+
bumpiness: number;
|
|
59
64
|
}>>;
|
|
60
65
|
sectorOpacity: PD.Numeric;
|
|
61
66
|
doubleSided: PD.BooleanParam;
|
|
@@ -63,6 +68,8 @@ export declare const MembraneOrientationParams: {
|
|
|
63
68
|
flatShaded: PD.BooleanParam;
|
|
64
69
|
ignoreLight: PD.BooleanParam;
|
|
65
70
|
xrayShaded: PD.BooleanParam;
|
|
71
|
+
bumpFrequency: PD.Numeric;
|
|
72
|
+
bumpAmplitude: PD.Numeric;
|
|
66
73
|
};
|
|
67
74
|
export declare type MembraneOrientationParams = typeof MembraneOrientationParams;
|
|
68
75
|
export declare type MembraneOrientationProps = PD.Values<MembraneOrientationParams>;
|
|
@@ -79,6 +86,7 @@ export declare function getMembraneOrientationParams(ctx: ThemeRegistryContext,
|
|
|
79
86
|
material: PD.Group<PD.Normalize<{
|
|
80
87
|
metalness: number;
|
|
81
88
|
roughness: number;
|
|
89
|
+
bumpiness: number;
|
|
82
90
|
}>>;
|
|
83
91
|
sectorOpacity: PD.Numeric;
|
|
84
92
|
doubleSided: PD.BooleanParam;
|
|
@@ -86,6 +94,8 @@ export declare function getMembraneOrientationParams(ctx: ThemeRegistryContext,
|
|
|
86
94
|
flatShaded: PD.BooleanParam;
|
|
87
95
|
ignoreLight: PD.BooleanParam;
|
|
88
96
|
xrayShaded: PD.BooleanParam;
|
|
97
|
+
bumpFrequency: PD.Numeric;
|
|
98
|
+
bumpAmplitude: PD.Numeric;
|
|
89
99
|
};
|
|
90
100
|
export declare type MembraneOrientationRepresentation = StructureRepresentation<MembraneOrientationParams>;
|
|
91
101
|
export declare function MembraneOrientationRepresentation(ctx: RepresentationContext, getParams: RepresentationParamsGetter<Structure, MembraneOrientationParams>): MembraneOrientationRepresentation;
|
|
@@ -102,6 +112,7 @@ export declare const MembraneOrientationRepresentationProvider: StructureReprese
|
|
|
102
112
|
material: PD.Group<PD.Normalize<{
|
|
103
113
|
metalness: number;
|
|
104
114
|
roughness: number;
|
|
115
|
+
bumpiness: number;
|
|
105
116
|
}>>;
|
|
106
117
|
sectorOpacity: PD.Numeric;
|
|
107
118
|
doubleSided: PD.BooleanParam;
|
|
@@ -109,5 +120,7 @@ export declare const MembraneOrientationRepresentationProvider: StructureReprese
|
|
|
109
120
|
flatShaded: PD.BooleanParam;
|
|
110
121
|
ignoreLight: PD.BooleanParam;
|
|
111
122
|
xrayShaded: PD.BooleanParam;
|
|
123
|
+
bumpFrequency: PD.Numeric;
|
|
124
|
+
bumpAmplitude: PD.Numeric;
|
|
112
125
|
}, "membrane-orientation">;
|
|
113
126
|
export {};
|
|
@@ -44,10 +44,13 @@ export declare const MBParams: {
|
|
|
44
44
|
flatShaded: PD.BooleanParam;
|
|
45
45
|
ignoreLight: PD.BooleanParam;
|
|
46
46
|
xrayShaded: PD.BooleanParam;
|
|
47
|
+
bumpFrequency: PD.Numeric;
|
|
48
|
+
bumpAmplitude: PD.Numeric;
|
|
47
49
|
alpha: PD.Numeric;
|
|
48
50
|
material: PD.Group<PD.Normalize<{
|
|
49
51
|
metalness: number;
|
|
50
52
|
roughness: number;
|
|
53
|
+
bumpiness: number;
|
|
51
54
|
}>>;
|
|
52
55
|
};
|
|
53
56
|
export declare type MBParams = typeof MBParams;
|
|
@@ -17,11 +17,14 @@ export declare const ConfalPyramidsParams: {
|
|
|
17
17
|
flatShaded: PD.BooleanParam;
|
|
18
18
|
ignoreLight: PD.BooleanParam;
|
|
19
19
|
xrayShaded: PD.BooleanParam;
|
|
20
|
+
bumpFrequency: PD.Numeric;
|
|
21
|
+
bumpAmplitude: PD.Numeric;
|
|
20
22
|
alpha: PD.Numeric;
|
|
21
23
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
22
24
|
material: PD.Group<PD.Normalize<{
|
|
23
25
|
metalness: number;
|
|
24
26
|
roughness: number;
|
|
27
|
+
bumpiness: number;
|
|
25
28
|
}>>;
|
|
26
29
|
};
|
|
27
30
|
export declare type ConfalPyramidsParams = typeof ConfalPyramidsParams;
|
|
@@ -33,11 +36,14 @@ export declare function getConfalPyramidsParams(ctx: ThemeRegistryContext, struc
|
|
|
33
36
|
flatShaded: PD.BooleanParam;
|
|
34
37
|
ignoreLight: PD.BooleanParam;
|
|
35
38
|
xrayShaded: PD.BooleanParam;
|
|
39
|
+
bumpFrequency: PD.Numeric;
|
|
40
|
+
bumpAmplitude: PD.Numeric;
|
|
36
41
|
alpha: PD.Numeric;
|
|
37
42
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
38
43
|
material: PD.Group<PD.Normalize<{
|
|
39
44
|
metalness: number;
|
|
40
45
|
roughness: number;
|
|
46
|
+
bumpiness: number;
|
|
41
47
|
}>>;
|
|
42
48
|
};
|
|
43
49
|
export declare type ConfalPyramidsRepresentation = StructureRepresentation<ConfalPyramidsParams>;
|
|
@@ -50,10 +56,13 @@ export declare const ConfalPyramidsRepresentationProvider: StructureRepresentati
|
|
|
50
56
|
flatShaded: PD.BooleanParam;
|
|
51
57
|
ignoreLight: PD.BooleanParam;
|
|
52
58
|
xrayShaded: PD.BooleanParam;
|
|
59
|
+
bumpFrequency: PD.Numeric;
|
|
60
|
+
bumpAmplitude: PD.Numeric;
|
|
53
61
|
alpha: PD.Numeric;
|
|
54
62
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
55
63
|
material: PD.Group<PD.Normalize<{
|
|
56
64
|
metalness: number;
|
|
57
65
|
roughness: number;
|
|
66
|
+
bumpiness: number;
|
|
58
67
|
}>>;
|
|
59
68
|
}, "confal-pyramids">;
|
|
@@ -140,7 +140,7 @@ var ObjExporter = /** @class */ (function (_super) {
|
|
|
140
140
|
color = ObjExporter.getColor(v, geoData, interpolatedColors, interpolatedOverpaint);
|
|
141
141
|
color_1.Color.toArray(color, quantizedColors, i);
|
|
142
142
|
}
|
|
143
|
-
ObjExporter.quantizeColors(quantizedColors,
|
|
143
|
+
ObjExporter.quantizeColors(quantizedColors, vertexCount);
|
|
144
144
|
// face
|
|
145
145
|
for (i = 0; i < drawCount; i += 3) {
|
|
146
146
|
color = color_1.Color.fromArray(quantizedColors, i);
|
|
@@ -133,7 +133,7 @@ var UsdzExporter = /** @class */ (function (_super) {
|
|
|
133
133
|
color = UsdzExporter.getColor(v, geoData, interpolatedColors, interpolatedOverpaint);
|
|
134
134
|
color_1.Color.toArray(color, quantizedColors, i);
|
|
135
135
|
}
|
|
136
|
-
UsdzExporter.quantizeColors(quantizedColors,
|
|
136
|
+
UsdzExporter.quantizeColors(quantizedColors, vertexCount);
|
|
137
137
|
faceIndicesByMaterial = new Map();
|
|
138
138
|
for (i = 0; i < drawCount; i += 3) {
|
|
139
139
|
color = color_1.Color.fromArray(quantizedColors, i);
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
|
+
*
|
|
4
|
+
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
|
+
*/
|
|
6
|
+
import { ParamDefinition as PD } from '../../../mol-util/param-definition';
|
|
7
|
+
import { PluginBehavior } from '../../../mol-plugin/behavior/behavior';
|
|
8
|
+
import { StructureRepresentationPresetProvider } from '../../../mol-plugin-state/builder/structure/representation-preset';
|
|
9
|
+
export declare const MAQualityAssessment: import("../../../mol-state/transformer").StateTransformer<PluginBehavior.Category, PluginBehavior.Behavior, {
|
|
10
|
+
autoAttach: boolean;
|
|
11
|
+
showTooltip: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const QualityAssessmentPLDDTPreset: StructureRepresentationPresetProvider<{
|
|
14
|
+
ignoreHydrogens: boolean | undefined;
|
|
15
|
+
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined;
|
|
16
|
+
theme: PD.Normalize<{
|
|
17
|
+
globalName: any;
|
|
18
|
+
carbonColor: any;
|
|
19
|
+
symmetryColor: any;
|
|
20
|
+
focus: any;
|
|
21
|
+
}> | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
components?: undefined;
|
|
24
|
+
representations?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
components: {
|
|
27
|
+
polymer: import("../../../mol-state").StateObjectSelector<import("../../../mol-plugin-state/objects").PluginStateObject.Molecule.Structure, import("../../../mol-state/transformer").StateTransformer<import("../../../mol-state/object").StateObject<any, import("../../../mol-state/object").StateObject.Type<any>>, import("../../../mol-state/object").StateObject<any, import("../../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
|
|
28
|
+
};
|
|
29
|
+
representations: {
|
|
30
|
+
polymer: import("../../../mol-state").StateObjectSelector<import("../../../mol-plugin-state/objects").PluginStateObject.Molecule.Structure.Representation3D, import("../../../mol-state/transformer").StateTransformer<import("../../../mol-state/object").StateObject<any, import("../../../mol-state/object").StateObject.Type<any>>, import("../../../mol-state/object").StateObject<any, import("../../../mol-state/object").StateObject.Type<any>>, any>>;
|
|
31
|
+
};
|
|
32
|
+
} | {
|
|
33
|
+
components: {
|
|
34
|
+
all: import("../../../mol-state").StateObjectSelector<import("../../../mol-plugin-state/objects").PluginStateObject.Molecule.Structure, import("../../../mol-state/transformer").StateTransformer<import("../../../mol-state/object").StateObject<any, import("../../../mol-state/object").StateObject.Type<any>>, import("../../../mol-state/object").StateObject<any, import("../../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
|
|
35
|
+
branched: undefined;
|
|
36
|
+
};
|
|
37
|
+
representations: {
|
|
38
|
+
all: import("../../../mol-state").StateObjectSelector<import("../../../mol-plugin-state/objects").PluginStateObject.Molecule.Structure.Representation3D, import("../../../mol-state/transformer").StateTransformer<import("../../../mol-state/object").StateObject<any, import("../../../mol-state/object").StateObject.Type<any>>, import("../../../mol-state/object").StateObject<any, import("../../../mol-state/object").StateObject.Type<any>>, any>>;
|
|
39
|
+
};
|
|
40
|
+
}>;
|
|
41
|
+
export declare const QualityAssessmentQmeanPreset: StructureRepresentationPresetProvider<{
|
|
42
|
+
ignoreHydrogens: boolean | undefined;
|
|
43
|
+
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined;
|
|
44
|
+
theme: PD.Normalize<{
|
|
45
|
+
globalName: any;
|
|
46
|
+
carbonColor: any;
|
|
47
|
+
symmetryColor: any;
|
|
48
|
+
focus: any;
|
|
49
|
+
}> | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
components?: undefined;
|
|
52
|
+
representations?: undefined;
|
|
53
|
+
} | {
|
|
54
|
+
components: {
|
|
55
|
+
polymer: import("../../../mol-state").StateObjectSelector<import("../../../mol-plugin-state/objects").PluginStateObject.Molecule.Structure, import("../../../mol-state/transformer").StateTransformer<import("../../../mol-state/object").StateObject<any, import("../../../mol-state/object").StateObject.Type<any>>, import("../../../mol-state/object").StateObject<any, import("../../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
|
|
56
|
+
};
|
|
57
|
+
representations: {
|
|
58
|
+
polymer: import("../../../mol-state").StateObjectSelector<import("../../../mol-plugin-state/objects").PluginStateObject.Molecule.Structure.Representation3D, import("../../../mol-state/transformer").StateTransformer<import("../../../mol-state/object").StateObject<any, import("../../../mol-state/object").StateObject.Type<any>>, import("../../../mol-state/object").StateObject<any, import("../../../mol-state/object").StateObject.Type<any>>, any>>;
|
|
59
|
+
};
|
|
60
|
+
} | {
|
|
61
|
+
components: {
|
|
62
|
+
all: import("../../../mol-state").StateObjectSelector<import("../../../mol-plugin-state/objects").PluginStateObject.Molecule.Structure, import("../../../mol-state/transformer").StateTransformer<import("../../../mol-state/object").StateObject<any, import("../../../mol-state/object").StateObject.Type<any>>, import("../../../mol-state/object").StateObject<any, import("../../../mol-state/object").StateObject.Type<any>>, any>> | undefined;
|
|
63
|
+
branched: undefined;
|
|
64
|
+
};
|
|
65
|
+
representations: {
|
|
66
|
+
all: import("../../../mol-state").StateObjectSelector<import("../../../mol-plugin-state/objects").PluginStateObject.Molecule.Structure.Representation3D, import("../../../mol-state/transformer").StateTransformer<import("../../../mol-state/object").StateObject<any, import("../../../mol-state/object").StateObject.Type<any>>, import("../../../mol-state/object").StateObject<any, import("../../../mol-state/object").StateObject.Type<any>>, any>>;
|
|
67
|
+
};
|
|
68
|
+
}>;
|