molstar 3.44.0 → 3.45.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/molstar.css +1 -1
- package/build/viewer/molstar.js +1 -1
- package/lib/cli/cifschema/index.js +2 -2
- package/lib/commonjs/cli/cifschema/index.js +2 -2
- package/lib/commonjs/extensions/anvil/behavior.d.ts +1 -1
- package/lib/commonjs/extensions/anvil/representation.d.ts +4 -4
- package/lib/commonjs/extensions/cellpack/representation.d.ts +1 -1
- package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +3 -3
- package/lib/commonjs/extensions/dnatco/ntc-tube/representation.d.ts +3 -3
- package/lib/commonjs/extensions/mvs/behavior.d.ts +1 -1
- package/lib/commonjs/extensions/mvs/behavior.js +3 -1
- package/lib/commonjs/extensions/mvs/components/annotation-color-theme.d.ts +1 -1
- package/lib/commonjs/extensions/mvs/components/annotation-color-theme.js +3 -2
- package/lib/commonjs/extensions/mvs/components/annotation-label/representation.d.ts +3 -1
- package/lib/commonjs/extensions/mvs/components/annotation-label/representation.js +3 -2
- package/lib/commonjs/extensions/mvs/components/annotation-prop.d.ts +1 -1
- package/lib/commonjs/extensions/mvs/components/annotation-prop.js +2 -2
- package/lib/commonjs/extensions/mvs/components/custom-label/representation.d.ts +1 -1
- package/lib/commonjs/extensions/mvs/components/custom-label/representation.js +4 -3
- package/lib/commonjs/extensions/mvs/components/custom-tooltips-prop.d.ts +1 -1
- package/lib/commonjs/extensions/mvs/components/custom-tooltips-prop.js +2 -2
- package/lib/commonjs/extensions/mvs/components/is-mvs-model-prop.d.ts +21 -0
- package/lib/commonjs/extensions/mvs/components/is-mvs-model-prop.js +40 -0
- package/lib/commonjs/extensions/mvs/components/multilayer-color-theme.d.ts +1 -1
- package/lib/commonjs/extensions/mvs/components/multilayer-color-theme.js +4 -3
- package/lib/commonjs/extensions/mvs/load.d.ts +1 -1
- package/lib/commonjs/extensions/mvs/load.js +5 -2
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +1 -1
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.d.ts +1 -1
- package/lib/commonjs/extensions/rcsb/graphql/types.d.ts +160 -1
- package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +10 -5
- package/lib/commonjs/mol-canvas3d/helper/handle-helper.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/color-data.d.ts +1 -0
- package/lib/commonjs/mol-geo/geometry/color-data.js +15 -8
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders-builder.d.ts +9 -3
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders-builder.js +13 -6
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +11 -2
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.js +14 -9
- package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +1 -1
- package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +1 -1
- package/lib/commonjs/mol-geo/util/location-iterator.d.ts +4 -1
- package/lib/commonjs/mol-geo/util/location-iterator.js +8 -1
- package/lib/commonjs/mol-gl/renderable/cylinders.d.ts +2 -0
- package/lib/commonjs/mol-gl/renderable/cylinders.js +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
- package/lib/commonjs/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
- package/lib/commonjs/mol-gl/shader/cylinders.vert.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/cylinders.vert.js +2 -2
- package/lib/commonjs/mol-io/reader/cif/schema/bird.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/bird.js +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/ccd.d.ts +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/ccd.js +1 -1
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +2 -2
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +1 -1
- package/lib/commonjs/mol-model/structure/model/types/saccharides.js +1 -1
- package/lib/commonjs/mol-model-formats/shape/ply.d.ts +2 -2
- package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +2 -1
- package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +2 -1
- package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +6 -3
- package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +8 -4
- package/lib/commonjs/mol-plugin/behavior/dynamic/representation.d.ts +1 -1
- package/lib/commonjs/mol-plugin/behavior/dynamic/representation.js +12 -6
- package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +9 -7
- package/lib/commonjs/mol-plugin-state/transforms/representation.js +16 -10
- package/lib/commonjs/mol-plugin-ui/controls/parameters.d.ts +2 -3
- package/lib/commonjs/mol-plugin-ui/controls/parameters.js +48 -12
- package/lib/commonjs/mol-plugin-ui/controls.d.ts +2 -2
- package/lib/commonjs/mol-plugin-ui/controls.js +7 -2
- package/lib/commonjs/mol-repr/shape/loci/angle.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/loci/dihedral.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/loci/label.d.ts +4 -1
- package/lib/commonjs/mol-repr/shape/loci/label.js +16 -9
- package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/loci/plane.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +7 -5
- package/lib/commonjs/mol-repr/structure/complex-visual.js +3 -2
- package/lib/commonjs/mol-repr/structure/params.d.ts +5 -4
- package/lib/commonjs/mol-repr/structure/registry.d.ts +15 -10
- package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +6 -3
- package/lib/commonjs/mol-repr/structure/representation/backbone.js +1 -1
- package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +6 -3
- package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +6 -3
- package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +6 -3
- package/lib/commonjs/mol-repr/structure/representation/cartoon.js +1 -1
- package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +6 -3
- package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +3 -3
- package/lib/commonjs/mol-repr/structure/units-visual.d.ts +7 -5
- package/lib/commonjs/mol-repr/structure/units-visual.js +3 -2
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +5 -2
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.js +8 -2
- package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-line.js +1 -1
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +5 -2
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.js +8 -2
- package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-line.js +1 -1
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +2 -1
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +2 -1
- package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +4 -4
- package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +4 -4
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-atomic-bond.d.ts +4 -2
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-atomic-bond.js +27 -26
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-atomic-element.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-atomic-ring-fill.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +4 -2
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.js +4 -4
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -2
- package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.js +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.js +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.js +1 -1
- package/lib/commonjs/mol-repr/structure/visual/util/bond.d.ts +9 -2
- package/lib/commonjs/mol-repr/structure/visual/util/bond.js +28 -2
- package/lib/commonjs/mol-repr/structure/visual/util/link.d.ts +2 -0
- package/lib/commonjs/mol-repr/structure/visual/util/link.js +16 -13
- package/lib/commonjs/mol-repr/structure/visual/util/polymer.d.ts +3 -1
- package/lib/commonjs/mol-repr/structure/visual/util/polymer.js +2 -2
- package/lib/commonjs/mol-repr/volume/isosurface.d.ts +5 -5
- package/lib/commonjs/mol-repr/volume/registry.d.ts +2 -2
- package/lib/commonjs/mol-repr/volume/segment.d.ts +5 -5
- package/lib/commonjs/mol-util/param-definition.d.ts +9 -2
- package/lib/commonjs/mol-util/param-definition.js +2 -2
- package/lib/extensions/anvil/behavior.d.ts +1 -1
- package/lib/extensions/anvil/representation.d.ts +4 -4
- package/lib/extensions/cellpack/representation.d.ts +1 -1
- package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +3 -3
- package/lib/extensions/dnatco/ntc-tube/representation.d.ts +3 -3
- package/lib/extensions/mvs/behavior.d.ts +1 -1
- package/lib/extensions/mvs/behavior.js +3 -1
- package/lib/extensions/mvs/components/annotation-color-theme.d.ts +1 -1
- package/lib/extensions/mvs/components/annotation-color-theme.js +3 -2
- package/lib/extensions/mvs/components/annotation-label/representation.d.ts +3 -1
- package/lib/extensions/mvs/components/annotation-label/representation.js +3 -2
- package/lib/extensions/mvs/components/annotation-prop.d.ts +1 -1
- package/lib/extensions/mvs/components/annotation-prop.js +2 -2
- package/lib/extensions/mvs/components/custom-label/representation.d.ts +1 -1
- package/lib/extensions/mvs/components/custom-label/representation.js +4 -3
- package/lib/extensions/mvs/components/custom-tooltips-prop.d.ts +1 -1
- package/lib/extensions/mvs/components/custom-tooltips-prop.js +2 -2
- package/lib/extensions/mvs/components/is-mvs-model-prop.d.ts +21 -0
- package/lib/extensions/mvs/components/is-mvs-model-prop.js +35 -0
- package/lib/extensions/mvs/components/multilayer-color-theme.d.ts +1 -1
- package/lib/extensions/mvs/components/multilayer-color-theme.js +4 -3
- package/lib/extensions/mvs/load.d.ts +1 -1
- package/lib/extensions/mvs/load.js +5 -2
- package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +1 -1
- package/lib/extensions/rcsb/assembly-symmetry/representation.d.ts +1 -1
- package/lib/extensions/rcsb/graphql/types.d.ts +160 -1
- package/lib/extensions/rcsb/validation-report/representation.d.ts +10 -5
- package/lib/mol-canvas3d/helper/handle-helper.d.ts +1 -1
- package/lib/mol-geo/geometry/color-data.d.ts +1 -0
- package/lib/mol-geo/geometry/color-data.js +15 -8
- package/lib/mol-geo/geometry/cylinders/cylinders-builder.d.ts +9 -3
- package/lib/mol-geo/geometry/cylinders/cylinders-builder.js +13 -6
- package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +11 -2
- package/lib/mol-geo/geometry/cylinders/cylinders.js +14 -9
- package/lib/mol-geo/geometry/mesh/mesh.d.ts +1 -1
- package/lib/mol-geo/geometry/spheres/spheres.d.ts +1 -1
- package/lib/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +1 -1
- package/lib/mol-geo/util/location-iterator.d.ts +4 -1
- package/lib/mol-geo/util/location-iterator.js +8 -1
- package/lib/mol-gl/renderable/cylinders.d.ts +2 -0
- package/lib/mol-gl/renderable/cylinders.js +1 -1
- package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.d.ts +1 -1
- package/lib/mol-gl/shader/chunks/assign-color-varying.glsl.js +1 -1
- package/lib/mol-gl/shader/cylinders.vert.d.ts +2 -2
- package/lib/mol-gl/shader/cylinders.vert.js +2 -2
- package/lib/mol-io/reader/cif/schema/bird.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema/bird.js +1 -1
- package/lib/mol-io/reader/cif/schema/ccd.d.ts +1 -1
- package/lib/mol-io/reader/cif/schema/ccd.js +1 -1
- package/lib/mol-io/reader/cif/schema/mmcif.d.ts +2 -2
- package/lib/mol-io/reader/cif/schema/mmcif.js +1 -1
- package/lib/mol-model/structure/model/types/saccharides.js +1 -1
- package/lib/mol-model-formats/shape/ply.d.ts +2 -2
- package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +2 -1
- package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +2 -1
- package/lib/mol-model-props/computed/representations/interactions.d.ts +6 -3
- package/lib/mol-model-props/integrative/cross-link-restraint/representation.d.ts +8 -4
- package/lib/mol-plugin/behavior/dynamic/representation.d.ts +1 -1
- package/lib/mol-plugin/behavior/dynamic/representation.js +12 -6
- package/lib/mol-plugin/version.js +2 -2
- package/lib/mol-plugin-state/transforms/representation.d.ts +9 -7
- package/lib/mol-plugin-state/transforms/representation.js +16 -10
- package/lib/mol-plugin-ui/controls/parameters.d.ts +2 -3
- package/lib/mol-plugin-ui/controls/parameters.js +48 -12
- package/lib/mol-plugin-ui/controls.d.ts +2 -2
- package/lib/mol-plugin-ui/controls.js +7 -2
- package/lib/mol-plugin-ui/skin/base/components/controls.scss +14 -3
- package/lib/mol-plugin-ui/skin/base/components/viewport.scss +9 -3
- package/lib/mol-repr/shape/loci/angle.d.ts +1 -1
- package/lib/mol-repr/shape/loci/dihedral.d.ts +1 -1
- package/lib/mol-repr/shape/loci/label.d.ts +4 -1
- package/lib/mol-repr/shape/loci/label.js +16 -9
- package/lib/mol-repr/shape/loci/orientation.d.ts +1 -1
- package/lib/mol-repr/shape/loci/plane.d.ts +1 -1
- package/lib/mol-repr/shape/model/unitcell.d.ts +1 -1
- package/lib/mol-repr/structure/complex-visual.d.ts +7 -5
- package/lib/mol-repr/structure/complex-visual.js +3 -2
- package/lib/mol-repr/structure/params.d.ts +5 -4
- package/lib/mol-repr/structure/registry.d.ts +15 -10
- package/lib/mol-repr/structure/representation/backbone.d.ts +6 -3
- package/lib/mol-repr/structure/representation/backbone.js +1 -1
- package/lib/mol-repr/structure/representation/ball-and-stick.d.ts +6 -3
- package/lib/mol-repr/structure/representation/carbohydrate.d.ts +6 -3
- package/lib/mol-repr/structure/representation/cartoon.d.ts +6 -3
- package/lib/mol-repr/structure/representation/cartoon.js +1 -1
- package/lib/mol-repr/structure/representation/ellipsoid.d.ts +6 -3
- package/lib/mol-repr/structure/representation/gaussian-surface.d.ts +3 -3
- package/lib/mol-repr/structure/representation/molecular-surface.d.ts +3 -3
- package/lib/mol-repr/structure/representation/orientation.d.ts +3 -3
- package/lib/mol-repr/structure/representation/putty.d.ts +3 -3
- package/lib/mol-repr/structure/representation/spacefill.d.ts +3 -3
- package/lib/mol-repr/structure/units-visual.d.ts +7 -5
- package/lib/mol-repr/structure/units-visual.js +3 -2
- package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +5 -2
- package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.js +8 -2
- package/lib/mol-repr/structure/visual/bond-inter-unit-line.js +1 -1
- package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +5 -2
- package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.js +8 -2
- package/lib/mol-repr/structure/visual/bond-intra-unit-line.js +1 -1
- package/lib/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +2 -1
- package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +2 -1
- package/lib/mol-repr/structure/visual/element-sphere.d.ts +4 -4
- package/lib/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +4 -4
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/nucleotide-atomic-bond.d.ts +4 -2
- package/lib/mol-repr/structure/visual/nucleotide-atomic-bond.js +27 -26
- package/lib/mol-repr/structure/visual/nucleotide-atomic-element.d.ts +2 -2
- package/lib/mol-repr/structure/visual/nucleotide-atomic-ring-fill.d.ts +1 -1
- package/lib/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +4 -2
- package/lib/mol-repr/structure/visual/polymer-backbone-cylinder.js +4 -4
- package/lib/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -2
- package/lib/mol-repr/structure/visual/polymer-backbone-sphere.js +2 -2
- package/lib/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -1
- package/lib/mol-repr/structure/visual/polymer-direction-wedge.js +1 -1
- package/lib/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -1
- package/lib/mol-repr/structure/visual/polymer-trace-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/polymer-trace-mesh.js +1 -1
- package/lib/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/polymer-tube-mesh.js +1 -1
- package/lib/mol-repr/structure/visual/util/bond.d.ts +9 -2
- package/lib/mol-repr/structure/visual/util/bond.js +28 -2
- package/lib/mol-repr/structure/visual/util/link.d.ts +2 -0
- package/lib/mol-repr/structure/visual/util/link.js +16 -13
- package/lib/mol-repr/structure/visual/util/polymer.d.ts +3 -1
- package/lib/mol-repr/structure/visual/util/polymer.js +2 -2
- package/lib/mol-repr/volume/isosurface.d.ts +5 -5
- package/lib/mol-repr/volume/registry.d.ts +2 -2
- package/lib/mol-repr/volume/segment.d.ts +5 -5
- package/lib/mol-util/param-definition.d.ts +9 -2
- package/lib/mol-util/param-definition.js +2 -2
- package/package.json +33 -21
|
@@ -15,6 +15,7 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
15
15
|
sizeFactor: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
16
16
|
visuals: import("../../mol-util/param-definition").ParamDefinition.MultiSelect<"polymer-trace" | "polymer-gap" | "nucleotide-ring" | "nucleotide-atomic-ring-fill" | "nucleotide-atomic-bond" | "nucleotide-atomic-element" | "nucleotide-block" | "direction-wedge">;
|
|
17
17
|
bumpFrequency: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
18
|
+
colorMode: import("../../mol-util/param-definition").ParamDefinition.Select<"default" | "interpolate">;
|
|
18
19
|
unitKinds: import("../../mol-util/param-definition").ParamDefinition.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
19
20
|
includeParent: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
20
21
|
doubleSided: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
@@ -22,7 +23,7 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
22
23
|
flatShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
23
24
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
24
25
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.Select<boolean | "inverted">;
|
|
25
|
-
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<
|
|
26
|
+
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<"on" | "off" | "opaque">;
|
|
26
27
|
bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
27
28
|
alpha: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
28
29
|
quality: import("../../mol-util/param-definition").ParamDefinition.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -62,6 +63,7 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
62
63
|
sizeAspectRatio: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
63
64
|
visuals: import("../../mol-util/param-definition").ParamDefinition.MultiSelect<"polymer-gap" | "polymer-backbone-cylinder" | "polymer-backbone-sphere">;
|
|
64
65
|
bumpFrequency: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
66
|
+
colorMode: import("../../mol-util/param-definition").ParamDefinition.Select<"default" | "interpolate">;
|
|
65
67
|
sizeFactor: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
66
68
|
radialSegments: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
67
69
|
unitKinds: import("../../mol-util/param-definition").ParamDefinition.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
@@ -71,7 +73,7 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
71
73
|
flatShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
72
74
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
73
75
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.Select<boolean | "inverted">;
|
|
74
|
-
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<
|
|
76
|
+
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<"on" | "off" | "opaque">;
|
|
75
77
|
bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
76
78
|
alpha: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
77
79
|
quality: import("../../mol-util/param-definition").ParamDefinition.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -124,10 +126,11 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
124
126
|
dashCap: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
125
127
|
stubCap: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
126
128
|
radialSegments: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
129
|
+
colorMode: import("../../mol-util/param-definition").ParamDefinition.Select<"default" | "interpolate">;
|
|
127
130
|
doubleSided: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
128
131
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
129
132
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.Select<boolean | "inverted">;
|
|
130
|
-
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<
|
|
133
|
+
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<"on" | "off" | "opaque">;
|
|
131
134
|
solidInterior: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
132
135
|
bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
133
136
|
alpha: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
@@ -172,6 +175,7 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
172
175
|
dashCap: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
173
176
|
stubCap: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
174
177
|
radialSegments: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
178
|
+
colorMode: import("../../mol-util/param-definition").ParamDefinition.Select<"default" | "interpolate">;
|
|
175
179
|
unitKinds: import("../../mol-util/param-definition").ParamDefinition.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
176
180
|
includeParent: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
177
181
|
doubleSided: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
@@ -179,7 +183,7 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
179
183
|
flatShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
180
184
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
181
185
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.Select<boolean | "inverted">;
|
|
182
|
-
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<
|
|
186
|
+
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<"on" | "off" | "opaque">;
|
|
183
187
|
bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
184
188
|
alpha: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
185
189
|
quality: import("../../mol-util/param-definition").ParamDefinition.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -229,10 +233,11 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
229
233
|
dashCap: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
230
234
|
stubCap: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
231
235
|
radialSegments: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
236
|
+
colorMode: import("../../mol-util/param-definition").ParamDefinition.Select<"default" | "interpolate">;
|
|
232
237
|
doubleSided: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
233
238
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
234
239
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.Select<boolean | "inverted">;
|
|
235
|
-
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<
|
|
240
|
+
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<"on" | "off" | "opaque">;
|
|
236
241
|
solidInterior: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
237
242
|
bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
238
243
|
alpha: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
@@ -298,7 +303,7 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
298
303
|
flatShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
299
304
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
300
305
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.Select<boolean | "inverted">;
|
|
301
|
-
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<
|
|
306
|
+
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<"on" | "off" | "opaque">;
|
|
302
307
|
bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
303
308
|
}, "gaussian-surface">;
|
|
304
309
|
'gaussian-volume': import("./representation").StructureRepresentationProvider<{
|
|
@@ -464,7 +469,7 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
464
469
|
flatShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
465
470
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
466
471
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.Select<boolean | "inverted">;
|
|
467
|
-
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<
|
|
472
|
+
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<"on" | "off" | "opaque">;
|
|
468
473
|
bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
469
474
|
}, "molecular-surface">;
|
|
470
475
|
orientation: import("./representation").StructureRepresentationProvider<{
|
|
@@ -479,7 +484,7 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
479
484
|
flatShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
480
485
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
481
486
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.Select<boolean | "inverted">;
|
|
482
|
-
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<
|
|
487
|
+
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<"on" | "off" | "opaque">;
|
|
483
488
|
bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
484
489
|
alpha: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
485
490
|
quality: import("../../mol-util/param-definition").ParamDefinition.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -541,7 +546,7 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
541
546
|
flatShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
542
547
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
543
548
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.Select<boolean | "inverted">;
|
|
544
|
-
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<
|
|
549
|
+
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<"on" | "off" | "opaque">;
|
|
545
550
|
bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
546
551
|
alpha: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
547
552
|
quality: import("../../mol-util/param-definition").ParamDefinition.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -579,7 +584,7 @@ export declare namespace StructureRepresentationRegistry {
|
|
|
579
584
|
doubleSided: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
580
585
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
581
586
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.Select<boolean | "inverted">;
|
|
582
|
-
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<
|
|
587
|
+
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<"on" | "off" | "opaque">;
|
|
583
588
|
solidInterior: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
584
589
|
clipPrimitive: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
585
590
|
approximate: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
@@ -12,6 +12,7 @@ export declare const BackboneParams: {
|
|
|
12
12
|
sizeAspectRatio: PD.Numeric;
|
|
13
13
|
visuals: PD.MultiSelect<"polymer-gap" | "polymer-backbone-cylinder" | "polymer-backbone-sphere">;
|
|
14
14
|
bumpFrequency: PD.Numeric;
|
|
15
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
15
16
|
sizeFactor: PD.Numeric;
|
|
16
17
|
radialSegments: PD.Numeric;
|
|
17
18
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
@@ -21,7 +22,7 @@ export declare const BackboneParams: {
|
|
|
21
22
|
flatShaded: PD.BooleanParam;
|
|
22
23
|
ignoreLight: PD.BooleanParam;
|
|
23
24
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
24
|
-
transparentBackfaces: PD.Select<
|
|
25
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
25
26
|
bumpAmplitude: PD.Numeric;
|
|
26
27
|
alpha: PD.Numeric;
|
|
27
28
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -53,6 +54,7 @@ export declare function getBackboneParams(ctx: ThemeRegistryContext, structure:
|
|
|
53
54
|
sizeAspectRatio: PD.Numeric;
|
|
54
55
|
visuals: PD.MultiSelect<"polymer-gap" | "polymer-backbone-cylinder" | "polymer-backbone-sphere">;
|
|
55
56
|
bumpFrequency: PD.Numeric;
|
|
57
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
56
58
|
sizeFactor: PD.Numeric;
|
|
57
59
|
radialSegments: PD.Numeric;
|
|
58
60
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
@@ -62,7 +64,7 @@ export declare function getBackboneParams(ctx: ThemeRegistryContext, structure:
|
|
|
62
64
|
flatShaded: PD.BooleanParam;
|
|
63
65
|
ignoreLight: PD.BooleanParam;
|
|
64
66
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
65
|
-
transparentBackfaces: PD.Select<
|
|
67
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
66
68
|
bumpAmplitude: PD.Numeric;
|
|
67
69
|
alpha: PD.Numeric;
|
|
68
70
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -95,6 +97,7 @@ export declare const BackboneRepresentationProvider: StructureRepresentationProv
|
|
|
95
97
|
sizeAspectRatio: PD.Numeric;
|
|
96
98
|
visuals: PD.MultiSelect<"polymer-gap" | "polymer-backbone-cylinder" | "polymer-backbone-sphere">;
|
|
97
99
|
bumpFrequency: PD.Numeric;
|
|
100
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
98
101
|
sizeFactor: PD.Numeric;
|
|
99
102
|
radialSegments: PD.Numeric;
|
|
100
103
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
@@ -104,7 +107,7 @@ export declare const BackboneRepresentationProvider: StructureRepresentationProv
|
|
|
104
107
|
flatShaded: PD.BooleanParam;
|
|
105
108
|
ignoreLight: PD.BooleanParam;
|
|
106
109
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
107
|
-
transparentBackfaces: PD.Select<
|
|
110
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
108
111
|
bumpAmplitude: PD.Numeric;
|
|
109
112
|
alpha: PD.Numeric;
|
|
110
113
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -20,7 +20,7 @@ var BackboneVisuals = {
|
|
|
20
20
|
'polymer-backbone-sphere': function (ctx, getParams) { return (0, units_representation_1.UnitsRepresentation)('Polymer backbone sphere', ctx, getParams, polymer_backbone_sphere_1.PolymerBackboneSphereVisual); },
|
|
21
21
|
'polymer-gap': function (ctx, getParams) { return (0, units_representation_1.UnitsRepresentation)('Polymer gap cylinder', ctx, getParams, polymer_gap_cylinder_1.PolymerGapVisual); },
|
|
22
22
|
};
|
|
23
|
-
exports.BackboneParams = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, polymer_backbone_sphere_1.PolymerBackboneSphereParams), polymer_backbone_cylinder_1.PolymerBackboneCylinderParams), polymer_gap_cylinder_1.PolymerGapParams), { sizeAspectRatio: param_definition_1.ParamDefinition.Numeric(1, { min: 0.1, max: 3, step: 0.1 }), visuals: param_definition_1.ParamDefinition.MultiSelect(['polymer-backbone-cylinder', 'polymer-backbone-sphere', 'polymer-gap'], param_definition_1.ParamDefinition.objectToOptions(BackboneVisuals)), bumpFrequency: param_definition_1.ParamDefinition.Numeric(0, { min: 0, max: 10, step: 0.1 }, base_1.BaseGeometry.ShadingCategory) });
|
|
23
|
+
exports.BackboneParams = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, polymer_backbone_sphere_1.PolymerBackboneSphereParams), polymer_backbone_cylinder_1.PolymerBackboneCylinderParams), polymer_gap_cylinder_1.PolymerGapParams), { sizeAspectRatio: param_definition_1.ParamDefinition.Numeric(1, { min: 0.1, max: 3, step: 0.1 }), visuals: param_definition_1.ParamDefinition.MultiSelect(['polymer-backbone-cylinder', 'polymer-backbone-sphere', 'polymer-gap'], param_definition_1.ParamDefinition.objectToOptions(BackboneVisuals)), bumpFrequency: param_definition_1.ParamDefinition.Numeric(0, { min: 0, max: 10, step: 0.1 }, base_1.BaseGeometry.ShadingCategory), colorMode: param_definition_1.ParamDefinition.Select('default', param_definition_1.ParamDefinition.arrayToOptions(['default', 'interpolate']), tslib_1.__assign(tslib_1.__assign({}, base_1.BaseGeometry.ShadingCategory), { isHidden: true })) });
|
|
24
24
|
function getBackboneParams(ctx, structure) {
|
|
25
25
|
var params = param_definition_1.ParamDefinition.clone(exports.BackboneParams);
|
|
26
26
|
var hasGaps = false;
|
|
@@ -34,10 +34,11 @@ export declare const BallAndStickParams: {
|
|
|
34
34
|
dashCap: PD.BooleanParam;
|
|
35
35
|
stubCap: PD.BooleanParam;
|
|
36
36
|
radialSegments: PD.Numeric;
|
|
37
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
37
38
|
doubleSided: PD.BooleanParam;
|
|
38
39
|
ignoreLight: PD.BooleanParam;
|
|
39
40
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
40
|
-
transparentBackfaces: PD.Select<
|
|
41
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
41
42
|
solidInterior: PD.BooleanParam;
|
|
42
43
|
bumpAmplitude: PD.Numeric;
|
|
43
44
|
alpha: PD.Numeric;
|
|
@@ -94,10 +95,11 @@ export declare function getBallAndStickParams(ctx: ThemeRegistryContext, structu
|
|
|
94
95
|
dashCap: PD.BooleanParam;
|
|
95
96
|
stubCap: PD.BooleanParam;
|
|
96
97
|
radialSegments: PD.Numeric;
|
|
98
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
97
99
|
doubleSided: PD.BooleanParam;
|
|
98
100
|
ignoreLight: PD.BooleanParam;
|
|
99
101
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
100
|
-
transparentBackfaces: PD.Select<
|
|
102
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
101
103
|
solidInterior: PD.BooleanParam;
|
|
102
104
|
bumpAmplitude: PD.Numeric;
|
|
103
105
|
alpha: PD.Numeric;
|
|
@@ -155,10 +157,11 @@ export declare const BallAndStickRepresentationProvider: StructureRepresentation
|
|
|
155
157
|
dashCap: PD.BooleanParam;
|
|
156
158
|
stubCap: PD.BooleanParam;
|
|
157
159
|
radialSegments: PD.Numeric;
|
|
160
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
158
161
|
doubleSided: PD.BooleanParam;
|
|
159
162
|
ignoreLight: PD.BooleanParam;
|
|
160
163
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
161
|
-
transparentBackfaces: PD.Select<
|
|
164
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
162
165
|
solidInterior: PD.BooleanParam;
|
|
163
166
|
bumpAmplitude: PD.Numeric;
|
|
164
167
|
alpha: PD.Numeric;
|
|
@@ -23,6 +23,7 @@ export declare const CarbohydrateParams: {
|
|
|
23
23
|
dashCap: PD.BooleanParam;
|
|
24
24
|
stubCap: PD.BooleanParam;
|
|
25
25
|
radialSegments: PD.Numeric;
|
|
26
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
26
27
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
27
28
|
includeParent: PD.BooleanParam;
|
|
28
29
|
doubleSided: PD.BooleanParam;
|
|
@@ -30,7 +31,7 @@ export declare const CarbohydrateParams: {
|
|
|
30
31
|
flatShaded: PD.BooleanParam;
|
|
31
32
|
ignoreLight: PD.BooleanParam;
|
|
32
33
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
33
|
-
transparentBackfaces: PD.Select<
|
|
34
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
34
35
|
bumpAmplitude: PD.Numeric;
|
|
35
36
|
alpha: PD.Numeric;
|
|
36
37
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -70,6 +71,7 @@ export declare function getCarbohydrateParams(ctx: ThemeRegistryContext, structu
|
|
|
70
71
|
dashCap: PD.BooleanParam;
|
|
71
72
|
stubCap: PD.BooleanParam;
|
|
72
73
|
radialSegments: PD.Numeric;
|
|
74
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
73
75
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
74
76
|
includeParent: PD.BooleanParam;
|
|
75
77
|
doubleSided: PD.BooleanParam;
|
|
@@ -77,7 +79,7 @@ export declare function getCarbohydrateParams(ctx: ThemeRegistryContext, structu
|
|
|
77
79
|
flatShaded: PD.BooleanParam;
|
|
78
80
|
ignoreLight: PD.BooleanParam;
|
|
79
81
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
80
|
-
transparentBackfaces: PD.Select<
|
|
82
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
81
83
|
bumpAmplitude: PD.Numeric;
|
|
82
84
|
alpha: PD.Numeric;
|
|
83
85
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -118,6 +120,7 @@ export declare const CarbohydrateRepresentationProvider: StructureRepresentation
|
|
|
118
120
|
dashCap: PD.BooleanParam;
|
|
119
121
|
stubCap: PD.BooleanParam;
|
|
120
122
|
radialSegments: PD.Numeric;
|
|
123
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
121
124
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
122
125
|
includeParent: PD.BooleanParam;
|
|
123
126
|
doubleSided: PD.BooleanParam;
|
|
@@ -125,7 +128,7 @@ export declare const CarbohydrateRepresentationProvider: StructureRepresentation
|
|
|
125
128
|
flatShaded: PD.BooleanParam;
|
|
126
129
|
ignoreLight: PD.BooleanParam;
|
|
127
130
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
128
|
-
transparentBackfaces: PD.Select<
|
|
131
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
129
132
|
bumpAmplitude: PD.Numeric;
|
|
130
133
|
alpha: PD.Numeric;
|
|
131
134
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -13,6 +13,7 @@ export declare const CartoonParams: {
|
|
|
13
13
|
sizeFactor: PD.Numeric;
|
|
14
14
|
visuals: PD.MultiSelect<"polymer-trace" | "polymer-gap" | "nucleotide-ring" | "nucleotide-atomic-ring-fill" | "nucleotide-atomic-bond" | "nucleotide-atomic-element" | "nucleotide-block" | "direction-wedge">;
|
|
15
15
|
bumpFrequency: PD.Numeric;
|
|
16
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
16
17
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
17
18
|
includeParent: PD.BooleanParam;
|
|
18
19
|
doubleSided: PD.BooleanParam;
|
|
@@ -20,7 +21,7 @@ export declare const CartoonParams: {
|
|
|
20
21
|
flatShaded: PD.BooleanParam;
|
|
21
22
|
ignoreLight: PD.BooleanParam;
|
|
22
23
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
23
|
-
transparentBackfaces: PD.Select<
|
|
24
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
24
25
|
bumpAmplitude: PD.Numeric;
|
|
25
26
|
alpha: PD.Numeric;
|
|
26
27
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -61,6 +62,7 @@ export declare function getCartoonParams(ctx: ThemeRegistryContext, structure: S
|
|
|
61
62
|
sizeFactor: PD.Numeric;
|
|
62
63
|
visuals: PD.MultiSelect<"polymer-trace" | "polymer-gap" | "nucleotide-ring" | "nucleotide-atomic-ring-fill" | "nucleotide-atomic-bond" | "nucleotide-atomic-element" | "nucleotide-block" | "direction-wedge">;
|
|
63
64
|
bumpFrequency: PD.Numeric;
|
|
65
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
64
66
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
65
67
|
includeParent: PD.BooleanParam;
|
|
66
68
|
doubleSided: PD.BooleanParam;
|
|
@@ -68,7 +70,7 @@ export declare function getCartoonParams(ctx: ThemeRegistryContext, structure: S
|
|
|
68
70
|
flatShaded: PD.BooleanParam;
|
|
69
71
|
ignoreLight: PD.BooleanParam;
|
|
70
72
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
71
|
-
transparentBackfaces: PD.Select<
|
|
73
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
72
74
|
bumpAmplitude: PD.Numeric;
|
|
73
75
|
alpha: PD.Numeric;
|
|
74
76
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -110,6 +112,7 @@ export declare const CartoonRepresentationProvider: StructureRepresentationProvi
|
|
|
110
112
|
sizeFactor: PD.Numeric;
|
|
111
113
|
visuals: PD.MultiSelect<"polymer-trace" | "polymer-gap" | "nucleotide-ring" | "nucleotide-atomic-ring-fill" | "nucleotide-atomic-bond" | "nucleotide-atomic-element" | "nucleotide-block" | "direction-wedge">;
|
|
112
114
|
bumpFrequency: PD.Numeric;
|
|
115
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
113
116
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
114
117
|
includeParent: PD.BooleanParam;
|
|
115
118
|
doubleSided: PD.BooleanParam;
|
|
@@ -117,7 +120,7 @@ export declare const CartoonRepresentationProvider: StructureRepresentationProvi
|
|
|
117
120
|
flatShaded: PD.BooleanParam;
|
|
118
121
|
ignoreLight: PD.BooleanParam;
|
|
119
122
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
120
|
-
transparentBackfaces: PD.Select<
|
|
123
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
121
124
|
bumpAmplitude: PD.Numeric;
|
|
122
125
|
alpha: PD.Numeric;
|
|
123
126
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -34,7 +34,7 @@ var CartoonVisuals = {
|
|
|
34
34
|
'nucleotide-atomic-element': function (ctx, getParams) { return (0, units_representation_1.UnitsRepresentation)('Nucleotide atomic element', ctx, getParams, nucleotide_atomic_element_1.NucleotideAtomicElementVisual); },
|
|
35
35
|
'direction-wedge': function (ctx, getParams) { return (0, units_representation_1.UnitsRepresentation)('Polymer direction wedge', ctx, getParams, polymer_direction_wedge_1.PolymerDirectionVisual); },
|
|
36
36
|
};
|
|
37
|
-
exports.CartoonParams = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, polymer_trace_mesh_1.PolymerTraceParams), polymer_gap_cylinder_1.PolymerGapParams), nucleotide_block_mesh_1.NucleotideBlockParams), nucleotide_ring_mesh_1.NucleotideRingParams), nucleotide_atomic_bond_1.NucleotideAtomicBondParams), nucleotide_atomic_element_1.NucleotideAtomicElementParams), nucleotide_atomic_ring_fill_1.NucleotideAtomicRingFillParams), polymer_direction_wedge_1.PolymerDirectionParams), { sizeFactor: param_definition_1.ParamDefinition.Numeric(0.2, { min: 0, max: 10, step: 0.01 }), visuals: param_definition_1.ParamDefinition.MultiSelect(['polymer-trace', 'polymer-gap', 'nucleotide-ring', 'nucleotide-atomic-ring-fill', 'nucleotide-atomic-bond', 'nucleotide-atomic-element'], param_definition_1.ParamDefinition.objectToOptions(CartoonVisuals)), bumpFrequency: param_definition_1.ParamDefinition.Numeric(2, { min: 0, max: 10, step: 0.1 }, base_1.BaseGeometry.ShadingCategory) });
|
|
37
|
+
exports.CartoonParams = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, polymer_trace_mesh_1.PolymerTraceParams), polymer_gap_cylinder_1.PolymerGapParams), nucleotide_block_mesh_1.NucleotideBlockParams), nucleotide_ring_mesh_1.NucleotideRingParams), nucleotide_atomic_bond_1.NucleotideAtomicBondParams), nucleotide_atomic_element_1.NucleotideAtomicElementParams), nucleotide_atomic_ring_fill_1.NucleotideAtomicRingFillParams), polymer_direction_wedge_1.PolymerDirectionParams), { sizeFactor: param_definition_1.ParamDefinition.Numeric(0.2, { min: 0, max: 10, step: 0.01 }), visuals: param_definition_1.ParamDefinition.MultiSelect(['polymer-trace', 'polymer-gap', 'nucleotide-ring', 'nucleotide-atomic-ring-fill', 'nucleotide-atomic-bond', 'nucleotide-atomic-element'], param_definition_1.ParamDefinition.objectToOptions(CartoonVisuals)), bumpFrequency: param_definition_1.ParamDefinition.Numeric(2, { min: 0, max: 10, step: 0.1 }, base_1.BaseGeometry.ShadingCategory), colorMode: param_definition_1.ParamDefinition.Select('default', param_definition_1.ParamDefinition.arrayToOptions(['default', 'interpolate']), tslib_1.__assign(tslib_1.__assign({}, base_1.BaseGeometry.ShadingCategory), { isHidden: true })) });
|
|
38
38
|
function getCartoonParams(ctx, structure) {
|
|
39
39
|
var params = param_definition_1.ParamDefinition.clone(exports.CartoonParams);
|
|
40
40
|
var hasNucleotides = false;
|
|
@@ -34,10 +34,11 @@ export declare const EllipsoidParams: {
|
|
|
34
34
|
dashCap: PD.BooleanParam;
|
|
35
35
|
stubCap: PD.BooleanParam;
|
|
36
36
|
radialSegments: PD.Numeric;
|
|
37
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
37
38
|
doubleSided: PD.BooleanParam;
|
|
38
39
|
ignoreLight: PD.BooleanParam;
|
|
39
40
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
40
|
-
transparentBackfaces: PD.Select<
|
|
41
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
41
42
|
solidInterior: PD.BooleanParam;
|
|
42
43
|
bumpAmplitude: PD.Numeric;
|
|
43
44
|
alpha: PD.Numeric;
|
|
@@ -89,10 +90,11 @@ export declare function getEllipsoidParams(ctx: ThemeRegistryContext, structure:
|
|
|
89
90
|
dashCap: PD.BooleanParam;
|
|
90
91
|
stubCap: PD.BooleanParam;
|
|
91
92
|
radialSegments: PD.Numeric;
|
|
93
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
92
94
|
doubleSided: PD.BooleanParam;
|
|
93
95
|
ignoreLight: PD.BooleanParam;
|
|
94
96
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
95
|
-
transparentBackfaces: PD.Select<
|
|
97
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
96
98
|
solidInterior: PD.BooleanParam;
|
|
97
99
|
bumpAmplitude: PD.Numeric;
|
|
98
100
|
alpha: PD.Numeric;
|
|
@@ -145,10 +147,11 @@ export declare const EllipsoidRepresentationProvider: StructureRepresentationPro
|
|
|
145
147
|
dashCap: PD.BooleanParam;
|
|
146
148
|
stubCap: PD.BooleanParam;
|
|
147
149
|
radialSegments: PD.Numeric;
|
|
150
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
148
151
|
doubleSided: PD.BooleanParam;
|
|
149
152
|
ignoreLight: PD.BooleanParam;
|
|
150
153
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
151
|
-
transparentBackfaces: PD.Select<
|
|
154
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
152
155
|
solidInterior: PD.BooleanParam;
|
|
153
156
|
bumpAmplitude: PD.Numeric;
|
|
154
157
|
alpha: PD.Numeric;
|
|
@@ -49,7 +49,7 @@ export declare const GaussianSurfaceParams: {
|
|
|
49
49
|
flatShaded: PD.BooleanParam;
|
|
50
50
|
ignoreLight: PD.BooleanParam;
|
|
51
51
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
52
|
-
transparentBackfaces: PD.Select<
|
|
52
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
53
53
|
bumpAmplitude: PD.Numeric;
|
|
54
54
|
};
|
|
55
55
|
export type GaussianSurfaceParams = typeof GaussianSurfaceParams;
|
|
@@ -94,7 +94,7 @@ export declare function getGaussianSurfaceParams(ctx: ThemeRegistryContext, stru
|
|
|
94
94
|
flatShaded: PD.BooleanParam;
|
|
95
95
|
ignoreLight: PD.BooleanParam;
|
|
96
96
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
97
|
-
transparentBackfaces: PD.Select<
|
|
97
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
98
98
|
bumpAmplitude: PD.Numeric;
|
|
99
99
|
};
|
|
100
100
|
export type GaussianSurfaceRepresentation = StructureRepresentation<GaussianSurfaceParams>;
|
|
@@ -140,6 +140,6 @@ export declare const GaussianSurfaceRepresentationProvider: StructureRepresentat
|
|
|
140
140
|
flatShaded: PD.BooleanParam;
|
|
141
141
|
ignoreLight: PD.BooleanParam;
|
|
142
142
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
143
|
-
transparentBackfaces: PD.Select<
|
|
143
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
144
144
|
bumpAmplitude: PD.Numeric;
|
|
145
145
|
}, "gaussian-surface">;
|
|
@@ -48,7 +48,7 @@ export declare const MolecularSurfaceParams: {
|
|
|
48
48
|
flatShaded: PD.BooleanParam;
|
|
49
49
|
ignoreLight: PD.BooleanParam;
|
|
50
50
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
51
|
-
transparentBackfaces: PD.Select<
|
|
51
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
52
52
|
bumpAmplitude: PD.Numeric;
|
|
53
53
|
};
|
|
54
54
|
export type MolecularSurfaceParams = typeof MolecularSurfaceParams;
|
|
@@ -92,7 +92,7 @@ export declare function getMolecularSurfaceParams(ctx: ThemeRegistryContext, str
|
|
|
92
92
|
flatShaded: PD.BooleanParam;
|
|
93
93
|
ignoreLight: PD.BooleanParam;
|
|
94
94
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
95
|
-
transparentBackfaces: PD.Select<
|
|
95
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
96
96
|
bumpAmplitude: PD.Numeric;
|
|
97
97
|
};
|
|
98
98
|
export type MolecularSurfaceRepresentation = StructureRepresentation<MolecularSurfaceParams>;
|
|
@@ -137,6 +137,6 @@ export declare const MolecularSurfaceRepresentationProvider: StructureRepresenta
|
|
|
137
137
|
flatShaded: PD.BooleanParam;
|
|
138
138
|
ignoreLight: PD.BooleanParam;
|
|
139
139
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
140
|
-
transparentBackfaces: PD.Select<
|
|
140
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
141
141
|
bumpAmplitude: PD.Numeric;
|
|
142
142
|
}, "molecular-surface">;
|
|
@@ -20,7 +20,7 @@ export declare const OrientationParams: {
|
|
|
20
20
|
flatShaded: PD.BooleanParam;
|
|
21
21
|
ignoreLight: PD.BooleanParam;
|
|
22
22
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
23
|
-
transparentBackfaces: PD.Select<
|
|
23
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
24
24
|
bumpAmplitude: PD.Numeric;
|
|
25
25
|
alpha: PD.Numeric;
|
|
26
26
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -54,7 +54,7 @@ export declare function getOrientationParams(ctx: ThemeRegistryContext, structur
|
|
|
54
54
|
flatShaded: PD.BooleanParam;
|
|
55
55
|
ignoreLight: PD.BooleanParam;
|
|
56
56
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
57
|
-
transparentBackfaces: PD.Select<
|
|
57
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
58
58
|
bumpAmplitude: PD.Numeric;
|
|
59
59
|
alpha: PD.Numeric;
|
|
60
60
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -89,7 +89,7 @@ export declare const OrientationRepresentationProvider: StructureRepresentationP
|
|
|
89
89
|
flatShaded: PD.BooleanParam;
|
|
90
90
|
ignoreLight: PD.BooleanParam;
|
|
91
91
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
92
|
-
transparentBackfaces: PD.Select<
|
|
92
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
93
93
|
bumpAmplitude: PD.Numeric;
|
|
94
94
|
alpha: PD.Numeric;
|
|
95
95
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -20,7 +20,7 @@ export declare const PuttyParams: {
|
|
|
20
20
|
flatShaded: PD.BooleanParam;
|
|
21
21
|
ignoreLight: PD.BooleanParam;
|
|
22
22
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
23
|
-
transparentBackfaces: PD.Select<
|
|
23
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
24
24
|
bumpAmplitude: PD.Numeric;
|
|
25
25
|
alpha: PD.Numeric;
|
|
26
26
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -56,7 +56,7 @@ export declare function getPuttyParams(ctx: ThemeRegistryContext, structure: Str
|
|
|
56
56
|
flatShaded: PD.BooleanParam;
|
|
57
57
|
ignoreLight: PD.BooleanParam;
|
|
58
58
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
59
|
-
transparentBackfaces: PD.Select<
|
|
59
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
60
60
|
bumpAmplitude: PD.Numeric;
|
|
61
61
|
alpha: PD.Numeric;
|
|
62
62
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -93,7 +93,7 @@ export declare const PuttyRepresentationProvider: StructureRepresentationProvide
|
|
|
93
93
|
flatShaded: PD.BooleanParam;
|
|
94
94
|
ignoreLight: PD.BooleanParam;
|
|
95
95
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
96
|
-
transparentBackfaces: PD.Select<
|
|
96
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
97
97
|
bumpAmplitude: PD.Numeric;
|
|
98
98
|
alpha: PD.Numeric;
|
|
99
99
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
@@ -23,7 +23,7 @@ export declare const SpacefillParams: {
|
|
|
23
23
|
doubleSided: PD.BooleanParam;
|
|
24
24
|
ignoreLight: PD.BooleanParam;
|
|
25
25
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
26
|
-
transparentBackfaces: PD.Select<
|
|
26
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
27
27
|
solidInterior: PD.BooleanParam;
|
|
28
28
|
clipPrimitive: PD.BooleanParam;
|
|
29
29
|
approximate: PD.BooleanParam;
|
|
@@ -66,7 +66,7 @@ export declare function getSpacefillParams(ctx: ThemeRegistryContext, structure:
|
|
|
66
66
|
doubleSided: PD.BooleanParam;
|
|
67
67
|
ignoreLight: PD.BooleanParam;
|
|
68
68
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
69
|
-
transparentBackfaces: PD.Select<
|
|
69
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
70
70
|
solidInterior: PD.BooleanParam;
|
|
71
71
|
clipPrimitive: PD.BooleanParam;
|
|
72
72
|
approximate: PD.BooleanParam;
|
|
@@ -110,7 +110,7 @@ export declare const SpacefillRepresentationProvider: StructureRepresentationPro
|
|
|
110
110
|
doubleSided: PD.BooleanParam;
|
|
111
111
|
ignoreLight: PD.BooleanParam;
|
|
112
112
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
113
|
-
transparentBackfaces: PD.Select<
|
|
113
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
114
114
|
solidInterior: PD.BooleanParam;
|
|
115
115
|
clipPrimitive: PD.BooleanParam;
|
|
116
116
|
approximate: PD.BooleanParam;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2018-2023 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
|
+
* @author Gianluca Tomasello <giagitom@gmail.com>
|
|
5
6
|
*/
|
|
6
7
|
import { ParamDefinition as PD } from '../../mol-util/param-definition';
|
|
7
8
|
import { Structure, Unit } from '../../mol-model/structure';
|
|
@@ -31,7 +32,7 @@ export interface UnitsVisual<P extends RepresentationProps = {}> extends Visual<
|
|
|
31
32
|
interface UnitsVisualBuilder<P extends StructureParams, G extends Geometry> {
|
|
32
33
|
defaultProps: PD.Values<P>;
|
|
33
34
|
createGeometry(ctx: VisualContext, unit: Unit, structure: Structure, theme: Theme, props: PD.Values<P>, geometry?: G): Promise<G> | G;
|
|
34
|
-
createLocationIterator(structureGroup: StructureGroup): LocationIterator;
|
|
35
|
+
createLocationIterator(structureGroup: StructureGroup, props: PD.Values<P>): LocationIterator;
|
|
35
36
|
getLoci(pickingId: PickingId, structureGroup: StructureGroup, id: number): Loci;
|
|
36
37
|
eachLocation(loci: Loci, structureGroup: StructureGroup, apply: (interval: Interval) => boolean, isMarking: boolean): boolean;
|
|
37
38
|
setUpdateState(state: VisualUpdateState, newProps: PD.Values<P>, currentProps: PD.Values<P>, newTheme: Theme, currentTheme: Theme, newStructureGroup: StructureGroup, currentStructureGroup: StructureGroup): void;
|
|
@@ -51,7 +52,7 @@ export declare const UnitsMeshParams: {
|
|
|
51
52
|
flatShaded: PD.BooleanParam;
|
|
52
53
|
ignoreLight: PD.BooleanParam;
|
|
53
54
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
54
|
-
transparentBackfaces: PD.Select<
|
|
55
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
55
56
|
bumpFrequency: PD.Numeric;
|
|
56
57
|
bumpAmplitude: PD.Numeric;
|
|
57
58
|
alpha: PD.Numeric;
|
|
@@ -84,7 +85,7 @@ export declare const UnitsSpheresParams: {
|
|
|
84
85
|
doubleSided: PD.BooleanParam;
|
|
85
86
|
ignoreLight: PD.BooleanParam;
|
|
86
87
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
87
|
-
transparentBackfaces: PD.Select<
|
|
88
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
88
89
|
solidInterior: PD.BooleanParam;
|
|
89
90
|
clipPrimitive: PD.BooleanParam;
|
|
90
91
|
approximate: PD.BooleanParam;
|
|
@@ -122,10 +123,11 @@ export declare const UnitsCylindersParams: {
|
|
|
122
123
|
doubleSided: PD.BooleanParam;
|
|
123
124
|
ignoreLight: PD.BooleanParam;
|
|
124
125
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
125
|
-
transparentBackfaces: PD.Select<
|
|
126
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
126
127
|
solidInterior: PD.BooleanParam;
|
|
127
128
|
bumpFrequency: PD.Numeric;
|
|
128
129
|
bumpAmplitude: PD.Numeric;
|
|
130
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
129
131
|
alpha: PD.Numeric;
|
|
130
132
|
quality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
131
133
|
material: PD.Group<PD.Normalize<{
|
|
@@ -290,7 +292,7 @@ export declare const UnitsTextureMeshParams: {
|
|
|
290
292
|
flatShaded: PD.BooleanParam;
|
|
291
293
|
ignoreLight: PD.BooleanParam;
|
|
292
294
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
293
|
-
transparentBackfaces: PD.Select<
|
|
295
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
294
296
|
bumpFrequency: PD.Numeric;
|
|
295
297
|
bumpAmplitude: PD.Numeric;
|
|
296
298
|
alpha: PD.Numeric;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Copyright (c) 2018-2023 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
|
+
* @author Gianluca Tomasello <giagitom@gmail.com>
|
|
6
7
|
*/
|
|
7
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
9
|
exports.UnitsTextureMeshVisual = exports.UnitsTextureMeshParams = exports.UnitsDirectVolumeVisual = exports.UnitsDirectVolumeParams = exports.UnitsTextVisual = exports.UnitsTextParams = exports.UnitsLinesVisual = exports.UnitsLinesParams = exports.UnitsPointsVisual = exports.UnitsPointsParams = exports.UnitsCylindersVisual = exports.UnitsCylindersParams = exports.UnitsSpheresVisual = exports.UnitsSpheresParams = exports.UnitsMeshVisual = exports.UnitsMeshParams = exports.UnitsVisual = void 0;
|
|
@@ -134,7 +135,7 @@ function UnitsVisual(builder, materialId) {
|
|
|
134
135
|
}
|
|
135
136
|
function update(newGeometry) {
|
|
136
137
|
if (updateState.createNew) {
|
|
137
|
-
locationIt = createLocationIterator(newStructureGroup);
|
|
138
|
+
locationIt = createLocationIterator(newStructureGroup, newProps);
|
|
138
139
|
if (newGeometry) {
|
|
139
140
|
renderObject = createUnitsRenderObject(newStructureGroup, newGeometry, locationIt, newTheme, newProps, materialId);
|
|
140
141
|
positionIt = createPositionIterator(newGeometry, renderObject.values);
|
|
@@ -149,7 +150,7 @@ function UnitsVisual(builder, materialId) {
|
|
|
149
150
|
}
|
|
150
151
|
if (updateState.updateTransform) {
|
|
151
152
|
// console.log('update transform');
|
|
152
|
-
locationIt = createLocationIterator(newStructureGroup);
|
|
153
|
+
locationIt = createLocationIterator(newStructureGroup, newProps);
|
|
153
154
|
var instanceCount = locationIt.instanceCount, groupCount = locationIt.groupCount;
|
|
154
155
|
if (newProps.instanceGranularity) {
|
|
155
156
|
(0, marker_data_1.createMarkers)(instanceCount, 'instance', renderObject.values);
|