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.
Files changed (91) hide show
  1. package/build/viewer/molstar.js +1 -1
  2. package/lib/apps/docking-viewer/viewport.d.ts +2 -0
  3. package/lib/apps/viewer/app.d.ts +1 -0
  4. package/lib/commonjs/apps/docking-viewer/viewport.d.ts +2 -0
  5. package/lib/commonjs/apps/viewer/app.d.ts +1 -0
  6. package/lib/commonjs/extensions/anvil/behavior.d.ts +1 -0
  7. package/lib/commonjs/extensions/dnatco/confal-pyramids/behavior.d.ts +1 -0
  8. package/lib/commonjs/extensions/model-archive/quality-assessment/behavior.d.ts +2 -0
  9. package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +2 -0
  10. package/lib/commonjs/extensions/rcsb/graphql/types.d.ts +11 -11
  11. package/lib/commonjs/extensions/rcsb/validation-report/behavior.d.ts +3 -0
  12. package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +2 -2
  13. package/lib/commonjs/mol-gl/shader/chunks/apply-light-color.glsl.js +2 -2
  14. package/lib/commonjs/mol-gl/shader/cylinders.frag.d.ts +2 -2
  15. package/lib/commonjs/mol-gl/shader/cylinders.frag.js +2 -2
  16. package/lib/commonjs/mol-gl/shader/direct-volume.frag.d.ts +2 -2
  17. package/lib/commonjs/mol-gl/shader/direct-volume.frag.js +2 -2
  18. package/lib/commonjs/mol-gl/shader/mesh.frag.d.ts +2 -2
  19. package/lib/commonjs/mol-gl/shader/mesh.frag.js +2 -2
  20. package/lib/commonjs/mol-gl/shader/spheres.frag.d.ts +2 -2
  21. package/lib/commonjs/mol-gl/shader/spheres.frag.js +2 -2
  22. package/lib/commonjs/mol-io/reader/cif/schema/bird.d.ts +1 -1
  23. package/lib/commonjs/mol-io/reader/cif/schema/bird.js +1 -1
  24. package/lib/commonjs/mol-io/reader/cif/schema/ccd.d.ts +1 -1
  25. package/lib/commonjs/mol-io/reader/cif/schema/ccd.js +1 -1
  26. package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +2 -2
  27. package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +1 -1
  28. package/lib/commonjs/mol-model/structure/export/categories/secondary-structure.js +8 -8
  29. package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +2 -1
  30. package/lib/commonjs/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js +16 -7
  31. package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +2 -0
  32. package/lib/commonjs/mol-plugin-state/builder/structure/hierarchy.d.ts +1 -0
  33. package/lib/commonjs/mol-plugin-state/builder/structure/representation-preset.d.ts +128 -120
  34. package/lib/commonjs/mol-plugin-state/builder/structure/representation-preset.js +5 -31
  35. package/lib/commonjs/mol-plugin-state/builder/structure/representation.d.ts +2 -1
  36. package/lib/commonjs/mol-plugin-state/manager/structure/component.d.ts +2 -1
  37. package/lib/commonjs/mol-plugin-state/manager/structure/component.js +11 -8
  38. package/lib/commonjs/mol-plugin-ui/controls/icons.d.ts +2 -1
  39. package/lib/commonjs/mol-plugin-ui/controls/icons.js +8 -5
  40. package/lib/commonjs/mol-plugin-ui/controls.d.ts +1 -1
  41. package/lib/commonjs/mol-plugin-ui/controls.js +2 -1
  42. package/lib/commonjs/mol-plugin-ui/structure/quick-styles.d.ts +25 -0
  43. package/lib/commonjs/mol-plugin-ui/structure/quick-styles.js +131 -0
  44. package/lib/commonjs/mol-plugin-ui/structure/volume.js +4 -4
  45. package/lib/commonjs/mol-repr/structure/registry.d.ts +1 -1
  46. package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +4 -4
  47. package/lib/commonjs/mol-repr/structure/representation/cartoon.js +3 -3
  48. package/lib/extensions/anvil/behavior.d.ts +1 -0
  49. package/lib/extensions/dnatco/confal-pyramids/behavior.d.ts +1 -0
  50. package/lib/extensions/model-archive/quality-assessment/behavior.d.ts +2 -0
  51. package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +2 -0
  52. package/lib/extensions/rcsb/graphql/types.d.ts +11 -11
  53. package/lib/extensions/rcsb/validation-report/behavior.d.ts +3 -0
  54. package/lib/mol-gl/shader/chunks/apply-light-color.glsl.d.ts +2 -2
  55. package/lib/mol-gl/shader/chunks/apply-light-color.glsl.js +2 -2
  56. package/lib/mol-gl/shader/cylinders.frag.d.ts +2 -2
  57. package/lib/mol-gl/shader/cylinders.frag.js +2 -2
  58. package/lib/mol-gl/shader/direct-volume.frag.d.ts +2 -2
  59. package/lib/mol-gl/shader/direct-volume.frag.js +2 -2
  60. package/lib/mol-gl/shader/mesh.frag.d.ts +2 -2
  61. package/lib/mol-gl/shader/mesh.frag.js +2 -2
  62. package/lib/mol-gl/shader/spheres.frag.d.ts +2 -2
  63. package/lib/mol-gl/shader/spheres.frag.js +2 -2
  64. package/lib/mol-io/reader/cif/schema/bird.d.ts +1 -1
  65. package/lib/mol-io/reader/cif/schema/bird.js +1 -1
  66. package/lib/mol-io/reader/cif/schema/ccd.d.ts +1 -1
  67. package/lib/mol-io/reader/cif/schema/ccd.js +1 -1
  68. package/lib/mol-io/reader/cif/schema/mmcif.d.ts +2 -2
  69. package/lib/mol-io/reader/cif/schema/mmcif.js +1 -1
  70. package/lib/mol-model/structure/export/categories/secondary-structure.js +8 -8
  71. package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.d.ts +2 -1
  72. package/lib/mol-plugin/behavior/dynamic/selection/structure-focus-representation.js +16 -7
  73. package/lib/mol-plugin/version.js +2 -2
  74. package/lib/mol-plugin-state/builder/structure/hierarchy-preset.d.ts +2 -0
  75. package/lib/mol-plugin-state/builder/structure/hierarchy.d.ts +1 -0
  76. package/lib/mol-plugin-state/builder/structure/representation-preset.d.ts +128 -120
  77. package/lib/mol-plugin-state/builder/structure/representation-preset.js +5 -31
  78. package/lib/mol-plugin-state/builder/structure/representation.d.ts +2 -1
  79. package/lib/mol-plugin-state/manager/structure/component.d.ts +2 -1
  80. package/lib/mol-plugin-state/manager/structure/component.js +11 -8
  81. package/lib/mol-plugin-ui/controls/icons.d.ts +2 -1
  82. package/lib/mol-plugin-ui/controls/icons.js +5 -3
  83. package/lib/mol-plugin-ui/controls.d.ts +1 -1
  84. package/lib/mol-plugin-ui/controls.js +2 -1
  85. package/lib/mol-plugin-ui/structure/quick-styles.d.ts +25 -0
  86. package/lib/mol-plugin-ui/structure/quick-styles.js +128 -0
  87. package/lib/mol-plugin-ui/structure/volume.js +4 -4
  88. package/lib/mol-repr/structure/registry.d.ts +1 -1
  89. package/lib/mol-repr/structure/representation/cartoon.d.ts +4 -4
  90. package/lib/mol-repr/structure/representation/cartoon.js +3 -3
  91. package/package.json +19 -19
