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
|
@@ -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
|
*/
|
|
@@ -8,6 +8,7 @@ import { Representation } from '../../../../mol-repr/representation';
|
|
|
8
8
|
import { ComplexRepresentation, StructureRepresentationProvider, StructureRepresentationStateBuilder } from '../../../../mol-repr/structure/representation';
|
|
9
9
|
import { MarkerAction } from '../../../../mol-util/marker-action';
|
|
10
10
|
import { ParamDefinition as PD } from '../../../../mol-util/param-definition';
|
|
11
|
+
import { isMVSStructure } from '../is-mvs-model-prop';
|
|
11
12
|
import { MVSAnnotationLabelTextParams, MVSAnnotationLabelTextVisual } from './visual';
|
|
12
13
|
/** Components of "MVS Annotation Label" representation */
|
|
13
14
|
var MVSAnnotationLabelVisuals = {
|
|
@@ -29,5 +30,5 @@ export var MVSAnnotationLabelRepresentationProvider = StructureRepresentationPro
|
|
|
29
30
|
defaultValues: PD.getDefaultValues(MVSAnnotationLabelParams),
|
|
30
31
|
defaultColorTheme: { name: 'uniform' }, // this ain't workin
|
|
31
32
|
defaultSizeTheme: { name: 'physical' },
|
|
32
|
-
isApplicable: function (structure) { return structure.elementCount > 0; },
|
|
33
|
+
isApplicable: function (structure) { return structure.elementCount > 0 && isMVSStructure(structure); },
|
|
33
34
|
});
|
|
@@ -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
|
*/
|
|
@@ -45,7 +45,7 @@ export var MVSAnnotationsParams = {
|
|
|
45
45
|
};
|
|
46
46
|
/** Provider for custom model property "Annotations" */
|
|
47
47
|
export var MVSAnnotationsProvider = CustomModelProperty.createProvider({
|
|
48
|
-
label: 'Annotations',
|
|
48
|
+
label: 'MVS Annotations',
|
|
49
49
|
descriptor: CustomPropertyDescriptor({
|
|
50
50
|
name: 'mvs-annotations',
|
|
51
51
|
}),
|
|
@@ -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
|
*/
|
|
@@ -8,6 +8,7 @@ import { Representation } from '../../../../mol-repr/representation';
|
|
|
8
8
|
import { ComplexRepresentation, StructureRepresentationProvider, StructureRepresentationStateBuilder } from '../../../../mol-repr/structure/representation';
|
|
9
9
|
import { MarkerAction } from '../../../../mol-util/marker-action';
|
|
10
10
|
import { ParamDefinition as PD } from '../../../../mol-util/param-definition';
|
|
11
|
+
import { isMVSStructure } from '../is-mvs-model-prop';
|
|
11
12
|
import { CustomLabelTextParams, CustomLabelTextVisual } from './visual';
|
|
12
13
|
/** Components of "Custom Label" representation */
|
|
13
14
|
var CustomLabelVisuals = {
|
|
@@ -22,12 +23,12 @@ export function CustomLabelRepresentation(ctx, getParams) {
|
|
|
22
23
|
/** A thingy that is needed to register representation type "Custom Label", allowing user-defined labels at at user-defined positions */
|
|
23
24
|
export var CustomLabelRepresentationProvider = StructureRepresentationProvider({
|
|
24
25
|
name: 'mvs-custom-label',
|
|
25
|
-
label: 'Custom Label',
|
|
26
|
+
label: 'MVS Custom Label',
|
|
26
27
|
description: 'Displays labels with custom text',
|
|
27
28
|
factory: CustomLabelRepresentation,
|
|
28
29
|
getParams: function () { return CustomLabelParams; },
|
|
29
30
|
defaultValues: PD.getDefaultValues(CustomLabelParams),
|
|
30
31
|
defaultColorTheme: { name: 'uniform' },
|
|
31
32
|
defaultSizeTheme: { name: 'physical' },
|
|
32
|
-
isApplicable: function (structure) { return structure.elementCount > 0; }
|
|
33
|
+
isApplicable: function (structure) { return structure.elementCount > 0 && isMVSStructure(structure); },
|
|
33
34
|
});
|
|
@@ -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
|
*/
|
|
@@ -18,7 +18,7 @@ export var CustomTooltipsParams = {
|
|
|
18
18
|
};
|
|
19
19
|
/** Provider for custom structure property "CustomTooltips" */
|
|
20
20
|
export var CustomTooltipsProvider = CustomStructureProperty.createProvider({
|
|
21
|
-
label: 'Custom Tooltips',
|
|
21
|
+
label: 'MVS Custom Tooltips',
|
|
22
22
|
descriptor: CustomPropertyDescriptor({
|
|
23
23
|
name: 'mvs-custom-tooltips',
|
|
24
24
|
}),
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
|
+
*
|
|
4
|
+
* @author Adam Midlik <midlik@gmail.com>
|
|
5
|
+
*/
|
|
6
|
+
import { CustomModelProperty } from '../../../mol-model-props/common/custom-model-property';
|
|
7
|
+
import { Model, Structure } from '../../../mol-model/structure';
|
|
8
|
+
import { ParamDefinition as PD } from '../../../mol-util/param-definition';
|
|
9
|
+
/** Parameter definition for custom model property "Is MVS" */
|
|
10
|
+
export type IsMVSModelParams = typeof IsMVSModelParams;
|
|
11
|
+
export declare const IsMVSModelParams: {
|
|
12
|
+
isMvs: PD.BooleanParam;
|
|
13
|
+
};
|
|
14
|
+
/** Parameter values for custom model property "Is MVS" */
|
|
15
|
+
export type IsMVSModelProps = PD.Values<IsMVSModelParams>;
|
|
16
|
+
/** Provider for custom model property "Is MVS" */
|
|
17
|
+
export declare const IsMVSModelProvider: CustomModelProperty.Provider<IsMVSModelParams, {}>;
|
|
18
|
+
/** Decide if the model is flagged as managed by MolViewSpec */
|
|
19
|
+
export declare function isMVSModel(model: Model): boolean;
|
|
20
|
+
/** Decide if the structure is flagged as managed by MolViewSpec */
|
|
21
|
+
export declare function isMVSStructure(structure: Structure): boolean;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
|
+
*
|
|
4
|
+
* @author Adam Midlik <midlik@gmail.com>
|
|
5
|
+
*/
|
|
6
|
+
import { __awaiter, __generator } from "tslib";
|
|
7
|
+
import { CustomModelProperty } from '../../../mol-model-props/common/custom-model-property';
|
|
8
|
+
import { CustomPropertyDescriptor } from '../../../mol-model/custom-property';
|
|
9
|
+
import { ParamDefinition as PD } from '../../../mol-util/param-definition';
|
|
10
|
+
export var IsMVSModelParams = {
|
|
11
|
+
isMvs: PD.Boolean(false, { description: 'Flag this model as managed by MolViewSpec and enable MolViewSpec features' }),
|
|
12
|
+
};
|
|
13
|
+
/** Provider for custom model property "Is MVS" */
|
|
14
|
+
export var IsMVSModelProvider = CustomModelProperty.createProvider({
|
|
15
|
+
label: 'MVS',
|
|
16
|
+
descriptor: CustomPropertyDescriptor({
|
|
17
|
+
name: 'mvs-is-mvs-model',
|
|
18
|
+
}),
|
|
19
|
+
type: 'static',
|
|
20
|
+
defaultParams: IsMVSModelParams,
|
|
21
|
+
getParams: function (data) { return IsMVSModelParams; },
|
|
22
|
+
isApplicable: function (data) { return true; },
|
|
23
|
+
obtain: function (ctx, data, props) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
24
|
+
return [2 /*return*/, ({ value: {} })];
|
|
25
|
+
}); }); },
|
|
26
|
+
});
|
|
27
|
+
/** Decide if the model is flagged as managed by MolViewSpec */
|
|
28
|
+
export function isMVSModel(model) {
|
|
29
|
+
var _a;
|
|
30
|
+
return !!((_a = IsMVSModelProvider.props(model)) === null || _a === void 0 ? void 0 : _a.isMvs);
|
|
31
|
+
}
|
|
32
|
+
/** Decide if the structure is flagged as managed by MolViewSpec */
|
|
33
|
+
export function isMVSStructure(structure) {
|
|
34
|
+
return structure.models.some(isMVSModel);
|
|
35
|
+
}
|
|
@@ -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 { Color } from '../../../mol-util/color';
|
|
|
9
9
|
import { ColorNames } from '../../../mol-util/color/names';
|
|
10
10
|
import { ParamDefinition as PD } from '../../../mol-util/param-definition';
|
|
11
11
|
import { stringToWords } from '../../../mol-util/string';
|
|
12
|
+
import { isMVSStructure } from './is-mvs-model-prop';
|
|
12
13
|
import { ElementSet, SelectorParams, isSelectorAll } from './selector';
|
|
13
14
|
/** Special value that can be used as color with null-like semantic (i.e. "no color provided").
|
|
14
15
|
* By some lucky coincidence, Mol* treats -1 as white. */
|
|
@@ -117,11 +118,11 @@ export var MultilayerColorThemeName = 'mvs-multilayer';
|
|
|
117
118
|
export function makeMultilayerColorThemeProvider(colorThemeRegistry) {
|
|
118
119
|
return {
|
|
119
120
|
name: MultilayerColorThemeName,
|
|
120
|
-
label: 'Multi-layer',
|
|
121
|
+
label: 'MVS Multi-layer',
|
|
121
122
|
category: ColorTheme.Category.Misc,
|
|
122
123
|
factory: function (ctx, props) { return makeMultilayerColorTheme(ctx, props, colorThemeRegistry); },
|
|
123
124
|
getParams: function (ctx) { return makeMultilayerColorThemeParams(colorThemeRegistry, ctx); },
|
|
124
125
|
defaultValues: DefaultMultilayerColorThemeProps,
|
|
125
|
-
isApplicable: function (ctx) { return
|
|
126
|
+
isApplicable: function (ctx) { return !!ctx.structure && isMVSStructure(ctx.structure); },
|
|
126
127
|
};
|
|
127
128
|
}
|
|
@@ -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
|
*/
|
|
@@ -14,6 +14,7 @@ import { MVSAnnotationStructureComponent } from './components/annotation-structu
|
|
|
14
14
|
import { MVSAnnotationTooltipsProvider } from './components/annotation-tooltips-prop';
|
|
15
15
|
import { CustomLabelRepresentationProvider } from './components/custom-label/representation';
|
|
16
16
|
import { CustomTooltipsProvider } from './components/custom-tooltips-prop';
|
|
17
|
+
import { IsMVSModelProvider } from './components/is-mvs-model-prop';
|
|
17
18
|
import { UpdateTarget, collectAnnotationReferences, collectAnnotationTooltips, collectInlineLabels, collectInlineTooltips, colorThemeForNode, componentFromXProps, componentPropsFromSelector, isPhantomComponent, labelFromXProps, loadTree, makeNearestReprMap, prettyNameFromSelector, representationProps, structureProps, transformProps } from './load-helpers';
|
|
18
19
|
import { validateTree } from './tree/generic/tree-schema';
|
|
19
20
|
import { convertMvsToMolstar, mvsSanityCheck } from './tree/molstar/conversion';
|
|
@@ -138,10 +139,12 @@ var MolstarLoadingActions = {
|
|
|
138
139
|
});
|
|
139
140
|
UpdateTarget.apply(model, CustomModelProperties, {
|
|
140
141
|
properties: (_a = {},
|
|
142
|
+
_a[IsMVSModelProvider.descriptor.name] = { isMvs: true },
|
|
141
143
|
_a[MVSAnnotationsProvider.descriptor.name] = { annotations: annotations },
|
|
142
144
|
_a),
|
|
143
145
|
autoAttach: [
|
|
144
|
-
|
|
146
|
+
IsMVSModelProvider.descriptor.name,
|
|
147
|
+
MVSAnnotationsProvider.descriptor.name,
|
|
145
148
|
],
|
|
146
149
|
});
|
|
147
150
|
return model;
|
|
@@ -28,7 +28,7 @@ declare const AssemblySymmetry3D: StateTransformer<PluginStateObject.Molecule.St
|
|
|
28
28
|
flatShaded: boolean;
|
|
29
29
|
ignoreLight: boolean;
|
|
30
30
|
xrayShaded: boolean | "inverted";
|
|
31
|
-
transparentBackfaces:
|
|
31
|
+
transparentBackfaces: "on" | "off" | "opaque";
|
|
32
32
|
bumpFrequency: number;
|
|
33
33
|
bumpAmplitude: number;
|
|
34
34
|
alpha: number;
|
|
@@ -16,7 +16,7 @@ export declare const AssemblySymmetryParams: {
|
|
|
16
16
|
flatShaded: PD.BooleanParam;
|
|
17
17
|
ignoreLight: PD.BooleanParam;
|
|
18
18
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
19
|
-
transparentBackfaces: PD.Select<
|
|
19
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
20
20
|
bumpFrequency: PD.Numeric;
|
|
21
21
|
bumpAmplitude: PD.Numeric;
|
|
22
22
|
alpha: PD.Numeric;
|
|
@@ -522,7 +522,9 @@ export type CoreAssembly = {
|
|
|
522
522
|
readonly pdbx_struct_oper_list?: Maybe<ReadonlyArray<Maybe<PdbxStructOperList>>>;
|
|
523
523
|
/** Get a list of polymer entity instances (chains) that constitute this assembly. */
|
|
524
524
|
readonly polymer_entity_instances?: Maybe<ReadonlyArray<Maybe<CorePolymerEntityInstance>>>;
|
|
525
|
+
readonly rcsb_assembly_annotation?: Maybe<ReadonlyArray<Maybe<RcsbAssemblyAnnotation>>>;
|
|
525
526
|
readonly rcsb_assembly_container_identifiers: RcsbAssemblyContainerIdentifiers;
|
|
527
|
+
readonly rcsb_assembly_feature?: Maybe<ReadonlyArray<Maybe<RcsbAssemblyFeature>>>;
|
|
526
528
|
readonly rcsb_assembly_info?: Maybe<RcsbAssemblyInfo>;
|
|
527
529
|
/**
|
|
528
530
|
* A unique identifier for each object in this assembly container formed by
|
|
@@ -1226,8 +1228,15 @@ export type DrugbankInfo = {
|
|
|
1226
1228
|
readonly description?: Maybe<Scalars['String']['output']>;
|
|
1227
1229
|
/** The DrugBank drug categories. */
|
|
1228
1230
|
readonly drug_categories?: Maybe<ReadonlyArray<Maybe<Scalars['String']['output']>>>;
|
|
1229
|
-
/**
|
|
1231
|
+
/**
|
|
1232
|
+
* The DrugBank drug groups determine their drug development status.
|
|
1233
|
+
*
|
|
1234
|
+
* Allowable values:
|
|
1235
|
+
* approved, experimental, illicit, investigational, nutraceutical, vet_approved, withdrawn
|
|
1236
|
+
*
|
|
1237
|
+
*/
|
|
1230
1238
|
readonly drug_groups?: Maybe<ReadonlyArray<Maybe<Scalars['String']['output']>>>;
|
|
1239
|
+
readonly drug_products?: Maybe<ReadonlyArray<Maybe<DrugbankInfoDrugProducts>>>;
|
|
1231
1240
|
/** The DrugBank accession code */
|
|
1232
1241
|
readonly drugbank_id: Scalars['String']['output'];
|
|
1233
1242
|
/**
|
|
@@ -1259,6 +1268,56 @@ export type DrugbankInfo = {
|
|
|
1259
1268
|
/** DrugBank drug name synonyms. */
|
|
1260
1269
|
readonly synonyms?: Maybe<ReadonlyArray<Maybe<Scalars['String']['output']>>>;
|
|
1261
1270
|
};
|
|
1271
|
+
export type DrugbankInfoDrugProducts = {
|
|
1272
|
+
/**
|
|
1273
|
+
* Indicates whether this drug has been approved by the regulating government.
|
|
1274
|
+
*
|
|
1275
|
+
* Allowable values:
|
|
1276
|
+
* N, Y
|
|
1277
|
+
*
|
|
1278
|
+
*/
|
|
1279
|
+
readonly approved?: Maybe<Scalars['String']['output']>;
|
|
1280
|
+
/**
|
|
1281
|
+
* The country where this commercially available drug has been approved.
|
|
1282
|
+
*
|
|
1283
|
+
* Allowable values:
|
|
1284
|
+
* Canada, EU, US
|
|
1285
|
+
*
|
|
1286
|
+
*/
|
|
1287
|
+
readonly country?: Maybe<Scalars['String']['output']>;
|
|
1288
|
+
/**
|
|
1289
|
+
* The ending date for market approval.
|
|
1290
|
+
*
|
|
1291
|
+
* Examples:
|
|
1292
|
+
* 2003-07-30
|
|
1293
|
+
*
|
|
1294
|
+
*/
|
|
1295
|
+
readonly ended_marketing_on?: Maybe<Scalars['Date']['output']>;
|
|
1296
|
+
/**
|
|
1297
|
+
* The proprietary name(s) provided by the manufacturer for any commercially available products containing this drug.
|
|
1298
|
+
*
|
|
1299
|
+
* Examples:
|
|
1300
|
+
* Hivid Tab 0.375mg
|
|
1301
|
+
*
|
|
1302
|
+
*/
|
|
1303
|
+
readonly name?: Maybe<Scalars['String']['output']>;
|
|
1304
|
+
/**
|
|
1305
|
+
* Source of this product information. For example, a value of DPD indicates this information was retrieved from the Canadian Drug Product Database.
|
|
1306
|
+
*
|
|
1307
|
+
* Allowable values:
|
|
1308
|
+
* DPD, EMA, FDA NDC
|
|
1309
|
+
*
|
|
1310
|
+
*/
|
|
1311
|
+
readonly source?: Maybe<Scalars['String']['output']>;
|
|
1312
|
+
/**
|
|
1313
|
+
* The starting date for market approval.
|
|
1314
|
+
*
|
|
1315
|
+
* Examples:
|
|
1316
|
+
* 1992-12-31
|
|
1317
|
+
*
|
|
1318
|
+
*/
|
|
1319
|
+
readonly started_marketing_on?: Maybe<Scalars['Date']['output']>;
|
|
1320
|
+
};
|
|
1262
1321
|
export type DrugbankTarget = {
|
|
1263
1322
|
/** The type of target interaction. */
|
|
1264
1323
|
readonly interaction_type?: Maybe<Scalars['String']['output']>;
|
|
@@ -6438,6 +6497,46 @@ export type RcsbAccessionInfo = {
|
|
|
6438
6497
|
*/
|
|
6439
6498
|
readonly status_code?: Maybe<Scalars['String']['output']>;
|
|
6440
6499
|
};
|
|
6500
|
+
export type RcsbAssemblyAnnotation = {
|
|
6501
|
+
readonly additional_properties?: Maybe<ReadonlyArray<Maybe<RcsbAssemblyAnnotationAdditionalProperties>>>;
|
|
6502
|
+
/** An identifier for the annotation. */
|
|
6503
|
+
readonly annotation_id?: Maybe<Scalars['String']['output']>;
|
|
6504
|
+
/** Identifies the version of the annotation assignment. */
|
|
6505
|
+
readonly assignment_version?: Maybe<Scalars['String']['output']>;
|
|
6506
|
+
/** A description for the annotation. */
|
|
6507
|
+
readonly description?: Maybe<Scalars['String']['output']>;
|
|
6508
|
+
/** A name for the annotation. */
|
|
6509
|
+
readonly name?: Maybe<Scalars['String']['output']>;
|
|
6510
|
+
/**
|
|
6511
|
+
* Code identifying the individual, organization or program that
|
|
6512
|
+
* assigned the annotation.
|
|
6513
|
+
*
|
|
6514
|
+
* Examples:
|
|
6515
|
+
* MCSA
|
|
6516
|
+
*
|
|
6517
|
+
*/
|
|
6518
|
+
readonly provenance_source?: Maybe<Scalars['String']['output']>;
|
|
6519
|
+
/**
|
|
6520
|
+
* A type or category of the annotation.
|
|
6521
|
+
*
|
|
6522
|
+
* Allowable values:
|
|
6523
|
+
* MCSA
|
|
6524
|
+
*
|
|
6525
|
+
*/
|
|
6526
|
+
readonly type?: Maybe<Scalars['String']['output']>;
|
|
6527
|
+
};
|
|
6528
|
+
export type RcsbAssemblyAnnotationAdditionalProperties = {
|
|
6529
|
+
/**
|
|
6530
|
+
* The additional property name.
|
|
6531
|
+
*
|
|
6532
|
+
* Allowable values:
|
|
6533
|
+
* MCSA_MOTIF_COMPATIBILITY
|
|
6534
|
+
*
|
|
6535
|
+
*/
|
|
6536
|
+
readonly name?: Maybe<Scalars['String']['output']>;
|
|
6537
|
+
/** The value(s) of the additional property. */
|
|
6538
|
+
readonly values?: Maybe<ReadonlyArray<Maybe<Scalars['ObjectScalar']['output']>>>;
|
|
6539
|
+
};
|
|
6441
6540
|
export type RcsbAssemblyContainerIdentifiers = {
|
|
6442
6541
|
/**
|
|
6443
6542
|
* Assembly identifier for the container.
|
|
@@ -6461,6 +6560,66 @@ export type RcsbAssemblyContainerIdentifiers = {
|
|
|
6461
6560
|
*/
|
|
6462
6561
|
readonly rcsb_id?: Maybe<Scalars['String']['output']>;
|
|
6463
6562
|
};
|
|
6563
|
+
export type RcsbAssemblyFeature = {
|
|
6564
|
+
readonly additional_properties?: Maybe<ReadonlyArray<Maybe<RcsbAssemblyFeatureAdditionalProperties>>>;
|
|
6565
|
+
/** Identifies the version of the feature assignment. */
|
|
6566
|
+
readonly assignment_version?: Maybe<Scalars['String']['output']>;
|
|
6567
|
+
/** A description for the feature. */
|
|
6568
|
+
readonly description?: Maybe<Scalars['String']['output']>;
|
|
6569
|
+
/** An identifier for the feature. */
|
|
6570
|
+
readonly feature_id?: Maybe<Scalars['String']['output']>;
|
|
6571
|
+
/** This container groups together chain-level identifiers of the assigned features. */
|
|
6572
|
+
readonly feature_positions?: Maybe<ReadonlyArray<Maybe<RcsbAssemblyFeatureFeaturePositions>>>;
|
|
6573
|
+
/** A name for the feature. */
|
|
6574
|
+
readonly name?: Maybe<Scalars['String']['output']>;
|
|
6575
|
+
/**
|
|
6576
|
+
* Code identifying the individual, organization or program that
|
|
6577
|
+
* assigned the feature.
|
|
6578
|
+
*
|
|
6579
|
+
* Examples:
|
|
6580
|
+
* MCSA
|
|
6581
|
+
*
|
|
6582
|
+
*/
|
|
6583
|
+
readonly provenance_source?: Maybe<Scalars['String']['output']>;
|
|
6584
|
+
/**
|
|
6585
|
+
* A type or category of the feature.
|
|
6586
|
+
*
|
|
6587
|
+
* Allowable values:
|
|
6588
|
+
* MCSA
|
|
6589
|
+
*
|
|
6590
|
+
*/
|
|
6591
|
+
readonly type?: Maybe<Scalars['String']['output']>;
|
|
6592
|
+
};
|
|
6593
|
+
export type RcsbAssemblyFeatureAdditionalProperties = {
|
|
6594
|
+
/**
|
|
6595
|
+
* The additional property name.
|
|
6596
|
+
*
|
|
6597
|
+
* Allowable values:
|
|
6598
|
+
* MCSA_MOTIF_COMPATIBILITY
|
|
6599
|
+
*
|
|
6600
|
+
*/
|
|
6601
|
+
readonly name?: Maybe<Scalars['String']['output']>;
|
|
6602
|
+
/** The value(s) of the additional property. */
|
|
6603
|
+
readonly values?: Maybe<ReadonlyArray<Maybe<Scalars['ObjectScalar']['output']>>>;
|
|
6604
|
+
};
|
|
6605
|
+
export type RcsbAssemblyFeatureFeaturePositions = {
|
|
6606
|
+
/**
|
|
6607
|
+
* An identifier of polymer chain (label_asym_id) corresponding to the feature assignment.
|
|
6608
|
+
*
|
|
6609
|
+
* Examples:
|
|
6610
|
+
* A, B
|
|
6611
|
+
*
|
|
6612
|
+
*/
|
|
6613
|
+
readonly asym_id: Scalars['String']['output'];
|
|
6614
|
+
/** An identifier for the monomer at which this segment of the feature begins. */
|
|
6615
|
+
readonly beg_seq_id: Scalars['Int']['output'];
|
|
6616
|
+
/** An identifier for the monomer at which this segment of the feature ends. */
|
|
6617
|
+
readonly end_seq_id?: Maybe<Scalars['Int']['output']>;
|
|
6618
|
+
/** Identifies the list of operations from the category pdbx_struct_oper_list. One item in array per operator applied. The order follows how operators are applied. */
|
|
6619
|
+
readonly struct_oper_list: ReadonlyArray<Maybe<Scalars['String']['output']>>;
|
|
6620
|
+
/** The value(s) of the feature over the monomer segment. */
|
|
6621
|
+
readonly values?: Maybe<ReadonlyArray<Maybe<Scalars['Float']['output']>>>;
|
|
6622
|
+
};
|
|
6464
6623
|
export type RcsbAssemblyInfo = {
|
|
6465
6624
|
/** Entity identifier for the container. */
|
|
6466
6625
|
readonly assembly_id?: Maybe<Scalars['String']['output']>;
|
|
@@ -24,6 +24,7 @@ export declare const IntraUnitClashParams: {
|
|
|
24
24
|
dashCap: PD.BooleanParam;
|
|
25
25
|
stubCap: PD.BooleanParam;
|
|
26
26
|
radialSegments: PD.Numeric;
|
|
27
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
27
28
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
28
29
|
includeParent: PD.BooleanParam;
|
|
29
30
|
doubleSided: PD.BooleanParam;
|
|
@@ -31,7 +32,7 @@ export declare const IntraUnitClashParams: {
|
|
|
31
32
|
flatShaded: PD.BooleanParam;
|
|
32
33
|
ignoreLight: PD.BooleanParam;
|
|
33
34
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
34
|
-
transparentBackfaces: PD.Select<
|
|
35
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
35
36
|
bumpFrequency: PD.Numeric;
|
|
36
37
|
bumpAmplitude: PD.Numeric;
|
|
37
38
|
alpha: PD.Numeric;
|
|
@@ -68,6 +69,7 @@ export declare const InterUnitClashParams: {
|
|
|
68
69
|
dashCap: PD.BooleanParam;
|
|
69
70
|
stubCap: PD.BooleanParam;
|
|
70
71
|
radialSegments: PD.Numeric;
|
|
72
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
71
73
|
unitKinds: PD.MultiSelect<"spheres" | "gaussians" | "atomic">;
|
|
72
74
|
includeParent: PD.BooleanParam;
|
|
73
75
|
doubleSided: PD.BooleanParam;
|
|
@@ -75,7 +77,7 @@ export declare const InterUnitClashParams: {
|
|
|
75
77
|
flatShaded: PD.BooleanParam;
|
|
76
78
|
ignoreLight: PD.BooleanParam;
|
|
77
79
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
78
|
-
transparentBackfaces: PD.Select<
|
|
80
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
79
81
|
bumpFrequency: PD.Numeric;
|
|
80
82
|
bumpAmplitude: PD.Numeric;
|
|
81
83
|
alpha: PD.Numeric;
|
|
@@ -114,13 +116,14 @@ export declare const ClashesParams: {
|
|
|
114
116
|
dashCap: PD.BooleanParam;
|
|
115
117
|
stubCap: PD.BooleanParam;
|
|
116
118
|
radialSegments: PD.Numeric;
|
|
119
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
117
120
|
includeParent: PD.BooleanParam;
|
|
118
121
|
doubleSided: PD.BooleanParam;
|
|
119
122
|
flipSided: PD.BooleanParam;
|
|
120
123
|
flatShaded: PD.BooleanParam;
|
|
121
124
|
ignoreLight: PD.BooleanParam;
|
|
122
125
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
123
|
-
transparentBackfaces: PD.Select<
|
|
126
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
124
127
|
bumpFrequency: PD.Numeric;
|
|
125
128
|
bumpAmplitude: PD.Numeric;
|
|
126
129
|
alpha: PD.Numeric;
|
|
@@ -158,13 +161,14 @@ export declare function getClashesParams(ctx: ThemeRegistryContext, structure: S
|
|
|
158
161
|
dashCap: PD.BooleanParam;
|
|
159
162
|
stubCap: PD.BooleanParam;
|
|
160
163
|
radialSegments: PD.Numeric;
|
|
164
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
161
165
|
includeParent: PD.BooleanParam;
|
|
162
166
|
doubleSided: PD.BooleanParam;
|
|
163
167
|
flipSided: PD.BooleanParam;
|
|
164
168
|
flatShaded: PD.BooleanParam;
|
|
165
169
|
ignoreLight: PD.BooleanParam;
|
|
166
170
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
167
|
-
transparentBackfaces: PD.Select<
|
|
171
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
168
172
|
bumpFrequency: PD.Numeric;
|
|
169
173
|
bumpAmplitude: PD.Numeric;
|
|
170
174
|
alpha: PD.Numeric;
|
|
@@ -203,13 +207,14 @@ export declare const ClashesRepresentationProvider: StructureRepresentationProvi
|
|
|
203
207
|
dashCap: PD.BooleanParam;
|
|
204
208
|
stubCap: PD.BooleanParam;
|
|
205
209
|
radialSegments: PD.Numeric;
|
|
210
|
+
colorMode: PD.Select<"default" | "interpolate">;
|
|
206
211
|
includeParent: PD.BooleanParam;
|
|
207
212
|
doubleSided: PD.BooleanParam;
|
|
208
213
|
flipSided: PD.BooleanParam;
|
|
209
214
|
flatShaded: PD.BooleanParam;
|
|
210
215
|
ignoreLight: PD.BooleanParam;
|
|
211
216
|
xrayShaded: PD.Select<boolean | "inverted">;
|
|
212
|
-
transparentBackfaces: PD.Select<
|
|
217
|
+
transparentBackfaces: PD.Select<"on" | "off" | "opaque">;
|
|
213
218
|
bumpFrequency: PD.Numeric;
|
|
214
219
|
bumpAmplitude: PD.Numeric;
|
|
215
220
|
alpha: PD.Numeric;
|
|
@@ -24,7 +24,7 @@ export declare const HandleHelperParams: {
|
|
|
24
24
|
flipSided: boolean;
|
|
25
25
|
flatShaded: boolean;
|
|
26
26
|
xrayShaded: boolean | "inverted";
|
|
27
|
-
transparentBackfaces:
|
|
27
|
+
transparentBackfaces: "on" | "off" | "opaque";
|
|
28
28
|
bumpFrequency: number;
|
|
29
29
|
bumpAmplitude: number;
|
|
30
30
|
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest";
|
|
@@ -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 { ValueCell } from '../../mol-util';
|
|
8
9
|
import { TextureImage } from '../../mol-gl/renderable/util';
|
|
@@ -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 { ValueCell } from '../../mol-util';
|
|
8
9
|
import { createTextureImage } from '../../mol-gl/renderable/util';
|
|
@@ -129,24 +130,30 @@ function createInstanceColor(locationIt, color, colorData) {
|
|
|
129
130
|
}
|
|
130
131
|
/** Creates color texture with color for each group (i.e. shared across instances) */
|
|
131
132
|
function createGroupColor(locationIt, color, colorData) {
|
|
132
|
-
var groupCount = locationIt.groupCount;
|
|
133
|
-
var colors = createTextureImage(Math.max(1, groupCount), 3, Uint8Array, colorData && colorData.tColor.ref.value.array);
|
|
133
|
+
var groupCount = locationIt.groupCount, hasLocation2 = locationIt.hasLocation2;
|
|
134
|
+
var colors = createTextureImage(Math.max(1, groupCount * (hasLocation2 ? 2 : 1)), 3, Uint8Array, colorData && colorData.tColor.ref.value.array);
|
|
134
135
|
locationIt.reset();
|
|
136
|
+
var indexMultiplier = hasLocation2 ? 6 : 3;
|
|
135
137
|
while (locationIt.hasNext && !locationIt.isNextNewInstance) {
|
|
136
|
-
var _a = locationIt.move(), location_2 = _a.location, isSecondary = _a.isSecondary, groupIndex = _a.groupIndex;
|
|
137
|
-
Color.toArray(color(location_2, isSecondary), colors.array, groupIndex *
|
|
138
|
+
var _a = locationIt.move(), location_2 = _a.location, location2 = _a.location2, isSecondary = _a.isSecondary, groupIndex = _a.groupIndex;
|
|
139
|
+
Color.toArray(color(location_2, isSecondary), colors.array, groupIndex * indexMultiplier);
|
|
140
|
+
if (hasLocation2)
|
|
141
|
+
Color.toArray(color(location2, isSecondary), colors.array, groupIndex * indexMultiplier + 3);
|
|
138
142
|
}
|
|
139
143
|
return createTextureColor(colors, 'group', colorData);
|
|
140
144
|
}
|
|
141
145
|
/** Creates color texture with color for each group in each instance */
|
|
142
146
|
function createGroupInstanceColor(locationIt, color, colorData) {
|
|
143
|
-
var groupCount = locationIt.groupCount, instanceCount = locationIt.instanceCount;
|
|
144
|
-
var count = instanceCount * groupCount;
|
|
147
|
+
var groupCount = locationIt.groupCount, instanceCount = locationIt.instanceCount, hasLocation2 = locationIt.hasLocation2;
|
|
148
|
+
var count = instanceCount * groupCount * (hasLocation2 ? 2 : 1);
|
|
145
149
|
var colors = createTextureImage(Math.max(1, count), 3, Uint8Array, colorData && colorData.tColor.ref.value.array);
|
|
146
150
|
locationIt.reset();
|
|
151
|
+
var indexMultiplier = hasLocation2 ? 6 : 3;
|
|
147
152
|
while (locationIt.hasNext) {
|
|
148
|
-
var _a = locationIt.move(), location_3 = _a.location, isSecondary = _a.isSecondary, index = _a.index;
|
|
149
|
-
Color.toArray(color(location_3, isSecondary), colors.array, index *
|
|
153
|
+
var _a = locationIt.move(), location_3 = _a.location, location2 = _a.location2, isSecondary = _a.isSecondary, index = _a.index;
|
|
154
|
+
Color.toArray(color(location_3, isSecondary), colors.array, index * indexMultiplier);
|
|
155
|
+
if (hasLocation2)
|
|
156
|
+
Color.toArray(color(location2, isSecondary), colors.array, index * indexMultiplier + 3);
|
|
150
157
|
}
|
|
151
158
|
return createTextureColor(colors, 'groupInstance', colorData);
|
|
152
159
|
}
|
|
@@ -7,9 +7,15 @@
|
|
|
7
7
|
import { Cylinders } from './cylinders';
|
|
8
8
|
import { Vec3 } from '../../../mol-math/linear-algebra';
|
|
9
9
|
export interface CylindersBuilder {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @param colorMode - controls if and how theme colors are interpolated
|
|
12
|
+
* - for colorMode between 0 and 1 use colorMode to interpolate
|
|
13
|
+
* - for colorMode == 2 do nothing, i.e., use given theme color
|
|
14
|
+
* - for colorMode == 3 use position on cylinder axis to interpolate
|
|
15
|
+
*/
|
|
16
|
+
add(startX: number, startY: number, startZ: number, endX: number, endY: number, endZ: number, radiusScale: number, topCap: boolean, bottomCap: boolean, colorMode: number, group: number): void;
|
|
17
|
+
addFixedCountDashes(start: Vec3, end: Vec3, segmentCount: number, radiusScale: number, topCap: boolean, bottomCap: boolean, stubCap: boolean, interpolate: boolean, group: number): void;
|
|
18
|
+
addFixedLengthDashes(start: Vec3, end: Vec3, segmentLength: number, radiusScale: number, topCap: boolean, bottomCap: boolean, interpolate: boolean, group: number): void;
|
|
13
19
|
getCylinders(): Cylinders;
|
|
14
20
|
}
|
|
15
21
|
export declare namespace CylindersBuilder {
|