molstar 3.0.0 → 3.2.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/LICENSE +20 -20
- package/README.md +194 -194
- package/build/viewer/embedded.html +43 -43
- package/build/viewer/index.html +106 -106
- package/build/viewer/molstar.js +1 -1
- package/lib/apps/docking-viewer/index.html +36 -36
- package/lib/apps/docking-viewer/viewport.d.ts +2 -0
- package/lib/apps/viewer/app.d.ts +1 -0
- package/lib/apps/viewer/app.js +6 -3
- package/lib/apps/viewer/embedded.html +43 -43
- package/lib/apps/viewer/index.html +106 -106
- package/lib/commonjs/apps/docking-viewer/viewport.d.ts +2 -0
- package/lib/commonjs/apps/viewer/app.d.ts +1 -0
- package/lib/commonjs/apps/viewer/app.js +8 -5
- package/lib/commonjs/extensions/anvil/behavior.d.ts +1 -0
- package/lib/commonjs/extensions/dnatco/confal-pyramids/behavior.d.ts +1 -0
- package/lib/commonjs/extensions/model-archive/quality-assessment/behavior.d.ts +2 -0
- package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +4 -2
- package/lib/commonjs/extensions/rcsb/graphql/types.d.ts +11 -11
- package/lib/commonjs/extensions/rcsb/validation-report/behavior.d.ts +3 -0
- package/lib/commonjs/mol-canvas3d/helper/interaction-events.js +1 -1
- package/lib/commonjs/mol-canvas3d/passes/draw.d.ts +1 -1
- package/lib/commonjs/mol-canvas3d/passes/draw.js +3 -3
- package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +2 -2
- package/lib/commonjs/mol-geo/geometry/lines/lines.d.ts +0 -1
- package/lib/commonjs/mol-geo/geometry/points/points.d.ts +1 -1
- package/lib/commonjs/mol-gl/renderer.d.ts +2 -2
- package/lib/commonjs/mol-gl/renderer.js +3 -3
- package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.js +2 -2
- package/lib/commonjs/mol-gl/shader/cylinders.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/cylinders.frag.js +2 -2
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/direct-volume.frag.js +2 -2
- package/lib/commonjs/mol-gl/shader/mesh.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/mesh.frag.js +2 -2
- package/lib/commonjs/mol-gl/shader/spheres.frag.d.ts +2 -2
- package/lib/commonjs/mol-gl/shader/spheres.frag.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 +24 -2
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +23 -1
- package/lib/commonjs/mol-math/geometry/primitives/sphere3d.d.ts +1 -1
- package/lib/commonjs/mol-math/geometry/primitives/sphere3d.js +17 -4
- package/lib/commonjs/mol-model/structure/export/categories/atom_site.js +68 -1
- package/lib/commonjs/mol-model/structure/export/categories/secondary-structure.js +8 -8
- package/lib/commonjs/mol-model/structure/model/properties/coarse/hierarchy.d.ts +1 -1
- package/lib/commonjs/mol-model/structure/model/properties/coarse/hierarchy.js +24 -2
- package/lib/commonjs/mol-model/structure/structure/element/loci.d.ts +1 -1
- package/lib/commonjs/mol-model/structure/structure/element/loci.js +4 -2
- package/lib/commonjs/mol-model/structure/structure/util/superposition-sifts-mapping.d.ts +21 -0
- package/lib/commonjs/mol-model/structure/structure/util/{superposition-db-mapping.js → superposition-sifts-mapping.js} +40 -20
- package/lib/commonjs/mol-model/volume/volume.d.ts +7 -0
- package/lib/commonjs/mol-model/volume/volume.js +18 -0
- package/lib/commonjs/mol-model-formats/structure/basic/schema.d.ts +5 -0
- package/lib/commonjs/mol-model-formats/structure/common/property.d.ts +5 -2
- package/lib/commonjs/mol-model-formats/structure/common/property.js +20 -8
- package/lib/commonjs/mol-model-formats/structure/property/bonds/index-pair.d.ts +1 -0
- package/lib/commonjs/mol-model-formats/structure/property/bonds/index-pair.js +2 -1
- package/lib/commonjs/mol-model-props/computed/interactions/common.d.ts +1 -1
- package/lib/commonjs/mol-model-props/computed/interactions/common.js +16 -24
- package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -1
- package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.js +44 -18
- package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.js +14 -4
- package/lib/commonjs/mol-model-props/sequence/{best-database-mapping.d.ts → sifts-mapping.d.ts} +7 -5
- package/lib/commonjs/mol-model-props/sequence/{best-database-mapping.js → sifts-mapping.js} +29 -26
- package/lib/{mol-model-props/sequence/themes/best-database-mapping.d.ts → commonjs/mol-model-props/sequence/themes/sifts-mapping.d.ts} +5 -5
- package/lib/commonjs/mol-model-props/sequence/themes/{best-database-mapping.js → sifts-mapping.js} +22 -22
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/sequence/{best-database-mapping.d.ts → sifts-mapping.d.ts} +1 -1
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props/sequence/{best-database-mapping.js → sifts-mapping.js} +11 -11
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props.d.ts +1 -1
- package/lib/commonjs/mol-plugin/behavior/dynamic/custom-props.js +2 -2
- package/lib/commonjs/mol-plugin/behavior/dynamic/representation.d.ts +1 -1
- package/lib/commonjs/mol-plugin/behavior/dynamic/representation.js +11 -6
- package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +2 -1
- package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js +16 -7
- package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
- package/lib/commonjs/mol-plugin/behavior/static/representation.js +1 -1
- package/lib/commonjs/mol-plugin-state/actions/volume.d.ts +1 -1
- package/lib/commonjs/mol-plugin-state/actions/volume.js +3 -3
- package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +2 -0
- package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy.d.ts +1 -0
- package/lib/commonjs/mol-plugin-state/builder/structure/representation-preset.d.ts +155 -125
- package/lib/commonjs/mol-plugin-state/builder/structure/representation-preset.js +5 -31
- package/lib/commonjs/mol-plugin-state/builder/structure/representation.d.ts +2 -1
- package/lib/commonjs/mol-plugin-state/formats/volume.js +1 -11
- package/lib/commonjs/mol-plugin-state/manager/structure/component.d.ts +2 -1
- package/lib/commonjs/mol-plugin-state/manager/structure/component.js +11 -8
- package/lib/commonjs/mol-plugin-ui/controls/icons.d.ts +2 -1
- package/lib/commonjs/mol-plugin-ui/controls/icons.js +8 -5
- package/lib/commonjs/mol-plugin-ui/controls.d.ts +1 -1
- package/lib/commonjs/mol-plugin-ui/controls.js +2 -1
- package/lib/commonjs/mol-plugin-ui/structure/quick-styles.d.ts +25 -0
- package/lib/commonjs/mol-plugin-ui/structure/quick-styles.js +131 -0
- package/lib/commonjs/mol-plugin-ui/structure/superposition.d.ts +4 -1
- package/lib/commonjs/mol-plugin-ui/structure/superposition.js +66 -30
- package/lib/commonjs/mol-plugin-ui/structure/volume.js +4 -4
- package/lib/commonjs/mol-repr/shape/loci/common.d.ts +1 -1
- package/lib/commonjs/mol-repr/shape/loci/common.js +3 -3
- package/lib/commonjs/mol-repr/structure/registry.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +4 -4
- package/lib/commonjs/mol-repr/structure/representation/cartoon.js +3 -3
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.js +2 -2
- package/lib/commonjs/mol-repr/structure/visual/util/bond.d.ts +1 -1
- package/lib/commonjs/mol-repr/structure/visual/util/bond.js +5 -4
- package/lib/commonjs/mol-script/language/builder.d.ts +1 -0
- package/lib/commonjs/mol-state/transform.js +12 -2
- package/lib/commonjs/mol-theme/color/element-symbol.d.ts +46 -2
- package/lib/commonjs/mol-theme/color/element-symbol.js +15 -10
- package/lib/commonjs/mol-theme/color/entity-id.js +14 -11
- package/lib/commonjs/mol-theme/color/illustrative.d.ts +32 -32
- package/lib/commonjs/mol-theme/color.d.ts +39 -17
- package/lib/commonjs/servers/volume/config.js +3 -3
- package/lib/commonjs/servers/volume/query.js +1 -1
- package/lib/examples/alpha-orbitals/index.html +61 -61
- package/lib/examples/basic-wrapper/index.html +137 -137
- package/lib/examples/lighting/index.html +88 -88
- package/lib/examples/proteopedia-wrapper/index.html +236 -236
- package/lib/extensions/anvil/behavior.d.ts +1 -0
- package/lib/extensions/dnatco/confal-pyramids/behavior.d.ts +1 -0
- package/lib/extensions/model-archive/quality-assessment/behavior.d.ts +2 -0
- package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +4 -2
- package/lib/extensions/rcsb/graphql/types.d.ts +11 -11
- package/lib/extensions/rcsb/validation-report/behavior.d.ts +3 -0
- package/lib/mol-canvas3d/helper/interaction-events.js +1 -1
- package/lib/mol-canvas3d/passes/draw.d.ts +1 -1
- package/lib/mol-canvas3d/passes/draw.js +3 -3
- package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +2 -2
- package/lib/mol-geo/geometry/lines/lines.d.ts +0 -1
- package/lib/mol-geo/geometry/points/points.d.ts +1 -1
- package/lib/mol-gl/renderer.d.ts +2 -2
- package/lib/mol-gl/renderer.js +3 -3
- package/lib/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +2 -2
- package/lib/mol-gl/shader/chunks/apply-light-color.glsl.js +2 -2
- package/lib/mol-gl/shader/cylinders.frag.d.ts +2 -2
- package/lib/mol-gl/shader/cylinders.frag.js +2 -2
- package/lib/mol-gl/shader/direct-volume.frag.d.ts +2 -2
- package/lib/mol-gl/shader/direct-volume.frag.js +2 -2
- package/lib/mol-gl/shader/mesh.frag.d.ts +2 -2
- package/lib/mol-gl/shader/mesh.frag.js +2 -2
- package/lib/mol-gl/shader/spheres.frag.d.ts +2 -2
- package/lib/mol-gl/shader/spheres.frag.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 +24 -2
- package/lib/mol-io/reader/cif/schema/mmcif.js +23 -1
- package/lib/mol-math/geometry/primitives/sphere3d.d.ts +1 -1
- package/lib/mol-math/geometry/primitives/sphere3d.js +17 -4
- package/lib/mol-model/structure/export/categories/atom_site.js +68 -1
- package/lib/mol-model/structure/export/categories/secondary-structure.js +8 -8
- package/lib/mol-model/structure/model/properties/coarse/hierarchy.d.ts +1 -1
- package/lib/mol-model/structure/model/properties/coarse/hierarchy.js +24 -2
- package/lib/mol-model/structure/structure/element/loci.d.ts +1 -1
- package/lib/mol-model/structure/structure/element/loci.js +4 -2
- package/lib/mol-model/structure/structure/util/superposition-sifts-mapping.d.ts +21 -0
- package/lib/mol-model/structure/structure/util/{superposition-db-mapping.js → superposition-sifts-mapping.js} +38 -18
- package/lib/mol-model/volume/volume.d.ts +7 -0
- package/lib/mol-model/volume/volume.js +18 -0
- package/lib/mol-model-formats/structure/basic/schema.d.ts +5 -0
- package/lib/mol-model-formats/structure/common/property.d.ts +5 -2
- package/lib/mol-model-formats/structure/common/property.js +20 -8
- package/lib/mol-model-formats/structure/property/bonds/index-pair.d.ts +1 -0
- package/lib/mol-model-formats/structure/property/bonds/index-pair.js +2 -1
- package/lib/mol-model-props/computed/interactions/common.d.ts +1 -1
- package/lib/mol-model-props/computed/interactions/common.js +16 -24
- package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -1
- package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.js +44 -18
- package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.js +14 -4
- package/lib/mol-model-props/sequence/{best-database-mapping.d.ts → sifts-mapping.d.ts} +7 -5
- package/lib/mol-model-props/sequence/{best-database-mapping.js → sifts-mapping.js} +28 -25
- package/lib/{commonjs/mol-model-props/sequence/themes/best-database-mapping.d.ts → mol-model-props/sequence/themes/sifts-mapping.d.ts} +5 -5
- package/lib/mol-model-props/sequence/themes/{best-database-mapping.js → sifts-mapping.js} +19 -19
- package/lib/mol-plugin/behavior/dynamic/custom-props/sequence/{best-database-mapping.d.ts → sifts-mapping.d.ts} +1 -1
- package/lib/mol-plugin/behavior/dynamic/custom-props/sequence/{best-database-mapping.js → sifts-mapping.js} +8 -8
- package/lib/mol-plugin/behavior/dynamic/custom-props.d.ts +1 -1
- package/lib/mol-plugin/behavior/dynamic/custom-props.js +1 -1
- package/lib/mol-plugin/behavior/dynamic/representation.d.ts +1 -1
- package/lib/mol-plugin/behavior/dynamic/representation.js +11 -6
- package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +2 -1
- package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js +16 -7
- package/lib/mol-plugin/behavior/dynamic/volume-streaming/model.d.ts +2 -3
- package/lib/mol-plugin/behavior/static/representation.js +1 -1
- package/lib/mol-plugin/version.js +2 -2
- package/lib/mol-plugin-state/actions/volume.d.ts +1 -1
- package/lib/mol-plugin-state/actions/volume.js +3 -3
- package/lib/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +2 -0
- package/lib/mol-plugin-state/builder/structure/hierarchy.d.ts +1 -0
- package/lib/mol-plugin-state/builder/structure/representation-preset.d.ts +155 -125
- package/lib/mol-plugin-state/builder/structure/representation-preset.js +5 -31
- package/lib/mol-plugin-state/builder/structure/representation.d.ts +2 -1
- package/lib/mol-plugin-state/formats/volume.js +1 -11
- package/lib/mol-plugin-state/manager/structure/component.d.ts +2 -1
- package/lib/mol-plugin-state/manager/structure/component.js +11 -8
- package/lib/mol-plugin-ui/controls/icons.d.ts +2 -1
- package/lib/mol-plugin-ui/controls/icons.js +5 -3
- package/lib/mol-plugin-ui/controls.d.ts +1 -1
- package/lib/mol-plugin-ui/controls.js +2 -1
- package/lib/mol-plugin-ui/skin/base/base.scss +32 -32
- package/lib/mol-plugin-ui/skin/base/components/controls-base.scss +333 -333
- package/lib/mol-plugin-ui/skin/base/components/controls.scss +418 -418
- package/lib/mol-plugin-ui/skin/base/components/help.scss +27 -27
- package/lib/mol-plugin-ui/skin/base/components/line-graph.scss +67 -67
- package/lib/mol-plugin-ui/skin/base/components/log.scss +100 -100
- package/lib/mol-plugin-ui/skin/base/components/misc.scss +643 -643
- package/lib/mol-plugin-ui/skin/base/components/sequence.scss +125 -125
- package/lib/mol-plugin-ui/skin/base/components/slider.scss +165 -165
- package/lib/mol-plugin-ui/skin/base/components/tasks.scss +99 -99
- package/lib/mol-plugin-ui/skin/base/components/toast.scss +83 -83
- package/lib/mol-plugin-ui/skin/base/components/transformer.scss +163 -163
- package/lib/mol-plugin-ui/skin/base/components/viewport.scss +127 -127
- package/lib/mol-plugin-ui/skin/base/layout/common.scss +71 -71
- package/lib/mol-plugin-ui/skin/base/layout/controls-landscape.scss +89 -89
- package/lib/mol-plugin-ui/skin/base/layout/controls-outside.scss +98 -98
- package/lib/mol-plugin-ui/skin/base/layout/controls-portrait.scss +108 -108
- package/lib/mol-plugin-ui/skin/base/layout.scss +40 -40
- package/lib/mol-plugin-ui/skin/base/logo.scss +12 -12
- package/lib/mol-plugin-ui/skin/base/normalize.scss +209 -209
- package/lib/mol-plugin-ui/skin/base/ui.scss +40 -40
- package/lib/mol-plugin-ui/skin/base/variables.scss +85 -85
- package/lib/mol-plugin-ui/skin/blue.scss +1 -1
- package/lib/mol-plugin-ui/skin/colors/blue.scss +23 -23
- package/lib/mol-plugin-ui/skin/colors/dark.scss +23 -23
- package/lib/mol-plugin-ui/skin/colors/light.scss +29 -29
- package/lib/mol-plugin-ui/skin/dark.scss +1 -1
- package/lib/mol-plugin-ui/skin/light.scss +1 -1
- package/lib/mol-plugin-ui/structure/quick-styles.d.ts +25 -0
- package/lib/mol-plugin-ui/structure/quick-styles.js +128 -0
- package/lib/mol-plugin-ui/structure/superposition.d.ts +4 -1
- package/lib/mol-plugin-ui/structure/superposition.js +66 -30
- package/lib/mol-plugin-ui/structure/volume.js +4 -4
- package/lib/mol-repr/shape/loci/common.d.ts +1 -1
- package/lib/mol-repr/shape/loci/common.js +3 -3
- package/lib/mol-repr/structure/registry.d.ts +1 -1
- package/lib/mol-repr/structure/representation/cartoon.d.ts +4 -4
- package/lib/mol-repr/structure/representation/cartoon.js +3 -3
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -1
- package/lib/mol-repr/structure/visual/molecular-surface-mesh.js +2 -2
- package/lib/mol-repr/structure/visual/util/bond.d.ts +1 -1
- package/lib/mol-repr/structure/visual/util/bond.js +5 -4
- package/lib/mol-script/language/builder.d.ts +1 -0
- package/lib/mol-state/transform.js +12 -2
- package/lib/mol-theme/color/element-symbol.d.ts +46 -2
- package/lib/mol-theme/color/element-symbol.js +15 -10
- package/lib/mol-theme/color/entity-id.js +14 -11
- package/lib/mol-theme/color/illustrative.d.ts +32 -32
- package/lib/mol-theme/color.d.ts +39 -17
- package/lib/servers/volume/config.js +3 -3
- package/lib/servers/volume/query.js +1 -1
- package/package.json +160 -163
- package/lib/commonjs/mol-model/structure/structure/util/superposition-db-mapping.d.ts +0 -13
- package/lib/mol-model/structure/structure/util/superposition-db-mapping.d.ts +0 -13
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2018-
|
|
2
|
+
* Copyright (c) 2018-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
@@ -72,8 +72,8 @@ var DownloadDensity = StateAction.build({
|
|
|
72
72
|
case 'pdb-xray':
|
|
73
73
|
downloadParams = src.params.provider.server === 'pdbe' ? {
|
|
74
74
|
url: Asset.Url(src.params.type === '2fofc'
|
|
75
|
-
? "
|
|
76
|
-
: "
|
|
75
|
+
? "https://www.ebi.ac.uk/pdbe/coordinates/files/".concat(src.params.provider.id.toLowerCase(), ".ccp4")
|
|
76
|
+
: "https://www.ebi.ac.uk/pdbe/coordinates/files/".concat(src.params.provider.id.toLowerCase(), "_diff.ccp4")),
|
|
77
77
|
isBinary: true,
|
|
78
78
|
label: "PDBe X-ray map: ".concat(src.params.provider.id)
|
|
79
79
|
} : {
|
|
@@ -66,6 +66,7 @@ export declare const PresetTrajectoryHierarchy: {
|
|
|
66
66
|
}>, "symmetry-assembly"> | undefined;
|
|
67
67
|
representationPresetParams: PD.Normalize<{
|
|
68
68
|
ignoreHydrogens: any;
|
|
69
|
+
ignoreLight: any;
|
|
69
70
|
quality: any;
|
|
70
71
|
theme: any;
|
|
71
72
|
}> | undefined;
|
|
@@ -90,6 +91,7 @@ export declare const PresetTrajectoryHierarchy: {
|
|
|
90
91
|
useDefaultIfSingleModel: boolean | undefined;
|
|
91
92
|
representationPresetParams: PD.Normalize<{
|
|
92
93
|
ignoreHydrogens: any;
|
|
94
|
+
ignoreLight: any;
|
|
93
95
|
quality: any;
|
|
94
96
|
theme: any;
|
|
95
97
|
}> | undefined;
|
|
@@ -13,7 +13,6 @@ import { PluginContext } from '../../../mol-plugin/context';
|
|
|
13
13
|
import { StateObjectRef, StateObjectSelector } from '../../../mol-state';
|
|
14
14
|
import { StaticStructureComponentType } from '../../helpers/structure-component';
|
|
15
15
|
import { StructureSelectionQueries as Q } from '../../helpers/structure-selection-query';
|
|
16
|
-
import { Color } from '../../../mol-util/color';
|
|
17
16
|
export interface StructureRepresentationPresetProvider<P = any, S extends _Result = _Result> extends PresetProvider<PluginStateObject.Molecule.Structure, P, S> {
|
|
18
17
|
}
|
|
19
18
|
export declare function StructureRepresentationPresetProvider<P, S extends _Result>(repr: StructureRepresentationPresetProvider<P, S>): StructureRepresentationPresetProvider<P, S>;
|
|
@@ -30,11 +29,12 @@ export declare namespace StructureRepresentationPresetProvider {
|
|
|
30
29
|
};
|
|
31
30
|
const CommonParams: {
|
|
32
31
|
ignoreHydrogens: PD.Base<boolean | undefined>;
|
|
32
|
+
ignoreLight: PD.Base<boolean | undefined>;
|
|
33
33
|
quality: PD.Base<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined>;
|
|
34
34
|
theme: PD.Base<PD.Normalize<{
|
|
35
|
-
globalName: "uniform" | "occupancy" | "element-index" | "element-symbol" | "shape-group" | "uncertainty" | "carbohydrate-symbol" | "chain-id" | "operator-name" | "molecule-type" | "polymer-id" | "polymer-index" | "residue-name" | "secondary-structure" | "sequence-id" | "unit-index" | "
|
|
35
|
+
globalName: "uniform" | "occupancy" | "element-index" | "element-symbol" | "shape-group" | "uncertainty" | "carbohydrate-symbol" | "chain-id" | "operator-name" | "entity-id" | "entity-source" | "molecule-type" | "polymer-id" | "polymer-index" | "residue-name" | "secondary-structure" | "sequence-id" | "unit-index" | "illustrative" | "hydrophobicity" | "model-index" | "operator-hkl" | "partial-charge" | "atom-id" | "volume-value" | undefined;
|
|
36
36
|
carbonColor: "element-symbol" | "chain-id" | "operator-name" | undefined;
|
|
37
|
-
symmetryColor: "uniform" | "occupancy" | "element-index" | "element-symbol" | "shape-group" | "uncertainty" | "carbohydrate-symbol" | "chain-id" | "operator-name" | "molecule-type" | "polymer-id" | "polymer-index" | "residue-name" | "secondary-structure" | "sequence-id" | "unit-index" | "
|
|
37
|
+
symmetryColor: "uniform" | "occupancy" | "element-index" | "element-symbol" | "shape-group" | "uncertainty" | "carbohydrate-symbol" | "chain-id" | "operator-name" | "entity-id" | "entity-source" | "molecule-type" | "polymer-id" | "polymer-index" | "residue-name" | "secondary-structure" | "sequence-id" | "unit-index" | "illustrative" | "hydrophobicity" | "model-index" | "operator-hkl" | "partial-charge" | "atom-id" | "volume-value" | undefined;
|
|
38
38
|
focus: PD.Normalize<{
|
|
39
39
|
name: any;
|
|
40
40
|
params: any;
|
|
@@ -45,11 +45,12 @@ export declare namespace StructureRepresentationPresetProvider {
|
|
|
45
45
|
function reprBuilder(plugin: PluginContext, params: CommonParams, structure?: Structure): {
|
|
46
46
|
update: import("../../../mol-state/state/builder").StateBuilder.Root;
|
|
47
47
|
builder: import("./representation").StructureRepresentationBuilder;
|
|
48
|
-
color: "uniform" | "occupancy" | "element-index" | "element-symbol" | "shape-group" | "uncertainty" | "carbohydrate-symbol" | "chain-id" | "operator-name" | "molecule-type" | "polymer-id" | "polymer-index" | "residue-name" | "secondary-structure" | "sequence-id" | "unit-index" | "
|
|
49
|
-
symmetryColor: "uniform" | "occupancy" | "element-index" | "element-symbol" | "shape-group" | "uncertainty" | "carbohydrate-symbol" | "chain-id" | "operator-name" | "molecule-type" | "polymer-id" | "polymer-index" | "residue-name" | "secondary-structure" | "sequence-id" | "unit-index" | "
|
|
48
|
+
color: "uniform" | "occupancy" | "element-index" | "element-symbol" | "shape-group" | "uncertainty" | "carbohydrate-symbol" | "chain-id" | "operator-name" | "entity-id" | "entity-source" | "molecule-type" | "polymer-id" | "polymer-index" | "residue-name" | "secondary-structure" | "sequence-id" | "unit-index" | "illustrative" | "hydrophobicity" | "model-index" | "operator-hkl" | "partial-charge" | "atom-id" | "volume-value" | undefined;
|
|
49
|
+
symmetryColor: "uniform" | "occupancy" | "element-index" | "element-symbol" | "shape-group" | "uncertainty" | "carbohydrate-symbol" | "chain-id" | "operator-name" | "entity-id" | "entity-source" | "molecule-type" | "polymer-id" | "polymer-index" | "residue-name" | "secondary-structure" | "sequence-id" | "unit-index" | "illustrative" | "hydrophobicity" | "model-index" | "operator-hkl" | "partial-charge" | "atom-id" | "volume-value" | undefined;
|
|
50
50
|
typeParams: {
|
|
51
51
|
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest";
|
|
52
52
|
ignoreHydrogens: boolean;
|
|
53
|
+
ignoreLight: boolean;
|
|
53
54
|
};
|
|
54
55
|
ballAndStickColor: Partial<PD.Values<{
|
|
55
56
|
carbonColor: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "element-symbol"> | PD.NamedParams<PD.Normalize<{
|
|
@@ -75,129 +76,151 @@ export declare namespace StructureRepresentationPresetProvider {
|
|
|
75
76
|
}>, "generate"> | PD.NamedParams<PD.Normalize<{
|
|
76
77
|
list: any;
|
|
77
78
|
}>, "colors">;
|
|
78
|
-
}>, "operator-name"
|
|
79
|
+
}>, "operator-name"> | PD.NamedParams<PD.Normalize<{
|
|
80
|
+
palette: PD.NamedParams<PD.Normalize<{
|
|
81
|
+
maxCount: any;
|
|
82
|
+
hue: any;
|
|
83
|
+
chroma: any;
|
|
84
|
+
luminance: any;
|
|
85
|
+
clusteringStepCount: any;
|
|
86
|
+
minSampleCount: any;
|
|
87
|
+
}>, "generate"> | PD.NamedParams<PD.Normalize<{
|
|
88
|
+
list: any;
|
|
89
|
+
}>, "colors">;
|
|
90
|
+
}>, "entity-id"> | PD.NamedParams<PD.Normalize<{
|
|
91
|
+
palette: PD.NamedParams<PD.Normalize<{
|
|
92
|
+
maxCount: any;
|
|
93
|
+
hue: any;
|
|
94
|
+
chroma: any;
|
|
95
|
+
luminance: any;
|
|
96
|
+
clusteringStepCount: any;
|
|
97
|
+
minSampleCount: any;
|
|
98
|
+
}>, "generate"> | PD.NamedParams<PD.Normalize<{
|
|
99
|
+
list: any;
|
|
100
|
+
}>, "colors">;
|
|
101
|
+
}>, "entity-source">>;
|
|
79
102
|
saturation: PD.Numeric;
|
|
80
103
|
lightness: PD.Numeric;
|
|
81
104
|
colors: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "default"> | PD.NamedParams<PD.Normalize<{
|
|
82
|
-
H: Color;
|
|
83
|
-
D: Color;
|
|
84
|
-
T: Color;
|
|
85
|
-
HE: Color;
|
|
86
|
-
LI: Color;
|
|
87
|
-
BE: Color;
|
|
88
|
-
B: Color;
|
|
89
|
-
C: Color;
|
|
90
|
-
N: Color;
|
|
91
|
-
O: Color;
|
|
92
|
-
F: Color;
|
|
93
|
-
NE: Color;
|
|
94
|
-
NA: Color;
|
|
95
|
-
MG: Color;
|
|
96
|
-
AL: Color;
|
|
97
|
-
SI: Color;
|
|
98
|
-
P: Color;
|
|
99
|
-
S: Color;
|
|
100
|
-
CL: Color;
|
|
101
|
-
AR: Color;
|
|
102
|
-
K: Color;
|
|
103
|
-
CA: Color;
|
|
104
|
-
SC: Color;
|
|
105
|
-
TI: Color;
|
|
106
|
-
V: Color;
|
|
107
|
-
CR: Color;
|
|
108
|
-
MN: Color;
|
|
109
|
-
FE: Color;
|
|
110
|
-
CO: Color;
|
|
111
|
-
NI: Color;
|
|
112
|
-
CU: Color;
|
|
113
|
-
ZN: Color;
|
|
114
|
-
GA: Color;
|
|
115
|
-
GE: Color;
|
|
116
|
-
AS: Color;
|
|
117
|
-
SE: Color;
|
|
118
|
-
BR: Color;
|
|
119
|
-
KR: Color;
|
|
120
|
-
RB: Color;
|
|
121
|
-
SR: Color;
|
|
122
|
-
Y: Color;
|
|
123
|
-
ZR: Color;
|
|
124
|
-
NB: Color;
|
|
125
|
-
MO: Color;
|
|
126
|
-
TC: Color;
|
|
127
|
-
RU: Color;
|
|
128
|
-
RH: Color;
|
|
129
|
-
PD: Color;
|
|
130
|
-
AG: Color;
|
|
131
|
-
CD: Color;
|
|
132
|
-
IN: Color;
|
|
133
|
-
SN: Color;
|
|
134
|
-
SB: Color;
|
|
135
|
-
TE: Color;
|
|
136
|
-
I: Color;
|
|
137
|
-
XE: Color;
|
|
138
|
-
CS: Color;
|
|
139
|
-
BA: Color;
|
|
140
|
-
LA: Color;
|
|
141
|
-
CE: Color;
|
|
142
|
-
PR: Color;
|
|
143
|
-
ND: Color;
|
|
144
|
-
PM: Color;
|
|
145
|
-
SM: Color;
|
|
146
|
-
EU: Color;
|
|
147
|
-
GD: Color;
|
|
148
|
-
TB: Color;
|
|
149
|
-
DY: Color;
|
|
150
|
-
HO: Color;
|
|
151
|
-
ER: Color;
|
|
152
|
-
TM: Color;
|
|
153
|
-
YB: Color;
|
|
154
|
-
LU: Color;
|
|
155
|
-
HF: Color;
|
|
156
|
-
TA: Color;
|
|
157
|
-
W: Color;
|
|
158
|
-
RE: Color;
|
|
159
|
-
OS: Color;
|
|
160
|
-
IR: Color;
|
|
161
|
-
PT: Color;
|
|
162
|
-
AU: Color;
|
|
163
|
-
HG: Color;
|
|
164
|
-
TL: Color;
|
|
165
|
-
PB: Color;
|
|
166
|
-
BI: Color;
|
|
167
|
-
PO: Color;
|
|
168
|
-
AT: Color;
|
|
169
|
-
RN: Color;
|
|
170
|
-
FR: Color;
|
|
171
|
-
RA: Color;
|
|
172
|
-
AC: Color;
|
|
173
|
-
TH: Color;
|
|
174
|
-
PA: Color;
|
|
175
|
-
U: Color;
|
|
176
|
-
NP: Color;
|
|
177
|
-
PU: Color;
|
|
178
|
-
AM: Color;
|
|
179
|
-
CM: Color;
|
|
180
|
-
BK: Color;
|
|
181
|
-
CF: Color;
|
|
182
|
-
ES: Color;
|
|
183
|
-
FM: Color;
|
|
184
|
-
MD: Color;
|
|
185
|
-
NO: Color;
|
|
186
|
-
LR: Color;
|
|
187
|
-
RF: Color;
|
|
188
|
-
DB: Color;
|
|
189
|
-
SG: Color;
|
|
190
|
-
BH: Color;
|
|
191
|
-
HS: Color;
|
|
192
|
-
MT: Color;
|
|
193
|
-
DS: Color;
|
|
194
|
-
RG: Color;
|
|
195
|
-
CN: Color;
|
|
196
|
-
UUT: Color;
|
|
197
|
-
FL: Color;
|
|
198
|
-
UUP: Color;
|
|
199
|
-
LV: Color;
|
|
200
|
-
UUH: Color;
|
|
105
|
+
H: import("../../../mol-util/color").Color;
|
|
106
|
+
D: import("../../../mol-util/color").Color;
|
|
107
|
+
T: import("../../../mol-util/color").Color;
|
|
108
|
+
HE: import("../../../mol-util/color").Color;
|
|
109
|
+
LI: import("../../../mol-util/color").Color;
|
|
110
|
+
BE: import("../../../mol-util/color").Color;
|
|
111
|
+
B: import("../../../mol-util/color").Color;
|
|
112
|
+
C: import("../../../mol-util/color").Color;
|
|
113
|
+
N: import("../../../mol-util/color").Color;
|
|
114
|
+
O: import("../../../mol-util/color").Color;
|
|
115
|
+
F: import("../../../mol-util/color").Color;
|
|
116
|
+
NE: import("../../../mol-util/color").Color;
|
|
117
|
+
NA: import("../../../mol-util/color").Color;
|
|
118
|
+
MG: import("../../../mol-util/color").Color;
|
|
119
|
+
AL: import("../../../mol-util/color").Color;
|
|
120
|
+
SI: import("../../../mol-util/color").Color;
|
|
121
|
+
P: import("../../../mol-util/color").Color;
|
|
122
|
+
S: import("../../../mol-util/color").Color;
|
|
123
|
+
CL: import("../../../mol-util/color").Color;
|
|
124
|
+
AR: import("../../../mol-util/color").Color;
|
|
125
|
+
K: import("../../../mol-util/color").Color;
|
|
126
|
+
CA: import("../../../mol-util/color").Color;
|
|
127
|
+
SC: import("../../../mol-util/color").Color;
|
|
128
|
+
TI: import("../../../mol-util/color").Color;
|
|
129
|
+
V: import("../../../mol-util/color").Color;
|
|
130
|
+
CR: import("../../../mol-util/color").Color;
|
|
131
|
+
MN: import("../../../mol-util/color").Color;
|
|
132
|
+
FE: import("../../../mol-util/color").Color;
|
|
133
|
+
CO: import("../../../mol-util/color").Color;
|
|
134
|
+
NI: import("../../../mol-util/color").Color;
|
|
135
|
+
CU: import("../../../mol-util/color").Color;
|
|
136
|
+
ZN: import("../../../mol-util/color").Color;
|
|
137
|
+
GA: import("../../../mol-util/color").Color;
|
|
138
|
+
GE: import("../../../mol-util/color").Color;
|
|
139
|
+
AS: import("../../../mol-util/color").Color;
|
|
140
|
+
SE: import("../../../mol-util/color").Color;
|
|
141
|
+
BR: import("../../../mol-util/color").Color;
|
|
142
|
+
KR: import("../../../mol-util/color").Color;
|
|
143
|
+
RB: import("../../../mol-util/color").Color;
|
|
144
|
+
SR: import("../../../mol-util/color").Color;
|
|
145
|
+
Y: import("../../../mol-util/color").Color;
|
|
146
|
+
ZR: import("../../../mol-util/color").Color;
|
|
147
|
+
NB: import("../../../mol-util/color").Color;
|
|
148
|
+
MO: import("../../../mol-util/color").Color;
|
|
149
|
+
TC: import("../../../mol-util/color").Color;
|
|
150
|
+
RU: import("../../../mol-util/color").Color;
|
|
151
|
+
RH: import("../../../mol-util/color").Color;
|
|
152
|
+
PD: import("../../../mol-util/color").Color;
|
|
153
|
+
AG: import("../../../mol-util/color").Color;
|
|
154
|
+
CD: import("../../../mol-util/color").Color;
|
|
155
|
+
IN: import("../../../mol-util/color").Color;
|
|
156
|
+
SN: import("../../../mol-util/color").Color;
|
|
157
|
+
SB: import("../../../mol-util/color").Color;
|
|
158
|
+
TE: import("../../../mol-util/color").Color;
|
|
159
|
+
I: import("../../../mol-util/color").Color;
|
|
160
|
+
XE: import("../../../mol-util/color").Color;
|
|
161
|
+
CS: import("../../../mol-util/color").Color;
|
|
162
|
+
BA: import("../../../mol-util/color").Color;
|
|
163
|
+
LA: import("../../../mol-util/color").Color;
|
|
164
|
+
CE: import("../../../mol-util/color").Color;
|
|
165
|
+
PR: import("../../../mol-util/color").Color;
|
|
166
|
+
ND: import("../../../mol-util/color").Color;
|
|
167
|
+
PM: import("../../../mol-util/color").Color;
|
|
168
|
+
SM: import("../../../mol-util/color").Color;
|
|
169
|
+
EU: import("../../../mol-util/color").Color;
|
|
170
|
+
GD: import("../../../mol-util/color").Color;
|
|
171
|
+
TB: import("../../../mol-util/color").Color;
|
|
172
|
+
DY: import("../../../mol-util/color").Color;
|
|
173
|
+
HO: import("../../../mol-util/color").Color;
|
|
174
|
+
ER: import("../../../mol-util/color").Color;
|
|
175
|
+
TM: import("../../../mol-util/color").Color;
|
|
176
|
+
YB: import("../../../mol-util/color").Color;
|
|
177
|
+
LU: import("../../../mol-util/color").Color;
|
|
178
|
+
HF: import("../../../mol-util/color").Color;
|
|
179
|
+
TA: import("../../../mol-util/color").Color;
|
|
180
|
+
W: import("../../../mol-util/color").Color;
|
|
181
|
+
RE: import("../../../mol-util/color").Color;
|
|
182
|
+
OS: import("../../../mol-util/color").Color;
|
|
183
|
+
IR: import("../../../mol-util/color").Color;
|
|
184
|
+
PT: import("../../../mol-util/color").Color;
|
|
185
|
+
AU: import("../../../mol-util/color").Color;
|
|
186
|
+
HG: import("../../../mol-util/color").Color;
|
|
187
|
+
TL: import("../../../mol-util/color").Color;
|
|
188
|
+
PB: import("../../../mol-util/color").Color;
|
|
189
|
+
BI: import("../../../mol-util/color").Color;
|
|
190
|
+
PO: import("../../../mol-util/color").Color;
|
|
191
|
+
AT: import("../../../mol-util/color").Color;
|
|
192
|
+
RN: import("../../../mol-util/color").Color;
|
|
193
|
+
FR: import("../../../mol-util/color").Color;
|
|
194
|
+
RA: import("../../../mol-util/color").Color;
|
|
195
|
+
AC: import("../../../mol-util/color").Color;
|
|
196
|
+
TH: import("../../../mol-util/color").Color;
|
|
197
|
+
PA: import("../../../mol-util/color").Color;
|
|
198
|
+
U: import("../../../mol-util/color").Color;
|
|
199
|
+
NP: import("../../../mol-util/color").Color;
|
|
200
|
+
PU: import("../../../mol-util/color").Color;
|
|
201
|
+
AM: import("../../../mol-util/color").Color;
|
|
202
|
+
CM: import("../../../mol-util/color").Color;
|
|
203
|
+
BK: import("../../../mol-util/color").Color;
|
|
204
|
+
CF: import("../../../mol-util/color").Color;
|
|
205
|
+
ES: import("../../../mol-util/color").Color;
|
|
206
|
+
FM: import("../../../mol-util/color").Color;
|
|
207
|
+
MD: import("../../../mol-util/color").Color;
|
|
208
|
+
NO: import("../../../mol-util/color").Color;
|
|
209
|
+
LR: import("../../../mol-util/color").Color;
|
|
210
|
+
RF: import("../../../mol-util/color").Color;
|
|
211
|
+
DB: import("../../../mol-util/color").Color;
|
|
212
|
+
SG: import("../../../mol-util/color").Color;
|
|
213
|
+
BH: import("../../../mol-util/color").Color;
|
|
214
|
+
HS: import("../../../mol-util/color").Color;
|
|
215
|
+
MT: import("../../../mol-util/color").Color;
|
|
216
|
+
DS: import("../../../mol-util/color").Color;
|
|
217
|
+
RG: import("../../../mol-util/color").Color;
|
|
218
|
+
CN: import("../../../mol-util/color").Color;
|
|
219
|
+
UUT: import("../../../mol-util/color").Color;
|
|
220
|
+
FL: import("../../../mol-util/color").Color;
|
|
221
|
+
UUP: import("../../../mol-util/color").Color;
|
|
222
|
+
LV: import("../../../mol-util/color").Color;
|
|
223
|
+
UUH: import("../../../mol-util/color").Color;
|
|
201
224
|
}>, "custom">>;
|
|
202
225
|
}>>;
|
|
203
226
|
};
|
|
@@ -216,6 +239,7 @@ export declare const PresetStructureRepresentations: {
|
|
|
216
239
|
empty: StructureRepresentationPresetProvider<unknown, {}>;
|
|
217
240
|
auto: StructureRepresentationPresetProvider<{
|
|
218
241
|
ignoreHydrogens: boolean | undefined;
|
|
242
|
+
ignoreLight: boolean | undefined;
|
|
219
243
|
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined;
|
|
220
244
|
theme: PD.Normalize<{
|
|
221
245
|
globalName: any;
|
|
@@ -245,6 +269,7 @@ export declare const PresetStructureRepresentations: {
|
|
|
245
269
|
'atomic-detail': StructureRepresentationPresetProvider<{
|
|
246
270
|
showCarbohydrateSymbol: boolean;
|
|
247
271
|
ignoreHydrogens: boolean | undefined;
|
|
272
|
+
ignoreLight: boolean | undefined;
|
|
248
273
|
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined;
|
|
249
274
|
theme: PD.Normalize<{
|
|
250
275
|
globalName: any;
|
|
@@ -266,6 +291,7 @@ export declare const PresetStructureRepresentations: {
|
|
|
266
291
|
}>;
|
|
267
292
|
'polymer-cartoon': StructureRepresentationPresetProvider<{
|
|
268
293
|
ignoreHydrogens: boolean | undefined;
|
|
294
|
+
ignoreLight: boolean | undefined;
|
|
269
295
|
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined;
|
|
270
296
|
theme: PD.Normalize<{
|
|
271
297
|
globalName: any;
|
|
@@ -286,6 +312,7 @@ export declare const PresetStructureRepresentations: {
|
|
|
286
312
|
}>;
|
|
287
313
|
'polymer-and-ligand': StructureRepresentationPresetProvider<{
|
|
288
314
|
ignoreHydrogens: boolean | undefined;
|
|
315
|
+
ignoreLight: boolean | undefined;
|
|
289
316
|
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined;
|
|
290
317
|
theme: PD.Normalize<{
|
|
291
318
|
globalName: any;
|
|
@@ -321,6 +348,7 @@ export declare const PresetStructureRepresentations: {
|
|
|
321
348
|
}>;
|
|
322
349
|
'protein-and-nucleic': StructureRepresentationPresetProvider<{
|
|
323
350
|
ignoreHydrogens: boolean | undefined;
|
|
351
|
+
ignoreLight: boolean | undefined;
|
|
324
352
|
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined;
|
|
325
353
|
theme: PD.Normalize<{
|
|
326
354
|
globalName: any;
|
|
@@ -343,6 +371,7 @@ export declare const PresetStructureRepresentations: {
|
|
|
343
371
|
}>;
|
|
344
372
|
'coarse-surface': StructureRepresentationPresetProvider<{
|
|
345
373
|
ignoreHydrogens: boolean | undefined;
|
|
374
|
+
ignoreLight: boolean | undefined;
|
|
346
375
|
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined;
|
|
347
376
|
theme: PD.Normalize<{
|
|
348
377
|
globalName: any;
|
|
@@ -366,6 +395,7 @@ export declare const PresetStructureRepresentations: {
|
|
|
366
395
|
illustrative: StructureRepresentationPresetProvider<{
|
|
367
396
|
showCarbohydrateSymbol: boolean;
|
|
368
397
|
ignoreHydrogens: boolean | undefined;
|
|
398
|
+
ignoreLight: boolean | undefined;
|
|
369
399
|
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined;
|
|
370
400
|
theme: PD.Normalize<{
|
|
371
401
|
globalName: any;
|
|
@@ -18,12 +18,11 @@ import { OperatorNameColorThemeProvider } from '../../../mol-theme/color/operato
|
|
|
18
18
|
import { IndexPairBonds } from '../../../mol-model-formats/structure/property/bonds/index-pair';
|
|
19
19
|
import { StructConn } from '../../../mol-model-formats/structure/property/bonds/struct_conn';
|
|
20
20
|
import { assertUnreachable } from '../../../mol-util/type-helpers';
|
|
21
|
-
import { Color } from '../../../mol-util/color';
|
|
22
|
-
import { PostprocessingParams } from '../../../mol-canvas3d/passes/postprocessing';
|
|
23
21
|
export function StructureRepresentationPresetProvider(repr) { return repr; }
|
|
24
22
|
(function (StructureRepresentationPresetProvider) {
|
|
25
23
|
StructureRepresentationPresetProvider.CommonParams = {
|
|
26
24
|
ignoreHydrogens: PD.Optional(PD.Boolean(false)),
|
|
25
|
+
ignoreLight: PD.Optional(PD.Boolean(false)),
|
|
27
26
|
quality: PD.Optional(PD.Select('auto', VisualQualityOptions)),
|
|
28
27
|
theme: PD.Optional(PD.Group({
|
|
29
28
|
globalName: PD.Optional(PD.Text('')),
|
|
@@ -52,11 +51,14 @@ export function StructureRepresentationPresetProvider(repr) { return repr; }
|
|
|
52
51
|
var typeParams = {
|
|
53
52
|
quality: plugin.managers.structure.component.state.options.visualQuality,
|
|
54
53
|
ignoreHydrogens: !plugin.managers.structure.component.state.options.showHydrogens,
|
|
54
|
+
ignoreLight: plugin.managers.structure.component.state.options.ignoreLight,
|
|
55
55
|
};
|
|
56
56
|
if (params.quality && params.quality !== 'auto')
|
|
57
57
|
typeParams.quality = params.quality;
|
|
58
58
|
if (params.ignoreHydrogens !== void 0)
|
|
59
59
|
typeParams.ignoreHydrogens = !!params.ignoreHydrogens;
|
|
60
|
+
if (params.ignoreLight !== void 0)
|
|
61
|
+
typeParams.ignoreLight = !!params.ignoreLight;
|
|
60
62
|
var color = ((_a = params.theme) === null || _a === void 0 ? void 0 : _a.globalName) ? (_b = params.theme) === null || _b === void 0 ? void 0 : _b.globalName : void 0;
|
|
61
63
|
var ballAndStickColor = ((_c = params.theme) === null || _c === void 0 ? void 0 : _c.carbonColor) !== undefined
|
|
62
64
|
? { carbonColor: getCarbonColorParams((_d = params.theme) === null || _d === void 0 ? void 0 : _d.carbonColor) }
|
|
@@ -79,14 +81,6 @@ export function StructureRepresentationPresetProvider(repr) { return repr; }
|
|
|
79
81
|
var CommonParams = StructureRepresentationPresetProvider.CommonParams;
|
|
80
82
|
var reprBuilder = StructureRepresentationPresetProvider.reprBuilder;
|
|
81
83
|
var updateFocusRepr = StructureRepresentationPresetProvider.updateFocusRepr;
|
|
82
|
-
function resetPostprocessingProps(plugin) {
|
|
83
|
-
if (plugin.canvas3d) {
|
|
84
|
-
var p = PD.getDefaultValues(PostprocessingParams);
|
|
85
|
-
plugin.canvas3d.setProps({
|
|
86
|
-
postprocessing: { outline: p.outline, occlusion: p.occlusion }
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
84
|
var auto = StructureRepresentationPresetProvider({
|
|
91
85
|
id: 'preset-structure-representation-auto',
|
|
92
86
|
display: {
|
|
@@ -126,7 +120,6 @@ var empty = StructureRepresentationPresetProvider({
|
|
|
126
120
|
apply: function (ref, params, plugin) {
|
|
127
121
|
return __awaiter(this, void 0, void 0, function () {
|
|
128
122
|
return __generator(this, function (_a) {
|
|
129
|
-
resetPostprocessingProps(plugin);
|
|
130
123
|
return [2 /*return*/, {}];
|
|
131
124
|
});
|
|
132
125
|
});
|
|
@@ -201,7 +194,6 @@ var polymerAndLigand = StructureRepresentationPresetProvider({
|
|
|
201
194
|
return [4 /*yield*/, updateFocusRepr(plugin, structure, (_h = (_g = params.theme) === null || _g === void 0 ? void 0 : _g.focus) === null || _h === void 0 ? void 0 : _h.name, (_k = (_j = params.theme) === null || _j === void 0 ? void 0 : _j.focus) === null || _k === void 0 ? void 0 : _k.params)];
|
|
202
195
|
case 10:
|
|
203
196
|
_o.sent();
|
|
204
|
-
resetPostprocessingProps(plugin);
|
|
205
197
|
return [2 /*return*/, { components: components, representations: representations }];
|
|
206
198
|
}
|
|
207
199
|
});
|
|
@@ -253,7 +245,6 @@ var proteinAndNucleic = StructureRepresentationPresetProvider({
|
|
|
253
245
|
return [4 /*yield*/, updateFocusRepr(plugin, structure, (_b = (_a = params.theme) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.name, (_d = (_c = params.theme) === null || _c === void 0 ? void 0 : _c.focus) === null || _d === void 0 ? void 0 : _d.params)];
|
|
254
246
|
case 4:
|
|
255
247
|
_g.sent();
|
|
256
|
-
resetPostprocessingProps(plugin);
|
|
257
248
|
return [2 /*return*/, { components: components, representations: representations }];
|
|
258
249
|
}
|
|
259
250
|
});
|
|
@@ -320,7 +311,6 @@ var coarseSurface = StructureRepresentationPresetProvider({
|
|
|
320
311
|
return [4 /*yield*/, updateFocusRepr(plugin, structure, (_b = (_a = params.theme) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.name, (_d = (_c = params.theme) === null || _c === void 0 ? void 0 : _c.focus) === null || _d === void 0 ? void 0 : _d.params)];
|
|
321
312
|
case 4:
|
|
322
313
|
_g.sent();
|
|
323
|
-
resetPostprocessingProps(plugin);
|
|
324
314
|
return [2 /*return*/, { components: components, representations: representations }];
|
|
325
315
|
}
|
|
326
316
|
});
|
|
@@ -364,7 +354,6 @@ var polymerCartoon = StructureRepresentationPresetProvider({
|
|
|
364
354
|
return [4 /*yield*/, updateFocusRepr(plugin, structure, (_b = (_a = params.theme) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.name, (_d = (_c = params.theme) === null || _c === void 0 ? void 0 : _c.focus) === null || _d === void 0 ? void 0 : _d.params)];
|
|
365
355
|
case 3:
|
|
366
356
|
_g.sent();
|
|
367
|
-
resetPostprocessingProps(plugin);
|
|
368
357
|
return [2 /*return*/, { components: components, representations: representations }];
|
|
369
358
|
}
|
|
370
359
|
});
|
|
@@ -442,7 +431,6 @@ var atomicDetail = StructureRepresentationPresetProvider({
|
|
|
442
431
|
return [4 /*yield*/, updateFocusRepr(plugin, structure, (_c = (_b = (_a = params.theme) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.name) !== null && _c !== void 0 ? _c : color, (_f = (_e = (_d = params.theme) === null || _d === void 0 ? void 0 : _d.focus) === null || _e === void 0 ? void 0 : _e.params) !== null && _f !== void 0 ? _f : colorParams)];
|
|
443
432
|
case 5:
|
|
444
433
|
_o.sent();
|
|
445
|
-
resetPostprocessingProps(plugin);
|
|
446
434
|
return [2 /*return*/, { components: components, representations: representations }];
|
|
447
435
|
}
|
|
448
436
|
});
|
|
@@ -484,20 +472,6 @@ var illustrative = StructureRepresentationPresetProvider({
|
|
|
484
472
|
return [4 /*yield*/, updateFocusRepr(plugin, structure, (_c = (_b = (_a = params.theme) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.name) !== null && _c !== void 0 ? _c : color, (_e = (_d = params.theme) === null || _d === void 0 ? void 0 : _d.focus) === null || _e === void 0 ? void 0 : _e.params)];
|
|
485
473
|
case 3:
|
|
486
474
|
_h.sent();
|
|
487
|
-
if (plugin.canvas3d) {
|
|
488
|
-
plugin.canvas3d.setProps({
|
|
489
|
-
postprocessing: {
|
|
490
|
-
outline: {
|
|
491
|
-
name: 'on',
|
|
492
|
-
params: { scale: 1, color: Color(0x000000), threshold: 0.25 }
|
|
493
|
-
},
|
|
494
|
-
occlusion: {
|
|
495
|
-
name: 'on',
|
|
496
|
-
params: { bias: 0.9, blurKernelSize: 15, radius: 5, samples: 32 }
|
|
497
|
-
},
|
|
498
|
-
}
|
|
499
|
-
});
|
|
500
|
-
}
|
|
501
475
|
return [2 /*return*/, { components: components, representations: representations }];
|
|
502
476
|
}
|
|
503
477
|
});
|
|
@@ -518,6 +492,6 @@ export var PresetStructureRepresentations = {
|
|
|
518
492
|
'polymer-and-ligand': polymerAndLigand,
|
|
519
493
|
'protein-and-nucleic': proteinAndNucleic,
|
|
520
494
|
'coarse-surface': coarseSurface,
|
|
521
|
-
|
|
495
|
+
illustrative: illustrative,
|
|
522
496
|
};
|
|
523
497
|
//# sourceMappingURL=representation-preset.js.map
|
|
@@ -17,6 +17,7 @@ export declare class StructureRepresentationBuilder {
|
|
|
17
17
|
private get dataState();
|
|
18
18
|
readonly defaultProvider: StructureRepresentationPresetProvider<{
|
|
19
19
|
ignoreHydrogens: boolean | undefined;
|
|
20
|
+
ignoreLight: boolean | undefined;
|
|
20
21
|
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined;
|
|
21
22
|
theme: PD.Normalize<{
|
|
22
23
|
globalName: any;
|
|
@@ -43,7 +44,7 @@ export declare class StructureRepresentationBuilder {
|
|
|
43
44
|
all: StateObjectSelector<PluginStateObject.Molecule.Structure.Representation3D, import("../../../mol-state/transformer").StateTransformer<import("../../../mol-state/object").StateObject<any, import("../../../mol-state/object").StateObject.Type<any>>, import("../../../mol-state/object").StateObject<any, import("../../../mol-state/object").StateObject.Type<any>>, any>>;
|
|
44
45
|
};
|
|
45
46
|
}>;
|
|
46
|
-
|
|
47
|
+
resolveProvider(ref: StructureRepresentationPresetProviderRef): StructureRepresentationPresetProvider<unknown, {}>;
|
|
47
48
|
hasPreset(s: PluginStateObject.Molecule.Structure): boolean;
|
|
48
49
|
get providers(): ReadonlyArray<StructureRepresentationPresetProvider>;
|
|
49
50
|
getPresets(s?: PluginStateObject.Molecule.Structure): readonly StructureRepresentationPresetProvider<any, StructureRepresentationPresetProvider.Result>[];
|
|
@@ -15,7 +15,6 @@ import { objectForEach } from '../../mol-util/object';
|
|
|
15
15
|
import { RecommendedIsoValue } from '../../mol-model-formats/volume/property';
|
|
16
16
|
import { getContourLevelEmdb } from '../../mol-plugin/behavior/dynamic/volume-streaming/util';
|
|
17
17
|
import { Task } from '../../mol-task';
|
|
18
|
-
import { DscifFormat } from '../../mol-model-formats/volume/density-server';
|
|
19
18
|
export var VolumeFormatCategory = 'Volume';
|
|
20
19
|
function tryObtainRecommendedIsoValue(plugin, volume) {
|
|
21
20
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -55,16 +54,7 @@ function tryGetRecomendedIsoValue(volume) {
|
|
|
55
54
|
return;
|
|
56
55
|
if (recommendedIsoValue.kind === 'relative')
|
|
57
56
|
return recommendedIsoValue;
|
|
58
|
-
|
|
59
|
-
if (DscifFormat.is(volume.sourceData)) {
|
|
60
|
-
stats = {
|
|
61
|
-
min: volume.sourceData.data.volume_data_3d_info.min_source.value(0),
|
|
62
|
-
max: volume.sourceData.data.volume_data_3d_info.max_source.value(0),
|
|
63
|
-
mean: volume.sourceData.data.volume_data_3d_info.mean_source.value(0),
|
|
64
|
-
sigma: volume.sourceData.data.volume_data_3d_info.sigma_source.value(0),
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
return Volume.IsoValue.toRelative(recommendedIsoValue, stats);
|
|
57
|
+
return Volume.adjustedIsoValue(volume, recommendedIsoValue.absoluteValue, 'absolute');
|
|
68
58
|
}
|
|
69
59
|
function defaultVisuals(plugin, data) {
|
|
70
60
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
3
3
|
*
|
|
4
4
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
5
5
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
@@ -60,6 +60,7 @@ declare namespace StructureComponentManager {
|
|
|
60
60
|
const OptionsParams: {
|
|
61
61
|
showHydrogens: PD.BooleanParam;
|
|
62
62
|
visualQuality: PD.Select<"auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest">;
|
|
63
|
+
ignoreLight: PD.BooleanParam;
|
|
63
64
|
materialStyle: PD.Group<PD.Normalize<{
|
|
64
65
|
metalness: number;
|
|
65
66
|
roughness: number;
|