@@ -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;
@@ -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
- 'illustrative': illustrative,
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
- private resolveProvider;
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-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
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;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2019-2021 mol* contributors, licensed under MIT, See LICENSE file for more info.
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>
@@ -76,6 +76,7 @@ var StructureComponentManager = /** @class */ (function (_super) {
76
76
  _a.sent();
77
77
  return [4 /*yield*/, this.plugin.state.updateBehavior(StructureFocusRepresentation, function (p) {
78
78
  p.ignoreHydrogens = !options.showHydrogens;
79
+ p.ignoreLight = options.ignoreLight;
79
80
  p.material = options.materialStyle;
80
81
  p.clip = options.clipObjects;
81
82
  })];
@@ -94,17 +95,18 @@ var StructureComponentManager = /** @class */ (function (_super) {
94
95
  });
95
96
  };
96
97
  StructureComponentManager.prototype.updateReprParams = function (update, component) {
97
- var _a = this.state.options, showHydrogens = _a.showHydrogens, quality = _a.visualQuality, material = _a.materialStyle, clip = _a.clipObjects;
98
+ var _a = this.state.options, showHydrogens = _a.showHydrogens, quality = _a.visualQuality, ignoreLight = _a.ignoreLight, material = _a.materialStyle, clip = _a.clipObjects;
98
99
  var ignoreHydrogens = !showHydrogens;
99
100
  for (var _i = 0, _b = component.representations; _i < _b.length; _i++) {
100
101
  var r = _b[_i];
101
102
  if (r.cell.transform.transformer !== StructureRepresentation3D)
102
103
  continue;
103
104
  var params = r.cell.transform.params;
104
- if (!!params.type.params.ignoreHydrogens !== ignoreHydrogens || params.type.params.quality !== quality || !shallowEqual(params.type.params.material, material) || !PD.areEqual(Clip.Params, params.type.params.clip, clip)) {
105
+ if (!!params.type.params.ignoreHydrogens !== ignoreHydrogens || params.type.params.quality !== quality || params.type.params.ignoreLight !== ignoreLight || !shallowEqual(params.type.params.material, material) || !PD.areEqual(Clip.Params, params.type.params.clip, clip)) {
105
106
  update.to(r.cell).update(function (old) {
106
107
  old.type.params.ignoreHydrogens = ignoreHydrogens;
107
108
  old.type.params.quality = quality;
109
+ old.type.params.ignoreLight = ignoreLight;
108
110
  old.type.params.material = material;
109
111
  old.type.params.clip = clip;
110
112
  });
@@ -378,9 +380,9 @@ var StructureComponentManager = /** @class */ (function (_super) {
378
380
  var _this = this;
379
381
  if (components.length === 0)
380
382
  return;
381
- var _a = this.state.options, showHydrogens = _a.showHydrogens, quality = _a.visualQuality, material = _a.materialStyle, clip = _a.clipObjects;
383
+ var _a = this.state.options, showHydrogens = _a.showHydrogens, quality = _a.visualQuality, ignoreLight = _a.ignoreLight, material = _a.materialStyle, clip = _a.clipObjects;
382
384
  var ignoreHydrogens = !showHydrogens;
383
- var typeParams = { ignoreHydrogens: ignoreHydrogens, quality: quality, material: material, clip: clip };
385
+ var typeParams = { ignoreHydrogens: ignoreHydrogens, quality: quality, ignoreLight: ignoreLight, material: material, clip: clip };
384
386
  return this.plugin.dataTransaction(function () { return __awaiter(_this, void 0, void 0, function () {
385
387
  var _i, components_9, component;
386
388
  return __generator(this, function (_a) {
@@ -441,16 +443,16 @@ var StructureComponentManager = /** @class */ (function (_super) {
441
443
  var _this = this;
442
444
  return __generator(this, function (_a) {
443
445
  return [2 /*return*/, this.plugin.dataTransaction(function () { return __awaiter(_this, void 0, void 0, function () {
444
- var xs, _a, showHydrogens, quality, material, clip, ignoreHydrogens, typeParams, componentKey, _i, xs_1, s, component;
446
+ var xs, _a, showHydrogens, quality, ignoreLight, material, clip, ignoreHydrogens, typeParams, componentKey, _i, xs_1, s, component;
445
447
  return __generator(this, function (_b) {
446
448
  switch (_b.label) {
447
449
  case 0:
448
450
  xs = structures || this.currentStructures;
449
451
  if (xs.length === 0)
450
452
  return [2 /*return*/];
451
- _a = this.state.options, showHydrogens = _a.showHydrogens, quality = _a.visualQuality, material = _a.materialStyle, clip = _a.clipObjects;
453
+ _a = this.state.options, showHydrogens = _a.showHydrogens, quality = _a.visualQuality, ignoreLight = _a.ignoreLight, material = _a.materialStyle, clip = _a.clipObjects;
452
454
  ignoreHydrogens = !showHydrogens;
453
- typeParams = { ignoreHydrogens: ignoreHydrogens, quality: quality, material: material, clip: clip };
455
+ typeParams = { ignoreHydrogens: ignoreHydrogens, quality: quality, ignoreLight: ignoreLight, material: material, clip: clip };
454
456
  componentKey = UUID.create22();
455
457
  _i = 0, xs_1 = xs;
456
458
  _b.label = 1;
@@ -625,6 +627,7 @@ var StructureComponentManager = /** @class */ (function (_super) {
625
627
  StructureComponentManager.OptionsParams = {
626
628
  showHydrogens: PD.Boolean(true, { description: 'Toggle display of hydrogen atoms in representations' }),
627
629
  visualQuality: PD.Select('auto', VisualQualityOptions, { description: 'Control the visual/rendering quality of representations' }),
630
+ ignoreLight: PD.Boolean(false, { description: 'Ignore light for stylized rendering of representtions' }),
628
631
  materialStyle: Material.getParam(),
629
632
  clipObjects: PD.Group(Clip.Params),
630
633
  interactions: PD.Group(InteractionsProvider.defaultParams, { label: 'Non-covalent Interactions' }),
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2020-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>
@@ -23,6 +23,7 @@ export declare function CubeSendSvg(): JSX.Element;
23
23
  export declare function CursorDefaultOutlineSvg(): JSX.Element;
24
24
  export declare function FileOutlineSvg(): JSX.Element;
25
25
  export declare function PencilRulerSvg(): JSX.Element;
26
+ export declare function MagicWandSvg(): JSX.Element;
26
27
  export declare function AccountTreeOutlinedSvg(): JSX.Element;
27
28
  export declare function AddSvg(): JSX.Element;
28
29
  export declare function ArrowDownwardSvg(): JSX.Element;
@@ -20,9 +20,9 @@ var _Molecule = _jsx("svg", __assign({ width: '17px', height: '17px', viewBox: '
20
20
  export function MoleculeSvg() { return _Molecule; }
21
21
  // The following icons are adapted from https://materialdesignicons.com/ and
22
22
  // licensed with https://github.com/Templarian/MaterialDesign/blob/master/LICENSE
23
- var _CubeOutline = _jsx("svg", __assign({ width: '24px', height: '24px', viewBox: '0 0 24 24', strokeWidth: '0.1px' }, { children: _jsx("path", { d: "M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L6.04,7.5L12,10.85L17.96,7.5L12,4.15M5,15.91L11,19.29V12.58L5,9.21V15.91M19,15.91V9.21L13,12.58V19.29L19,15.91Z" }, void 0) }), void 0);
23
+ var _CubeOutline = _jsx("svg", __assign({ width: '24px', height: '24px', viewBox: '0 0 24 24', strokeWidth: '0.1px' }, { children: _jsx("path", { d: 'M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L6.04,7.5L12,10.85L17.96,7.5L12,4.15M5,15.91L11,19.29V12.58L5,9.21V15.91M19,15.91V9.21L13,12.58V19.29L19,15.91Z' }, void 0) }), void 0);
24
24
  export function CubeOutlineSvg() { return _CubeOutline; }
25
- var _CubeScan = _jsx("svg", __assign({ width: '24px', height: '24px', viewBox: '0 0 24 24', strokeWidth: '0.1px' }, { children: _jsx("path", { d: "M17,22V20H20V17H22V20.5C22,20.89 21.84,21.24 21.54,21.54C21.24,21.84 20.89,22 20.5,22H17M7,22H3.5C3.11,22 2.76,21.84 2.46,21.54C2.16,21.24 2,20.89 2,20.5V17H4V20H7V22M17,2H20.5C20.89,2 21.24,2.16 21.54,2.46C21.84,2.76 22,3.11 22,3.5V7H20V4H17V2M7,2V4H4V7H2V3.5C2,3.11 2.16,2.76 2.46,2.46C2.76,2.16 3.11,2 3.5,2H7M13,17.25L17,14.95V10.36L13,12.66V17.25M12,10.92L16,8.63L12,6.28L8,8.63L12,10.92M7,14.95L11,17.25V12.66L7,10.36V14.95M18.23,7.59C18.73,7.91 19,8.34 19,8.91V15.23C19,15.8 18.73,16.23 18.23,16.55L12.75,19.73C12.25,20.05 11.75,20.05 11.25,19.73L5.77,16.55C5.27,16.23 5,15.8 5,15.23V8.91C5,8.34 5.27,7.91 5.77,7.59L11.25,4.41C11.5,4.28 11.75,4.22 12,4.22C12.25,4.22 12.5,4.28 12.75,4.41L18.23,7.59Z" }, void 0) }), void 0);
25
+ var _CubeScan = _jsx("svg", __assign({ width: '24px', height: '24px', viewBox: '0 0 24 24', strokeWidth: '0.1px' }, { children: _jsx("path", { d: 'M17,22V20H20V17H22V20.5C22,20.89 21.84,21.24 21.54,21.54C21.24,21.84 20.89,22 20.5,22H17M7,22H3.5C3.11,22 2.76,21.84 2.46,21.54C2.16,21.24 2,20.89 2,20.5V17H4V20H7V22M17,2H20.5C20.89,2 21.24,2.16 21.54,2.46C21.84,2.76 22,3.11 22,3.5V7H20V4H17V2M7,2V4H4V7H2V3.5C2,3.11 2.16,2.76 2.46,2.46C2.76,2.16 3.11,2 3.5,2H7M13,17.25L17,14.95V10.36L13,12.66V17.25M12,10.92L16,8.63L12,6.28L8,8.63L12,10.92M7,14.95L11,17.25V12.66L7,10.36V14.95M18.23,7.59C18.73,7.91 19,8.34 19,8.91V15.23C19,15.8 18.73,16.23 18.23,16.55L12.75,19.73C12.25,20.05 11.75,20.05 11.25,19.73L5.77,16.55C5.27,16.23 5,15.8 5,15.23V8.91C5,8.34 5.27,7.91 5.77,7.59L11.25,4.41C11.5,4.28 11.75,4.22 12,4.22C12.25,4.22 12.5,4.28 12.75,4.41L18.23,7.59Z' }, void 0) }), void 0);
26
26
  export function CubeScanSvg() { return _CubeScan; }
27
27
  var _CubeSend = _jsx("svg", __assign({ width: '24px', height: '24px', viewBox: '0 0 24 24', strokeWidth: '0.1px' }, { children: _jsx("path", { d: "M16,4L9,8.04V15.96L16,20L23,15.96V8.04M16,6.31L19.8,8.5L16,10.69L12.21,8.5M0,7V9H7V7M11,10.11L15,12.42V17.11L11,14.81M21,10.11V14.81L17,17.11V12.42M2,11V13H7V11M4,15V17H7V15" }, void 0) }), void 0);
28
28
  export function CubeSendSvg() { return _CubeSend; }
@@ -30,8 +30,10 @@ var _CursorDefaultOutline = _jsx("svg", __assign({ width: '24px', height: '24px'
30
30
  export function CursorDefaultOutlineSvg() { return _CursorDefaultOutline; }
31
31
  var _FileOutline = _jsx("svg", __assign({ width: '24px', height: '24px', viewBox: '0 0 24 24', strokeWidth: '0.1px' }, { children: _jsx("path", { fill: 'currentColor', d: 'M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z' }, void 0) }), void 0);
32
32
  export function FileOutlineSvg() { return _FileOutline; }
33
- var _PencilRuler = _jsx("svg", __assign({ width: '24px', height: '24px', viewBox: '0 0 24 24', strokeWidth: '0.1px' }, { children: _jsx("path", { d: "M3 17.25V21H6.75L17.81 9.93L14.06 6.18L3 17.25M22.61 18.36L18.36 22.61L13.16 17.41L14.93 15.64L15.93 16.64L18.4 14.16L19.82 15.58L18.36 17L19.42 18L20.84 16.6L22.61 18.36M6.61 10.83L1.39 5.64L5.64 1.39L7.4 3.16L4.93 5.64L6 6.7L8.46 4.22L9.88 5.64L8.46 7.05L9.46 8.05L6.61 10.83M20.71 7C21.1 6.61 21.1 6 20.71 5.59L18.37 3.29C18 2.9 17.35 2.9 16.96 3.29L15.12 5.12L18.87 8.87L20.71 7Z" }, void 0) }), void 0);
33
+ var _PencilRuler = _jsx("svg", __assign({ width: '24px', height: '24px', viewBox: '0 0 24 24', strokeWidth: '0.1px' }, { children: _jsx("path", { d: 'M3 17.25V21H6.75L17.81 9.93L14.06 6.18L3 17.25M22.61 18.36L18.36 22.61L13.16 17.41L14.93 15.64L15.93 16.64L18.4 14.16L19.82 15.58L18.36 17L19.42 18L20.84 16.6L22.61 18.36M6.61 10.83L1.39 5.64L5.64 1.39L7.4 3.16L4.93 5.64L6 6.7L8.46 4.22L9.88 5.64L8.46 7.05L9.46 8.05L6.61 10.83M20.71 7C21.1 6.61 21.1 6 20.71 5.59L18.37 3.29C18 2.9 17.35 2.9 16.96 3.29L15.12 5.12L18.87 8.87L20.71 7Z' }, void 0) }), void 0);
34
34
  export function PencilRulerSvg() { return _PencilRuler; }
35
+ var _MagicWand = _jsx("svg", __assign({ width: '24px', height: '24px', viewBox: '0 0 24 24' }, { children: _jsx("path", { fill: 'currentColor', d: 'M7.5,5.6L5,7L6.4,4.5L5,2L7.5,3.4L10,2L8.6,4.5L10,7L7.5,5.6M19.5,15.4L22,14L20.6,16.5L22,19L19.5,17.6L17,19L18.4,16.5L17,14L19.5,15.4M22,2L20.6,4.5L22,7L19.5,5.6L17,7L18.4,4.5L17,2L19.5,3.4L22,2M13.34,12.78L15.78,10.34L13.66,8.22L11.22,10.66L13.34,12.78M14.37,7.29L16.71,9.63C17.1,10 17.1,10.65 16.71,11.04L5.04,22.71C4.65,23.1 4,23.1 3.63,22.71L1.29,20.37C0.9,20 0.9,19.35 1.29,18.96L12.96,7.29C13.35,6.9 14,6.9 14.37,7.29Z' }, void 0) }), void 0);
36
+ export function MagicWandSvg() { return _MagicWand; }
35
37
  // The following icons are adapted from https://material-ui.com/components/material-icons/ and
36
38
  // licensed with https://github.com/mui-org/material-ui/blob/master/LICENSE
37
39
  var _AccountTreeOutlined = _jsx("svg", __assign({ width: '24px', height: '24px', viewBox: '0 0 24 24' }, { children: _jsx("path", { d: 'M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3h7zM7 9H4V5h3v4zm10 6h3v4h-3v-4zm0-10h3v4h-3V5z' }, void 0) }), void 0);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2018-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.
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>