molstar 3.5.0 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/viewer/index.html +1 -1
- package/build/viewer/molstar.css +1 -1
- package/build/viewer/molstar.js +1 -1
- package/build/viewer/molstar.js.LICENSE.txt +12 -14
- package/lib/apps/docking-viewer/index.js +1 -1
- package/lib/apps/viewer/app.js +1 -1
- package/lib/apps/viewer/index.html +1 -1
- package/lib/cli/chem-comp-dict/util.d.ts +20 -20
- package/lib/cli/cifschema/util/cif-dic.d.ts +1 -1
- package/lib/cli/cifschema/util/cif-dic.js +7 -5
- package/lib/cli/cifschema/util/generate.d.ts +1 -1
- package/lib/cli/cifschema/util/generate.js +12 -3
- package/lib/cli/cifschema/util/schema.d.ts +3 -3
- package/lib/cli/cifschema/util/schema.js +1 -1
- package/lib/commonjs/apps/docking-viewer/index.js +2 -2
- package/lib/commonjs/apps/viewer/app.js +2 -2
- package/lib/commonjs/cli/chem-comp-dict/util.d.ts +20 -20
- package/lib/commonjs/cli/cifschema/util/cif-dic.d.ts +1 -1
- package/lib/commonjs/cli/cifschema/util/cif-dic.js +7 -5
- package/lib/commonjs/cli/cifschema/util/generate.d.ts +1 -1
- package/lib/commonjs/cli/cifschema/util/generate.js +12 -3
- package/lib/commonjs/cli/cifschema/util/schema.d.ts +3 -3
- package/lib/commonjs/cli/cifschema/util/schema.js +1 -1
- package/lib/commonjs/examples/alpha-orbitals/index.js +22 -17
- package/lib/commonjs/examples/basic-wrapper/index.js +2 -2
- package/lib/commonjs/examples/lighting/index.js +2 -2
- package/lib/commonjs/examples/proteopedia-wrapper/index.js +2 -2
- package/lib/commonjs/extensions/anvil/behavior.d.ts +1 -0
- package/lib/commonjs/extensions/anvil/representation.d.ts +4 -0
- package/lib/commonjs/extensions/cellpack/representation.d.ts +1 -0
- package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +3 -0
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +1 -0
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.d.ts +1 -0
- package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +5 -0
- package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +2 -0
- package/lib/commonjs/mol-canvas3d/helper/camera-helper.d.ts +1 -0
- package/lib/commonjs/mol-canvas3d/helper/handle-helper.d.ts +1 -0
- package/lib/commonjs/mol-canvas3d/helper/helper.d.ts +2 -0
- package/lib/commonjs/mol-canvas3d/passes/image.d.ts +1 -0
- package/lib/commonjs/mol-data/db/column.d.ts +10 -3
- package/lib/commonjs/mol-data/db/column.js +39 -17
- package/lib/commonjs/mol-geo/geometry/color-data.d.ts +2 -8
- package/lib/commonjs/mol-geo/geometry/color-data.js +16 -3
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +4 -2
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.js +4 -3
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.js +4 -3
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.js +4 -3
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +2 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js +16 -5
- 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/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.js +54 -23
- 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/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/wboit-write.glsl.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/chunks/wboit-write.glsl.js +2 -2
- 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 +2 -2
- package/lib/commonjs/mol-gl/shader/image.frag.js +2 -2
- package/lib/commonjs/mol-gl/shader/lines.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/lines.frag.js +2 -2
- package/lib/commonjs/mol-gl/shader/points.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/points.frag.js +2 -2
- package/lib/commonjs/mol-gl/shader/text.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/text.frag.js +2 -2
- package/lib/commonjs/mol-gl/webgl/buffer.d.ts +2 -2
- package/lib/commonjs/mol-gl/webgl/buffer.js +12 -12
- package/lib/commonjs/mol-gl/webgl/program.d.ts +1 -1
- package/lib/commonjs/mol-gl/webgl/program.js +10 -4
- package/lib/commonjs/mol-io/reader/cif/schema/bird.d.ts +8 -8
- package/lib/commonjs/mol-io/reader/cif/schema/bird.js +12 -11
- package/lib/commonjs/mol-io/reader/cif/schema/ccd-extras.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/ccd.d.ts +12 -12
- package/lib/commonjs/mol-io/reader/cif/schema/ccd.js +13 -12
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif-extras.d.ts +5 -5
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif-extras.js +2 -2
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +30 -26
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +44 -39
- package/lib/commonjs/mol-io/reader/cif/schema.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema.js +22 -2
- 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 +17 -5
- package/lib/commonjs/mol-io/writer/mol2/encoder.js +17 -4
- package/lib/commonjs/mol-model/structure/model/model.js +14 -6
- package/lib/commonjs/mol-model/structure/model/properties/common.js +1 -1
- package/lib/commonjs/mol-model/structure/model/types.d.ts +19 -17
- package/lib/commonjs/mol-model/structure/model/types.js +30 -31
- package/lib/commonjs/mol-model/structure/query/queries/generators.js +1 -1
- package/lib/commonjs/mol-model/structure/structure/properties.d.ts +1 -1
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/inter-compute.js +2 -4
- package/lib/commonjs/mol-model/structure/structure/unit/bonds/intra-compute.js +1 -3
- package/lib/commonjs/mol-model/structure/structure/unit/rings.js +3 -0
- package/lib/commonjs/mol-model-formats/shape/ply.d.ts +2 -0
- package/lib/commonjs/mol-model-formats/structure/basic/entities.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/basic/schema.d.ts +2 -2
- package/lib/commonjs/mol-model-formats/structure/common/component.d.ts +3 -3
- package/lib/commonjs/mol-model-formats/structure/common/component.js +46 -46
- package/lib/commonjs/mol-model-formats/structure/pdb/atom-site.d.ts +2 -2
- package/lib/commonjs/mol-model-formats/structure/pdb/atom-site.js +72 -7
- package/lib/commonjs/mol-model-formats/structure/pdb/secondary-structure.js +11 -11
- package/lib/commonjs/mol-model-formats/structure/pdb/to-cif.js +7 -2
- package/lib/commonjs/mol-model-formats/structure/property/bonds/chem_comp.js +1 -1
- package/lib/commonjs/mol-model-formats/structure/property/bonds/struct_conn.js +1 -1
- package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +3 -0
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +4 -0
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/util.js +3 -2
- package/lib/commonjs/mol-plugin/commands.d.ts +1 -0
- package/lib/commonjs/mol-plugin/util/viewport-screenshot.d.ts +3 -0
- package/lib/commonjs/mol-plugin-state/actions/structure.d.ts +6 -6
- package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.js +1 -1
- package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +6 -0
- 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/react18.d.ts +11 -0
- package/lib/commonjs/mol-plugin-ui/react18.js +38 -0
- 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/structure/focus.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/structure/focus.js +2 -2
- 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 -0
- package/lib/commonjs/mol-repr/shape/loci/dihedral.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/loci/plane.d.ts +1 -0
- package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/params.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/registry.d.ts +10 -0
- package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +3 -0
- package/lib/commonjs/mol-repr/structure/units-visual.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +4 -0
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -0
- package/lib/commonjs/mol-repr/util.d.ts +2 -1
- package/lib/commonjs/mol-repr/util.js +2 -2
- package/lib/commonjs/mol-repr/volume/isosurface.d.ts +5 -0
- package/lib/commonjs/mol-repr/volume/registry.d.ts +1 -0
- package/lib/commonjs/mol-theme/color.d.ts +9 -2
- package/lib/commonjs/mol-theme/color.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.js +21 -16
- package/lib/examples/basic-wrapper/index.js +1 -1
- package/lib/examples/lighting/index.js +1 -1
- package/lib/examples/proteopedia-wrapper/index.js +1 -1
- package/lib/extensions/anvil/behavior.d.ts +1 -0
- package/lib/extensions/anvil/representation.d.ts +4 -0
- package/lib/extensions/cellpack/representation.d.ts +1 -0
- package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +3 -0
- package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +1 -0
- package/lib/extensions/rcsb/assembly-symmetry/representation.d.ts +1 -0
- package/lib/extensions/rcsb/validation-report/representation.d.ts +5 -0
- package/lib/mol-canvas3d/canvas3d.d.ts +2 -0
- package/lib/mol-canvas3d/helper/camera-helper.d.ts +1 -0
- package/lib/mol-canvas3d/helper/handle-helper.d.ts +1 -0
- package/lib/mol-canvas3d/helper/helper.d.ts +2 -0
- package/lib/mol-canvas3d/passes/image.d.ts +1 -0
- package/lib/mol-data/db/column.d.ts +10 -3
- package/lib/mol-data/db/column.js +39 -18
- package/lib/mol-geo/geometry/color-data.d.ts +2 -8
- package/lib/mol-geo/geometry/color-data.js +16 -3
- package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +4 -2
- package/lib/mol-geo/geometry/cylinders/cylinders.js +4 -3
- package/lib/mol-geo/geometry/mesh/mesh.d.ts +2 -1
- package/lib/mol-geo/geometry/mesh/mesh.js +4 -3
- package/lib/mol-geo/geometry/spheres/spheres.d.ts +2 -1
- package/lib/mol-geo/geometry/spheres/spheres.js +4 -3
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +2 -1
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js +16 -5
- 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/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.js +54 -23
- 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/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/wboit-write.glsl.d.ts +2 -2
- package/lib/mol-gl/shader/chunks/wboit-write.glsl.js +2 -2
- 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 +2 -2
- package/lib/mol-gl/shader/image.frag.js +2 -2
- package/lib/mol-gl/shader/lines.frag.d.ts +2 -2
- package/lib/mol-gl/shader/lines.frag.js +2 -2
- package/lib/mol-gl/shader/points.frag.d.ts +2 -2
- package/lib/mol-gl/shader/points.frag.js +2 -2
- package/lib/mol-gl/shader/text.frag.d.ts +2 -2
- package/lib/mol-gl/shader/text.frag.js +2 -2
- package/lib/mol-gl/webgl/buffer.d.ts +2 -2
- package/lib/mol-gl/webgl/buffer.js +12 -12
- package/lib/mol-gl/webgl/program.d.ts +1 -1
- package/lib/mol-gl/webgl/program.js +10 -4
- package/lib/mol-io/reader/cif/schema/bird.d.ts +8 -8
- package/lib/mol-io/reader/cif/schema/bird.js +12 -11
- package/lib/mol-io/reader/cif/schema/ccd-extras.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema/ccd.d.ts +12 -12
- package/lib/mol-io/reader/cif/schema/ccd.js +13 -12
- package/lib/mol-io/reader/cif/schema/mmcif-extras.d.ts +5 -5
- package/lib/mol-io/reader/cif/schema/mmcif-extras.js +2 -2
- package/lib/mol-io/reader/cif/schema/mmcif.d.ts +30 -26
- package/lib/mol-io/reader/cif/schema/mmcif.js +44 -39
- package/lib/mol-io/reader/cif/schema.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema.js +22 -2
- 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 +17 -5
- package/lib/mol-io/writer/mol2/encoder.js +17 -4
- package/lib/mol-model/structure/model/model.js +14 -6
- package/lib/mol-model/structure/model/properties/common.js +1 -1
- package/lib/mol-model/structure/model/types.d.ts +19 -17
- package/lib/mol-model/structure/model/types.js +30 -31
- package/lib/mol-model/structure/query/queries/generators.js +1 -1
- package/lib/mol-model/structure/structure/properties.d.ts +1 -1
- package/lib/mol-model/structure/structure/unit/bonds/inter-compute.js +2 -4
- package/lib/mol-model/structure/structure/unit/bonds/intra-compute.js +1 -3
- package/lib/mol-model/structure/structure/unit/rings.js +3 -0
- package/lib/mol-model-formats/shape/ply.d.ts +2 -0
- package/lib/mol-model-formats/structure/basic/entities.js +1 -1
- package/lib/mol-model-formats/structure/basic/schema.d.ts +2 -2
- package/lib/mol-model-formats/structure/common/component.d.ts +3 -3
- package/lib/mol-model-formats/structure/common/component.js +46 -46
- package/lib/mol-model-formats/structure/pdb/atom-site.d.ts +2 -2
- package/lib/mol-model-formats/structure/pdb/atom-site.js +72 -7
- package/lib/mol-model-formats/structure/pdb/secondary-structure.js +11 -11
- package/lib/mol-model-formats/structure/pdb/to-cif.js +7 -2
- package/lib/mol-model-formats/structure/property/bonds/chem_comp.js +1 -1
- package/lib/mol-model-formats/structure/property/bonds/struct_conn.js +1 -1
- package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -0
- package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +1 -0
- package/lib/mol-model-props/computed/representations/interactions.d.ts +3 -0
- package/lib/mol-model-props/integrative/cross-link-restraint/representation.d.ts +4 -0
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/util.js +3 -2
- package/lib/mol-plugin/commands.d.ts +1 -0
- package/lib/mol-plugin/util/viewport-screenshot.d.ts +3 -0
- package/lib/mol-plugin/version.js +2 -2
- package/lib/mol-plugin-state/actions/structure.d.ts +6 -6
- package/lib/mol-plugin-state/helpers/structure-selection-query.d.ts +1 -1
- package/lib/mol-plugin-state/helpers/structure-selection-query.js +1 -1
- package/lib/mol-plugin-state/transforms/representation.d.ts +6 -0
- 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/react18.d.ts +11 -0
- package/lib/mol-plugin-ui/react18.js +34 -0
- 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/structure/focus.d.ts +1 -1
- package/lib/mol-plugin-ui/structure/focus.js +2 -2
- 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 -0
- package/lib/mol-repr/shape/loci/dihedral.d.ts +1 -0
- package/lib/mol-repr/shape/loci/orientation.d.ts +1 -0
- package/lib/mol-repr/shape/loci/plane.d.ts +1 -0
- package/lib/mol-repr/shape/model/unitcell.d.ts +1 -0
- package/lib/mol-repr/structure/complex-visual.d.ts +3 -0
- package/lib/mol-repr/structure/params.d.ts +4 -0
- package/lib/mol-repr/structure/registry.d.ts +10 -0
- package/lib/mol-repr/structure/representation/backbone.d.ts +3 -0
- package/lib/mol-repr/structure/representation/ball-and-stick.d.ts +3 -0
- package/lib/mol-repr/structure/representation/carbohydrate.d.ts +3 -0
- package/lib/mol-repr/structure/representation/cartoon.d.ts +3 -0
- package/lib/mol-repr/structure/representation/ellipsoid.d.ts +3 -0
- package/lib/mol-repr/structure/representation/gaussian-surface.d.ts +3 -0
- package/lib/mol-repr/structure/representation/molecular-surface.d.ts +3 -0
- package/lib/mol-repr/structure/representation/orientation.d.ts +3 -0
- package/lib/mol-repr/structure/representation/putty.d.ts +3 -0
- package/lib/mol-repr/structure/representation/spacefill.d.ts +3 -0
- package/lib/mol-repr/structure/units-visual.d.ts +4 -0
- package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +2 -0
- package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +2 -0
- package/lib/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +1 -0
- package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +1 -0
- package/lib/mol-repr/structure/visual/element-sphere.d.ts +2 -0
- package/lib/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +4 -0
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +2 -0
- package/lib/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -0
- package/lib/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -0
- package/lib/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -0
- package/lib/mol-repr/structure/visual/polymer-trace-mesh.d.ts +1 -0
- package/lib/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -0
- package/lib/mol-repr/util.d.ts +2 -1
- package/lib/mol-repr/util.js +2 -2
- package/lib/mol-repr/volume/isosurface.d.ts +5 -0
- package/lib/mol-repr/volume/registry.d.ts +1 -0
- package/lib/mol-theme/color.d.ts +9 -2
- package/lib/mol-theme/color.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 +21 -19
|
@@ -11,12 +11,14 @@ import { PluginUIComponent } from './base';
|
|
|
11
11
|
import { PluginUIContext } from './context';
|
|
12
12
|
export declare class Plugin extends React.Component<{
|
|
13
13
|
plugin: PluginUIContext;
|
|
14
|
+
children?: any;
|
|
14
15
|
}, {}> {
|
|
15
16
|
region(kind: 'left' | 'right' | 'bottom' | 'main', element: JSX.Element): JSX.Element;
|
|
16
17
|
render(): JSX.Element;
|
|
17
18
|
}
|
|
18
19
|
export declare class PluginContextContainer extends React.Component<{
|
|
19
20
|
plugin: PluginUIContext;
|
|
21
|
+
children?: any;
|
|
20
22
|
}> {
|
|
21
23
|
render(): JSX.Element;
|
|
22
24
|
}
|
|
@@ -134,11 +134,11 @@ var Layout = /** @class */ (function (_super) {
|
|
|
134
134
|
configurable: true
|
|
135
135
|
});
|
|
136
136
|
Layout.prototype.render = function () {
|
|
137
|
-
var _a, _b, _c, _d;
|
|
137
|
+
var _a, _b, _c, _d, _e;
|
|
138
138
|
var layout = this.plugin.layout.state;
|
|
139
139
|
var controls = ((_a = this.plugin.spec.components) === null || _a === void 0 ? void 0 : _a.controls) || {};
|
|
140
140
|
var viewport = ((_c = (_b = this.plugin.spec.components) === null || _b === void 0 ? void 0 : _b.viewport) === null || _c === void 0 ? void 0 : _c.view) || DefaultViewport;
|
|
141
|
-
return _jsx("div", __assign({ className: 'msp-plugin' }, { children: _jsxs("div", __assign({ className: this.layoutClassName, onDragEnter: this.onDragEnter }, { children: [_jsxs("div", __assign({ className: this.layoutVisibilityClassName }, { children: [this.region('main', viewport), layout.showControls && controls.top !== 'none' && this.region('top', controls.top || SequenceView), layout.showControls && controls.left !== 'none' && this.region('left', controls.left || LeftPanelControls), layout.showControls && controls.right !== 'none' && this.region('right', controls.right || ControlsWrapper), layout.showControls && controls.bottom !== 'none' && this.region('bottom', controls.bottom || Log)] })), !((_d = this.plugin.spec.components) === null || _d === void 0 ? void 0 : _d.hideTaskOverlay) && _jsx(OverlayTaskProgress, {}), _jsx(DragOverlay, { plugin: this.plugin, showDragOverlay: this.showDragOverlay })] })) }));
|
|
141
|
+
return _jsx("div", __assign({ className: 'msp-plugin' }, { children: _jsxs("div", __assign({ className: this.layoutClassName, onDragEnter: this.onDragEnter }, { children: [_jsxs("div", __assign({ className: this.layoutVisibilityClassName }, { children: [this.region('main', viewport), layout.showControls && controls.top !== 'none' && this.region('top', controls.top || SequenceView), layout.showControls && controls.left !== 'none' && this.region('left', controls.left || LeftPanelControls), layout.showControls && controls.right !== 'none' && this.region('right', controls.right || ControlsWrapper), layout.showControls && controls.bottom !== 'none' && this.region('bottom', controls.bottom || Log)] })), !((_d = this.plugin.spec.components) === null || _d === void 0 ? void 0 : _d.hideTaskOverlay) && _jsx(OverlayTaskProgress, {}), !((_e = this.plugin.spec.components) === null || _e === void 0 ? void 0 : _e.disableDragOverlay) && _jsx(DragOverlay, { plugin: this.plugin, showDragOverlay: this.showDragOverlay })] })) }));
|
|
142
142
|
};
|
|
143
143
|
return Layout;
|
|
144
144
|
}(PluginUIComponent));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
|
+
*
|
|
4
|
+
* @author David Sehnal <david.sehnal@gmail.com>
|
|
5
|
+
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
|
+
*/
|
|
7
|
+
import { PluginUIContext } from './context';
|
|
8
|
+
import { PluginUISpec } from './spec';
|
|
9
|
+
export declare function createPluginUI(target: HTMLElement, spec?: PluginUISpec, options?: {
|
|
10
|
+
onBeforeUIRender?: (ctx: PluginUIContext) => (Promise<void> | void);
|
|
11
|
+
}): Promise<PluginUIContext>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
|
+
*
|
|
4
|
+
* @author David Sehnal <david.sehnal@gmail.com>
|
|
5
|
+
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
|
+
*/
|
|
7
|
+
import { __awaiter, __generator } from "tslib";
|
|
8
|
+
import { createElement } from 'react';
|
|
9
|
+
import { createRoot } from 'react-dom/client';
|
|
10
|
+
import { Plugin } from './plugin';
|
|
11
|
+
import { PluginUIContext } from './context';
|
|
12
|
+
import { DefaultPluginUISpec } from './spec';
|
|
13
|
+
export function createPluginUI(target, spec, options) {
|
|
14
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15
|
+
var ctx;
|
|
16
|
+
return __generator(this, function (_a) {
|
|
17
|
+
switch (_a.label) {
|
|
18
|
+
case 0:
|
|
19
|
+
ctx = new PluginUIContext(spec || DefaultPluginUISpec());
|
|
20
|
+
return [4 /*yield*/, ctx.init()];
|
|
21
|
+
case 1:
|
|
22
|
+
_a.sent();
|
|
23
|
+
if (!(options === null || options === void 0 ? void 0 : options.onBeforeUIRender)) return [3 /*break*/, 3];
|
|
24
|
+
return [4 /*yield*/, options.onBeforeUIRender(ctx)];
|
|
25
|
+
case 2:
|
|
26
|
+
_a.sent();
|
|
27
|
+
_a.label = 3;
|
|
28
|
+
case 3:
|
|
29
|
+
createRoot(target).render(createElement(Plugin, { plugin: ctx }));
|
|
30
|
+
return [2 /*return*/, ctx];
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
}
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
3
3
|
import { PurePluginUIComponent } from '../base';
|
|
4
4
|
import { ParameterControls } from '../controls/parameters';
|
|
5
5
|
import { ParamDefinition as PD } from '../../mol-util/param-definition';
|
|
6
|
-
import {
|
|
6
|
+
import { BehaviorSubject, skip } from 'rxjs';
|
|
7
7
|
import { Icon, RefreshSvg, CheckSvg, ArrowRightSvg, ArrowDropDownSvg, TuneSvg } from '../controls/icons';
|
|
8
8
|
import { ExpandGroup, ToggleButton, Button, IconButton } from '../controls/common';
|
|
9
9
|
export { StateTransformParameters, TransformControlBase };
|
|
@@ -71,7 +71,7 @@ var TransformControlBase = /** @class */ (function (_super) {
|
|
|
71
71
|
__extends(TransformControlBase, _super);
|
|
72
72
|
function TransformControlBase() {
|
|
73
73
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
74
|
-
_this.busy = new
|
|
74
|
+
_this.busy = new BehaviorSubject(false);
|
|
75
75
|
_this.onEnter = function () {
|
|
76
76
|
if (_this.state.error)
|
|
77
77
|
return;
|
|
@@ -138,13 +138,12 @@ var TransformControlBase = /** @class */ (function (_super) {
|
|
|
138
138
|
};
|
|
139
139
|
TransformControlBase.prototype.componentDidMount = function () {
|
|
140
140
|
var _this = this;
|
|
141
|
-
this.subscribe(this.plugin.behaviors.state.isBusy, function (
|
|
142
|
-
if (_this.
|
|
143
|
-
_this.busy.next(
|
|
141
|
+
this.subscribe(this.plugin.behaviors.state.isBusy, function (busy) {
|
|
142
|
+
if (_this.busy.value !== busy)
|
|
143
|
+
_this.busy.next(busy);
|
|
144
144
|
});
|
|
145
|
-
this.subscribe(this.busy, function (busy) {
|
|
146
|
-
|
|
147
|
-
_this.setState({ busy: busy });
|
|
145
|
+
this.subscribe(this.busy.pipe(skip(1)), function (busy) {
|
|
146
|
+
_this.setState({ busy: busy });
|
|
148
147
|
});
|
|
149
148
|
};
|
|
150
149
|
TransformControlBase.prototype.renderApply = function () {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __assign, __extends, __spreadArray } from "tslib";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
3
|
/**
|
|
4
|
-
* Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
|
+
* Copyright (c) 2020-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
5
5
|
*
|
|
6
6
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
7
7
|
*/
|
|
@@ -164,7 +164,7 @@ var StructureFocusControls = /** @class */ (function (_super) {
|
|
|
164
164
|
};
|
|
165
165
|
Object.defineProperty(StructureFocusControls.prototype, "isDisabled", {
|
|
166
166
|
get: function () {
|
|
167
|
-
return this.state.isBusy || this.
|
|
167
|
+
return this.state.isBusy || this.plugin.managers.structure.hierarchy.selection.structures.length === 0;
|
|
168
168
|
},
|
|
169
169
|
enumerable: false,
|
|
170
170
|
configurable: true
|
|
@@ -4,24 +4,5 @@
|
|
|
4
4
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
5
5
|
*/
|
|
6
6
|
/// <reference types="react" />
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { TaskManager } from '../mol-plugin/util/task-manager';
|
|
10
|
-
export declare class BackgroundTaskProgress extends PluginUIComponent<{}, {
|
|
11
|
-
tracked: OrderedMap<number, TaskManager.ProgressEvent>;
|
|
12
|
-
}> {
|
|
13
|
-
componentDidMount(): void;
|
|
14
|
-
state: {
|
|
15
|
-
tracked: OrderedMap<number, TaskManager.ProgressEvent>;
|
|
16
|
-
};
|
|
17
|
-
render(): JSX.Element;
|
|
18
|
-
}
|
|
19
|
-
export declare class OverlayTaskProgress extends PluginUIComponent<{}, {
|
|
20
|
-
tracked: OrderedMap<number, TaskManager.ProgressEvent>;
|
|
21
|
-
}> {
|
|
22
|
-
componentDidMount(): void;
|
|
23
|
-
state: {
|
|
24
|
-
tracked: OrderedMap<number, TaskManager.ProgressEvent>;
|
|
25
|
-
};
|
|
26
|
-
render(): JSX.Element | null;
|
|
27
|
-
}
|
|
7
|
+
export declare function BackgroundTaskProgress(): JSX.Element;
|
|
8
|
+
export declare function OverlayTaskProgress(): JSX.Element | null;
|
|
@@ -5,36 +5,33 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
5
5
|
*
|
|
6
6
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
7
7
|
*/
|
|
8
|
-
import { PluginUIComponent } from './base';
|
|
8
|
+
import { PluginReactContext, PluginUIComponent } from './base';
|
|
9
9
|
import { OrderedMap } from 'immutable';
|
|
10
|
-
import { filter } from 'rxjs/operators';
|
|
11
10
|
import { IconButton } from './controls/common';
|
|
12
11
|
import { CancelSvg } from './controls/icons';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
this.subscribe(this.plugin.events.task.progress.pipe(filter(function (e) { return e.level === 'background' && (hideOverlay || !e.useOverlay); })), function (e) {
|
|
25
|
-
_this.setState({ tracked: _this.state.tracked.set(e.id, e) });
|
|
12
|
+
import { useContext, useEffect, useState } from 'react';
|
|
13
|
+
export function BackgroundTaskProgress() {
|
|
14
|
+
var plugin = useContext(PluginReactContext);
|
|
15
|
+
var _a = useState(OrderedMap()), tracked = _a[0], setTracked = _a[1];
|
|
16
|
+
useEffect(function () {
|
|
17
|
+
var started = plugin.events.task.progress.subscribe(function (e) {
|
|
18
|
+
var _a;
|
|
19
|
+
var hideOverlay = !!((_a = plugin.spec.components) === null || _a === void 0 ? void 0 : _a.hideTaskOverlay);
|
|
20
|
+
if (e.level === 'background' && (hideOverlay || !e.useOverlay)) {
|
|
21
|
+
setTracked(function (tracked) { return tracked.set(e.id, e); });
|
|
22
|
+
}
|
|
26
23
|
});
|
|
27
|
-
|
|
24
|
+
var finished = plugin.events.task.finished.subscribe(function (_a) {
|
|
28
25
|
var id = _a.id;
|
|
29
|
-
|
|
26
|
+
setTracked(function (tracked) { return tracked.delete(id); });
|
|
30
27
|
});
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}(
|
|
37
|
-
|
|
28
|
+
return function () {
|
|
29
|
+
started.unsubscribe();
|
|
30
|
+
finished.unsubscribe();
|
|
31
|
+
};
|
|
32
|
+
}, [plugin]);
|
|
33
|
+
return _jsx("div", __assign({ className: 'msp-background-tasks' }, { children: tracked.valueSeq().map(function (e) { return _jsx(ProgressEntry, { event: e }, e.id); }) }));
|
|
34
|
+
}
|
|
38
35
|
var ProgressEntry = /** @class */ (function (_super) {
|
|
39
36
|
__extends(ProgressEntry, _super);
|
|
40
37
|
function ProgressEntry() {
|
|
@@ -67,28 +64,25 @@ function countSubtasks(progress) {
|
|
|
67
64
|
}
|
|
68
65
|
return sum;
|
|
69
66
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
var _this = this;
|
|
79
|
-
this.subscribe(this.plugin.events.task.progress.pipe(filter(function (e) { return !!e.useOverlay; })), function (e) {
|
|
80
|
-
_this.setState({ tracked: _this.state.tracked.set(e.id, e) });
|
|
67
|
+
export function OverlayTaskProgress() {
|
|
68
|
+
var plugin = useContext(PluginReactContext);
|
|
69
|
+
var _a = useState(OrderedMap()), tracked = _a[0], setTracked = _a[1];
|
|
70
|
+
useEffect(function () {
|
|
71
|
+
var started = plugin.events.task.progress.subscribe(function (e) {
|
|
72
|
+
if (!!e.useOverlay) {
|
|
73
|
+
setTracked(function (tracked) { return tracked.set(e.id, e); });
|
|
74
|
+
}
|
|
81
75
|
});
|
|
82
|
-
|
|
76
|
+
var finished = plugin.events.task.finished.subscribe(function (_a) {
|
|
83
77
|
var id = _a.id;
|
|
84
|
-
|
|
78
|
+
setTracked(function (tracked) { return tracked.delete(id); });
|
|
85
79
|
});
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}(
|
|
94
|
-
|
|
80
|
+
return function () {
|
|
81
|
+
started.unsubscribe();
|
|
82
|
+
finished.unsubscribe();
|
|
83
|
+
};
|
|
84
|
+
}, [plugin]);
|
|
85
|
+
if (tracked.size === 0)
|
|
86
|
+
return null;
|
|
87
|
+
return _jsx("div", __assign({ className: 'msp-overlay-tasks' }, { children: tracked.valueSeq().map(function (e) { return _jsx(ProgressEntry, { event: e }, e.id); }) }));
|
|
88
|
+
}
|
|
@@ -14,10 +14,13 @@ export declare class BindingsHelp extends React.PureComponent<{
|
|
|
14
14
|
getBindingComponents(): JSX.Element;
|
|
15
15
|
render(): JSX.Element;
|
|
16
16
|
}
|
|
17
|
-
export declare class HelpText extends React.PureComponent
|
|
17
|
+
export declare class HelpText extends React.PureComponent<{
|
|
18
|
+
children?: any;
|
|
19
|
+
}> {
|
|
18
20
|
render(): JSX.Element;
|
|
19
21
|
}
|
|
20
22
|
export declare class HelpGroup extends React.PureComponent<{
|
|
23
|
+
children?: any;
|
|
21
24
|
header: string;
|
|
22
25
|
initiallyExpanded?: boolean;
|
|
23
26
|
}, {
|
|
@@ -58,6 +58,7 @@ export declare const AngleParams: {
|
|
|
58
58
|
flipSided: PD.BooleanParam;
|
|
59
59
|
flatShaded: PD.BooleanParam;
|
|
60
60
|
xrayShaded: PD.BooleanParam;
|
|
61
|
+
transparentBackfaces: PD.Select<string>;
|
|
61
62
|
bumpFrequency: PD.Numeric;
|
|
62
63
|
bumpAmplitude: PD.Numeric;
|
|
63
64
|
lineSizeAttenuation: PD.BooleanParam;
|
|
@@ -58,6 +58,7 @@ export declare const DihedralParams: {
|
|
|
58
58
|
flipSided: PD.BooleanParam;
|
|
59
59
|
flatShaded: PD.BooleanParam;
|
|
60
60
|
xrayShaded: PD.BooleanParam;
|
|
61
|
+
transparentBackfaces: PD.Select<string>;
|
|
61
62
|
bumpFrequency: PD.Numeric;
|
|
62
63
|
bumpAmplitude: PD.Numeric;
|
|
63
64
|
lineSizeAttenuation: PD.BooleanParam;
|
|
@@ -19,6 +19,7 @@ export declare const OrientationParams: {
|
|
|
19
19
|
flatShaded: PD.BooleanParam;
|
|
20
20
|
ignoreLight: PD.BooleanParam;
|
|
21
21
|
xrayShaded: PD.BooleanParam;
|
|
22
|
+
transparentBackfaces: PD.Select<string>;
|
|
22
23
|
bumpFrequency: PD.Numeric;
|
|
23
24
|
bumpAmplitude: PD.Numeric;
|
|
24
25
|
alpha: PD.Numeric;
|
|
@@ -47,6 +47,7 @@ export declare const ComplexMeshParams: {
|
|
|
47
47
|
flatShaded: PD.BooleanParam;
|
|
48
48
|
ignoreLight: PD.BooleanParam;
|
|
49
49
|
xrayShaded: PD.BooleanParam;
|
|
50
|
+
transparentBackfaces: PD.Select<string>;
|
|
50
51
|
bumpFrequency: PD.Numeric;
|
|
51
52
|
bumpAmplitude: PD.Numeric;
|
|
52
53
|
alpha: PD.Numeric;
|
|
@@ -79,6 +80,7 @@ export declare const ComplexCylindersParams: {
|
|
|
79
80
|
doubleSided: PD.BooleanParam;
|
|
80
81
|
ignoreLight: PD.BooleanParam;
|
|
81
82
|
xrayShaded: PD.BooleanParam;
|
|
83
|
+
transparentBackfaces: PD.Select<string>;
|
|
82
84
|
bumpFrequency: PD.Numeric;
|
|
83
85
|
bumpAmplitude: PD.Numeric;
|
|
84
86
|
alpha: PD.Numeric;
|
|
@@ -212,6 +214,7 @@ export declare const ComplexTextureMeshParams: {
|
|
|
212
214
|
flatShaded: PD.BooleanParam;
|
|
213
215
|
ignoreLight: PD.BooleanParam;
|
|
214
216
|
xrayShaded: PD.BooleanParam;
|
|
217
|
+
transparentBackfaces: PD.Select<string>;
|
|
215
218
|
bumpFrequency: PD.Numeric;
|
|
216
219
|
bumpAmplitude: PD.Numeric;
|
|
217
220
|
alpha: PD.Numeric;
|
|
@@ -18,6 +18,7 @@ export declare const StructureMeshParams: {
|
|
|
18
18
|
flatShaded: PD.BooleanParam;
|
|
19
19
|
ignoreLight: PD.BooleanParam;
|
|
20
20
|
xrayShaded: PD.BooleanParam;
|
|
21
|
+
transparentBackfaces: PD.Select<string>;
|
|
21
22
|
bumpFrequency: PD.Numeric;
|
|
22
23
|
bumpAmplitude: PD.Numeric;
|
|
23
24
|
alpha: PD.Numeric;
|
|
@@ -44,6 +45,7 @@ export declare const StructureSpheresParams: {
|
|
|
44
45
|
doubleSided: PD.BooleanParam;
|
|
45
46
|
ignoreLight: PD.BooleanParam;
|
|
46
47
|
xrayShaded: PD.BooleanParam;
|
|
48
|
+
transparentBackfaces: PD.Select<string>;
|
|
47
49
|
bumpFrequency: PD.Numeric;
|
|
48
50
|
bumpAmplitude: PD.Numeric;
|
|
49
51
|
alpha: PD.Numeric;
|
|
@@ -71,6 +73,7 @@ export declare const StructureCylindersParams: {
|
|
|
71
73
|
doubleSided: PD.BooleanParam;
|
|
72
74
|
ignoreLight: PD.BooleanParam;
|
|
73
75
|
xrayShaded: PD.BooleanParam;
|
|
76
|
+
transparentBackfaces: PD.Select<string>;
|
|
74
77
|
bumpFrequency: PD.Numeric;
|
|
75
78
|
bumpAmplitude: PD.Numeric;
|
|
76
79
|
alpha: PD.Numeric;
|
|
@@ -207,6 +210,7 @@ export declare const StructureTextureMeshParams: {
|
|
|
207
210
|
flatShaded: PD.BooleanParam;
|
|
208
211
|
ignoreLight: PD.BooleanParam;
|
|
209
212
|
xrayShaded: PD.BooleanParam;
|
|
213
|
+
transparentBackfaces: PD.Select<string>;
|
|
210
214
|
bumpFrequency: PD.Numeric;
|
|
211
215
|
bumpAmplitude: PD.Numeric;
|
|
212
216
|
alpha: PD.Numeric;
|
|
@@ -22,6 +22,7 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
22
22
|
flatShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
23
23
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
24
24
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
25
|
+
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<string>;
|
|
25
26
|
bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
26
27
|
alpha: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
27
28
|
quality: import("../../mol-util/param-definition").ParamDefinition.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -61,6 +62,7 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
61
62
|
flatShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
62
63
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
63
64
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
65
|
+
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<string>;
|
|
64
66
|
bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
65
67
|
alpha: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
66
68
|
quality: import("../../mol-util/param-definition").ParamDefinition.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -110,6 +112,7 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
110
112
|
doubleSided: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
111
113
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
112
114
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
115
|
+
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<string>;
|
|
113
116
|
bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
114
117
|
alpha: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
115
118
|
quality: import("../../mol-util/param-definition").ParamDefinition.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -155,6 +158,7 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
155
158
|
flatShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
156
159
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
157
160
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
161
|
+
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<string>;
|
|
158
162
|
bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
159
163
|
alpha: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
160
164
|
quality: import("../../mol-util/param-definition").ParamDefinition.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -205,6 +209,7 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
205
209
|
doubleSided: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
206
210
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
207
211
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
212
|
+
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<string>;
|
|
208
213
|
bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
209
214
|
alpha: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
210
215
|
quality: import("../../mol-util/param-definition").ParamDefinition.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -266,6 +271,7 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
266
271
|
flatShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
267
272
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
268
273
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
274
|
+
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<string>;
|
|
269
275
|
bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
270
276
|
}, "gaussian-surface">;
|
|
271
277
|
'gaussian-volume': import("./representation").StructureRepresentationProvider<{
|
|
@@ -421,6 +427,7 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
421
427
|
flatShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
422
428
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
423
429
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
430
|
+
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<string>;
|
|
424
431
|
bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
425
432
|
}, "molecular-surface">;
|
|
426
433
|
orientation: import("./representation").StructureRepresentationProvider<{
|
|
@@ -435,6 +442,7 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
435
442
|
flatShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
436
443
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
437
444
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
445
|
+
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<string>;
|
|
438
446
|
bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
439
447
|
alpha: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
440
448
|
quality: import("../../mol-util/param-definition").ParamDefinition.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -492,6 +500,7 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
492
500
|
flatShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
493
501
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
494
502
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
503
|
+
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<string>;
|
|
495
504
|
bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
496
505
|
alpha: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
497
506
|
quality: import("../../mol-util/param-definition").ParamDefinition.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -525,6 +534,7 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
525
534
|
doubleSided: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
526
535
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
527
536
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
537
|
+
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<string>;
|
|
528
538
|
bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
529
539
|
alpha: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
530
540
|
quality: import("../../mol-util/param-definition").ParamDefinition.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -21,6 +21,7 @@ export declare const BackboneParams: {
|
|
|
21
21
|
flatShaded: PD.BooleanParam;
|
|
22
22
|
ignoreLight: PD.BooleanParam;
|
|
23
23
|
xrayShaded: PD.BooleanParam;
|
|
24
|
+
transparentBackfaces: PD.Select<string>;
|
|
24
25
|
bumpAmplitude: PD.Numeric;
|
|
25
26
|
alpha: PD.Numeric;
|
|
26
27
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -56,6 +57,7 @@ export declare function getBackboneParams(ctx: ThemeRegistryContext, structure:
|
|
|
56
57
|
flatShaded: PD.BooleanParam;
|
|
57
58
|
ignoreLight: PD.BooleanParam;
|
|
58
59
|
xrayShaded: PD.BooleanParam;
|
|
60
|
+
transparentBackfaces: PD.Select<string>;
|
|
59
61
|
bumpAmplitude: PD.Numeric;
|
|
60
62
|
alpha: PD.Numeric;
|
|
61
63
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -92,6 +94,7 @@ export declare const BackboneRepresentationProvider: StructureRepresentationProv
|
|
|
92
94
|
flatShaded: PD.BooleanParam;
|
|
93
95
|
ignoreLight: PD.BooleanParam;
|
|
94
96
|
xrayShaded: PD.BooleanParam;
|
|
97
|
+
transparentBackfaces: PD.Select<string>;
|
|
95
98
|
bumpAmplitude: PD.Numeric;
|
|
96
99
|
alpha: PD.Numeric;
|
|
97
100
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -36,6 +36,7 @@ export declare const BallAndStickParams: {
|
|
|
36
36
|
doubleSided: PD.BooleanParam;
|
|
37
37
|
ignoreLight: PD.BooleanParam;
|
|
38
38
|
xrayShaded: PD.BooleanParam;
|
|
39
|
+
transparentBackfaces: PD.Select<string>;
|
|
39
40
|
bumpAmplitude: PD.Numeric;
|
|
40
41
|
alpha: PD.Numeric;
|
|
41
42
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -88,6 +89,7 @@ export declare function getBallAndStickParams(ctx: ThemeRegistryContext, structu
|
|
|
88
89
|
doubleSided: PD.BooleanParam;
|
|
89
90
|
ignoreLight: PD.BooleanParam;
|
|
90
91
|
xrayShaded: PD.BooleanParam;
|
|
92
|
+
transparentBackfaces: PD.Select<string>;
|
|
91
93
|
bumpAmplitude: PD.Numeric;
|
|
92
94
|
alpha: PD.Numeric;
|
|
93
95
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -141,6 +143,7 @@ export declare const BallAndStickRepresentationProvider: StructureRepresentation
|
|
|
141
143
|
doubleSided: PD.BooleanParam;
|
|
142
144
|
ignoreLight: PD.BooleanParam;
|
|
143
145
|
xrayShaded: PD.BooleanParam;
|
|
146
|
+
transparentBackfaces: PD.Select<string>;
|
|
144
147
|
bumpAmplitude: PD.Numeric;
|
|
145
148
|
alpha: PD.Numeric;
|
|
146
149
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -30,6 +30,7 @@ export declare const CarbohydrateParams: {
|
|
|
30
30
|
flatShaded: PD.BooleanParam;
|
|
31
31
|
ignoreLight: PD.BooleanParam;
|
|
32
32
|
xrayShaded: PD.BooleanParam;
|
|
33
|
+
transparentBackfaces: PD.Select<string>;
|
|
33
34
|
bumpAmplitude: PD.Numeric;
|
|
34
35
|
alpha: PD.Numeric;
|
|
35
36
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -75,6 +76,7 @@ export declare function getCarbohydrateParams(ctx: ThemeRegistryContext, structu
|
|
|
75
76
|
flatShaded: PD.BooleanParam;
|
|
76
77
|
ignoreLight: PD.BooleanParam;
|
|
77
78
|
xrayShaded: PD.BooleanParam;
|
|
79
|
+
transparentBackfaces: PD.Select<string>;
|
|
78
80
|
bumpAmplitude: PD.Numeric;
|
|
79
81
|
alpha: PD.Numeric;
|
|
80
82
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -121,6 +123,7 @@ export declare const CarbohydrateRepresentationProvider: StructureRepresentation
|
|
|
121
123
|
flatShaded: PD.BooleanParam;
|
|
122
124
|
ignoreLight: PD.BooleanParam;
|
|
123
125
|
xrayShaded: PD.BooleanParam;
|
|
126
|
+
transparentBackfaces: PD.Select<string>;
|
|
124
127
|
bumpAmplitude: PD.Numeric;
|
|
125
128
|
alpha: PD.Numeric;
|
|
126
129
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -19,6 +19,7 @@ export declare const CartoonParams: {
|
|
|
19
19
|
flatShaded: PD.BooleanParam;
|
|
20
20
|
ignoreLight: PD.BooleanParam;
|
|
21
21
|
xrayShaded: PD.BooleanParam;
|
|
22
|
+
transparentBackfaces: PD.Select<string>;
|
|
22
23
|
bumpAmplitude: PD.Numeric;
|
|
23
24
|
alpha: PD.Numeric;
|
|
24
25
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -57,6 +58,7 @@ export declare function getCartoonParams(ctx: ThemeRegistryContext, structure: S
|
|
|
57
58
|
flatShaded: PD.BooleanParam;
|
|
58
59
|
ignoreLight: PD.BooleanParam;
|
|
59
60
|
xrayShaded: PD.BooleanParam;
|
|
61
|
+
transparentBackfaces: PD.Select<string>;
|
|
60
62
|
bumpAmplitude: PD.Numeric;
|
|
61
63
|
alpha: PD.Numeric;
|
|
62
64
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -96,6 +98,7 @@ export declare const CartoonRepresentationProvider: StructureRepresentationProvi
|
|
|
96
98
|
flatShaded: PD.BooleanParam;
|
|
97
99
|
ignoreLight: PD.BooleanParam;
|
|
98
100
|
xrayShaded: PD.BooleanParam;
|
|
101
|
+
transparentBackfaces: PD.Select<string>;
|
|
99
102
|
bumpAmplitude: PD.Numeric;
|
|
100
103
|
alpha: PD.Numeric;
|
|
101
104
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -36,6 +36,7 @@ export declare const EllipsoidParams: {
|
|
|
36
36
|
doubleSided: PD.BooleanParam;
|
|
37
37
|
ignoreLight: PD.BooleanParam;
|
|
38
38
|
xrayShaded: PD.BooleanParam;
|
|
39
|
+
transparentBackfaces: PD.Select<string>;
|
|
39
40
|
bumpAmplitude: PD.Numeric;
|
|
40
41
|
alpha: PD.Numeric;
|
|
41
42
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -87,6 +88,7 @@ export declare function getEllipsoidParams(ctx: ThemeRegistryContext, structure:
|
|
|
87
88
|
doubleSided: PD.BooleanParam;
|
|
88
89
|
ignoreLight: PD.BooleanParam;
|
|
89
90
|
xrayShaded: PD.BooleanParam;
|
|
91
|
+
transparentBackfaces: PD.Select<string>;
|
|
90
92
|
bumpAmplitude: PD.Numeric;
|
|
91
93
|
alpha: PD.Numeric;
|
|
92
94
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -139,6 +141,7 @@ export declare const EllipsoidRepresentationProvider: StructureRepresentationPro
|
|
|
139
141
|
doubleSided: PD.BooleanParam;
|
|
140
142
|
ignoreLight: PD.BooleanParam;
|
|
141
143
|
xrayShaded: PD.BooleanParam;
|
|
144
|
+
transparentBackfaces: PD.Select<string>;
|
|
142
145
|
bumpAmplitude: PD.Numeric;
|
|
143
146
|
alpha: PD.Numeric;
|
|
144
147
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|