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
|
@@ -47,6 +47,7 @@ export declare const GaussianSurfaceParams: {
|
|
|
47
47
|
flatShaded: PD.BooleanParam;
|
|
48
48
|
ignoreLight: PD.BooleanParam;
|
|
49
49
|
xrayShaded: PD.BooleanParam;
|
|
50
|
+
transparentBackfaces: PD.Select<string>;
|
|
50
51
|
bumpAmplitude: PD.Numeric;
|
|
51
52
|
};
|
|
52
53
|
export declare type GaussianSurfaceParams = typeof GaussianSurfaceParams;
|
|
@@ -89,6 +90,7 @@ export declare function getGaussianSurfaceParams(ctx: ThemeRegistryContext, stru
|
|
|
89
90
|
flatShaded: PD.BooleanParam;
|
|
90
91
|
ignoreLight: PD.BooleanParam;
|
|
91
92
|
xrayShaded: PD.BooleanParam;
|
|
93
|
+
transparentBackfaces: PD.Select<string>;
|
|
92
94
|
bumpAmplitude: PD.Numeric;
|
|
93
95
|
};
|
|
94
96
|
export declare type GaussianSurfaceRepresentation = StructureRepresentation<GaussianSurfaceParams>;
|
|
@@ -132,5 +134,6 @@ export declare const GaussianSurfaceRepresentationProvider: StructureRepresentat
|
|
|
132
134
|
flatShaded: PD.BooleanParam;
|
|
133
135
|
ignoreLight: PD.BooleanParam;
|
|
134
136
|
xrayShaded: PD.BooleanParam;
|
|
137
|
+
transparentBackfaces: PD.Select<string>;
|
|
135
138
|
bumpAmplitude: PD.Numeric;
|
|
136
139
|
}, "gaussian-surface">;
|
|
@@ -46,6 +46,7 @@ export declare const MolecularSurfaceParams: {
|
|
|
46
46
|
flatShaded: PD.BooleanParam;
|
|
47
47
|
ignoreLight: PD.BooleanParam;
|
|
48
48
|
xrayShaded: PD.BooleanParam;
|
|
49
|
+
transparentBackfaces: PD.Select<string>;
|
|
49
50
|
bumpAmplitude: PD.Numeric;
|
|
50
51
|
};
|
|
51
52
|
export declare type MolecularSurfaceParams = typeof MolecularSurfaceParams;
|
|
@@ -87,6 +88,7 @@ export declare function getMolecularSurfaceParams(ctx: ThemeRegistryContext, str
|
|
|
87
88
|
flatShaded: PD.BooleanParam;
|
|
88
89
|
ignoreLight: PD.BooleanParam;
|
|
89
90
|
xrayShaded: PD.BooleanParam;
|
|
91
|
+
transparentBackfaces: PD.Select<string>;
|
|
90
92
|
bumpAmplitude: PD.Numeric;
|
|
91
93
|
};
|
|
92
94
|
export declare type MolecularSurfaceRepresentation = StructureRepresentation<MolecularSurfaceParams>;
|
|
@@ -129,5 +131,6 @@ export declare const MolecularSurfaceRepresentationProvider: StructureRepresenta
|
|
|
129
131
|
flatShaded: PD.BooleanParam;
|
|
130
132
|
ignoreLight: PD.BooleanParam;
|
|
131
133
|
xrayShaded: PD.BooleanParam;
|
|
134
|
+
transparentBackfaces: PD.Select<string>;
|
|
132
135
|
bumpAmplitude: PD.Numeric;
|
|
133
136
|
}, "molecular-surface">;
|
|
@@ -20,6 +20,7 @@ export declare const OrientationParams: {
|
|
|
20
20
|
flatShaded: PD.BooleanParam;
|
|
21
21
|
ignoreLight: PD.BooleanParam;
|
|
22
22
|
xrayShaded: PD.BooleanParam;
|
|
23
|
+
transparentBackfaces: PD.Select<string>;
|
|
23
24
|
bumpAmplitude: PD.Numeric;
|
|
24
25
|
alpha: PD.Numeric;
|
|
25
26
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -52,6 +53,7 @@ export declare function getOrientationParams(ctx: ThemeRegistryContext, structur
|
|
|
52
53
|
flatShaded: PD.BooleanParam;
|
|
53
54
|
ignoreLight: PD.BooleanParam;
|
|
54
55
|
xrayShaded: PD.BooleanParam;
|
|
56
|
+
transparentBackfaces: PD.Select<string>;
|
|
55
57
|
bumpAmplitude: PD.Numeric;
|
|
56
58
|
alpha: PD.Numeric;
|
|
57
59
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -85,6 +87,7 @@ export declare const OrientationRepresentationProvider: StructureRepresentationP
|
|
|
85
87
|
flatShaded: PD.BooleanParam;
|
|
86
88
|
ignoreLight: PD.BooleanParam;
|
|
87
89
|
xrayShaded: PD.BooleanParam;
|
|
90
|
+
transparentBackfaces: PD.Select<string>;
|
|
88
91
|
bumpAmplitude: PD.Numeric;
|
|
89
92
|
alpha: PD.Numeric;
|
|
90
93
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -20,6 +20,7 @@ export declare const PuttyParams: {
|
|
|
20
20
|
flatShaded: PD.BooleanParam;
|
|
21
21
|
ignoreLight: PD.BooleanParam;
|
|
22
22
|
xrayShaded: PD.BooleanParam;
|
|
23
|
+
transparentBackfaces: PD.Select<string>;
|
|
23
24
|
bumpAmplitude: PD.Numeric;
|
|
24
25
|
alpha: PD.Numeric;
|
|
25
26
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -54,6 +55,7 @@ export declare function getPuttyParams(ctx: ThemeRegistryContext, structure: Str
|
|
|
54
55
|
flatShaded: PD.BooleanParam;
|
|
55
56
|
ignoreLight: PD.BooleanParam;
|
|
56
57
|
xrayShaded: PD.BooleanParam;
|
|
58
|
+
transparentBackfaces: PD.Select<string>;
|
|
57
59
|
bumpAmplitude: PD.Numeric;
|
|
58
60
|
alpha: PD.Numeric;
|
|
59
61
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -89,6 +91,7 @@ export declare const PuttyRepresentationProvider: StructureRepresentationProvide
|
|
|
89
91
|
flatShaded: PD.BooleanParam;
|
|
90
92
|
ignoreLight: PD.BooleanParam;
|
|
91
93
|
xrayShaded: PD.BooleanParam;
|
|
94
|
+
transparentBackfaces: PD.Select<string>;
|
|
92
95
|
bumpAmplitude: PD.Numeric;
|
|
93
96
|
alpha: PD.Numeric;
|
|
94
97
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -20,6 +20,7 @@ export declare const SpacefillParams: {
|
|
|
20
20
|
doubleSided: PD.BooleanParam;
|
|
21
21
|
ignoreLight: PD.BooleanParam;
|
|
22
22
|
xrayShaded: PD.BooleanParam;
|
|
23
|
+
transparentBackfaces: PD.Select<string>;
|
|
23
24
|
bumpAmplitude: PD.Numeric;
|
|
24
25
|
alpha: PD.Numeric;
|
|
25
26
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -54,6 +55,7 @@ export declare function getSpacefillParams(ctx: ThemeRegistryContext, structure:
|
|
|
54
55
|
doubleSided: PD.BooleanParam;
|
|
55
56
|
ignoreLight: PD.BooleanParam;
|
|
56
57
|
xrayShaded: PD.BooleanParam;
|
|
58
|
+
transparentBackfaces: PD.Select<string>;
|
|
57
59
|
bumpAmplitude: PD.Numeric;
|
|
58
60
|
alpha: PD.Numeric;
|
|
59
61
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -89,6 +91,7 @@ export declare const SpacefillRepresentationProvider: StructureRepresentationPro
|
|
|
89
91
|
doubleSided: PD.BooleanParam;
|
|
90
92
|
ignoreLight: PD.BooleanParam;
|
|
91
93
|
xrayShaded: PD.BooleanParam;
|
|
94
|
+
transparentBackfaces: PD.Select<string>;
|
|
92
95
|
bumpAmplitude: PD.Numeric;
|
|
93
96
|
alpha: PD.Numeric;
|
|
94
97
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -51,6 +51,7 @@ export declare const UnitsMeshParams: {
|
|
|
51
51
|
flatShaded: PD.BooleanParam;
|
|
52
52
|
ignoreLight: PD.BooleanParam;
|
|
53
53
|
xrayShaded: PD.BooleanParam;
|
|
54
|
+
transparentBackfaces: PD.Select<string>;
|
|
54
55
|
bumpFrequency: PD.Numeric;
|
|
55
56
|
bumpAmplitude: PD.Numeric;
|
|
56
57
|
alpha: PD.Numeric;
|
|
@@ -82,6 +83,7 @@ export declare const UnitsSpheresParams: {
|
|
|
82
83
|
doubleSided: PD.BooleanParam;
|
|
83
84
|
ignoreLight: PD.BooleanParam;
|
|
84
85
|
xrayShaded: PD.BooleanParam;
|
|
86
|
+
transparentBackfaces: PD.Select<string>;
|
|
85
87
|
bumpFrequency: PD.Numeric;
|
|
86
88
|
bumpAmplitude: PD.Numeric;
|
|
87
89
|
alpha: PD.Numeric;
|
|
@@ -114,6 +116,7 @@ export declare const UnitsCylindersParams: {
|
|
|
114
116
|
doubleSided: PD.BooleanParam;
|
|
115
117
|
ignoreLight: PD.BooleanParam;
|
|
116
118
|
xrayShaded: PD.BooleanParam;
|
|
119
|
+
transparentBackfaces: PD.Select<string>;
|
|
117
120
|
bumpFrequency: PD.Numeric;
|
|
118
121
|
bumpAmplitude: PD.Numeric;
|
|
119
122
|
alpha: PD.Numeric;
|
|
@@ -275,6 +278,7 @@ export declare const UnitsTextureMeshParams: {
|
|
|
275
278
|
flatShaded: PD.BooleanParam;
|
|
276
279
|
ignoreLight: PD.BooleanParam;
|
|
277
280
|
xrayShaded: PD.BooleanParam;
|
|
281
|
+
transparentBackfaces: PD.Select<string>;
|
|
278
282
|
bumpFrequency: PD.Numeric;
|
|
279
283
|
bumpAmplitude: PD.Numeric;
|
|
280
284
|
alpha: PD.Numeric;
|
|
@@ -33,6 +33,7 @@ export declare const InterUnitBondCylinderParams: {
|
|
|
33
33
|
doubleSided: PD.BooleanParam;
|
|
34
34
|
ignoreLight: PD.BooleanParam;
|
|
35
35
|
xrayShaded: PD.BooleanParam;
|
|
36
|
+
transparentBackfaces: PD.Select<string>;
|
|
36
37
|
bumpFrequency: PD.Numeric;
|
|
37
38
|
bumpAmplitude: PD.Numeric;
|
|
38
39
|
alpha: PD.Numeric;
|
|
@@ -82,6 +83,7 @@ export declare function InterUnitBondCylinderVisual(materialId: number, structur
|
|
|
82
83
|
doubleSided: PD.BooleanParam;
|
|
83
84
|
ignoreLight: PD.BooleanParam;
|
|
84
85
|
xrayShaded: PD.BooleanParam;
|
|
86
|
+
transparentBackfaces: PD.Select<string>;
|
|
85
87
|
bumpFrequency: PD.Numeric;
|
|
86
88
|
bumpAmplitude: PD.Numeric;
|
|
87
89
|
alpha: PD.Numeric;
|
|
@@ -34,6 +34,7 @@ export declare const IntraUnitBondCylinderParams: {
|
|
|
34
34
|
doubleSided: PD.BooleanParam;
|
|
35
35
|
ignoreLight: PD.BooleanParam;
|
|
36
36
|
xrayShaded: PD.BooleanParam;
|
|
37
|
+
transparentBackfaces: PD.Select<string>;
|
|
37
38
|
bumpFrequency: PD.Numeric;
|
|
38
39
|
bumpAmplitude: PD.Numeric;
|
|
39
40
|
alpha: PD.Numeric;
|
|
@@ -83,6 +84,7 @@ export declare function IntraUnitBondCylinderVisual(materialId: number, structur
|
|
|
83
84
|
doubleSided: PD.BooleanParam;
|
|
84
85
|
ignoreLight: PD.BooleanParam;
|
|
85
86
|
xrayShaded: PD.BooleanParam;
|
|
87
|
+
transparentBackfaces: PD.Select<string>;
|
|
86
88
|
bumpFrequency: PD.Numeric;
|
|
87
89
|
bumpAmplitude: PD.Numeric;
|
|
88
90
|
alpha: PD.Numeric;
|
|
@@ -25,6 +25,7 @@ export declare const CarbohydrateLinkParams: {
|
|
|
25
25
|
flatShaded: PD.BooleanParam;
|
|
26
26
|
ignoreLight: PD.BooleanParam;
|
|
27
27
|
xrayShaded: PD.BooleanParam;
|
|
28
|
+
transparentBackfaces: PD.Select<string>;
|
|
28
29
|
bumpFrequency: PD.Numeric;
|
|
29
30
|
bumpAmplitude: PD.Numeric;
|
|
30
31
|
alpha: PD.Numeric;
|
|
@@ -15,6 +15,7 @@ export declare const CarbohydrateSymbolParams: {
|
|
|
15
15
|
flatShaded: PD.BooleanParam;
|
|
16
16
|
ignoreLight: PD.BooleanParam;
|
|
17
17
|
xrayShaded: PD.BooleanParam;
|
|
18
|
+
transparentBackfaces: PD.Select<string>;
|
|
18
19
|
bumpFrequency: PD.Numeric;
|
|
19
20
|
bumpAmplitude: PD.Numeric;
|
|
20
21
|
alpha: PD.Numeric;
|
|
@@ -25,6 +25,7 @@ export declare const CarbohydrateTerminalLinkParams: {
|
|
|
25
25
|
flatShaded: PD.BooleanParam;
|
|
26
26
|
ignoreLight: PD.BooleanParam;
|
|
27
27
|
xrayShaded: PD.BooleanParam;
|
|
28
|
+
transparentBackfaces: PD.Select<string>;
|
|
28
29
|
bumpFrequency: PD.Numeric;
|
|
29
30
|
bumpAmplitude: PD.Numeric;
|
|
30
31
|
alpha: PD.Numeric;
|
|
@@ -19,6 +19,7 @@ export declare const ElementSphereParams: {
|
|
|
19
19
|
doubleSided: 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;
|
|
@@ -53,6 +54,7 @@ export declare function ElementSphereVisual(materialId: number, structure: Struc
|
|
|
53
54
|
doubleSided: PD.BooleanParam;
|
|
54
55
|
ignoreLight: PD.BooleanParam;
|
|
55
56
|
xrayShaded: PD.BooleanParam;
|
|
57
|
+
transparentBackfaces: PD.Select<string>;
|
|
56
58
|
bumpFrequency: PD.Numeric;
|
|
57
59
|
bumpAmplitude: PD.Numeric;
|
|
58
60
|
alpha: PD.Numeric;
|
|
@@ -20,6 +20,7 @@ export declare const EllipsoidMeshParams: {
|
|
|
20
20
|
flatShaded: PD.BooleanParam;
|
|
21
21
|
ignoreLight: PD.BooleanParam;
|
|
22
22
|
xrayShaded: PD.BooleanParam;
|
|
23
|
+
transparentBackfaces: PD.Select<string>;
|
|
23
24
|
bumpFrequency: PD.Numeric;
|
|
24
25
|
bumpAmplitude: PD.Numeric;
|
|
25
26
|
alpha: PD.Numeric;
|
|
@@ -26,6 +26,7 @@ export declare const GaussianSurfaceMeshParams: {
|
|
|
26
26
|
flatShaded: PD.BooleanParam;
|
|
27
27
|
ignoreLight: PD.BooleanParam;
|
|
28
28
|
xrayShaded: PD.BooleanParam;
|
|
29
|
+
transparentBackfaces: PD.Select<string>;
|
|
29
30
|
bumpFrequency: PD.Numeric;
|
|
30
31
|
bumpAmplitude: PD.Numeric;
|
|
31
32
|
alpha: PD.Numeric;
|
|
@@ -65,6 +66,7 @@ export declare const StructureGaussianSurfaceMeshParams: {
|
|
|
65
66
|
flatShaded: PD.BooleanParam;
|
|
66
67
|
ignoreLight: PD.BooleanParam;
|
|
67
68
|
xrayShaded: PD.BooleanParam;
|
|
69
|
+
transparentBackfaces: PD.Select<string>;
|
|
68
70
|
bumpFrequency: PD.Numeric;
|
|
69
71
|
bumpAmplitude: PD.Numeric;
|
|
70
72
|
alpha: PD.Numeric;
|
|
@@ -104,6 +106,7 @@ export declare function GaussianSurfaceVisual(materialId: number, structure: Str
|
|
|
104
106
|
flatShaded: PD.BooleanParam;
|
|
105
107
|
ignoreLight: PD.BooleanParam;
|
|
106
108
|
xrayShaded: PD.BooleanParam;
|
|
109
|
+
transparentBackfaces: PD.Select<string>;
|
|
107
110
|
bumpFrequency: PD.Numeric;
|
|
108
111
|
bumpAmplitude: PD.Numeric;
|
|
109
112
|
alpha: PD.Numeric;
|
|
@@ -142,6 +145,7 @@ export declare function StructureGaussianSurfaceVisual(materialId: number, struc
|
|
|
142
145
|
flatShaded: PD.BooleanParam;
|
|
143
146
|
ignoreLight: PD.BooleanParam;
|
|
144
147
|
xrayShaded: PD.BooleanParam;
|
|
148
|
+
transparentBackfaces: PD.Select<string>;
|
|
145
149
|
bumpFrequency: PD.Numeric;
|
|
146
150
|
bumpAmplitude: PD.Numeric;
|
|
147
151
|
alpha: PD.Numeric;
|
|
@@ -22,6 +22,7 @@ export declare const MolecularSurfaceMeshParams: {
|
|
|
22
22
|
flatShaded: PD.BooleanParam;
|
|
23
23
|
ignoreLight: PD.BooleanParam;
|
|
24
24
|
xrayShaded: PD.BooleanParam;
|
|
25
|
+
transparentBackfaces: PD.Select<string>;
|
|
25
26
|
bumpFrequency: PD.Numeric;
|
|
26
27
|
bumpAmplitude: PD.Numeric;
|
|
27
28
|
alpha: PD.Numeric;
|
|
@@ -24,6 +24,7 @@ export declare const NucleotideBlockParams: {
|
|
|
24
24
|
flatShaded: PD.BooleanParam;
|
|
25
25
|
ignoreLight: PD.BooleanParam;
|
|
26
26
|
xrayShaded: PD.BooleanParam;
|
|
27
|
+
transparentBackfaces: PD.Select<string>;
|
|
27
28
|
bumpFrequency: PD.Numeric;
|
|
28
29
|
bumpAmplitude: PD.Numeric;
|
|
29
30
|
alpha: PD.Numeric;
|
|
@@ -27,6 +27,7 @@ export declare const NucleotideRingParams: {
|
|
|
27
27
|
flatShaded: PD.BooleanParam;
|
|
28
28
|
ignoreLight: PD.BooleanParam;
|
|
29
29
|
xrayShaded: PD.BooleanParam;
|
|
30
|
+
transparentBackfaces: PD.Select<string>;
|
|
30
31
|
bumpFrequency: PD.Numeric;
|
|
31
32
|
bumpAmplitude: PD.Numeric;
|
|
32
33
|
alpha: PD.Numeric;
|
|
@@ -19,6 +19,7 @@ export declare const OrientationEllipsoidMeshParams: {
|
|
|
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;
|
|
@@ -17,6 +17,7 @@ export declare const PolymerBackboneCylinderParams: {
|
|
|
17
17
|
doubleSided: PD.BooleanParam;
|
|
18
18
|
ignoreLight: PD.BooleanParam;
|
|
19
19
|
xrayShaded: PD.BooleanParam;
|
|
20
|
+
transparentBackfaces: PD.Select<string>;
|
|
20
21
|
bumpFrequency: PD.Numeric;
|
|
21
22
|
bumpAmplitude: PD.Numeric;
|
|
22
23
|
alpha: PD.Numeric;
|
|
@@ -50,6 +51,7 @@ export declare function PolymerBackboneCylinderVisual(materialId: number, struct
|
|
|
50
51
|
doubleSided: PD.BooleanParam;
|
|
51
52
|
ignoreLight: PD.BooleanParam;
|
|
52
53
|
xrayShaded: PD.BooleanParam;
|
|
54
|
+
transparentBackfaces: PD.Select<string>;
|
|
53
55
|
bumpFrequency: PD.Numeric;
|
|
54
56
|
bumpAmplitude: PD.Numeric;
|
|
55
57
|
alpha: PD.Numeric;
|
|
@@ -16,6 +16,7 @@ export declare const PolymerBackboneSphereParams: {
|
|
|
16
16
|
doubleSided: PD.BooleanParam;
|
|
17
17
|
ignoreLight: PD.BooleanParam;
|
|
18
18
|
xrayShaded: PD.BooleanParam;
|
|
19
|
+
transparentBackfaces: PD.Select<string>;
|
|
19
20
|
bumpFrequency: PD.Numeric;
|
|
20
21
|
bumpAmplitude: PD.Numeric;
|
|
21
22
|
alpha: PD.Numeric;
|
|
@@ -48,6 +49,7 @@ export declare function PolymerBackboneSphereVisual(materialId: number, structur
|
|
|
48
49
|
doubleSided: PD.BooleanParam;
|
|
49
50
|
ignoreLight: PD.BooleanParam;
|
|
50
51
|
xrayShaded: PD.BooleanParam;
|
|
52
|
+
transparentBackfaces: PD.Select<string>;
|
|
51
53
|
bumpFrequency: PD.Numeric;
|
|
52
54
|
bumpAmplitude: PD.Numeric;
|
|
53
55
|
alpha: PD.Numeric;
|
|
@@ -21,6 +21,7 @@ export declare const PolymerDirectionParams: {
|
|
|
21
21
|
flatShaded: PD.BooleanParam;
|
|
22
22
|
ignoreLight: PD.BooleanParam;
|
|
23
23
|
xrayShaded: PD.BooleanParam;
|
|
24
|
+
transparentBackfaces: PD.Select<string>;
|
|
24
25
|
bumpFrequency: PD.Numeric;
|
|
25
26
|
bumpAmplitude: PD.Numeric;
|
|
26
27
|
alpha: PD.Numeric;
|
|
@@ -24,6 +24,7 @@ export declare const PolymerGapParams: {
|
|
|
24
24
|
flatShaded: PD.BooleanParam;
|
|
25
25
|
ignoreLight: PD.BooleanParam;
|
|
26
26
|
xrayShaded: PD.BooleanParam;
|
|
27
|
+
transparentBackfaces: PD.Select<string>;
|
|
27
28
|
bumpFrequency: PD.Numeric;
|
|
28
29
|
bumpAmplitude: PD.Numeric;
|
|
29
30
|
alpha: PD.Numeric;
|
|
@@ -42,6 +42,7 @@ export declare const PolymerTraceParams: {
|
|
|
42
42
|
flatShaded: PD.BooleanParam;
|
|
43
43
|
ignoreLight: PD.BooleanParam;
|
|
44
44
|
xrayShaded: PD.BooleanParam;
|
|
45
|
+
transparentBackfaces: PD.Select<string>;
|
|
45
46
|
bumpFrequency: PD.Numeric;
|
|
46
47
|
bumpAmplitude: PD.Numeric;
|
|
47
48
|
alpha: PD.Numeric;
|
|
@@ -30,6 +30,7 @@ export declare const PolymerTubeParams: {
|
|
|
30
30
|
flatShaded: PD.BooleanParam;
|
|
31
31
|
ignoreLight: PD.BooleanParam;
|
|
32
32
|
xrayShaded: PD.BooleanParam;
|
|
33
|
+
transparentBackfaces: PD.Select<string>;
|
|
33
34
|
bumpFrequency: PD.Numeric;
|
|
34
35
|
bumpAmplitude: PD.Numeric;
|
|
35
36
|
alpha: PD.Numeric;
|
package/lib/mol-repr/util.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2018-
|
|
2
|
+
* Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
5
|
*/
|
|
@@ -31,6 +31,7 @@ export interface QualityProps {
|
|
|
31
31
|
doubleSided: boolean;
|
|
32
32
|
xrayShaded: boolean;
|
|
33
33
|
alpha: number;
|
|
34
|
+
transparentBackfaces: 'off' | 'on' | 'opaque';
|
|
34
35
|
}
|
|
35
36
|
export declare const DefaultQualityThresholds: {
|
|
36
37
|
lowestElementCount: number;
|
package/lib/mol-repr/util.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2018-
|
|
2
|
+
* Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
5
|
*/
|
|
@@ -165,7 +165,7 @@ export function getQualityProps(props, data) {
|
|
|
165
165
|
// max resolution based on volume (for 'auto' quality)
|
|
166
166
|
resolution = Math.max(resolution, volume / 500000000);
|
|
167
167
|
resolution = Math.min(resolution, 20);
|
|
168
|
-
if ((props.alpha !== undefined && props.alpha < 1) || !!props.xrayShaded) {
|
|
168
|
+
if (props.transparentBackfaces === 'off' && ((props.alpha !== undefined && props.alpha < 1) || !!props.xrayShaded)) {
|
|
169
169
|
doubleSided = false;
|
|
170
170
|
}
|
|
171
171
|
return {
|
|
@@ -93,6 +93,7 @@ export declare function IsosurfaceVisual(materialId: number, volume: Volume, pro
|
|
|
93
93
|
flatShaded: PD.BooleanParam;
|
|
94
94
|
ignoreLight: PD.BooleanParam;
|
|
95
95
|
xrayShaded: PD.BooleanParam;
|
|
96
|
+
transparentBackfaces: PD.Select<string>;
|
|
96
97
|
bumpFrequency: PD.Numeric;
|
|
97
98
|
bumpAmplitude: PD.Numeric;
|
|
98
99
|
alpha: PD.Numeric;
|
|
@@ -166,6 +167,7 @@ export declare const IsosurfaceMeshParams: {
|
|
|
166
167
|
flatShaded: PD.BooleanParam;
|
|
167
168
|
ignoreLight: PD.BooleanParam;
|
|
168
169
|
xrayShaded: PD.BooleanParam;
|
|
170
|
+
transparentBackfaces: PD.Select<string>;
|
|
169
171
|
bumpFrequency: PD.Numeric;
|
|
170
172
|
bumpAmplitude: PD.Numeric;
|
|
171
173
|
alpha: PD.Numeric;
|
|
@@ -328,6 +330,7 @@ export declare const IsosurfaceParams: {
|
|
|
328
330
|
flatShaded: PD.BooleanParam;
|
|
329
331
|
ignoreLight: PD.BooleanParam;
|
|
330
332
|
xrayShaded: PD.BooleanParam;
|
|
333
|
+
transparentBackfaces: PD.Select<string>;
|
|
331
334
|
bumpAmplitude: PD.Numeric;
|
|
332
335
|
};
|
|
333
336
|
export declare type IsosurfaceParams = typeof IsosurfaceParams;
|
|
@@ -403,6 +406,7 @@ export declare function getIsosurfaceParams(ctx: ThemeRegistryContext, volume: V
|
|
|
403
406
|
flatShaded: PD.BooleanParam;
|
|
404
407
|
ignoreLight: PD.BooleanParam;
|
|
405
408
|
xrayShaded: PD.BooleanParam;
|
|
409
|
+
transparentBackfaces: PD.Select<string>;
|
|
406
410
|
bumpAmplitude: PD.Numeric;
|
|
407
411
|
};
|
|
408
412
|
export declare type IsosurfaceRepresentation = VolumeRepresentation<IsosurfaceParams>;
|
|
@@ -479,5 +483,6 @@ export declare const IsosurfaceRepresentationProvider: VolumeRepresentationProvi
|
|
|
479
483
|
flatShaded: PD.BooleanParam;
|
|
480
484
|
ignoreLight: PD.BooleanParam;
|
|
481
485
|
xrayShaded: PD.BooleanParam;
|
|
486
|
+
transparentBackfaces: PD.Select<string>;
|
|
482
487
|
bumpAmplitude: PD.Numeric;
|
|
483
488
|
}, "isosurface">;
|
|
@@ -82,6 +82,7 @@ export declare namespace VolumeRepresentationRegistry {
|
|
|
82
82
|
flatShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
83
83
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
84
84
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
85
|
+
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<string>;
|
|
85
86
|
bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
86
87
|
}, "isosurface">;
|
|
87
88
|
slice: import("./representation").VolumeRepresentationProvider<{
|
package/lib/mol-theme/color.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2018-
|
|
2
|
+
* Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
5
|
*/
|
|
@@ -9,14 +9,21 @@ import { ColorType } from '../mol-geo/geometry/color-data';
|
|
|
9
9
|
import { ParamDefinition as PD } from '../mol-util/param-definition';
|
|
10
10
|
import { ThemeDataContext, ThemeRegistry, ThemeProvider } from './theme';
|
|
11
11
|
import { ScaleLegend, TableLegend } from '../mol-util/legend';
|
|
12
|
-
import { TextureFilter } from '../mol-gl/webgl/texture';
|
|
12
|
+
import { Texture, TextureFilter } from '../mol-gl/webgl/texture';
|
|
13
|
+
import { Vec3, Vec4 } from '../mol-math/linear-algebra';
|
|
13
14
|
export declare type LocationColor = (location: Location, isSecondary: boolean) => Color;
|
|
15
|
+
export interface ColorVolume {
|
|
16
|
+
colors: Texture;
|
|
17
|
+
dimension: Vec3;
|
|
18
|
+
transform: Vec4;
|
|
19
|
+
}
|
|
14
20
|
export { ColorTheme };
|
|
15
21
|
interface ColorTheme<P extends PD.Params> {
|
|
16
22
|
readonly factory: ColorTheme.Factory<P>;
|
|
17
23
|
readonly granularity: ColorType;
|
|
18
24
|
readonly color: LocationColor;
|
|
19
25
|
readonly props: Readonly<PD.Values<P>>;
|
|
26
|
+
readonly grid?: ColorVolume;
|
|
20
27
|
/**
|
|
21
28
|
* if palette is defined, 24bit RGB color value normalized to interval [0, 1]
|
|
22
29
|
* is used as index to the colors
|
package/lib/mol-theme/color.js
CHANGED
|
@@ -256,10 +256,8 @@ function resolveJobEntry(entry, structure, encoder) {
|
|
|
256
256
|
encoder.writeCategory(_model_server_result, entry);
|
|
257
257
|
encoder.writeCategory(_model_server_params, entry);
|
|
258
258
|
if (entry.queryDefinition.niceName === 'Ligand') {
|
|
259
|
-
if (encoder instanceof MolEncoder) {
|
|
260
|
-
encoder.setComponentAtomData(ComponentAtom.Provider.get(structure.models[0]));
|
|
261
|
-
}
|
|
262
259
|
if (encoder instanceof MolEncoder || encoder instanceof Mol2Encoder) {
|
|
260
|
+
encoder.setComponentAtomData(ComponentAtom.Provider.get(structure.models[0]));
|
|
263
261
|
encoder.setComponentBondData(ComponentBond.Provider.get(structure.models[0]));
|
|
264
262
|
}
|
|
265
263
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "molstar",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"description": "A comprehensive macromolecular library.",
|
|
5
5
|
"homepage": "https://github.com/molstar/molstar#readme",
|
|
6
6
|
"repository": {
|
|
@@ -94,21 +94,23 @@
|
|
|
94
94
|
"@graphql-codegen/add": "^3.1.1",
|
|
95
95
|
"@graphql-codegen/cli": "^2.6.2",
|
|
96
96
|
"@graphql-codegen/time": "^3.1.1",
|
|
97
|
-
"@graphql-codegen/typescript": "^2.4.
|
|
97
|
+
"@graphql-codegen/typescript": "^2.4.8",
|
|
98
98
|
"@graphql-codegen/typescript-graphql-files-modules": "^2.1.1",
|
|
99
|
-
"@graphql-codegen/typescript-graphql-request": "^4.4.
|
|
100
|
-
"@graphql-codegen/typescript-operations": "^2.3.
|
|
99
|
+
"@graphql-codegen/typescript-graphql-request": "^4.4.5",
|
|
100
|
+
"@graphql-codegen/typescript-operations": "^2.3.5",
|
|
101
101
|
"@types/cors": "^2.8.12",
|
|
102
102
|
"@types/gl": "^4.1.0",
|
|
103
103
|
"@types/jest": "^27.4.1",
|
|
104
|
-
"@
|
|
105
|
-
"@
|
|
104
|
+
"@types/react": "^18.0.1",
|
|
105
|
+
"@types/react-dom": "^18.0.0",
|
|
106
|
+
"@typescript-eslint/eslint-plugin": "^5.18.0",
|
|
107
|
+
"@typescript-eslint/parser": "^5.18.0",
|
|
106
108
|
"benchmark": "^2.1.4",
|
|
107
|
-
"concurrently": "^7.
|
|
109
|
+
"concurrently": "^7.1.0",
|
|
108
110
|
"cpx2": "^4.2.0",
|
|
109
111
|
"crypto-browserify": "^3.12.0",
|
|
110
112
|
"css-loader": "^6.7.1",
|
|
111
|
-
"eslint": "^8.
|
|
113
|
+
"eslint": "^8.13.0",
|
|
112
114
|
"extra-watch-webpack-plugin": "^1.0.3",
|
|
113
115
|
"file-loader": "^6.2.0",
|
|
114
116
|
"fs-extra": "^10.0.1",
|
|
@@ -118,14 +120,16 @@
|
|
|
118
120
|
"mini-css-extract-plugin": "^2.6.0",
|
|
119
121
|
"path-browserify": "^1.0.1",
|
|
120
122
|
"raw-loader": "^4.0.2",
|
|
121
|
-
"
|
|
123
|
+
"react": "^18.0.0",
|
|
124
|
+
"react-dom": "^18.0.0",
|
|
125
|
+
"sass": "^1.50.0",
|
|
122
126
|
"sass-loader": "^12.6.0",
|
|
123
|
-
"simple-git": "^3.
|
|
127
|
+
"simple-git": "^3.5.0",
|
|
124
128
|
"stream-browserify": "^3.0.0",
|
|
125
129
|
"style-loader": "^3.3.1",
|
|
126
|
-
"ts-jest": "^27.1.
|
|
127
|
-
"typescript": "^4.6.
|
|
128
|
-
"webpack": "^5.
|
|
130
|
+
"ts-jest": "^27.1.4",
|
|
131
|
+
"typescript": "^4.6.3",
|
|
132
|
+
"webpack": "^5.72.0",
|
|
129
133
|
"webpack-cli": "^4.9.2"
|
|
130
134
|
},
|
|
131
135
|
"dependencies": {
|
|
@@ -135,11 +139,9 @@
|
|
|
135
139
|
"@types/express": "^4.17.13",
|
|
136
140
|
"@types/node": "^16.11.26",
|
|
137
141
|
"@types/node-fetch": "^2.6.1",
|
|
138
|
-
"@types/react": "^17.0.40",
|
|
139
|
-
"@types/react-dom": "^17.0.13",
|
|
140
142
|
"@types/swagger-ui-dist": "3.30.1",
|
|
141
143
|
"argparse": "^2.0.1",
|
|
142
|
-
"body-parser": "^1.
|
|
144
|
+
"body-parser": "^1.20.0",
|
|
143
145
|
"compression": "^1.7.4",
|
|
144
146
|
"cors": "^2.8.5",
|
|
145
147
|
"express": "^4.17.3",
|
|
@@ -148,13 +150,13 @@
|
|
|
148
150
|
"immutable": "^4.0.0",
|
|
149
151
|
"node-fetch": "^2.6.7",
|
|
150
152
|
"rxjs": "^7.5.5",
|
|
151
|
-
"swagger-ui-dist": "^4.
|
|
153
|
+
"swagger-ui-dist": "^4.10.3",
|
|
152
154
|
"tslib": "^2.3.1",
|
|
153
155
|
"util.promisify": "^1.1.1",
|
|
154
156
|
"xhr2": "^0.2.1"
|
|
155
157
|
},
|
|
156
158
|
"peerDependencies": {
|
|
157
|
-
"react": "^17.0.2 || ^16.14.0",
|
|
158
|
-
"react-dom": "^17.0.2 || ^16.14.0"
|
|
159
|
+
"react": "^18.0.0 || ^17.0.2 || ^16.14.0",
|
|
160
|
+
"react-dom": "^18.0.0 || ^17.0.2 || ^16.14.0"
|
|
159
161
|
}
|
|
160
162
|
}
|