molstar 3.0.2 → 3.1.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.js +1 -1
- package/lib/apps/docking-viewer/viewport.d.ts +2 -0
- package/lib/apps/viewer/app.d.ts +1 -0
- package/lib/commonjs/apps/docking-viewer/viewport.d.ts +2 -0
- package/lib/commonjs/apps/viewer/app.d.ts +1 -0
- 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 +2 -0
- 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-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 +2 -2
- package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +1 -1
- package/lib/commonjs/mol-model/structure/export/categories/secondary-structure.js +8 -8
- 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-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 +128 -120
- 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/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/volume.js +4 -4
- 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/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 +2 -0
- package/lib/extensions/rcsb/graphql/types.d.ts +11 -11
- package/lib/extensions/rcsb/validation-report/behavior.d.ts +3 -0
- 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 +2 -2
- package/lib/mol-io/reader/cif/schema/mmcif.js +1 -1
- package/lib/mol-model/structure/export/categories/secondary-structure.js +8 -8
- 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/version.js +2 -2
- 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 +128 -120
- 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/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/structure/quick-styles.d.ts +25 -0
- package/lib/mol-plugin-ui/structure/quick-styles.js +128 -0
- package/lib/mol-plugin-ui/structure/volume.js +4 -4
- 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/package.json +19 -19
package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts
CHANGED
|
@@ -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>
|
|
@@ -22,6 +22,7 @@ declare const StructureFocusRepresentationParams: (plugin: PluginContext) => {
|
|
|
22
22
|
components: PD.MultiSelect<"target" | "surroundings" | "interactions">;
|
|
23
23
|
excludeTargetFromSurroundings: PD.BooleanParam;
|
|
24
24
|
ignoreHydrogens: PD.BooleanParam;
|
|
25
|
+
ignoreLight: PD.BooleanParam;
|
|
25
26
|
material: PD.Group<PD.Normalize<{
|
|
26
27
|
metalness: number;
|
|
27
28
|
roughness: number;
|
package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* Copyright (c) 2019-
|
|
3
|
+
* Copyright (c) 2019-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
4
4
|
*
|
|
5
5
|
* @author David Sehnal <david.sehnal@gmail.com>
|
|
6
6
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
@@ -27,11 +27,19 @@ var StructureFocusRepresentationParams = function (plugin) {
|
|
|
27
27
|
expandRadius: param_definition_1.ParamDefinition.Numeric(5, { min: 1, max: 10, step: 1 }),
|
|
28
28
|
targetParams: param_definition_1.ParamDefinition.Group(reprParams, {
|
|
29
29
|
label: 'Target',
|
|
30
|
-
customDefault: (0, structure_representation_params_1.createStructureRepresentationParams)(plugin, void 0, {
|
|
30
|
+
customDefault: (0, structure_representation_params_1.createStructureRepresentationParams)(plugin, void 0, {
|
|
31
|
+
type: 'ball-and-stick',
|
|
32
|
+
size: 'physical',
|
|
33
|
+
typeParams: { sizeFactor: 0.22, sizeAspectRatio: 0.73, adjustCylinderLength: true, xrayShaded: true, aromaticBonds: false, multipleBonds: 'off', excludeTypes: ['hydrogen-bond', 'metal-coordination'] },
|
|
34
|
+
})
|
|
31
35
|
}),
|
|
32
36
|
surroundingsParams: param_definition_1.ParamDefinition.Group(reprParams, {
|
|
33
37
|
label: 'Surroundings',
|
|
34
|
-
customDefault: (0, structure_representation_params_1.createStructureRepresentationParams)(plugin, void 0, {
|
|
38
|
+
customDefault: (0, structure_representation_params_1.createStructureRepresentationParams)(plugin, void 0, {
|
|
39
|
+
type: 'ball-and-stick',
|
|
40
|
+
size: 'physical',
|
|
41
|
+
typeParams: { sizeFactor: 0.16, excludeTypes: ['hydrogen-bond', 'metal-coordination'] }
|
|
42
|
+
})
|
|
35
43
|
}),
|
|
36
44
|
nciParams: param_definition_1.ParamDefinition.Group(reprParams, {
|
|
37
45
|
label: 'Non-covalent Int.',
|
|
@@ -44,6 +52,7 @@ var StructureFocusRepresentationParams = function (plugin) {
|
|
|
44
52
|
components: param_definition_1.ParamDefinition.MultiSelect(FocusComponents, param_definition_1.ParamDefinition.arrayToOptions(FocusComponents)),
|
|
45
53
|
excludeTargetFromSurroundings: param_definition_1.ParamDefinition.Boolean(false, { label: 'Exclude Target', description: 'Exclude the focus "target" from the surroudings component.' }),
|
|
46
54
|
ignoreHydrogens: param_definition_1.ParamDefinition.Boolean(false),
|
|
55
|
+
ignoreLight: param_definition_1.ParamDefinition.Boolean(false),
|
|
47
56
|
material: material_1.Material.getParam(),
|
|
48
57
|
clip: param_definition_1.ParamDefinition.Group(clip_1.Clip.Params),
|
|
49
58
|
};
|
|
@@ -71,9 +80,9 @@ var StructureFocusRepresentationBehavior = /** @class */ (function (_super) {
|
|
|
71
80
|
configurable: true
|
|
72
81
|
});
|
|
73
82
|
StructureFocusRepresentationBehavior.prototype.getReprParams = function (reprParams) {
|
|
74
|
-
return (0, tslib_1.__assign)((0, tslib_1.__assign)({},
|
|
83
|
+
return (0, tslib_1.__assign)((0, tslib_1.__assign)({}, reprParams), { type: {
|
|
75
84
|
name: reprParams.type.name,
|
|
76
|
-
params: (0, tslib_1.__assign)((0, tslib_1.__assign)({}, reprParams.type.params), { ignoreHydrogens: this.params.ignoreHydrogens, material: this.params.material, clip: this.params.clip })
|
|
85
|
+
params: (0, tslib_1.__assign)((0, tslib_1.__assign)({}, reprParams.type.params), { ignoreHydrogens: this.params.ignoreHydrogens, ignoreLight: this.params.ignoreLight, material: this.params.material, clip: this.params.clip })
|
|
77
86
|
} });
|
|
78
87
|
};
|
|
79
88
|
StructureFocusRepresentationBehavior.prototype.ensureShape = function (cell) {
|
|
@@ -107,7 +116,7 @@ var StructureFocusRepresentationBehavior = /** @class */ (function (_super) {
|
|
|
107
116
|
if (components.indexOf('interactions') >= 0 && !refs[StructureFocusRepresentationTags.SurrNciRepr] && cell.obj && interactions_1.InteractionsRepresentationProvider.isApplicable((_a = cell.obj) === null || _a === void 0 ? void 0 : _a.data)) {
|
|
108
117
|
refs[StructureFocusRepresentationTags.SurrNciRepr] = builder
|
|
109
118
|
.to(refs[StructureFocusRepresentationTags.SurrSel])
|
|
110
|
-
.apply(transforms_1.StateTransforms.Representation.StructureRepresentation3D, this.params.nciParams, { tags: StructureFocusRepresentationTags.SurrNciRepr }).ref;
|
|
119
|
+
.apply(transforms_1.StateTransforms.Representation.StructureRepresentation3D, this.getReprParams(this.params.nciParams), { tags: StructureFocusRepresentationTags.SurrNciRepr }).ref;
|
|
111
120
|
}
|
|
112
121
|
return { state: state, builder: builder, refs: refs };
|
|
113
122
|
};
|
|
@@ -217,7 +226,7 @@ var StructureFocusRepresentationBehavior = /** @class */ (function (_super) {
|
|
|
217
226
|
if (!hasComponent)
|
|
218
227
|
builder.delete(repr.transform.ref);
|
|
219
228
|
else
|
|
220
|
-
builder.to(repr).update(this.params.nciParams);
|
|
229
|
+
builder.to(repr).update(this.getReprParams(this.params.nciParams));
|
|
221
230
|
}
|
|
222
231
|
return [4 /*yield*/, commands_1.PluginCommands.State.Update(this.plugin, { state: state, tree: builder, options: { doNotLogTiming: true, doNotUpdateCurrent: true } })];
|
|
223
232
|
case 1:
|
|
@@ -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,6 +29,7 @@ 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
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;
|
|
@@ -50,6 +50,7 @@ export declare namespace StructureRepresentationPresetProvider {
|
|
|
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<{
|
|
@@ -101,125 +102,125 @@ export declare namespace StructureRepresentationPresetProvider {
|
|
|
101
102
|
saturation: PD.Numeric;
|
|
102
103
|
lightness: PD.Numeric;
|
|
103
104
|
colors: PD.Mapped<PD.NamedParams<PD.Normalize<unknown>, "default"> | PD.NamedParams<PD.Normalize<{
|
|
104
|
-
H: Color;
|
|
105
|
-
D: Color;
|
|
106
|
-
T: Color;
|
|
107
|
-
HE: Color;
|
|
108
|
-
LI: Color;
|
|
109
|
-
BE: Color;
|
|
110
|
-
B: Color;
|
|
111
|
-
C: Color;
|
|
112
|
-
N: Color;
|
|
113
|
-
O: Color;
|
|
114
|
-
F: Color;
|
|
115
|
-
NE: Color;
|
|
116
|
-
NA: Color;
|
|
117
|
-
MG: Color;
|
|
118
|
-
AL: Color;
|
|
119
|
-
SI: Color;
|
|
120
|
-
P: Color;
|
|
121
|
-
S: Color;
|
|
122
|
-
CL: Color;
|
|
123
|
-
AR: Color;
|
|
124
|
-
K: Color;
|
|
125
|
-
CA: Color;
|
|
126
|
-
SC: Color;
|
|
127
|
-
TI: Color;
|
|
128
|
-
V: Color;
|
|
129
|
-
CR: Color;
|
|
130
|
-
MN: Color;
|
|
131
|
-
FE: Color;
|
|
132
|
-
CO: Color;
|
|
133
|
-
NI: Color;
|
|
134
|
-
CU: Color;
|
|
135
|
-
ZN: Color;
|
|
136
|
-
GA: Color;
|
|
137
|
-
GE: Color;
|
|
138
|
-
AS: Color;
|
|
139
|
-
SE: Color;
|
|
140
|
-
BR: Color;
|
|
141
|
-
KR: Color;
|
|
142
|
-
RB: Color;
|
|
143
|
-
SR: Color;
|
|
144
|
-
Y: Color;
|
|
145
|
-
ZR: Color;
|
|
146
|
-
NB: Color;
|
|
147
|
-
MO: Color;
|
|
148
|
-
TC: Color;
|
|
149
|
-
RU: Color;
|
|
150
|
-
RH: Color;
|
|
151
|
-
PD: Color;
|
|
152
|
-
AG: Color;
|
|
153
|
-
CD: Color;
|
|
154
|
-
IN: Color;
|
|
155
|
-
SN: Color;
|
|
156
|
-
SB: Color;
|
|
157
|
-
TE: Color;
|
|
158
|
-
I: Color;
|
|
159
|
-
XE: Color;
|
|
160
|
-
CS: Color;
|
|
161
|
-
BA: Color;
|
|
162
|
-
LA: Color;
|
|
163
|
-
CE: Color;
|
|
164
|
-
PR: Color;
|
|
165
|
-
ND: Color;
|
|
166
|
-
PM: Color;
|
|
167
|
-
SM: Color;
|
|
168
|
-
EU: Color;
|
|
169
|
-
GD: Color;
|
|
170
|
-
TB: Color;
|
|
171
|
-
DY: Color;
|
|
172
|
-
HO: Color;
|
|
173
|
-
ER: Color;
|
|
174
|
-
TM: Color;
|
|
175
|
-
YB: Color;
|
|
176
|
-
LU: Color;
|
|
177
|
-
HF: Color;
|
|
178
|
-
TA: Color;
|
|
179
|
-
W: Color;
|
|
180
|
-
RE: Color;
|
|
181
|
-
OS: Color;
|
|
182
|
-
IR: Color;
|
|
183
|
-
PT: Color;
|
|
184
|
-
AU: Color;
|
|
185
|
-
HG: Color;
|
|
186
|
-
TL: Color;
|
|
187
|
-
PB: Color;
|
|
188
|
-
BI: Color;
|
|
189
|
-
PO: Color;
|
|
190
|
-
AT: Color;
|
|
191
|
-
RN: Color;
|
|
192
|
-
FR: Color;
|
|
193
|
-
RA: Color;
|
|
194
|
-
AC: Color;
|
|
195
|
-
TH: Color;
|
|
196
|
-
PA: Color;
|
|
197
|
-
U: Color;
|
|
198
|
-
NP: Color;
|
|
199
|
-
PU: Color;
|
|
200
|
-
AM: Color;
|
|
201
|
-
CM: Color;
|
|
202
|
-
BK: Color;
|
|
203
|
-
CF: Color;
|
|
204
|
-
ES: Color;
|
|
205
|
-
FM: Color;
|
|
206
|
-
MD: Color;
|
|
207
|
-
NO: Color;
|
|
208
|
-
LR: Color;
|
|
209
|
-
RF: Color;
|
|
210
|
-
DB: Color;
|
|
211
|
-
SG: Color;
|
|
212
|
-
BH: Color;
|
|
213
|
-
HS: Color;
|
|
214
|
-
MT: Color;
|
|
215
|
-
DS: Color;
|
|
216
|
-
RG: Color;
|
|
217
|
-
CN: Color;
|
|
218
|
-
UUT: Color;
|
|
219
|
-
FL: Color;
|
|
220
|
-
UUP: Color;
|
|
221
|
-
LV: Color;
|
|
222
|
-
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;
|
|
223
224
|
}>, "custom">>;
|
|
224
225
|
}>>;
|
|
225
226
|
};
|
|
@@ -238,6 +239,7 @@ export declare const PresetStructureRepresentations: {
|
|
|
238
239
|
empty: StructureRepresentationPresetProvider<unknown, {}>;
|
|
239
240
|
auto: StructureRepresentationPresetProvider<{
|
|
240
241
|
ignoreHydrogens: boolean | undefined;
|
|
242
|
+
ignoreLight: boolean | undefined;
|
|
241
243
|
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined;
|
|
242
244
|
theme: PD.Normalize<{
|
|
243
245
|
globalName: any;
|
|
@@ -267,6 +269,7 @@ export declare const PresetStructureRepresentations: {
|
|
|
267
269
|
'atomic-detail': StructureRepresentationPresetProvider<{
|
|
268
270
|
showCarbohydrateSymbol: boolean;
|
|
269
271
|
ignoreHydrogens: boolean | undefined;
|
|
272
|
+
ignoreLight: boolean | undefined;
|
|
270
273
|
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined;
|
|
271
274
|
theme: PD.Normalize<{
|
|
272
275
|
globalName: any;
|
|
@@ -288,6 +291,7 @@ export declare const PresetStructureRepresentations: {
|
|
|
288
291
|
}>;
|
|
289
292
|
'polymer-cartoon': StructureRepresentationPresetProvider<{
|
|
290
293
|
ignoreHydrogens: boolean | undefined;
|
|
294
|
+
ignoreLight: boolean | undefined;
|
|
291
295
|
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined;
|
|
292
296
|
theme: PD.Normalize<{
|
|
293
297
|
globalName: any;
|
|
@@ -308,6 +312,7 @@ export declare const PresetStructureRepresentations: {
|
|
|
308
312
|
}>;
|
|
309
313
|
'polymer-and-ligand': StructureRepresentationPresetProvider<{
|
|
310
314
|
ignoreHydrogens: boolean | undefined;
|
|
315
|
+
ignoreLight: boolean | undefined;
|
|
311
316
|
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined;
|
|
312
317
|
theme: PD.Normalize<{
|
|
313
318
|
globalName: any;
|
|
@@ -343,6 +348,7 @@ export declare const PresetStructureRepresentations: {
|
|
|
343
348
|
}>;
|
|
344
349
|
'protein-and-nucleic': StructureRepresentationPresetProvider<{
|
|
345
350
|
ignoreHydrogens: boolean | undefined;
|
|
351
|
+
ignoreLight: boolean | undefined;
|
|
346
352
|
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined;
|
|
347
353
|
theme: PD.Normalize<{
|
|
348
354
|
globalName: any;
|
|
@@ -365,6 +371,7 @@ export declare const PresetStructureRepresentations: {
|
|
|
365
371
|
}>;
|
|
366
372
|
'coarse-surface': StructureRepresentationPresetProvider<{
|
|
367
373
|
ignoreHydrogens: boolean | undefined;
|
|
374
|
+
ignoreLight: boolean | undefined;
|
|
368
375
|
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined;
|
|
369
376
|
theme: PD.Normalize<{
|
|
370
377
|
globalName: any;
|
|
@@ -388,6 +395,7 @@ export declare const PresetStructureRepresentations: {
|
|
|
388
395
|
illustrative: StructureRepresentationPresetProvider<{
|
|
389
396
|
showCarbohydrateSymbol: boolean;
|
|
390
397
|
ignoreHydrogens: boolean | undefined;
|
|
398
|
+
ignoreLight: boolean | undefined;
|
|
391
399
|
quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined;
|
|
392
400
|
theme: PD.Normalize<{
|
|
393
401
|
globalName: any;
|
|
@@ -21,13 +21,12 @@ var operator_name_1 = require("../../../mol-theme/color/operator-name");
|
|
|
21
21
|
var index_pair_1 = require("../../../mol-model-formats/structure/property/bonds/index-pair");
|
|
22
22
|
var struct_conn_1 = require("../../../mol-model-formats/structure/property/bonds/struct_conn");
|
|
23
23
|
var type_helpers_1 = require("../../../mol-util/type-helpers");
|
|
24
|
-
var color_1 = require("../../../mol-util/color");
|
|
25
|
-
var postprocessing_1 = require("../../../mol-canvas3d/passes/postprocessing");
|
|
26
24
|
function StructureRepresentationPresetProvider(repr) { return repr; }
|
|
27
25
|
exports.StructureRepresentationPresetProvider = StructureRepresentationPresetProvider;
|
|
28
26
|
(function (StructureRepresentationPresetProvider) {
|
|
29
27
|
StructureRepresentationPresetProvider.CommonParams = {
|
|
30
28
|
ignoreHydrogens: param_definition_1.ParamDefinition.Optional(param_definition_1.ParamDefinition.Boolean(false)),
|
|
29
|
+
ignoreLight: param_definition_1.ParamDefinition.Optional(param_definition_1.ParamDefinition.Boolean(false)),
|
|
31
30
|
quality: param_definition_1.ParamDefinition.Optional(param_definition_1.ParamDefinition.Select('auto', base_1.VisualQualityOptions)),
|
|
32
31
|
theme: param_definition_1.ParamDefinition.Optional(param_definition_1.ParamDefinition.Group({
|
|
33
32
|
globalName: param_definition_1.ParamDefinition.Optional(param_definition_1.ParamDefinition.Text('')),
|
|
@@ -56,11 +55,14 @@ exports.StructureRepresentationPresetProvider = StructureRepresentationPresetPro
|
|
|
56
55
|
var typeParams = {
|
|
57
56
|
quality: plugin.managers.structure.component.state.options.visualQuality,
|
|
58
57
|
ignoreHydrogens: !plugin.managers.structure.component.state.options.showHydrogens,
|
|
58
|
+
ignoreLight: plugin.managers.structure.component.state.options.ignoreLight,
|
|
59
59
|
};
|
|
60
60
|
if (params.quality && params.quality !== 'auto')
|
|
61
61
|
typeParams.quality = params.quality;
|
|
62
62
|
if (params.ignoreHydrogens !== void 0)
|
|
63
63
|
typeParams.ignoreHydrogens = !!params.ignoreHydrogens;
|
|
64
|
+
if (params.ignoreLight !== void 0)
|
|
65
|
+
typeParams.ignoreLight = !!params.ignoreLight;
|
|
64
66
|
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;
|
|
65
67
|
var ballAndStickColor = ((_c = params.theme) === null || _c === void 0 ? void 0 : _c.carbonColor) !== undefined
|
|
66
68
|
? { carbonColor: getCarbonColorParams((_d = params.theme) === null || _d === void 0 ? void 0 : _d.carbonColor) }
|
|
@@ -83,14 +85,6 @@ exports.StructureRepresentationPresetProvider = StructureRepresentationPresetPro
|
|
|
83
85
|
var CommonParams = StructureRepresentationPresetProvider.CommonParams;
|
|
84
86
|
var reprBuilder = StructureRepresentationPresetProvider.reprBuilder;
|
|
85
87
|
var updateFocusRepr = StructureRepresentationPresetProvider.updateFocusRepr;
|
|
86
|
-
function resetPostprocessingProps(plugin) {
|
|
87
|
-
if (plugin.canvas3d) {
|
|
88
|
-
var p = param_definition_1.ParamDefinition.getDefaultValues(postprocessing_1.PostprocessingParams);
|
|
89
|
-
plugin.canvas3d.setProps({
|
|
90
|
-
postprocessing: { outline: p.outline, occlusion: p.occlusion }
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
88
|
var auto = StructureRepresentationPresetProvider({
|
|
95
89
|
id: 'preset-structure-representation-auto',
|
|
96
90
|
display: {
|
|
@@ -130,7 +124,6 @@ var empty = StructureRepresentationPresetProvider({
|
|
|
130
124
|
apply: function (ref, params, plugin) {
|
|
131
125
|
return (0, tslib_1.__awaiter)(this, void 0, void 0, function () {
|
|
132
126
|
return (0, tslib_1.__generator)(this, function (_a) {
|
|
133
|
-
resetPostprocessingProps(plugin);
|
|
134
127
|
return [2 /*return*/, {}];
|
|
135
128
|
});
|
|
136
129
|
});
|
|
@@ -205,7 +198,6 @@ var polymerAndLigand = StructureRepresentationPresetProvider({
|
|
|
205
198
|
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)];
|
|
206
199
|
case 10:
|
|
207
200
|
_o.sent();
|
|
208
|
-
resetPostprocessingProps(plugin);
|
|
209
201
|
return [2 /*return*/, { components: components, representations: representations }];
|
|
210
202
|
}
|
|
211
203
|
});
|
|
@@ -257,7 +249,6 @@ var proteinAndNucleic = StructureRepresentationPresetProvider({
|
|
|
257
249
|
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)];
|
|
258
250
|
case 4:
|
|
259
251
|
_g.sent();
|
|
260
|
-
resetPostprocessingProps(plugin);
|
|
261
252
|
return [2 /*return*/, { components: components, representations: representations }];
|
|
262
253
|
}
|
|
263
254
|
});
|
|
@@ -324,7 +315,6 @@ var coarseSurface = StructureRepresentationPresetProvider({
|
|
|
324
315
|
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)];
|
|
325
316
|
case 4:
|
|
326
317
|
_g.sent();
|
|
327
|
-
resetPostprocessingProps(plugin);
|
|
328
318
|
return [2 /*return*/, { components: components, representations: representations }];
|
|
329
319
|
}
|
|
330
320
|
});
|
|
@@ -368,7 +358,6 @@ var polymerCartoon = StructureRepresentationPresetProvider({
|
|
|
368
358
|
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)];
|
|
369
359
|
case 3:
|
|
370
360
|
_g.sent();
|
|
371
|
-
resetPostprocessingProps(plugin);
|
|
372
361
|
return [2 /*return*/, { components: components, representations: representations }];
|
|
373
362
|
}
|
|
374
363
|
});
|
|
@@ -446,7 +435,6 @@ var atomicDetail = StructureRepresentationPresetProvider({
|
|
|
446
435
|
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)];
|
|
447
436
|
case 5:
|
|
448
437
|
_o.sent();
|
|
449
|
-
resetPostprocessingProps(plugin);
|
|
450
438
|
return [2 /*return*/, { components: components, representations: representations }];
|
|
451
439
|
}
|
|
452
440
|
});
|
|
@@ -488,20 +476,6 @@ var illustrative = StructureRepresentationPresetProvider({
|
|
|
488
476
|
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)];
|
|
489
477
|
case 3:
|
|
490
478
|
_h.sent();
|
|
491
|
-
if (plugin.canvas3d) {
|
|
492
|
-
plugin.canvas3d.setProps({
|
|
493
|
-
postprocessing: {
|
|
494
|
-
outline: {
|
|
495
|
-
name: 'on',
|
|
496
|
-
params: { scale: 1, color: (0, color_1.Color)(0x000000), threshold: 0.25 }
|
|
497
|
-
},
|
|
498
|
-
occlusion: {
|
|
499
|
-
name: 'on',
|
|
500
|
-
params: { bias: 0.9, blurKernelSize: 15, radius: 5, samples: 32 }
|
|
501
|
-
},
|
|
502
|
-
}
|
|
503
|
-
});
|
|
504
|
-
}
|
|
505
479
|
return [2 /*return*/, { components: components, representations: representations }];
|
|
506
480
|
}
|
|
507
481
|
});
|
|
@@ -524,6 +498,6 @@ exports.PresetStructureRepresentations = {
|
|
|
524
498
|
'polymer-and-ligand': polymerAndLigand,
|
|
525
499
|
'protein-and-nucleic': proteinAndNucleic,
|
|
526
500
|
'coarse-surface': coarseSurface,
|
|
527
|
-
|
|
501
|
+
illustrative: illustrative,
|
|
528
502
|
};
|
|
529
503
|
//# 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>[];
|
|
@@ -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;
|