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
|
@@ -45,7 +45,7 @@ export declare const PolymerTraceParams: {
|
|
|
45
45
|
flatShaded: PD.BooleanParam;
|
|
46
46
|
ignoreLight: PD.BooleanParam;
|
|
47
47
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
48
|
-
transparentBackfaces: PD.Select<
|
|
48
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
49
49
|
bumpFrequency: PD.Numeric;
|
|
50
50
|
bumpAmplitude: PD.Numeric;
|
|
51
51
|
alpha: PD.Numeric;
|
|
@@ -169,7 +169,7 @@ function PolymerTraceVisual(materialId) {
|
|
|
169
169
|
return (0, units_visual_1.UnitsMeshVisual)({
|
|
170
170
|
defaultProps: param_definition_1.ParamDefinition.getDefaultValues(exports.PolymerTraceParams),
|
|
171
171
|
createGeometry: createPolymerTraceMesh,
|
|
172
|
-
createLocationIterator: function (
|
|
172
|
+
createLocationIterator: function (structureGroup) { return polymer_1.PolymerLocationIterator.fromGroup(structureGroup, { asSecondary: true }); },
|
|
173
173
|
getLoci: polymer_1.getPolymerElementLoci,
|
|
174
174
|
eachLocation: polymer_1.eachPolymerElement,
|
|
175
175
|
setUpdateState: function (state, newProps, currentProps, newTheme, currentTheme, newStructureGroup, currentStructureGroup) {
|
|
@@ -30,7 +30,7 @@ export declare const PolymerTubeParams: {
|
|
|
30
30
|
flatShaded: PD.BooleanParam;
|
|
31
31
|
ignoreLight: PD.BooleanParam;
|
|
32
32
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
33
|
-
transparentBackfaces: PD.Select<
|
|
33
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
34
34
|
bumpFrequency: PD.Numeric;
|
|
35
35
|
bumpAmplitude: PD.Numeric;
|
|
36
36
|
alpha: PD.Numeric;
|
|
@@ -96,7 +96,7 @@ function PolymerTubeVisual(materialId) {
|
|
|
96
96
|
return (0, units_visual_1.UnitsMeshVisual)({
|
|
97
97
|
defaultProps: param_definition_1.ParamDefinition.getDefaultValues(exports.PolymerTubeParams),
|
|
98
98
|
createGeometry: createPolymerTubeMesh,
|
|
99
|
-
createLocationIterator: function (
|
|
99
|
+
createLocationIterator: function (structureGroup) { return polymer_1.PolymerLocationIterator.fromGroup(structureGroup, { asSecondary: true }); },
|
|
100
100
|
getLoci: polymer_1.getPolymerElementLoci,
|
|
101
101
|
eachLocation: polymer_1.eachPolymerElement,
|
|
102
102
|
setUpdateState: function (state, newProps, currentProps) {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
5
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
6
|
+
* @author Gianluca Tomasello <giagitom@gmail.com>
|
|
6
7
|
*/
|
|
7
8
|
import { BondType } from '../../../../mol-model/structure/model/types';
|
|
8
9
|
import { Unit, Structure, Bond } from '../../../../mol-model/structure';
|
|
@@ -48,6 +49,7 @@ export declare const BondCylinderParams: {
|
|
|
48
49
|
dashCap: PD.BooleanParam;
|
|
49
50
|
stubCap: PD.BooleanParam;
|
|
50
51
|
radialSegments: PD.Numeric;
|
|
52
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
51
53
|
};
|
|
52
54
|
export declare const DefaultBondCylinderProps: PD.Values<{
|
|
53
55
|
adjustCylinderLength: PD.BooleanParam;
|
|
@@ -68,6 +70,7 @@ export declare const DefaultBondCylinderProps: PD.Values<{
|
|
|
68
70
|
dashCap: PD.BooleanParam;
|
|
69
71
|
stubCap: PD.BooleanParam;
|
|
70
72
|
radialSegments: PD.Numeric;
|
|
73
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
71
74
|
}>;
|
|
72
75
|
export type BondCylinderProps = typeof DefaultBondCylinderProps;
|
|
73
76
|
export declare const BondLineParams: {
|
|
@@ -99,8 +102,12 @@ export declare function ignoreBondType(include: BondType.Flag, exclude: BondType
|
|
|
99
102
|
export declare function makeIntraBondIgnoreTest(structure: Structure, unit: Unit.Atomic, props: BondProps): undefined | ((edgeIndex: number) => boolean);
|
|
100
103
|
export declare function makeInterBondIgnoreTest(structure: Structure, props: BondProps): undefined | ((edgeIndex: number) => boolean);
|
|
101
104
|
export declare namespace BondIterator {
|
|
102
|
-
function fromGroup(structureGroup: StructureGroup
|
|
103
|
-
|
|
105
|
+
function fromGroup(structureGroup: StructureGroup, props?: {
|
|
106
|
+
includeLocation2?: boolean;
|
|
107
|
+
}): LocationIterator;
|
|
108
|
+
function fromStructure(structure: Structure, props?: {
|
|
109
|
+
includeLocation2?: boolean;
|
|
110
|
+
}): LocationIterator;
|
|
104
111
|
}
|
|
105
112
|
export declare function getIntraBondLoci(pickingId: PickingId, structureGroup: StructureGroup, id: number): Bond.Loci | {
|
|
106
113
|
kind: "empty-loci";
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
7
|
+
* @author Gianluca Tomasello <giagitom@gmail.com>
|
|
7
8
|
*/
|
|
8
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
10
|
exports.eachInterBond = exports.getInterBondLoci = exports.eachIntraBond = exports.getIntraBondLoci = exports.BondIterator = exports.makeInterBondIgnoreTest = exports.makeIntraBondIgnoreTest = exports.ignoreBondType = exports.DefaultBondLineProps = exports.BondLineParams = exports.DefaultBondCylinderProps = exports.BondCylinderParams = exports.DefaultBondProps = exports.BondParams = void 0;
|
|
@@ -104,7 +105,7 @@ function makeInterBondIgnoreTest(structure, props) {
|
|
|
104
105
|
exports.makeInterBondIgnoreTest = makeInterBondIgnoreTest;
|
|
105
106
|
var BondIterator;
|
|
106
107
|
(function (BondIterator) {
|
|
107
|
-
function fromGroup(structureGroup) {
|
|
108
|
+
function fromGroup(structureGroup, props) {
|
|
108
109
|
var group = structureGroup.group, structure = structureGroup.structure;
|
|
109
110
|
var unit = group.units[0];
|
|
110
111
|
var groupCount = structure_1.Unit.isAtomic(unit) ? unit.bonds.edgeCount * 2 : 0;
|
|
@@ -118,10 +119,22 @@ var BondIterator;
|
|
|
118
119
|
location.bIndex = unit.bonds.b[groupIndex];
|
|
119
120
|
return location;
|
|
120
121
|
};
|
|
122
|
+
if (props === null || props === void 0 ? void 0 : props.includeLocation2) {
|
|
123
|
+
var location2_1 = structure_1.Bond.Location(structure, undefined, undefined, structure, undefined, undefined);
|
|
124
|
+
var getLocation2 = function (groupIndex, instanceIndex) {
|
|
125
|
+
var unit = group.units[instanceIndex];
|
|
126
|
+
location2_1.aUnit = unit;
|
|
127
|
+
location2_1.bUnit = unit;
|
|
128
|
+
location2_1.aIndex = unit.bonds.b[groupIndex];
|
|
129
|
+
location2_1.bIndex = unit.bonds.a[groupIndex];
|
|
130
|
+
return location2_1;
|
|
131
|
+
};
|
|
132
|
+
return (0, location_iterator_1.LocationIterator)(groupCount, instanceCount, 1, getLocation, false, function () { return false; }, getLocation2);
|
|
133
|
+
}
|
|
121
134
|
return (0, location_iterator_1.LocationIterator)(groupCount, instanceCount, 1, getLocation);
|
|
122
135
|
}
|
|
123
136
|
BondIterator.fromGroup = fromGroup;
|
|
124
|
-
function fromStructure(structure) {
|
|
137
|
+
function fromStructure(structure, props) {
|
|
125
138
|
var groupCount = structure.interUnitBonds.edgeCount;
|
|
126
139
|
var instanceCount = 1;
|
|
127
140
|
var location = structure_1.Bond.Location(structure, undefined, undefined, structure, undefined, undefined);
|
|
@@ -133,6 +146,19 @@ var BondIterator;
|
|
|
133
146
|
location.bIndex = bond.indexB;
|
|
134
147
|
return location;
|
|
135
148
|
};
|
|
149
|
+
if (props === null || props === void 0 ? void 0 : props.includeLocation2) {
|
|
150
|
+
var location2_2 = structure_1.Bond.Location(structure, undefined, undefined, structure, undefined, undefined);
|
|
151
|
+
var getLocation2 = function (groupIndex) {
|
|
152
|
+
var bond = structure.interUnitBonds.edges[groupIndex];
|
|
153
|
+
location2_2.aUnit = structure.unitMap.get(bond.unitB);
|
|
154
|
+
location2_2.aIndex = bond.indexB;
|
|
155
|
+
location2_2.bUnit = structure.unitMap.get(bond.unitA);
|
|
156
|
+
location2_2.bIndex = bond.indexA;
|
|
157
|
+
return location2_2;
|
|
158
|
+
};
|
|
159
|
+
return (0, location_iterator_1.LocationIterator)(groupCount, instanceCount, 1, getLocation, true, function () { return false; }, getLocation2);
|
|
160
|
+
}
|
|
161
|
+
;
|
|
136
162
|
return (0, location_iterator_1.LocationIterator)(groupCount, instanceCount, 1, getLocation, true);
|
|
137
163
|
}
|
|
138
164
|
BondIterator.fromStructure = fromStructure;
|
|
@@ -25,6 +25,7 @@ export declare const LinkCylinderParams: {
|
|
|
25
25
|
dashCap: PD.BooleanParam;
|
|
26
26
|
stubCap: PD.BooleanParam;
|
|
27
27
|
radialSegments: PD.Numeric;
|
|
28
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
28
29
|
};
|
|
29
30
|
export declare const DefaultLinkCylinderProps: PD.Values<{
|
|
30
31
|
linkScale: PD.Numeric;
|
|
@@ -38,6 +39,7 @@ export declare const DefaultLinkCylinderProps: PD.Values<{
|
|
|
38
39
|
dashCap: PD.BooleanParam;
|
|
39
40
|
stubCap: PD.BooleanParam;
|
|
40
41
|
radialSegments: PD.Numeric;
|
|
42
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
41
43
|
}>;
|
|
42
44
|
export type LinkCylinderProps = typeof DefaultLinkCylinderProps;
|
|
43
45
|
export declare const LinkLineParams: {
|
|
@@ -32,6 +32,7 @@ exports.LinkCylinderParams = {
|
|
|
32
32
|
dashCap: param_definition_1.ParamDefinition.Boolean(true),
|
|
33
33
|
stubCap: param_definition_1.ParamDefinition.Boolean(true),
|
|
34
34
|
radialSegments: param_definition_1.ParamDefinition.Numeric(16, { min: 2, max: 56, step: 2 }, base_1.BaseGeometry.CustomQualityParamInfo),
|
|
35
|
+
colorMode: param_definition_1.ParamDefinition.Select('default', param_definition_1.ParamDefinition.arrayToOptions(['default', 'interpolate']), base_1.BaseGeometry.ShadingCategory)
|
|
35
36
|
};
|
|
36
37
|
exports.DefaultLinkCylinderProps = param_definition_1.ParamDefinition.getDefaultValues(exports.LinkCylinderParams);
|
|
37
38
|
exports.LinkLineParams = {
|
|
@@ -214,7 +215,9 @@ function createLinkCylinderImpostors(ctx, linkBuilder, props, cylinders) {
|
|
|
214
215
|
var linkCount = linkBuilder.linkCount, referencePosition = linkBuilder.referencePosition, position = linkBuilder.position, style = linkBuilder.style, radius = linkBuilder.radius, ignore = linkBuilder.ignore, stub = linkBuilder.stub;
|
|
215
216
|
if (!linkCount)
|
|
216
217
|
return { cylinders: cylinders_1.Cylinders.createEmpty(cylinders) };
|
|
217
|
-
var linkScale = props.linkScale, linkSpacing = props.linkSpacing, linkCap = props.linkCap, aromaticScale = props.aromaticScale, aromaticSpacing = props.aromaticSpacing, aromaticDashCount = props.aromaticDashCount, dashCount = props.dashCount, dashScale = props.dashScale, dashCap = props.dashCap, stubCap = props.stubCap;
|
|
218
|
+
var linkScale = props.linkScale, linkSpacing = props.linkSpacing, linkCap = props.linkCap, aromaticScale = props.aromaticScale, aromaticSpacing = props.aromaticSpacing, aromaticDashCount = props.aromaticDashCount, dashCount = props.dashCount, dashScale = props.dashScale, dashCap = props.dashCap, stubCap = props.stubCap, colorMode = props.colorMode;
|
|
219
|
+
var interpolate = colorMode === 'interpolate';
|
|
220
|
+
var colorModeFlag = interpolate === true ? 3 : 2;
|
|
218
221
|
var cylindersCountEstimate = linkCount * 2;
|
|
219
222
|
var builder = cylinders_builder_1.CylindersBuilder.create(cylindersCountEstimate, cylindersCountEstimate / 4, cylinders);
|
|
220
223
|
var va = (0, linear_algebra_1.Vec3)();
|
|
@@ -235,11 +238,11 @@ function createLinkCylinderImpostors(ctx, linkBuilder, props, cylinders) {
|
|
|
235
238
|
var linkStub = stubCap && (stub ? stub(edgeIndex) : false);
|
|
236
239
|
if (linkStyle === 0 /* LinkStyle.Solid */) {
|
|
237
240
|
v3scale(vm, v3add(vm, va, vb), 0.5);
|
|
238
|
-
builder.add(va[0], va[1], va[2], vm[0], vm[1], vm[2], 1, linkCap, linkStub, edgeIndex);
|
|
241
|
+
builder.add(va[0], va[1], va[2], vm[0], vm[1], vm[2], 1, linkCap, linkStub, colorModeFlag, edgeIndex);
|
|
239
242
|
}
|
|
240
243
|
else if (linkStyle === 1 /* LinkStyle.Dashed */) {
|
|
241
244
|
v3scale(vm, v3add(vm, va, vb), 0.5);
|
|
242
|
-
builder.addFixedCountDashes(va, vm, dashCount, dashScale, dashCap, dashCap, linkStub, edgeIndex);
|
|
245
|
+
builder.addFixedCountDashes(va, vm, dashCount, dashScale, dashCap, dashCap, linkStub, interpolate, edgeIndex);
|
|
243
246
|
}
|
|
244
247
|
else if (linkStyle === 2 /* LinkStyle.Double */ || linkStyle === 3 /* LinkStyle.OffsetDouble */ || linkStyle === 4 /* LinkStyle.Triple */ || linkStyle === 5 /* LinkStyle.OffsetTriple */ || linkStyle === 7 /* LinkStyle.Aromatic */ || linkStyle === 8 /* LinkStyle.MirroredAromatic */) {
|
|
245
248
|
var order = (linkStyle === 2 /* LinkStyle.Double */ || linkStyle === 3 /* LinkStyle.OffsetDouble */) ? 2 :
|
|
@@ -249,44 +252,44 @@ function createLinkCylinderImpostors(ctx, linkBuilder, props, cylinders) {
|
|
|
249
252
|
v3scale(vm, v3add(vm, va, vb), 0.5);
|
|
250
253
|
calculateShiftDir(vShift, va, vb, referencePosition ? referencePosition(edgeIndex) : null);
|
|
251
254
|
if (linkStyle === 7 /* LinkStyle.Aromatic */ || linkStyle === 8 /* LinkStyle.MirroredAromatic */) {
|
|
252
|
-
builder.add(va[0], va[1], va[2], vm[0], vm[1], vm[2], 1, linkCap, linkStub, edgeIndex);
|
|
255
|
+
builder.add(va[0], va[1], va[2], vm[0], vm[1], vm[2], 1, linkCap, linkStub, colorModeFlag, edgeIndex);
|
|
253
256
|
var aromaticOffset = linkRadius + aromaticScale * linkRadius + aromaticScale * linkRadius * aromaticSpacing;
|
|
254
257
|
v3setMagnitude(tmpV12, v3sub(tmpV12, vb, va), linkRadius * 0.5);
|
|
255
258
|
v3add(va, va, tmpV12);
|
|
256
259
|
v3setMagnitude(vShift, vShift, aromaticOffset);
|
|
257
260
|
v3sub(va, va, vShift);
|
|
258
261
|
v3sub(vm, vm, vShift);
|
|
259
|
-
builder.addFixedCountDashes(va, vm, aromaticDashCount, aromaticScale, dashCap, dashCap, linkStub, edgeIndex);
|
|
262
|
+
builder.addFixedCountDashes(va, vm, aromaticDashCount, aromaticScale, dashCap, dashCap, linkStub, interpolate, edgeIndex);
|
|
260
263
|
if (linkStyle === 8 /* LinkStyle.MirroredAromatic */) {
|
|
261
264
|
v3setMagnitude(vShift, vShift, aromaticOffset * 2);
|
|
262
265
|
v3add(va, va, vShift);
|
|
263
266
|
v3add(vm, vm, vShift);
|
|
264
|
-
builder.addFixedCountDashes(va, vm, aromaticDashCount, aromaticScale, dashCap, dashCap, linkStub, edgeIndex);
|
|
267
|
+
builder.addFixedCountDashes(va, vm, aromaticDashCount, aromaticScale, dashCap, dashCap, linkStub, interpolate, edgeIndex);
|
|
265
268
|
}
|
|
266
269
|
}
|
|
267
270
|
else if (linkStyle === 3 /* LinkStyle.OffsetDouble */ || linkStyle === 5 /* LinkStyle.OffsetTriple */) {
|
|
268
271
|
var multipleOffset = linkRadius + multiScale * linkRadius + linkScale * linkRadius * linkSpacing;
|
|
269
272
|
v3setMagnitude(vShift, vShift, multipleOffset);
|
|
270
|
-
builder.add(va[0], va[1], va[2], vm[0], vm[1], vm[2], 1, linkCap, linkStub, edgeIndex);
|
|
273
|
+
builder.add(va[0], va[1], va[2], vm[0], vm[1], vm[2], 1, linkCap, linkStub, colorModeFlag, edgeIndex);
|
|
271
274
|
v3setMagnitude(tmpV12, v3sub(tmpV12, va, vm), linkRadius / 1.5);
|
|
272
275
|
v3sub(va, va, tmpV12);
|
|
273
276
|
if (order === 3)
|
|
274
|
-
builder.add(va[0] + vShift[0], va[1] + vShift[1], va[2] + vShift[2], vm[0] + vShift[0], vm[1] + vShift[1], vm[2] + vShift[2], multiScale, linkCap, linkStub, edgeIndex);
|
|
275
|
-
builder.add(va[0] - vShift[0], va[1] - vShift[1], va[2] - vShift[2], vm[0] - vShift[0], vm[1] - vShift[1], vm[2] - vShift[2], multiScale, dashCap, linkStub, edgeIndex);
|
|
277
|
+
builder.add(va[0] + vShift[0], va[1] + vShift[1], va[2] + vShift[2], vm[0] + vShift[0], vm[1] + vShift[1], vm[2] + vShift[2], multiScale, linkCap, linkStub, colorModeFlag, edgeIndex);
|
|
278
|
+
builder.add(va[0] - vShift[0], va[1] - vShift[1], va[2] - vShift[2], vm[0] - vShift[0], vm[1] - vShift[1], vm[2] - vShift[2], multiScale, dashCap, linkStub, colorModeFlag, edgeIndex);
|
|
276
279
|
}
|
|
277
280
|
else {
|
|
278
281
|
v3setMagnitude(vShift, vShift, absOffset);
|
|
279
282
|
if (order === 3)
|
|
280
|
-
builder.add(va[0], va[1], va[2], vm[0], vm[1], vm[2], multiScale, linkCap, linkStub, edgeIndex);
|
|
281
|
-
builder.add(va[0] + vShift[0], va[1] + vShift[1], va[2] + vShift[2], vm[0] + vShift[0], vm[1] + vShift[1], vm[2] + vShift[2], multiScale, linkCap, linkStub, edgeIndex);
|
|
282
|
-
builder.add(va[0] - vShift[0], va[1] - vShift[1], va[2] - vShift[2], vm[0] - vShift[0], vm[1] - vShift[1], vm[2] - vShift[2], multiScale, linkCap, linkStub, edgeIndex);
|
|
283
|
+
builder.add(va[0], va[1], va[2], vm[0], vm[1], vm[2], multiScale, linkCap, linkStub, colorModeFlag, edgeIndex);
|
|
284
|
+
builder.add(va[0] + vShift[0], va[1] + vShift[1], va[2] + vShift[2], vm[0] + vShift[0], vm[1] + vShift[1], vm[2] + vShift[2], multiScale, linkCap, linkStub, colorModeFlag, edgeIndex);
|
|
285
|
+
builder.add(va[0] - vShift[0], va[1] - vShift[1], va[2] - vShift[2], vm[0] - vShift[0], vm[1] - vShift[1], vm[2] - vShift[2], multiScale, linkCap, linkStub, colorModeFlag, edgeIndex);
|
|
283
286
|
}
|
|
284
287
|
}
|
|
285
288
|
else if (linkStyle === 6 /* LinkStyle.Disk */) {
|
|
286
289
|
v3scale(tmpV12, v3sub(tmpV12, vm, va), 0.475);
|
|
287
290
|
v3add(va, va, tmpV12);
|
|
288
291
|
v3sub(vm, vm, tmpV12);
|
|
289
|
-
builder.add(va[0], va[1], va[2], vm[0], vm[1], vm[2], 1, linkCap, linkStub, edgeIndex);
|
|
292
|
+
builder.add(va[0], va[1], va[2], vm[0], vm[1], vm[2], 1, linkCap, linkStub, colorModeFlag, edgeIndex);
|
|
290
293
|
}
|
|
291
294
|
}
|
|
292
295
|
var oldBoundingSphere = cylinders ? sphere3d_1.Sphere3D.clone(cylinders.boundingSphere) : undefined;
|
|
@@ -23,7 +23,9 @@ export declare const OverhangFactor = 2;
|
|
|
23
23
|
export declare function getPolymerRanges(unit: Unit): SortedRanges<ElementIndex>;
|
|
24
24
|
export declare function getGapRanges(unit: Unit): SortedRanges<ElementIndex>;
|
|
25
25
|
export declare namespace PolymerLocationIterator {
|
|
26
|
-
function fromGroup(structureGroup: StructureGroup,
|
|
26
|
+
function fromGroup(structureGroup: StructureGroup, options?: {
|
|
27
|
+
asSecondary?: boolean;
|
|
28
|
+
}): LocationIterator;
|
|
27
29
|
}
|
|
28
30
|
export declare namespace PolymerGapLocationIterator {
|
|
29
31
|
function fromGroup(structureGroup: StructureGroup): LocationIterator;
|
|
@@ -40,8 +40,7 @@ function getGapRanges(unit) {
|
|
|
40
40
|
exports.getGapRanges = getGapRanges;
|
|
41
41
|
var PolymerLocationIterator;
|
|
42
42
|
(function (PolymerLocationIterator) {
|
|
43
|
-
function fromGroup(structureGroup,
|
|
44
|
-
if (asSecondary === void 0) { asSecondary = false; }
|
|
43
|
+
function fromGroup(structureGroup, options) {
|
|
45
44
|
var group = structureGroup.group, structure = structureGroup.structure;
|
|
46
45
|
var polymerElements = group.units[0].polymerElements;
|
|
47
46
|
var groupCount = polymerElements.length;
|
|
@@ -53,6 +52,7 @@ var PolymerLocationIterator;
|
|
|
53
52
|
location.element = polymerElements[groupIndex];
|
|
54
53
|
return location;
|
|
55
54
|
};
|
|
55
|
+
var asSecondary = !!(options === null || options === void 0 ? void 0 : options.asSecondary);
|
|
56
56
|
function isSecondary(elementIndex, instanceIndex) {
|
|
57
57
|
return asSecondary;
|
|
58
58
|
}
|
|
@@ -93,7 +93,7 @@ export declare function IsosurfaceVisual(materialId: number, volume: Volume, key
|
|
|
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
|
bumpFrequency: PD.Numeric;
|
|
98
98
|
bumpAmplitude: PD.Numeric;
|
|
99
99
|
alpha: PD.Numeric;
|
|
@@ -168,7 +168,7 @@ export declare const IsosurfaceMeshParams: {
|
|
|
168
168
|
flatShaded: PD.BooleanParam;
|
|
169
169
|
ignoreLight: PD.BooleanParam;
|
|
170
170
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
171
|
-
transparentBackfaces: PD.Select<
|
|
171
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
172
172
|
bumpFrequency: PD.Numeric;
|
|
173
173
|
bumpAmplitude: PD.Numeric;
|
|
174
174
|
alpha: PD.Numeric;
|
|
@@ -334,7 +334,7 @@ export declare const IsosurfaceParams: {
|
|
|
334
334
|
flatShaded: PD.BooleanParam;
|
|
335
335
|
ignoreLight: PD.BooleanParam;
|
|
336
336
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
337
|
-
transparentBackfaces: PD.Select<
|
|
337
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
338
338
|
bumpAmplitude: PD.Numeric;
|
|
339
339
|
};
|
|
340
340
|
export type IsosurfaceParams = typeof IsosurfaceParams;
|
|
@@ -411,7 +411,7 @@ export declare function getIsosurfaceParams(ctx: ThemeRegistryContext, volume: V
|
|
|
411
411
|
flatShaded: PD.BooleanParam;
|
|
412
412
|
ignoreLight: PD.BooleanParam;
|
|
413
413
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
414
|
-
transparentBackfaces: PD.Select<
|
|
414
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
415
415
|
bumpAmplitude: PD.Numeric;
|
|
416
416
|
};
|
|
417
417
|
export type IsosurfaceRepresentation = VolumeRepresentation<IsosurfaceParams>;
|
|
@@ -489,6 +489,6 @@ export declare const IsosurfaceRepresentationProvider: VolumeRepresentationProvi
|
|
|
489
489
|
flatShaded: PD.BooleanParam;
|
|
490
490
|
ignoreLight: PD.BooleanParam;
|
|
491
491
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
492
|
-
transparentBackfaces: PD.Select<
|
|
492
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
493
493
|
bumpAmplitude: PD.Numeric;
|
|
494
494
|
}, "isosurface">;
|
|
@@ -83,7 +83,7 @@ export declare namespace VolumeRepresentationRegistry {
|
|
|
83
83
|
flatShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
84
84
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
85
85
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.Select<boolean | "inverted">;
|
|
86
|
-
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<
|
|
86
|
+
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<"on" | "off" | "opaque">;
|
|
87
87
|
bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
88
88
|
}, "isosurface">;
|
|
89
89
|
slice: import("./representation").VolumeRepresentationProvider<{
|
|
@@ -232,7 +232,7 @@ export declare namespace VolumeRepresentationRegistry {
|
|
|
232
232
|
flatShaded: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
233
233
|
ignoreLight: import("../../mol-util/param-definition").ParamDefinition.BooleanParam;
|
|
234
234
|
xrayShaded: import("../../mol-util/param-definition").ParamDefinition.Select<boolean | "inverted">;
|
|
235
|
-
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<
|
|
235
|
+
transparentBackfaces: import("../../mol-util/param-definition").ParamDefinition.Select<"on" | "off" | "opaque">;
|
|
236
236
|
bumpAmplitude: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
237
237
|
alpha: import("../../mol-util/param-definition").ParamDefinition.Numeric;
|
|
238
238
|
material: import("../../mol-util/param-definition").ParamDefinition.Group<import("../../mol-util/param-definition").ParamDefinition.Normalize<{
|
|
@@ -49,7 +49,7 @@ export declare function SegmentVisual(materialId: number, volume: Volume, key: n
|
|
|
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
|
bumpFrequency: PD.Numeric;
|
|
54
54
|
bumpAmplitude: PD.Numeric;
|
|
55
55
|
alpha: PD.Numeric;
|
|
@@ -103,7 +103,7 @@ export declare const SegmentMeshParams: {
|
|
|
103
103
|
flatShaded: PD.BooleanParam;
|
|
104
104
|
ignoreLight: PD.BooleanParam;
|
|
105
105
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
106
|
-
transparentBackfaces: PD.Select<
|
|
106
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
107
107
|
bumpFrequency: PD.Numeric;
|
|
108
108
|
bumpAmplitude: PD.Numeric;
|
|
109
109
|
alpha: PD.Numeric;
|
|
@@ -160,7 +160,7 @@ export declare const SegmentParams: {
|
|
|
160
160
|
flatShaded: PD.BooleanParam;
|
|
161
161
|
ignoreLight: PD.BooleanParam;
|
|
162
162
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
163
|
-
transparentBackfaces: PD.Select<
|
|
163
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
164
164
|
bumpAmplitude: PD.Numeric;
|
|
165
165
|
alpha: PD.Numeric;
|
|
166
166
|
material: PD.Group<PD.Normalize<{
|
|
@@ -214,7 +214,7 @@ export declare function getSegmentParams(ctx: ThemeRegistryContext, volume: Volu
|
|
|
214
214
|
flatShaded: PD.BooleanParam;
|
|
215
215
|
ignoreLight: PD.BooleanParam;
|
|
216
216
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
217
|
-
transparentBackfaces: PD.Select<
|
|
217
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
218
218
|
bumpAmplitude: PD.Numeric;
|
|
219
219
|
alpha: PD.Numeric;
|
|
220
220
|
material: PD.Group<PD.Normalize<{
|
|
@@ -269,7 +269,7 @@ export declare const SegmentRepresentationProvider: VolumeRepresentationProvider
|
|
|
269
269
|
flatShaded: PD.BooleanParam;
|
|
270
270
|
ignoreLight: PD.BooleanParam;
|
|
271
271
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
272
|
-
transparentBackfaces: PD.Select<
|
|
272
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
273
273
|
bumpAmplitude: PD.Numeric;
|
|
274
274
|
alpha: PD.Numeric;
|
|
275
275
|
material: PD.Group<PD.Normalize<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2018-
|
|
2
|
+
* Copyright (c) 2018-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
5
5
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
@@ -69,8 +69,15 @@ export declare namespace ParamDefinition {
|
|
|
69
69
|
export function Boolean(defaultValue: boolean, info?: Info): BooleanParam;
|
|
70
70
|
export interface Text<T extends string = string> extends Base<T> {
|
|
71
71
|
type: 'text';
|
|
72
|
+
multiline?: boolean;
|
|
73
|
+
placeholder?: string;
|
|
74
|
+
disableInteractiveUpdates?: boolean;
|
|
72
75
|
}
|
|
73
|
-
export function Text<T extends string = string>(defaultValue?: string, info?: Info
|
|
76
|
+
export function Text<T extends string = string>(defaultValue?: string, info?: Info & {
|
|
77
|
+
multiline?: boolean;
|
|
78
|
+
placeholder?: string;
|
|
79
|
+
disableInteractiveUpdates?: boolean;
|
|
80
|
+
}): Text<T>;
|
|
74
81
|
export interface Color extends Base<ColorData> {
|
|
75
82
|
type: 'color';
|
|
76
83
|
isExpanded?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2018-
|
|
3
|
+
* Copyright (c) 2018-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
6
6
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
@@ -72,7 +72,7 @@ var ParamDefinition;
|
|
|
72
72
|
ParamDefinition.Boolean = Boolean;
|
|
73
73
|
function Text(defaultValue, info) {
|
|
74
74
|
if (defaultValue === void 0) { defaultValue = ''; }
|
|
75
|
-
return setInfo({ type: 'text', defaultValue: defaultValue }, info);
|
|
75
|
+
return setInfo({ type: 'text', defaultValue: defaultValue, multiline: info === null || info === void 0 ? void 0 : info.multiline, placeholder: info === null || info === void 0 ? void 0 : info.placeholder, disableInteractiveUpdates: info === null || info === void 0 ? void 0 : info.disableInteractiveUpdates }, info);
|
|
76
76
|
}
|
|
77
77
|
ParamDefinition.Text = Text;
|
|
78
78
|
function Color(defaultValue, info) {
|
|
@@ -43,7 +43,7 @@ declare const MembraneOrientation3D: StateTransformer<PluginStateObject.Molecule
|
|
|
43
43
|
flatShaded: boolean;
|
|
44
44
|
ignoreLight: boolean;
|
|
45
45
|
xrayShaded: boolean | "inverted";
|
|
46
|
-
transparentBackfaces:
|
|
46
|
+
transparentBackfaces: "on" | "off" | "opaque";
|
|
47
47
|
bumpFrequency: number;
|
|
48
48
|
bumpAmplitude: number;
|
|
49
49
|
}>>;
|
|
@@ -18,7 +18,7 @@ declare const BilayerPlanesParams: {
|
|
|
18
18
|
flatShaded: PD.BooleanParam;
|
|
19
19
|
ignoreLight: PD.BooleanParam;
|
|
20
20
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
21
|
-
transparentBackfaces: PD.Select<
|
|
21
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
22
22
|
bumpFrequency: PD.Numeric;
|
|
23
23
|
bumpAmplitude: PD.Numeric;
|
|
24
24
|
alpha: PD.Numeric;
|
|
@@ -102,7 +102,7 @@ export declare const MembraneOrientationParams: {
|
|
|
102
102
|
flatShaded: PD.BooleanParam;
|
|
103
103
|
ignoreLight: PD.BooleanParam;
|
|
104
104
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
105
|
-
transparentBackfaces: PD.Select<
|
|
105
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
106
106
|
bumpFrequency: PD.Numeric;
|
|
107
107
|
bumpAmplitude: PD.Numeric;
|
|
108
108
|
};
|
|
@@ -140,7 +140,7 @@ export declare function getMembraneOrientationParams(ctx: ThemeRegistryContext,
|
|
|
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
|
bumpFrequency: PD.Numeric;
|
|
145
145
|
bumpAmplitude: PD.Numeric;
|
|
146
146
|
};
|
|
@@ -178,7 +178,7 @@ export declare const MembraneOrientationRepresentationProvider: StructureReprese
|
|
|
178
178
|
flatShaded: PD.BooleanParam;
|
|
179
179
|
ignoreLight: PD.BooleanParam;
|
|
180
180
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
181
|
-
transparentBackfaces: PD.Select<
|
|
181
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
182
182
|
bumpFrequency: PD.Numeric;
|
|
183
183
|
bumpAmplitude: PD.Numeric;
|
|
184
184
|
}, "membrane-orientation">;
|
|
@@ -44,7 +44,7 @@ export declare const MBParams: {
|
|
|
44
44
|
flatShaded: PD.BooleanParam;
|
|
45
45
|
ignoreLight: PD.BooleanParam;
|
|
46
46
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
47
|
-
transparentBackfaces: PD.Select<
|
|
47
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
48
48
|
bumpFrequency: PD.Numeric;
|
|
49
49
|
bumpAmplitude: PD.Numeric;
|
|
50
50
|
alpha: PD.Numeric;
|
|
@@ -17,7 +17,7 @@ export declare const ConfalPyramidsParams: {
|
|
|
17
17
|
flatShaded: PD.BooleanParam;
|
|
18
18
|
ignoreLight: PD.BooleanParam;
|
|
19
19
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
20
|
-
transparentBackfaces: PD.Select<
|
|
20
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
21
21
|
bumpFrequency: PD.Numeric;
|
|
22
22
|
bumpAmplitude: PD.Numeric;
|
|
23
23
|
alpha: PD.Numeric;
|
|
@@ -48,7 +48,7 @@ export declare function getConfalPyramidsParams(ctx: ThemeRegistryContext, struc
|
|
|
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
|
bumpFrequency: PD.Numeric;
|
|
53
53
|
bumpAmplitude: PD.Numeric;
|
|
54
54
|
alpha: PD.Numeric;
|
|
@@ -80,7 +80,7 @@ export declare const ConfalPyramidsRepresentationProvider: StructureRepresentati
|
|
|
80
80
|
flatShaded: PD.BooleanParam;
|
|
81
81
|
ignoreLight: PD.BooleanParam;
|
|
82
82
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
83
|
-
transparentBackfaces: PD.Select<
|
|
83
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
84
84
|
bumpFrequency: PD.Numeric;
|
|
85
85
|
bumpAmplitude: PD.Numeric;
|
|
86
86
|
alpha: PD.Numeric;
|
|
@@ -21,7 +21,7 @@ export declare const NtCTubeParams: {
|
|
|
21
21
|
flatShaded: PD.BooleanParam;
|
|
22
22
|
ignoreLight: PD.BooleanParam;
|
|
23
23
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
24
|
-
transparentBackfaces: PD.Select<
|
|
24
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
25
25
|
bumpFrequency: PD.Numeric;
|
|
26
26
|
bumpAmplitude: PD.Numeric;
|
|
27
27
|
alpha: PD.Numeric;
|
|
@@ -56,7 +56,7 @@ export declare function getNtCTubeParams(ctx: ThemeRegistryContext, structure: S
|
|
|
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
|
bumpFrequency: PD.Numeric;
|
|
61
61
|
bumpAmplitude: PD.Numeric;
|
|
62
62
|
alpha: PD.Numeric;
|
|
@@ -92,7 +92,7 @@ export declare const NtCTubeRepresentationProvider: StructureRepresentationProvi
|
|
|
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
|
bumpFrequency: PD.Numeric;
|
|
97
97
|
bumpAmplitude: PD.Numeric;
|
|
98
98
|
alpha: PD.Numeric;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2023 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
2
|
+
* Copyright (c) 2023-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Adam Midlik <midlik@gmail.com>
|
|
5
5
|
*/
|
|
@@ -13,6 +13,7 @@ import { MVSAnnotationTooltipsLabelProvider, MVSAnnotationTooltipsProvider } fro
|
|
|
13
13
|
import { CustomLabelRepresentationProvider } from './components/custom-label/representation';
|
|
14
14
|
import { CustomTooltipsLabelProvider, CustomTooltipsProvider } from './components/custom-tooltips-prop';
|
|
15
15
|
import { LoadMvsData, MVSJFormatProvider } from './components/formats';
|
|
16
|
+
import { IsMVSModelProvider } from './components/is-mvs-model-prop';
|
|
16
17
|
import { makeMultilayerColorThemeProvider } from './components/multilayer-color-theme';
|
|
17
18
|
import { loadMVS } from './load';
|
|
18
19
|
import { MVSData } from './mvs-data';
|
|
@@ -30,6 +31,7 @@ export var MolViewSpec = PluginBehavior.create({
|
|
|
30
31
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
31
32
|
_this.registrables = {
|
|
32
33
|
customModelProperties: [
|
|
34
|
+
IsMVSModelProvider,
|
|
33
35
|
MVSAnnotationsProvider,
|
|
34
36
|
],
|
|
35
37
|
customStructureProperties: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2023 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
2
|
+
* Copyright (c) 2023-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Adam Midlik <midlik@gmail.com>
|
|
5
5
|
*/
|
|
@@ -9,6 +9,7 @@ import { ColorNames } from '../../../mol-util/color/names';
|
|
|
9
9
|
import { ParamDefinition as PD } from '../../../mol-util/param-definition';
|
|
10
10
|
import { decodeColor } from '../helpers/utils';
|
|
11
11
|
import { getMVSAnnotationForStructure } from './annotation-prop';
|
|
12
|
+
import { isMVSStructure } from './is-mvs-model-prop';
|
|
12
13
|
/** Parameter definition for color theme "MVS Annotation" */
|
|
13
14
|
export var MVSAnnotationColorThemeParams = {
|
|
14
15
|
annotationId: PD.Text('', { description: 'Reference to "Annotation" custom model property' }),
|
|
@@ -63,5 +64,5 @@ export var MVSAnnotationColorThemeProvider = {
|
|
|
63
64
|
factory: MVSAnnotationColorTheme,
|
|
64
65
|
getParams: function (ctx) { return MVSAnnotationColorThemeParams; },
|
|
65
66
|
defaultValues: PD.getDefaultValues(MVSAnnotationColorThemeParams),
|
|
66
|
-
isApplicable: function (ctx) { return
|
|
67
|
+
isApplicable: function (ctx) { return !!ctx.structure && isMVSStructure(ctx.structure); },
|
|
67
68
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2023 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
2
|
+
* Copyright (c) 2023-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author Adam Midlik <midlik@gmail.com>
|
|
5
5
|
*/
|
|
@@ -73,6 +73,7 @@ export declare const MVSAnnotationLabelParams: {
|
|
|
73
73
|
ignoreHydrogensVariant: PD.Select<"all" | "non-polar">;
|
|
74
74
|
includeParent: PD.BooleanParam;
|
|
75
75
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
76
|
+
/** Parameter values for representation type "MVS Annotation Label" */
|
|
76
77
|
annotationId: PD.Text<string>;
|
|
77
78
|
fieldName: PD.Text<string>;
|
|
78
79
|
};
|
|
@@ -146,6 +147,7 @@ export declare const MVSAnnotationLabelRepresentationProvider: StructureRepresen
|
|
|
146
147
|
ignoreHydrogensVariant: PD.Select<"all" | "non-polar">;
|
|
147
148
|
includeParent: PD.BooleanParam;
|
|
148
149
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
150
|
+
/** Parameter values for representation type "MVS Annotation Label" */
|
|
149
151
|
annotationId: PD.Text<string>;
|
|
150
152
|
fieldName: PD.Text<string>;
|
|
151
153
|
}, "mvs-annotation-label">;
|