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
|
@@ -299,8 +299,8 @@ function ensureDicAvailable(dicPath, dicUrl) {
|
|
|
299
299
|
var DIC_DIR = path.resolve(__dirname, '../../../../build/dics/');
|
|
300
300
|
var MMCIF_DIC_PATH = "".concat(DIC_DIR, "/mmcif_pdbx_v50.dic");
|
|
301
301
|
var MMCIF_DIC_URL = 'http://mmcif.wwpdb.org/dictionaries/ascii/mmcif_pdbx_v50.dic';
|
|
302
|
-
var IHM_DIC_PATH = "".concat(DIC_DIR, "/
|
|
303
|
-
var IHM_DIC_URL = 'https://raw.githubusercontent.com/ihmwg/
|
|
302
|
+
var IHM_DIC_PATH = "".concat(DIC_DIR, "/mmcif_ihm_ext.dic");
|
|
303
|
+
var IHM_DIC_URL = 'https://raw.githubusercontent.com/ihmwg/IHMCIF/master/dist/mmcif_ihm_ext.dic';
|
|
304
304
|
var MA_DIC_PATH = "".concat(DIC_DIR, "/ma-extension.dic");
|
|
305
305
|
var MA_DIC_URL = 'https://raw.githubusercontent.com/ihmwg/ModelCIF/master/dist/mmcif_ma.dic';
|
|
306
306
|
var CIF_CORE_DIC_PATH = "".concat(DIC_DIR, "/cif_core.dic");
|
|
@@ -301,8 +301,8 @@ function ensureDicAvailable(dicPath, dicUrl) {
|
|
|
301
301
|
var DIC_DIR = path.resolve(__dirname, '../../../../build/dics/');
|
|
302
302
|
var MMCIF_DIC_PATH = "".concat(DIC_DIR, "/mmcif_pdbx_v50.dic");
|
|
303
303
|
var MMCIF_DIC_URL = 'http://mmcif.wwpdb.org/dictionaries/ascii/mmcif_pdbx_v50.dic';
|
|
304
|
-
var IHM_DIC_PATH = "".concat(DIC_DIR, "/
|
|
305
|
-
var IHM_DIC_URL = 'https://raw.githubusercontent.com/ihmwg/
|
|
304
|
+
var IHM_DIC_PATH = "".concat(DIC_DIR, "/mmcif_ihm_ext.dic");
|
|
305
|
+
var IHM_DIC_URL = 'https://raw.githubusercontent.com/ihmwg/IHMCIF/master/dist/mmcif_ihm_ext.dic';
|
|
306
306
|
var MA_DIC_PATH = "".concat(DIC_DIR, "/ma-extension.dic");
|
|
307
307
|
var MA_DIC_URL = 'https://raw.githubusercontent.com/ihmwg/ModelCIF/master/dist/mmcif_ma.dic';
|
|
308
308
|
var CIF_CORE_DIC_PATH = "".concat(DIC_DIR, "/cif_core.dic");
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2023 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
|
+
* Copyright (c) 2023-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Adam Midlik <midlik@gmail.com>
|
|
6
6
|
*/
|
|
@@ -16,6 +16,7 @@ var annotation_tooltips_prop_1 = require("./components/annotation-tooltips-prop"
|
|
|
16
16
|
var representation_2 = require("./components/custom-label/representation");
|
|
17
17
|
var custom_tooltips_prop_1 = require("./components/custom-tooltips-prop");
|
|
18
18
|
var formats_1 = require("./components/formats");
|
|
19
|
+
var is_mvs_model_prop_1 = require("./components/is-mvs-model-prop");
|
|
19
20
|
var multilayer_color_theme_1 = require("./components/multilayer-color-theme");
|
|
20
21
|
var load_1 = require("./load");
|
|
21
22
|
var mvs_data_1 = require("./mvs-data");
|
|
@@ -33,6 +34,7 @@ exports.MolViewSpec = behavior_1.PluginBehavior.create({
|
|
|
33
34
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
34
35
|
_this.registrables = {
|
|
35
36
|
customModelProperties: [
|
|
37
|
+
is_mvs_model_prop_1.IsMVSModelProvider,
|
|
36
38
|
annotation_prop_1.MVSAnnotationsProvider,
|
|
37
39
|
],
|
|
38
40
|
customStructureProperties: [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2023 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
|
+
* Copyright (c) 2023-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Adam Midlik <midlik@gmail.com>
|
|
6
6
|
*/
|
|
@@ -12,6 +12,7 @@ var names_1 = require("../../../mol-util/color/names");
|
|
|
12
12
|
var param_definition_1 = require("../../../mol-util/param-definition");
|
|
13
13
|
var utils_1 = require("../helpers/utils");
|
|
14
14
|
var annotation_prop_1 = require("./annotation-prop");
|
|
15
|
+
var is_mvs_model_prop_1 = require("./is-mvs-model-prop");
|
|
15
16
|
/** Parameter definition for color theme "MVS Annotation" */
|
|
16
17
|
exports.MVSAnnotationColorThemeParams = {
|
|
17
18
|
annotationId: param_definition_1.ParamDefinition.Text('', { description: 'Reference to "Annotation" custom model property' }),
|
|
@@ -67,5 +68,5 @@ exports.MVSAnnotationColorThemeProvider = {
|
|
|
67
68
|
factory: MVSAnnotationColorTheme,
|
|
68
69
|
getParams: function (ctx) { return exports.MVSAnnotationColorThemeParams; },
|
|
69
70
|
defaultValues: param_definition_1.ParamDefinition.getDefaultValues(exports.MVSAnnotationColorThemeParams),
|
|
70
|
-
isApplicable: function (ctx) { return
|
|
71
|
+
isApplicable: function (ctx) { return !!ctx.structure && (0, is_mvs_model_prop_1.isMVSStructure)(ctx.structure); },
|
|
71
72
|
};
|
|
@@ -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">;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2023 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
|
+
* Copyright (c) 2023-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Adam Midlik <midlik@gmail.com>
|
|
6
6
|
*/
|
|
@@ -11,6 +11,7 @@ var representation_1 = require("../../../../mol-repr/representation");
|
|
|
11
11
|
var representation_2 = require("../../../../mol-repr/structure/representation");
|
|
12
12
|
var marker_action_1 = require("../../../../mol-util/marker-action");
|
|
13
13
|
var param_definition_1 = require("../../../../mol-util/param-definition");
|
|
14
|
+
var is_mvs_model_prop_1 = require("../is-mvs-model-prop");
|
|
14
15
|
var visual_1 = require("./visual");
|
|
15
16
|
/** Components of "MVS Annotation Label" representation */
|
|
16
17
|
var MVSAnnotationLabelVisuals = {
|
|
@@ -33,5 +34,5 @@ exports.MVSAnnotationLabelRepresentationProvider = (0, representation_2.Structur
|
|
|
33
34
|
defaultValues: param_definition_1.ParamDefinition.getDefaultValues(exports.MVSAnnotationLabelParams),
|
|
34
35
|
defaultColorTheme: { name: 'uniform' }, // this ain't workin
|
|
35
36
|
defaultSizeTheme: { name: 'physical' },
|
|
36
|
-
isApplicable: function (structure) { return structure.elementCount > 0; },
|
|
37
|
+
isApplicable: function (structure) { return structure.elementCount > 0 && (0, is_mvs_model_prop_1.isMVSStructure)(structure); },
|
|
37
38
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2023 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
|
+
* Copyright (c) 2023-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Adam Midlik <midlik@gmail.com>
|
|
6
6
|
*/
|
|
@@ -48,7 +48,7 @@ exports.MVSAnnotationsParams = {
|
|
|
48
48
|
};
|
|
49
49
|
/** Provider for custom model property "Annotations" */
|
|
50
50
|
exports.MVSAnnotationsProvider = custom_model_property_1.CustomModelProperty.createProvider({
|
|
51
|
-
label: 'Annotations',
|
|
51
|
+
label: 'MVS Annotations',
|
|
52
52
|
descriptor: (0, custom_property_1.CustomPropertyDescriptor)({
|
|
53
53
|
name: 'mvs-annotations',
|
|
54
54
|
}),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2023 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
|
+
* Copyright (c) 2023-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Adam Midlik <midlik@gmail.com>
|
|
6
6
|
*/
|
|
@@ -11,6 +11,7 @@ var representation_1 = require("../../../../mol-repr/representation");
|
|
|
11
11
|
var representation_2 = require("../../../../mol-repr/structure/representation");
|
|
12
12
|
var marker_action_1 = require("../../../../mol-util/marker-action");
|
|
13
13
|
var param_definition_1 = require("../../../../mol-util/param-definition");
|
|
14
|
+
var is_mvs_model_prop_1 = require("../is-mvs-model-prop");
|
|
14
15
|
var visual_1 = require("./visual");
|
|
15
16
|
/** Components of "Custom Label" representation */
|
|
16
17
|
var CustomLabelVisuals = {
|
|
@@ -26,12 +27,12 @@ exports.CustomLabelRepresentation = CustomLabelRepresentation;
|
|
|
26
27
|
/** A thingy that is needed to register representation type "Custom Label", allowing user-defined labels at at user-defined positions */
|
|
27
28
|
exports.CustomLabelRepresentationProvider = (0, representation_2.StructureRepresentationProvider)({
|
|
28
29
|
name: 'mvs-custom-label',
|
|
29
|
-
label: 'Custom Label',
|
|
30
|
+
label: 'MVS Custom Label',
|
|
30
31
|
description: 'Displays labels with custom text',
|
|
31
32
|
factory: CustomLabelRepresentation,
|
|
32
33
|
getParams: function () { return exports.CustomLabelParams; },
|
|
33
34
|
defaultValues: param_definition_1.ParamDefinition.getDefaultValues(exports.CustomLabelParams),
|
|
34
35
|
defaultColorTheme: { name: 'uniform' },
|
|
35
36
|
defaultSizeTheme: { name: 'physical' },
|
|
36
|
-
isApplicable: function (structure) { return structure.elementCount > 0; }
|
|
37
|
+
isApplicable: function (structure) { return structure.elementCount > 0 && (0, is_mvs_model_prop_1.isMVSStructure)(structure); },
|
|
37
38
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2023 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
|
+
* Copyright (c) 2023-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Adam Midlik <midlik@gmail.com>
|
|
6
6
|
*/
|
|
@@ -21,7 +21,7 @@ exports.CustomTooltipsParams = {
|
|
|
21
21
|
};
|
|
22
22
|
/** Provider for custom structure property "CustomTooltips" */
|
|
23
23
|
exports.CustomTooltipsProvider = custom_structure_property_1.CustomStructureProperty.createProvider({
|
|
24
|
-
label: 'Custom Tooltips',
|
|
24
|
+
label: 'MVS Custom Tooltips',
|
|
25
25
|
descriptor: (0, custom_property_1.CustomPropertyDescriptor)({
|
|
26
26
|
name: 'mvs-custom-tooltips',
|
|
27
27
|
}),
|
|
@@ -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,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) 2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
|
+
*
|
|
5
|
+
* @author Adam Midlik <midlik@gmail.com>
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.isMVSStructure = exports.isMVSModel = exports.IsMVSModelProvider = exports.IsMVSModelParams = void 0;
|
|
9
|
+
var tslib_1 = require("tslib");
|
|
10
|
+
var custom_model_property_1 = require("../../../mol-model-props/common/custom-model-property");
|
|
11
|
+
var custom_property_1 = require("../../../mol-model/custom-property");
|
|
12
|
+
var param_definition_1 = require("../../../mol-util/param-definition");
|
|
13
|
+
exports.IsMVSModelParams = {
|
|
14
|
+
isMvs: param_definition_1.ParamDefinition.Boolean(false, { description: 'Flag this model as managed by MolViewSpec and enable MolViewSpec features' }),
|
|
15
|
+
};
|
|
16
|
+
/** Provider for custom model property "Is MVS" */
|
|
17
|
+
exports.IsMVSModelProvider = custom_model_property_1.CustomModelProperty.createProvider({
|
|
18
|
+
label: 'MVS',
|
|
19
|
+
descriptor: (0, custom_property_1.CustomPropertyDescriptor)({
|
|
20
|
+
name: 'mvs-is-mvs-model',
|
|
21
|
+
}),
|
|
22
|
+
type: 'static',
|
|
23
|
+
defaultParams: exports.IsMVSModelParams,
|
|
24
|
+
getParams: function (data) { return exports.IsMVSModelParams; },
|
|
25
|
+
isApplicable: function (data) { return true; },
|
|
26
|
+
obtain: function (ctx, data, props) { return tslib_1.__awaiter(void 0, void 0, void 0, function () { return tslib_1.__generator(this, function (_a) {
|
|
27
|
+
return [2 /*return*/, ({ value: {} })];
|
|
28
|
+
}); }); },
|
|
29
|
+
});
|
|
30
|
+
/** Decide if the model is flagged as managed by MolViewSpec */
|
|
31
|
+
function isMVSModel(model) {
|
|
32
|
+
var _a;
|
|
33
|
+
return !!((_a = exports.IsMVSModelProvider.props(model)) === null || _a === void 0 ? void 0 : _a.isMvs);
|
|
34
|
+
}
|
|
35
|
+
exports.isMVSModel = isMVSModel;
|
|
36
|
+
/** Decide if the structure is flagged as managed by MolViewSpec */
|
|
37
|
+
function isMVSStructure(structure) {
|
|
38
|
+
return structure.models.some(isMVSModel);
|
|
39
|
+
}
|
|
40
|
+
exports.isMVSStructure = isMVSStructure;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2023 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
|
+
* Copyright (c) 2023-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Adam Midlik <midlik@gmail.com>
|
|
6
6
|
*/
|
|
@@ -12,6 +12,7 @@ var color_2 = require("../../../mol-util/color");
|
|
|
12
12
|
var names_1 = require("../../../mol-util/color/names");
|
|
13
13
|
var param_definition_1 = require("../../../mol-util/param-definition");
|
|
14
14
|
var string_1 = require("../../../mol-util/string");
|
|
15
|
+
var is_mvs_model_prop_1 = require("./is-mvs-model-prop");
|
|
15
16
|
var selector_1 = require("./selector");
|
|
16
17
|
/** Special value that can be used as color with null-like semantic (i.e. "no color provided").
|
|
17
18
|
* By some lucky coincidence, Mol* treats -1 as white. */
|
|
@@ -121,12 +122,12 @@ exports.MultilayerColorThemeName = 'mvs-multilayer';
|
|
|
121
122
|
function makeMultilayerColorThemeProvider(colorThemeRegistry) {
|
|
122
123
|
return {
|
|
123
124
|
name: exports.MultilayerColorThemeName,
|
|
124
|
-
label: 'Multi-layer',
|
|
125
|
+
label: 'MVS Multi-layer',
|
|
125
126
|
category: color_1.ColorTheme.Category.Misc,
|
|
126
127
|
factory: function (ctx, props) { return makeMultilayerColorTheme(ctx, props, colorThemeRegistry); },
|
|
127
128
|
getParams: function (ctx) { return makeMultilayerColorThemeParams(colorThemeRegistry, ctx); },
|
|
128
129
|
defaultValues: exports.DefaultMultilayerColorThemeProps,
|
|
129
|
-
isApplicable: function (ctx) { return
|
|
130
|
+
isApplicable: function (ctx) { return !!ctx.structure && (0, is_mvs_model_prop_1.isMVSStructure)(ctx.structure); },
|
|
130
131
|
};
|
|
131
132
|
}
|
|
132
133
|
exports.makeMultilayerColorThemeProvider = makeMultilayerColorThemeProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2023 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
|
+
* Copyright (c) 2023-2024 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author Adam Midlik <midlik@gmail.com>
|
|
6
6
|
*/
|
|
@@ -17,6 +17,7 @@ var annotation_structure_component_1 = require("./components/annotation-structur
|
|
|
17
17
|
var annotation_tooltips_prop_1 = require("./components/annotation-tooltips-prop");
|
|
18
18
|
var representation_2 = require("./components/custom-label/representation");
|
|
19
19
|
var custom_tooltips_prop_1 = require("./components/custom-tooltips-prop");
|
|
20
|
+
var is_mvs_model_prop_1 = require("./components/is-mvs-model-prop");
|
|
20
21
|
var load_helpers_1 = require("./load-helpers");
|
|
21
22
|
var tree_schema_1 = require("./tree/generic/tree-schema");
|
|
22
23
|
var conversion_1 = require("./tree/molstar/conversion");
|
|
@@ -142,10 +143,12 @@ var MolstarLoadingActions = {
|
|
|
142
143
|
});
|
|
143
144
|
load_helpers_1.UpdateTarget.apply(model, model_1.CustomModelProperties, {
|
|
144
145
|
properties: (_a = {},
|
|
146
|
+
_a[is_mvs_model_prop_1.IsMVSModelProvider.descriptor.name] = { isMvs: true },
|
|
145
147
|
_a[annotation_prop_1.MVSAnnotationsProvider.descriptor.name] = { annotations: annotations },
|
|
146
148
|
_a),
|
|
147
149
|
autoAttach: [
|
|
148
|
-
|
|
150
|
+
is_mvs_model_prop_1.IsMVSModelProvider.descriptor.name,
|
|
151
|
+
annotation_prop_1.MVSAnnotationsProvider.descriptor.name,
|
|
149
152
|
],
|
|
150
153
|
});
|
|
151
154
|
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;
|