@cosmol-studio/cosmol-viewer 0.6.3-rc.2 → 0.6.4-rc.1
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/README.md +6 -7
- package/cosmol_viewer_wasm.d.ts +70 -7
- package/cosmol_viewer_wasm.js +411 -46
- package/cosmol_viewer_wasm_bg.wasm +0 -0
- package/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -95,8 +95,8 @@ bond selections use Stick and residue selections use Cartoon.
|
|
|
95
95
|
|
|
96
96
|
## COSMolKit scientific objects
|
|
97
97
|
|
|
98
|
-
In a browser application,
|
|
99
|
-
|
|
98
|
+
In a browser application, CK and Viewer each initialize their WASM module on
|
|
99
|
+
import:
|
|
100
100
|
|
|
101
101
|
```js
|
|
102
102
|
import * as ck from "@cosmol-studio/cosmolkit";
|
|
@@ -135,11 +135,10 @@ endpoints decode Python payloads and enter the same typed render/play paths.
|
|
|
135
135
|
Notebook updates, camera logging and viewport overlays are encoded one-way `ViewerCommand`
|
|
136
136
|
messages submitted to `viewer.dispatch(payload)`.
|
|
137
137
|
|
|
138
|
-
Scenes, animations, and commands share the `
|
|
139
|
-
`
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
Old unprefixed and CMV1 formats are rejected: sender and receiver must match.
|
|
138
|
+
Scenes, animations, and commands share the `CMV3:R:<base64>` (raw postcard) or
|
|
139
|
+
`CMV3:G:<base64>` (gzip postcard) format. The notebook endpoints also accept
|
|
140
|
+
saved `CMV2` payloads. Postcard data below 1 KiB uses raw encoding. At or above
|
|
141
|
+
1 KiB the encoder uses gzip level 1. The decoder accepts versioned envelopes.
|
|
143
142
|
The decoder defaults to at most 64 MiB of serialized data; Rust callers can use
|
|
144
143
|
`decode_payload_with_limit` to set another bound. This is a serialized-byte limit,
|
|
145
144
|
not a limit on the final object or GPU memory. Ordinary JS and native IPC do not
|
package/cosmol_viewer_wasm.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export type ByteInput = number;
|
|
|
6
6
|
|
|
7
7
|
export type BytesInput = Uint8Array;
|
|
8
8
|
|
|
9
|
+
export type ColorEntries = Record<string, BytesInput>;
|
|
10
|
+
|
|
9
11
|
export type DoubleInput = number;
|
|
10
12
|
|
|
11
13
|
export type FloatArrayInput = Float32Array;
|
|
@@ -54,6 +56,24 @@ export class Animation {
|
|
|
54
56
|
toJson(): string;
|
|
55
57
|
}
|
|
56
58
|
|
|
59
|
+
/**
|
|
60
|
+
* Reusable element and per-atom colors for molecular displays.
|
|
61
|
+
*/
|
|
62
|
+
export class MoleculeColors {
|
|
63
|
+
private constructor();
|
|
64
|
+
free(): void;
|
|
65
|
+
[Symbol.dispose](): void;
|
|
66
|
+
/**
|
|
67
|
+
* Return the built-in molecular color scheme.
|
|
68
|
+
*/
|
|
69
|
+
static default(): MoleculeColors;
|
|
70
|
+
static new(elements: ColorEntries): MoleculeColors;
|
|
71
|
+
/**
|
|
72
|
+
* Return a new scheme with colors keyed by zero-based CK atom ID.
|
|
73
|
+
*/
|
|
74
|
+
withAtomColors(atoms: ColorEntries): MoleculeColors;
|
|
75
|
+
}
|
|
76
|
+
|
|
57
77
|
/**
|
|
58
78
|
* Reusable scene state. Cloned binding handles refer to the same scene.
|
|
59
79
|
*/
|
|
@@ -88,7 +108,20 @@ export class Scene {
|
|
|
88
108
|
setLightColor(color: BytesInput): void;
|
|
89
109
|
setLightIntensity(intensity: FloatInput): void;
|
|
90
110
|
setLighting(ambient: FloatInput, diffuse: FloatInput, specular: FloatInput, intensity: FloatInput, color: BytesInput): void;
|
|
111
|
+
/**
|
|
112
|
+
* Set the element palette for subsequent molecular displays.
|
|
113
|
+
* Use MoleculeColors.default() to restore the built-in palette.
|
|
114
|
+
*/
|
|
115
|
+
setMoleculePalette(colors: MoleculeColors): void;
|
|
116
|
+
/**
|
|
117
|
+
* Toggle Multishadow ambient occlusion. Directions default to 32 (range 8 to 64).
|
|
118
|
+
*/
|
|
119
|
+
setMultishadow(enabled: BoolInput, directions?: ByteInput | null): void;
|
|
91
120
|
setScale(scale: FloatInput): void;
|
|
121
|
+
/**
|
|
122
|
+
* Enable scene-wide depth outlines. The default line is black and one pixel wide.
|
|
123
|
+
*/
|
|
124
|
+
setSilhouettes(enabled: BoolInput, color?: BytesInput | null, width?: FloatInput | null, depth_jump?: FloatInput | null): void;
|
|
92
125
|
setTransparentBackground(enabled: BoolInput): void;
|
|
93
126
|
setZoomDisabled(disabled: BoolInput): void;
|
|
94
127
|
set(name: TextInput, item: import("@cosmol-studio/cosmolkit").Molecule | import("@cosmol-studio/cosmolkit").Protein | Selection | Sphere | Stick, style?: Style | null): void;
|
|
@@ -147,6 +180,10 @@ export class Sphere {
|
|
|
147
180
|
color(rgb: BytesInput): Sphere;
|
|
148
181
|
static new(center: FloatArrayInput, radius: FloatInput): Sphere;
|
|
149
182
|
opacity(opacity: FloatInput): Sphere;
|
|
183
|
+
/**
|
|
184
|
+
* Override scene silhouettes with a width in output pixels.
|
|
185
|
+
*/
|
|
186
|
+
silhouettes(rgb: BytesInput, width: FloatInput): Sphere;
|
|
150
187
|
}
|
|
151
188
|
|
|
152
189
|
export class Stick {
|
|
@@ -157,6 +194,10 @@ export class Stick {
|
|
|
157
194
|
color(rgb: BytesInput): Stick;
|
|
158
195
|
static new(start: FloatArrayInput, end: FloatArrayInput, radius: FloatInput): Stick;
|
|
159
196
|
opacity(opacity: FloatInput): Stick;
|
|
197
|
+
/**
|
|
198
|
+
* Override scene silhouettes with a width in output pixels.
|
|
199
|
+
*/
|
|
200
|
+
silhouettes(rgb: BytesInput, width: FloatInput): Stick;
|
|
160
201
|
}
|
|
161
202
|
|
|
162
203
|
export class Style {
|
|
@@ -167,15 +208,26 @@ export class Style {
|
|
|
167
208
|
static cartoon(): Style;
|
|
168
209
|
cloneStyle(): Style;
|
|
169
210
|
color(rgb: BytesInput): Style;
|
|
211
|
+
/**
|
|
212
|
+
* Apply a reusable molecular color scheme.
|
|
213
|
+
*/
|
|
214
|
+
colors(colors: MoleculeColors): Style;
|
|
170
215
|
configureSurface(probe_radius: FloatInput, grid_spacing: FloatInput, solvent_accessible: BoolInput, sharp_boundaries: BoolInput): Style;
|
|
171
216
|
conformer(id: IndexInput): Style;
|
|
172
217
|
coordinates2d(): Style;
|
|
173
218
|
metallic(value: FloatInput): Style;
|
|
174
219
|
opacity(value: FloatInput): Style;
|
|
175
|
-
outline(rgb: BytesInput, width: FloatInput): Style;
|
|
176
220
|
rainbowResidues(): Style;
|
|
177
221
|
roughness(value: FloatInput): Style;
|
|
178
222
|
scale(value: FloatInput): Style;
|
|
223
|
+
/**
|
|
224
|
+
* When disabled, draw one stick per bond regardless of its order.
|
|
225
|
+
*/
|
|
226
|
+
showBondOrder(show: BoolInput): Style;
|
|
227
|
+
/**
|
|
228
|
+
* Override scene silhouettes. Width is in pixels. Zero disables this shape's edges.
|
|
229
|
+
*/
|
|
230
|
+
silhouettes(rgb: BytesInput, width: FloatInput): Style;
|
|
179
231
|
static sphere(): Style;
|
|
180
232
|
static stick(): Style;
|
|
181
233
|
static surface(): Style;
|
|
@@ -253,6 +305,7 @@ export interface InitOutput {
|
|
|
253
305
|
readonly __setCkTypes: (a: any, b: any, c: any) => void;
|
|
254
306
|
readonly __setViewerTypes: (a: any, b: any, c: any, d: any) => void;
|
|
255
307
|
readonly __wbg_animation_free: (a: number, b: number) => void;
|
|
308
|
+
readonly __wbg_moleculecolors_free: (a: number, b: number) => void;
|
|
256
309
|
readonly __wbg_scene_free: (a: number, b: number) => void;
|
|
257
310
|
readonly __wbg_selection_free: (a: number, b: number) => void;
|
|
258
311
|
readonly __wbg_selector_free: (a: number, b: number) => void;
|
|
@@ -269,6 +322,9 @@ export interface InitOutput {
|
|
|
269
322
|
readonly animation_setStaticScene: (a: number, b: number, c: number) => void;
|
|
270
323
|
readonly animation_toJson: (a: number, b: number) => void;
|
|
271
324
|
readonly bindingContractJson: (a: number) => void;
|
|
325
|
+
readonly moleculecolors_default: (a: number) => void;
|
|
326
|
+
readonly moleculecolors_new: (a: number, b: any) => void;
|
|
327
|
+
readonly moleculecolors_withAtomColors: (a: number, b: number, c: any) => void;
|
|
272
328
|
readonly scene_add: (a: number, b: number, c: any, d: number) => void;
|
|
273
329
|
readonly scene_cloneScene: (a: number, b: number) => void;
|
|
274
330
|
readonly scene_mergeShapes: (a: number, b: number, c: number) => void;
|
|
@@ -291,7 +347,10 @@ export interface InitOutput {
|
|
|
291
347
|
readonly scene_setLightColor: (a: number, b: number, c: any) => void;
|
|
292
348
|
readonly scene_setLightIntensity: (a: number, b: number, c: any) => void;
|
|
293
349
|
readonly scene_setLighting: (a: number, b: number, c: any, d: any, e: any, f: any, g: any) => void;
|
|
350
|
+
readonly scene_setMoleculePalette: (a: number, b: number, c: number) => void;
|
|
351
|
+
readonly scene_setMultishadow: (a: number, b: number, c: any, d: number) => void;
|
|
294
352
|
readonly scene_setScale: (a: number, b: number, c: any) => void;
|
|
353
|
+
readonly scene_setSilhouettes: (a: number, b: number, c: any, d: number, e: number, f: number) => void;
|
|
295
354
|
readonly scene_setTransparentBackground: (a: number, b: number, c: any) => void;
|
|
296
355
|
readonly scene_setZoomDisabled: (a: number, b: number, c: any) => void;
|
|
297
356
|
readonly scene_shapeCount: (a: number, b: number) => void;
|
|
@@ -314,23 +373,27 @@ export interface InitOutput {
|
|
|
314
373
|
readonly sphere_color: (a: number, b: number, c: any) => void;
|
|
315
374
|
readonly sphere_new: (a: number, b: any, c: any) => void;
|
|
316
375
|
readonly sphere_opacity: (a: number, b: number, c: any) => void;
|
|
376
|
+
readonly sphere_silhouettes: (a: number, b: number, c: any, d: any) => void;
|
|
317
377
|
readonly stick_cloneShape: (a: number, b: number) => void;
|
|
318
378
|
readonly stick_color: (a: number, b: number, c: any) => void;
|
|
319
379
|
readonly stick_new: (a: number, b: any, c: any, d: any) => void;
|
|
320
380
|
readonly stick_opacity: (a: number, b: number, c: any) => void;
|
|
381
|
+
readonly stick_silhouettes: (a: number, b: number, c: any, d: any) => void;
|
|
321
382
|
readonly style_ballAndStick: (a: number) => void;
|
|
322
383
|
readonly style_cartoon: (a: number) => void;
|
|
323
384
|
readonly style_cloneStyle: (a: number, b: number) => void;
|
|
324
385
|
readonly style_color: (a: number, b: number, c: any) => void;
|
|
386
|
+
readonly style_colors: (a: number, b: number, c: number) => void;
|
|
325
387
|
readonly style_configureSurface: (a: number, b: number, c: any, d: any, e: any, f: any) => void;
|
|
326
388
|
readonly style_conformer: (a: number, b: number, c: any) => void;
|
|
327
389
|
readonly style_coordinates2d: (a: number, b: number) => void;
|
|
328
390
|
readonly style_metallic: (a: number, b: number, c: any) => void;
|
|
329
391
|
readonly style_opacity: (a: number, b: number, c: any) => void;
|
|
330
|
-
readonly style_outline: (a: number, b: number, c: any, d: any) => void;
|
|
331
392
|
readonly style_rainbowResidues: (a: number, b: number) => void;
|
|
332
393
|
readonly style_roughness: (a: number, b: number, c: any) => void;
|
|
333
394
|
readonly style_scale: (a: number, b: number, c: any) => void;
|
|
395
|
+
readonly style_showBondOrder: (a: number, b: number, c: any) => void;
|
|
396
|
+
readonly style_silhouettes: (a: number, b: number, c: any, d: any) => void;
|
|
334
397
|
readonly style_sphere: (a: number) => void;
|
|
335
398
|
readonly style_stick: (a: number) => void;
|
|
336
399
|
readonly style_surface: (a: number) => void;
|
|
@@ -346,11 +409,11 @@ export interface InitOutput {
|
|
|
346
409
|
readonly viewer_showFps: (a: number, b: number, c: any) => void;
|
|
347
410
|
readonly viewer_takeScreenshot: (a: number) => any;
|
|
348
411
|
readonly viewer_update: (a: number, b: number, c: number) => void;
|
|
349
|
-
readonly
|
|
350
|
-
readonly
|
|
351
|
-
readonly
|
|
352
|
-
readonly
|
|
353
|
-
readonly
|
|
412
|
+
readonly __wasm_bindgen_func_elem_8835: (a: number, b: number, c: number, d: any) => void;
|
|
413
|
+
readonly __wasm_bindgen_func_elem_8837: (a: number, b: number, c: any, d: any) => void;
|
|
414
|
+
readonly __wasm_bindgen_func_elem_3928: (a: number, b: number, c: number) => void;
|
|
415
|
+
readonly __wasm_bindgen_func_elem_3929: (a: number, b: number, c: any) => void;
|
|
416
|
+
readonly __wasm_bindgen_func_elem_3929_101: (a: number, b: number, c: any) => void;
|
|
354
417
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
355
418
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
356
419
|
readonly __wbindgen_export3: (a: number, b: number, c: number) => void;
|
package/cosmol_viewer_wasm.js
CHANGED
|
@@ -196,6 +196,92 @@ export class Animation {
|
|
|
196
196
|
}
|
|
197
197
|
if (Symbol.dispose) Animation.prototype[Symbol.dispose] = Animation.prototype.free;
|
|
198
198
|
|
|
199
|
+
/**
|
|
200
|
+
* Reusable element and per-atom colors for molecular displays.
|
|
201
|
+
*/
|
|
202
|
+
export class MoleculeColors {
|
|
203
|
+
constructor() {
|
|
204
|
+
throw new Error('cannot invoke `new` directly');
|
|
205
|
+
}
|
|
206
|
+
static __wrap(ptr) {
|
|
207
|
+
const obj = Object.create(MoleculeColors.prototype);
|
|
208
|
+
obj.__wbg_ptr = ptr;
|
|
209
|
+
MoleculeColorsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
210
|
+
return obj;
|
|
211
|
+
}
|
|
212
|
+
__destroy_into_raw() {
|
|
213
|
+
const ptr = this.__wbg_ptr;
|
|
214
|
+
this.__wbg_ptr = 0;
|
|
215
|
+
MoleculeColorsFinalization.unregister(this);
|
|
216
|
+
return ptr;
|
|
217
|
+
}
|
|
218
|
+
free() {
|
|
219
|
+
const ptr = this.__destroy_into_raw();
|
|
220
|
+
wasm.__wbg_moleculecolors_free(ptr, 0);
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Return the built-in molecular color scheme.
|
|
224
|
+
* @returns {MoleculeColors}
|
|
225
|
+
*/
|
|
226
|
+
static default() {
|
|
227
|
+
try {
|
|
228
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
229
|
+
wasm.moleculecolors_default(retptr);
|
|
230
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
231
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
232
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
233
|
+
if (r2) {
|
|
234
|
+
throw takeFromExternrefTable0(r1);
|
|
235
|
+
}
|
|
236
|
+
return MoleculeColors.__wrap(r0);
|
|
237
|
+
} finally {
|
|
238
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* @param {ColorEntries} elements
|
|
243
|
+
* @returns {MoleculeColors}
|
|
244
|
+
*/
|
|
245
|
+
static new(elements) {
|
|
246
|
+
try {
|
|
247
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
248
|
+
wasm.moleculecolors_new(retptr, elements);
|
|
249
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
250
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
251
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
252
|
+
if (r2) {
|
|
253
|
+
throw takeFromExternrefTable0(r1);
|
|
254
|
+
}
|
|
255
|
+
return MoleculeColors.__wrap(r0);
|
|
256
|
+
} finally {
|
|
257
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Return a new scheme with colors keyed by zero-based CK atom ID.
|
|
262
|
+
* @param {ColorEntries} atoms
|
|
263
|
+
* @returns {MoleculeColors}
|
|
264
|
+
*/
|
|
265
|
+
withAtomColors(atoms) {
|
|
266
|
+
try {
|
|
267
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
268
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
269
|
+
_assertNum(this.__wbg_ptr);
|
|
270
|
+
wasm.moleculecolors_withAtomColors(retptr, this.__wbg_ptr, atoms);
|
|
271
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
272
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
273
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
274
|
+
if (r2) {
|
|
275
|
+
throw takeFromExternrefTable0(r1);
|
|
276
|
+
}
|
|
277
|
+
return MoleculeColors.__wrap(r0);
|
|
278
|
+
} finally {
|
|
279
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
if (Symbol.dispose) MoleculeColors.prototype[Symbol.dispose] = MoleculeColors.prototype.free;
|
|
284
|
+
|
|
199
285
|
/**
|
|
200
286
|
* Reusable scene state. Cloned binding handles refer to the same scene.
|
|
201
287
|
*/
|
|
@@ -619,6 +705,50 @@ export class Scene {
|
|
|
619
705
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
620
706
|
}
|
|
621
707
|
}
|
|
708
|
+
/**
|
|
709
|
+
* Set the element palette for subsequent molecular displays.
|
|
710
|
+
* Use MoleculeColors.default() to restore the built-in palette.
|
|
711
|
+
* @param {MoleculeColors} colors
|
|
712
|
+
*/
|
|
713
|
+
setMoleculePalette(colors) {
|
|
714
|
+
try {
|
|
715
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
716
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
717
|
+
_assertNum(this.__wbg_ptr);
|
|
718
|
+
_assertClass(colors, MoleculeColors);
|
|
719
|
+
if (colors.__wbg_ptr === 0) {
|
|
720
|
+
throw new Error('Attempt to use a moved value');
|
|
721
|
+
}
|
|
722
|
+
wasm.scene_setMoleculePalette(retptr, this.__wbg_ptr, colors.__wbg_ptr);
|
|
723
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
724
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
725
|
+
if (r1) {
|
|
726
|
+
throw takeFromExternrefTable0(r0);
|
|
727
|
+
}
|
|
728
|
+
} finally {
|
|
729
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* Toggle Multishadow ambient occlusion. Directions default to 32 (range 8 to 64).
|
|
734
|
+
* @param {BoolInput} enabled
|
|
735
|
+
* @param {ByteInput | null} [directions]
|
|
736
|
+
*/
|
|
737
|
+
setMultishadow(enabled, directions) {
|
|
738
|
+
try {
|
|
739
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
740
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
741
|
+
_assertNum(this.__wbg_ptr);
|
|
742
|
+
wasm.scene_setMultishadow(retptr, this.__wbg_ptr, enabled, isLikeNone(directions) ? 0 : addToExternrefTable0(directions));
|
|
743
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
744
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
745
|
+
if (r1) {
|
|
746
|
+
throw takeFromExternrefTable0(r0);
|
|
747
|
+
}
|
|
748
|
+
} finally {
|
|
749
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
750
|
+
}
|
|
751
|
+
}
|
|
622
752
|
/**
|
|
623
753
|
* @param {FloatInput} scale
|
|
624
754
|
*/
|
|
@@ -637,6 +767,28 @@ export class Scene {
|
|
|
637
767
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
638
768
|
}
|
|
639
769
|
}
|
|
770
|
+
/**
|
|
771
|
+
* Enable scene-wide depth outlines. The default line is black and one pixel wide.
|
|
772
|
+
* @param {BoolInput} enabled
|
|
773
|
+
* @param {BytesInput | null} [color]
|
|
774
|
+
* @param {FloatInput | null} [width]
|
|
775
|
+
* @param {FloatInput | null} [depth_jump]
|
|
776
|
+
*/
|
|
777
|
+
setSilhouettes(enabled, color, width, depth_jump) {
|
|
778
|
+
try {
|
|
779
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
780
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
781
|
+
_assertNum(this.__wbg_ptr);
|
|
782
|
+
wasm.scene_setSilhouettes(retptr, this.__wbg_ptr, enabled, isLikeNone(color) ? 0 : addToExternrefTable0(color), isLikeNone(width) ? 0 : addToExternrefTable0(width), isLikeNone(depth_jump) ? 0 : addToExternrefTable0(depth_jump));
|
|
783
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
784
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
785
|
+
if (r1) {
|
|
786
|
+
throw takeFromExternrefTable0(r0);
|
|
787
|
+
}
|
|
788
|
+
} finally {
|
|
789
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
790
|
+
}
|
|
791
|
+
}
|
|
640
792
|
/**
|
|
641
793
|
* @param {BoolInput} enabled
|
|
642
794
|
*/
|
|
@@ -1177,6 +1329,29 @@ export class Sphere {
|
|
|
1177
1329
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1178
1330
|
}
|
|
1179
1331
|
}
|
|
1332
|
+
/**
|
|
1333
|
+
* Override scene silhouettes with a width in output pixels.
|
|
1334
|
+
* @param {BytesInput} rgb
|
|
1335
|
+
* @param {FloatInput} width
|
|
1336
|
+
* @returns {Sphere}
|
|
1337
|
+
*/
|
|
1338
|
+
silhouettes(rgb, width) {
|
|
1339
|
+
try {
|
|
1340
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1341
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1342
|
+
_assertNum(this.__wbg_ptr);
|
|
1343
|
+
wasm.sphere_silhouettes(retptr, this.__wbg_ptr, rgb, width);
|
|
1344
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1345
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1346
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1347
|
+
if (r2) {
|
|
1348
|
+
throw takeFromExternrefTable0(r1);
|
|
1349
|
+
}
|
|
1350
|
+
return Sphere.__wrap(r0);
|
|
1351
|
+
} finally {
|
|
1352
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1180
1355
|
}
|
|
1181
1356
|
if (Symbol.dispose) Sphere.prototype[Symbol.dispose] = Sphere.prototype.free;
|
|
1182
1357
|
|
|
@@ -1289,6 +1464,29 @@ export class Stick {
|
|
|
1289
1464
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1290
1465
|
}
|
|
1291
1466
|
}
|
|
1467
|
+
/**
|
|
1468
|
+
* Override scene silhouettes with a width in output pixels.
|
|
1469
|
+
* @param {BytesInput} rgb
|
|
1470
|
+
* @param {FloatInput} width
|
|
1471
|
+
* @returns {Stick}
|
|
1472
|
+
*/
|
|
1473
|
+
silhouettes(rgb, width) {
|
|
1474
|
+
try {
|
|
1475
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1476
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1477
|
+
_assertNum(this.__wbg_ptr);
|
|
1478
|
+
wasm.stick_silhouettes(retptr, this.__wbg_ptr, rgb, width);
|
|
1479
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1480
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1481
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1482
|
+
if (r2) {
|
|
1483
|
+
throw takeFromExternrefTable0(r1);
|
|
1484
|
+
}
|
|
1485
|
+
return Stick.__wrap(r0);
|
|
1486
|
+
} finally {
|
|
1487
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1292
1490
|
}
|
|
1293
1491
|
if (Symbol.dispose) Stick.prototype[Symbol.dispose] = Stick.prototype.free;
|
|
1294
1492
|
|
|
@@ -1395,6 +1593,32 @@ export class Style {
|
|
|
1395
1593
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1396
1594
|
}
|
|
1397
1595
|
}
|
|
1596
|
+
/**
|
|
1597
|
+
* Apply a reusable molecular color scheme.
|
|
1598
|
+
* @param {MoleculeColors} colors
|
|
1599
|
+
* @returns {Style}
|
|
1600
|
+
*/
|
|
1601
|
+
colors(colors) {
|
|
1602
|
+
try {
|
|
1603
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1604
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1605
|
+
_assertNum(this.__wbg_ptr);
|
|
1606
|
+
_assertClass(colors, MoleculeColors);
|
|
1607
|
+
if (colors.__wbg_ptr === 0) {
|
|
1608
|
+
throw new Error('Attempt to use a moved value');
|
|
1609
|
+
}
|
|
1610
|
+
wasm.style_colors(retptr, this.__wbg_ptr, colors.__wbg_ptr);
|
|
1611
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1612
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1613
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1614
|
+
if (r2) {
|
|
1615
|
+
throw takeFromExternrefTable0(r1);
|
|
1616
|
+
}
|
|
1617
|
+
return Style.__wrap(r0);
|
|
1618
|
+
} finally {
|
|
1619
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1398
1622
|
/**
|
|
1399
1623
|
* @param {FloatInput} probe_radius
|
|
1400
1624
|
* @param {FloatInput} grid_spacing
|
|
@@ -1503,16 +1727,14 @@ export class Style {
|
|
|
1503
1727
|
}
|
|
1504
1728
|
}
|
|
1505
1729
|
/**
|
|
1506
|
-
* @param {BytesInput} rgb
|
|
1507
|
-
* @param {FloatInput} width
|
|
1508
1730
|
* @returns {Style}
|
|
1509
1731
|
*/
|
|
1510
|
-
|
|
1732
|
+
rainbowResidues() {
|
|
1511
1733
|
try {
|
|
1512
1734
|
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1513
1735
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1514
1736
|
_assertNum(this.__wbg_ptr);
|
|
1515
|
-
wasm.
|
|
1737
|
+
wasm.style_rainbowResidues(retptr, this.__wbg_ptr);
|
|
1516
1738
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1517
1739
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1518
1740
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -1525,14 +1747,15 @@ export class Style {
|
|
|
1525
1747
|
}
|
|
1526
1748
|
}
|
|
1527
1749
|
/**
|
|
1750
|
+
* @param {FloatInput} value
|
|
1528
1751
|
* @returns {Style}
|
|
1529
1752
|
*/
|
|
1530
|
-
|
|
1753
|
+
roughness(value) {
|
|
1531
1754
|
try {
|
|
1532
1755
|
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1533
1756
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1534
1757
|
_assertNum(this.__wbg_ptr);
|
|
1535
|
-
wasm.
|
|
1758
|
+
wasm.style_roughness(retptr, this.__wbg_ptr, value);
|
|
1536
1759
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1537
1760
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1538
1761
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -1548,12 +1771,12 @@ export class Style {
|
|
|
1548
1771
|
* @param {FloatInput} value
|
|
1549
1772
|
* @returns {Style}
|
|
1550
1773
|
*/
|
|
1551
|
-
|
|
1774
|
+
scale(value) {
|
|
1552
1775
|
try {
|
|
1553
1776
|
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1554
1777
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1555
1778
|
_assertNum(this.__wbg_ptr);
|
|
1556
|
-
wasm.
|
|
1779
|
+
wasm.style_scale(retptr, this.__wbg_ptr, value);
|
|
1557
1780
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1558
1781
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1559
1782
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -1566,15 +1789,39 @@ export class Style {
|
|
|
1566
1789
|
}
|
|
1567
1790
|
}
|
|
1568
1791
|
/**
|
|
1569
|
-
*
|
|
1792
|
+
* When disabled, draw one stick per bond regardless of its order.
|
|
1793
|
+
* @param {BoolInput} show
|
|
1570
1794
|
* @returns {Style}
|
|
1571
1795
|
*/
|
|
1572
|
-
|
|
1796
|
+
showBondOrder(show) {
|
|
1573
1797
|
try {
|
|
1574
1798
|
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1575
1799
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1576
1800
|
_assertNum(this.__wbg_ptr);
|
|
1577
|
-
wasm.
|
|
1801
|
+
wasm.style_showBondOrder(retptr, this.__wbg_ptr, show);
|
|
1802
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1803
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1804
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
1805
|
+
if (r2) {
|
|
1806
|
+
throw takeFromExternrefTable0(r1);
|
|
1807
|
+
}
|
|
1808
|
+
return Style.__wrap(r0);
|
|
1809
|
+
} finally {
|
|
1810
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
1811
|
+
}
|
|
1812
|
+
}
|
|
1813
|
+
/**
|
|
1814
|
+
* Override scene silhouettes. Width is in pixels. Zero disables this shape's edges.
|
|
1815
|
+
* @param {BytesInput} rgb
|
|
1816
|
+
* @param {FloatInput} width
|
|
1817
|
+
* @returns {Style}
|
|
1818
|
+
*/
|
|
1819
|
+
silhouettes(rgb, width) {
|
|
1820
|
+
try {
|
|
1821
|
+
if (this.__wbg_ptr == 0) throw new Error('Attempt to use a moved value');
|
|
1822
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
1823
|
+
_assertNum(this.__wbg_ptr);
|
|
1824
|
+
wasm.style_silhouettes(retptr, this.__wbg_ptr, rgb, width);
|
|
1578
1825
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1579
1826
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1580
1827
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
@@ -2079,12 +2326,27 @@ function __wbg_get_imports() {
|
|
|
2079
2326
|
__wbg_attachShader_817dcec9e79fd18f: function() { return logError(function (arg0, arg1, arg2) {
|
|
2080
2327
|
arg0.attachShader(arg1, arg2);
|
|
2081
2328
|
}, arguments); },
|
|
2329
|
+
__wbg_bindAttribLocation_40c41e6185822b52: function() { return logError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2330
|
+
arg0.bindAttribLocation(arg1, arg2 >>> 0, getStringFromWasm0(arg3, arg4));
|
|
2331
|
+
}, arguments); },
|
|
2332
|
+
__wbg_bindAttribLocation_b51bf2d65ded8f70: function() { return logError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2333
|
+
arg0.bindAttribLocation(arg1, arg2 >>> 0, getStringFromWasm0(arg3, arg4));
|
|
2334
|
+
}, arguments); },
|
|
2335
|
+
__wbg_bindBufferBase_6860496c67f7dd5a: function() { return logError(function (arg0, arg1, arg2, arg3) {
|
|
2336
|
+
arg0.bindBufferBase(arg1 >>> 0, arg2 >>> 0, arg3);
|
|
2337
|
+
}, arguments); },
|
|
2082
2338
|
__wbg_bindBuffer_b3bb001fdbee089a: function() { return logError(function (arg0, arg1, arg2) {
|
|
2083
2339
|
arg0.bindBuffer(arg1 >>> 0, arg2);
|
|
2084
2340
|
}, arguments); },
|
|
2085
2341
|
__wbg_bindBuffer_cbc9075f76fffa51: function() { return logError(function (arg0, arg1, arg2) {
|
|
2086
2342
|
arg0.bindBuffer(arg1 >>> 0, arg2);
|
|
2087
2343
|
}, arguments); },
|
|
2344
|
+
__wbg_bindFramebuffer_79534f24b57b7b95: function() { return logError(function (arg0, arg1, arg2) {
|
|
2345
|
+
arg0.bindFramebuffer(arg1 >>> 0, arg2);
|
|
2346
|
+
}, arguments); },
|
|
2347
|
+
__wbg_bindFramebuffer_b245cd93a150dd96: function() { return logError(function (arg0, arg1, arg2) {
|
|
2348
|
+
arg0.bindFramebuffer(arg1 >>> 0, arg2);
|
|
2349
|
+
}, arguments); },
|
|
2088
2350
|
__wbg_bindTexture_6f822943b2790466: function() { return logError(function (arg0, arg1, arg2) {
|
|
2089
2351
|
arg0.bindTexture(arg1 >>> 0, arg2);
|
|
2090
2352
|
}, arguments); },
|
|
@@ -2150,6 +2412,22 @@ function __wbg_get_imports() {
|
|
|
2150
2412
|
const ret = arg0.changedTouches;
|
|
2151
2413
|
return ret;
|
|
2152
2414
|
}, arguments); },
|
|
2415
|
+
__wbg_checkFramebufferStatus_03ce134350260eda: function() { return logError(function (arg0, arg1) {
|
|
2416
|
+
const ret = arg0.checkFramebufferStatus(arg1 >>> 0);
|
|
2417
|
+
_assertNum(ret);
|
|
2418
|
+
return ret;
|
|
2419
|
+
}, arguments); },
|
|
2420
|
+
__wbg_checkFramebufferStatus_a2495685980e489c: function() { return logError(function (arg0, arg1) {
|
|
2421
|
+
const ret = arg0.checkFramebufferStatus(arg1 >>> 0);
|
|
2422
|
+
_assertNum(ret);
|
|
2423
|
+
return ret;
|
|
2424
|
+
}, arguments); },
|
|
2425
|
+
__wbg_clearBufferfv_474b28c18db287a8: function() { return logError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2426
|
+
arg0.clearBufferfv(arg1 >>> 0, arg2, getArrayF32FromWasm0(arg3, arg4));
|
|
2427
|
+
}, arguments); },
|
|
2428
|
+
__wbg_clearBufferuiv_e723936f302725de: function() { return logError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2429
|
+
arg0.clearBufferuiv(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4));
|
|
2430
|
+
}, arguments); },
|
|
2153
2431
|
__wbg_clearColor_0a9b08857907c212: function() { return logError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2154
2432
|
arg0.clearColor(arg1, arg2, arg3, arg4);
|
|
2155
2433
|
}, arguments); },
|
|
@@ -2228,6 +2506,14 @@ function __wbg_get_imports() {
|
|
|
2228
2506
|
const ret = arg0.createElement(getStringFromWasm0(arg1, arg2));
|
|
2229
2507
|
return ret;
|
|
2230
2508
|
}, arguments); },
|
|
2509
|
+
__wbg_createFramebuffer_cdf686778c61014d: function() { return logError(function (arg0) {
|
|
2510
|
+
const ret = arg0.createFramebuffer();
|
|
2511
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2512
|
+
}, arguments); },
|
|
2513
|
+
__wbg_createFramebuffer_f52399034cb1a200: function() { return logError(function (arg0) {
|
|
2514
|
+
const ret = arg0.createFramebuffer();
|
|
2515
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2516
|
+
}, arguments); },
|
|
2231
2517
|
__wbg_createProgram_de0881c688a8e43b: function() { return logError(function (arg0) {
|
|
2232
2518
|
const ret = arg0.createProgram();
|
|
2233
2519
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
@@ -2303,6 +2589,12 @@ function __wbg_get_imports() {
|
|
|
2303
2589
|
__wbg_deleteBuffer_ffa760fd3b0b5ef1: function() { return logError(function (arg0, arg1) {
|
|
2304
2590
|
arg0.deleteBuffer(arg1);
|
|
2305
2591
|
}, arguments); },
|
|
2592
|
+
__wbg_deleteFramebuffer_0ec884f89db72a3e: function() { return logError(function (arg0, arg1) {
|
|
2593
|
+
arg0.deleteFramebuffer(arg1);
|
|
2594
|
+
}, arguments); },
|
|
2595
|
+
__wbg_deleteFramebuffer_ffdb1bee4c92ae4c: function() { return logError(function (arg0, arg1) {
|
|
2596
|
+
arg0.deleteFramebuffer(arg1);
|
|
2597
|
+
}, arguments); },
|
|
2306
2598
|
__wbg_deleteProgram_8c38fff0f4a88dea: function() { return logError(function (arg0, arg1) {
|
|
2307
2599
|
arg0.deleteProgram(arg1);
|
|
2308
2600
|
}, arguments); },
|
|
@@ -2321,6 +2613,12 @@ function __wbg_get_imports() {
|
|
|
2321
2613
|
__wbg_deleteTexture_89bd1d49ae4fb309: function() { return logError(function (arg0, arg1) {
|
|
2322
2614
|
arg0.deleteTexture(arg1);
|
|
2323
2615
|
}, arguments); },
|
|
2616
|
+
__wbg_deleteVertexArrayOES_2214ecdf65be031d: function() { return logError(function (arg0, arg1) {
|
|
2617
|
+
arg0.deleteVertexArrayOES(arg1);
|
|
2618
|
+
}, arguments); },
|
|
2619
|
+
__wbg_deleteVertexArray_2589b74b67ba20c8: function() { return logError(function (arg0, arg1) {
|
|
2620
|
+
arg0.deleteVertexArray(arg1);
|
|
2621
|
+
}, arguments); },
|
|
2324
2622
|
__wbg_deltaMode_d2ba7673c0228446: function() { return logError(function (arg0) {
|
|
2325
2623
|
const ret = arg0.deltaMode;
|
|
2326
2624
|
_assertNum(ret);
|
|
@@ -2384,18 +2682,18 @@ function __wbg_get_imports() {
|
|
|
2384
2682
|
_assertBoolean(ret);
|
|
2385
2683
|
return ret;
|
|
2386
2684
|
}, arguments); },
|
|
2387
|
-
__wbg_drawArraysInstancedANGLE_635e10224985b842: function() { return logError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2388
|
-
arg0.drawArraysInstancedANGLE(arg1 >>> 0, arg2, arg3, arg4);
|
|
2389
|
-
}, arguments); },
|
|
2390
|
-
__wbg_drawArraysInstanced_762b36f2147c7a85: function() { return logError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2391
|
-
arg0.drawArraysInstanced(arg1 >>> 0, arg2, arg3, arg4);
|
|
2392
|
-
}, arguments); },
|
|
2393
2685
|
__wbg_drawArrays_a9c18db2e94f4a82: function() { return logError(function (arg0, arg1, arg2, arg3) {
|
|
2394
2686
|
arg0.drawArrays(arg1 >>> 0, arg2, arg3);
|
|
2395
2687
|
}, arguments); },
|
|
2396
2688
|
__wbg_drawArrays_fe5a51410bfabb5b: function() { return logError(function (arg0, arg1, arg2, arg3) {
|
|
2397
2689
|
arg0.drawArrays(arg1 >>> 0, arg2, arg3);
|
|
2398
2690
|
}, arguments); },
|
|
2691
|
+
__wbg_drawBuffersWEBGL_49c672d0ddcdfe71: function() { return logError(function (arg0, arg1) {
|
|
2692
|
+
arg0.drawBuffersWEBGL(arg1);
|
|
2693
|
+
}, arguments); },
|
|
2694
|
+
__wbg_drawBuffers_e296659ce384e721: function() { return logError(function (arg0, arg1) {
|
|
2695
|
+
arg0.drawBuffers(arg1);
|
|
2696
|
+
}, arguments); },
|
|
2399
2697
|
__wbg_drawElementsInstancedANGLE_470ce8b489eeafa5: function() { return logError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2400
2698
|
arg0.drawElementsInstancedANGLE(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
|
|
2401
2699
|
}, arguments); },
|
|
@@ -2428,6 +2726,10 @@ function __wbg_get_imports() {
|
|
|
2428
2726
|
__wbg_enable_e955d456ef6b93f7: function() { return logError(function (arg0, arg1) {
|
|
2429
2727
|
arg0.enable(arg1 >>> 0);
|
|
2430
2728
|
}, arguments); },
|
|
2729
|
+
__wbg_entries_7bb1459bd9b5c2b9: function() { return logError(function (arg0) {
|
|
2730
|
+
const ret = Object.entries(arg0);
|
|
2731
|
+
return ret;
|
|
2732
|
+
}, arguments); },
|
|
2431
2733
|
__wbg_error_26c06b769da3d042: function() { return logError(function (arg0, arg1) {
|
|
2432
2734
|
let deferred0_0;
|
|
2433
2735
|
let deferred0_1;
|
|
@@ -2453,6 +2755,12 @@ function __wbg_get_imports() {
|
|
|
2453
2755
|
const ret = arg0.force;
|
|
2454
2756
|
return ret;
|
|
2455
2757
|
}, arguments); },
|
|
2758
|
+
__wbg_framebufferTexture2D_2c69ac0ce67faf7d: function() { return logError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2759
|
+
arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
|
|
2760
|
+
}, arguments); },
|
|
2761
|
+
__wbg_framebufferTexture2D_b6250a0c37eb48c2: function() { return logError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2762
|
+
arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
|
|
2763
|
+
}, arguments); },
|
|
2456
2764
|
__wbg_frontFace_124bb11a73cc0dd1: function() { return logError(function (arg0, arg1) {
|
|
2457
2765
|
arg0.frontFace(arg1 >>> 0);
|
|
2458
2766
|
}, arguments); },
|
|
@@ -2594,6 +2902,11 @@ function __wbg_get_imports() {
|
|
|
2594
2902
|
const ret = arg0.getSupportedExtensions();
|
|
2595
2903
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2596
2904
|
}, arguments); },
|
|
2905
|
+
__wbg_getUniformBlockIndex_0742ae35f926850a: function() { return logError(function (arg0, arg1, arg2, arg3) {
|
|
2906
|
+
const ret = arg0.getUniformBlockIndex(arg1, getStringFromWasm0(arg2, arg3));
|
|
2907
|
+
_assertNum(ret);
|
|
2908
|
+
return ret;
|
|
2909
|
+
}, arguments); },
|
|
2597
2910
|
__wbg_getUniformLocation_6352e0669c8f5393: function() { return logError(function (arg0, arg1, arg2, arg3) {
|
|
2598
2911
|
const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
|
|
2599
2912
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
@@ -2622,6 +2935,10 @@ function __wbg_get_imports() {
|
|
|
2622
2935
|
const ret = arg0[arg1 >>> 0];
|
|
2623
2936
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2624
2937
|
}, arguments); },
|
|
2938
|
+
__wbg_get_d7176cfb76d71114: function() { return logError(function (arg0, arg1) {
|
|
2939
|
+
const ret = arg0[arg1 >>> 0];
|
|
2940
|
+
return ret;
|
|
2941
|
+
}, arguments); },
|
|
2625
2942
|
__wbg_get_unchecked_e6325ad374eff861: function() { return logError(function (arg0, arg1) {
|
|
2626
2943
|
const ret = arg0[arg1 >>> 0];
|
|
2627
2944
|
return ret;
|
|
@@ -2768,6 +3085,17 @@ function __wbg_get_imports() {
|
|
|
2768
3085
|
_assertBoolean(ret);
|
|
2769
3086
|
return ret;
|
|
2770
3087
|
}, arguments); },
|
|
3088
|
+
__wbg_instanceof_Map_0b4fc8b62e73f163: function() { return logError(function (arg0) {
|
|
3089
|
+
let result;
|
|
3090
|
+
try {
|
|
3091
|
+
result = arg0 instanceof Map;
|
|
3092
|
+
} catch (_) {
|
|
3093
|
+
result = false;
|
|
3094
|
+
}
|
|
3095
|
+
const ret = result;
|
|
3096
|
+
_assertBoolean(ret);
|
|
3097
|
+
return ret;
|
|
3098
|
+
}, arguments); },
|
|
2771
3099
|
__wbg_instanceof_ResizeObserverEntry_a0c6243afc3437cc: function() { return logError(function (arg0) {
|
|
2772
3100
|
let result;
|
|
2773
3101
|
try {
|
|
@@ -2870,6 +3198,11 @@ function __wbg_get_imports() {
|
|
|
2870
3198
|
_assertBoolean(ret);
|
|
2871
3199
|
return ret;
|
|
2872
3200
|
}, arguments); },
|
|
3201
|
+
__wbg_isView_7c4f5a7c257b3a84: function() { return logError(function (arg0) {
|
|
3202
|
+
const ret = ArrayBuffer.isView(arg0);
|
|
3203
|
+
_assertBoolean(ret);
|
|
3204
|
+
return ret;
|
|
3205
|
+
}, arguments); },
|
|
2873
3206
|
__wbg_is_2248ff2b575d60c7: function() { return logError(function (arg0, arg1) {
|
|
2874
3207
|
const ret = Object.is(arg0, arg1);
|
|
2875
3208
|
_assertBoolean(ret);
|
|
@@ -3022,7 +3355,7 @@ function __wbg_get_imports() {
|
|
|
3022
3355
|
const a = state0.a;
|
|
3023
3356
|
state0.a = 0;
|
|
3024
3357
|
try {
|
|
3025
|
-
return
|
|
3358
|
+
return __wasm_bindgen_func_elem_8837(a, state0.b, arg0, arg1);
|
|
3026
3359
|
} finally {
|
|
3027
3360
|
state0.a = a;
|
|
3028
3361
|
}
|
|
@@ -3094,6 +3427,12 @@ function __wbg_get_imports() {
|
|
|
3094
3427
|
__wbg_pixelStorei_6dd56b4da047c480: function() { return logError(function (arg0, arg1, arg2) {
|
|
3095
3428
|
arg0.pixelStorei(arg1 >>> 0, arg2);
|
|
3096
3429
|
}, arguments); },
|
|
3430
|
+
__wbg_polygonOffset_41bc1f487e5f53fe: function() { return logError(function (arg0, arg1, arg2) {
|
|
3431
|
+
arg0.polygonOffset(arg1, arg2);
|
|
3432
|
+
}, arguments); },
|
|
3433
|
+
__wbg_polygonOffset_acf166e60739dbfa: function() { return logError(function (arg0, arg1, arg2) {
|
|
3434
|
+
arg0.polygonOffset(arg1, arg2);
|
|
3435
|
+
}, arguments); },
|
|
3097
3436
|
__wbg_port_114bc900ca0e4c6d: function() { return handleError(function (arg0, arg1) {
|
|
3098
3437
|
const ret = arg1.port;
|
|
3099
3438
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -3126,6 +3465,9 @@ function __wbg_get_imports() {
|
|
|
3126
3465
|
__wbg_queueMicrotask_4a1a4d8dd332373b: function() { return logError(function (arg0) {
|
|
3127
3466
|
queueMicrotask(arg0);
|
|
3128
3467
|
}, arguments); },
|
|
3468
|
+
__wbg_readBuffer_49d4b278b9838d40: function() { return logError(function (arg0, arg1) {
|
|
3469
|
+
arg0.readBuffer(arg1 >>> 0);
|
|
3470
|
+
}, arguments); },
|
|
3129
3471
|
__wbg_readPixels_22316d250d820aff: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
3130
3472
|
arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
|
|
3131
3473
|
}, arguments); },
|
|
@@ -3378,6 +3720,12 @@ function __wbg_get_imports() {
|
|
|
3378
3720
|
__wbg_uniform2fv_71fe605c72879b61: function() { return logError(function (arg0, arg1, arg2, arg3) {
|
|
3379
3721
|
arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3));
|
|
3380
3722
|
}, arguments); },
|
|
3723
|
+
__wbg_uniform2i_6a4b371f1eaad138: function() { return logError(function (arg0, arg1, arg2, arg3) {
|
|
3724
|
+
arg0.uniform2i(arg1, arg2, arg3);
|
|
3725
|
+
}, arguments); },
|
|
3726
|
+
__wbg_uniform2i_8ac27a406bbc816d: function() { return logError(function (arg0, arg1, arg2, arg3) {
|
|
3727
|
+
arg0.uniform2i(arg1, arg2, arg3);
|
|
3728
|
+
}, arguments); },
|
|
3381
3729
|
__wbg_uniform3fv_431207a9407b7d29: function() { return logError(function (arg0, arg1, arg2, arg3) {
|
|
3382
3730
|
arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3));
|
|
3383
3731
|
}, arguments); },
|
|
@@ -3390,6 +3738,9 @@ function __wbg_get_imports() {
|
|
|
3390
3738
|
__wbg_uniform4fv_d3afea28181f5342: function() { return logError(function (arg0, arg1, arg2, arg3) {
|
|
3391
3739
|
arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3));
|
|
3392
3740
|
}, arguments); },
|
|
3741
|
+
__wbg_uniformBlockBinding_61c5a97721e0f36b: function() { return logError(function (arg0, arg1, arg2, arg3) {
|
|
3742
|
+
arg0.uniformBlockBinding(arg1, arg2 >>> 0, arg3 >>> 0);
|
|
3743
|
+
}, arguments); },
|
|
3393
3744
|
__wbg_uniformMatrix3fv_15b2b1f5505b8506: function() { return logError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
3394
3745
|
arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
|
|
3395
3746
|
}, arguments); },
|
|
@@ -3432,6 +3783,12 @@ function __wbg_get_imports() {
|
|
|
3432
3783
|
__wbg_vertexAttribDivisor_5b64fc697c0496e1: function() { return logError(function (arg0, arg1, arg2) {
|
|
3433
3784
|
arg0.vertexAttribDivisor(arg1 >>> 0, arg2 >>> 0);
|
|
3434
3785
|
}, arguments); },
|
|
3786
|
+
__wbg_vertexAttribI4ui_f146416285e4d4ac: function() { return logError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
3787
|
+
arg0.vertexAttribI4ui(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0, arg5 >>> 0);
|
|
3788
|
+
}, arguments); },
|
|
3789
|
+
__wbg_vertexAttribIPointer_a6240b64263fb63b: function() { return logError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
3790
|
+
arg0.vertexAttribIPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
|
|
3791
|
+
}, arguments); },
|
|
3435
3792
|
__wbg_vertexAttribPointer_39b706eb26c50057: function() { return logError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
3436
3793
|
arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
|
|
3437
3794
|
}, arguments); },
|
|
@@ -3469,76 +3826,81 @@ function __wbg_get_imports() {
|
|
|
3469
3826
|
return ret;
|
|
3470
3827
|
}, arguments); },
|
|
3471
3828
|
__wbindgen_generic_0000000000000001: function() { return logError(function (arg0, arg1) {
|
|
3472
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
3473
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3829
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1409, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3830
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_8835);
|
|
3474
3831
|
return ret;
|
|
3475
3832
|
}, arguments); },
|
|
3476
3833
|
__wbindgen_generic_0000000000000002: function() { return logError(function (arg0, arg1) {
|
|
3477
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx:
|
|
3478
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3834
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 582, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3835
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3929);
|
|
3479
3836
|
return ret;
|
|
3480
3837
|
}, arguments); },
|
|
3481
3838
|
__wbindgen_generic_0000000000000003: function() { return logError(function (arg0, arg1) {
|
|
3482
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
3483
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3839
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 582, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3840
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3929_101);
|
|
3484
3841
|
return ret;
|
|
3485
3842
|
}, arguments); },
|
|
3486
3843
|
__wbindgen_generic_0000000000000004: function() { return logError(function (arg0, arg1) {
|
|
3487
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
3488
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3844
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 585, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3845
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3928);
|
|
3489
3846
|
return ret;
|
|
3490
3847
|
}, arguments); },
|
|
3491
3848
|
__wbindgen_generic_0000000000000005: function() { return logError(function (arg0) {
|
|
3849
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
3850
|
+
const ret = arg0;
|
|
3851
|
+
return ret;
|
|
3852
|
+
}, arguments); },
|
|
3853
|
+
__wbindgen_generic_0000000000000006: function() { return logError(function (arg0) {
|
|
3492
3854
|
// Cast intrinsic for `I64 -> Externref`.
|
|
3493
3855
|
const ret = arg0;
|
|
3494
3856
|
return ret;
|
|
3495
3857
|
}, arguments); },
|
|
3496
|
-
|
|
3858
|
+
__wbindgen_generic_0000000000000007: function() { return logError(function (arg0, arg1) {
|
|
3497
3859
|
// Cast intrinsic for `Ref(Slice(F32)) -> NamedExternref("Float32Array")`.
|
|
3498
3860
|
const ret = getArrayF32FromWasm0(arg0, arg1);
|
|
3499
3861
|
return ret;
|
|
3500
3862
|
}, arguments); },
|
|
3501
|
-
|
|
3863
|
+
__wbindgen_generic_0000000000000008: function() { return logError(function (arg0, arg1) {
|
|
3502
3864
|
// Cast intrinsic for `Ref(Slice(I16)) -> NamedExternref("Int16Array")`.
|
|
3503
3865
|
const ret = getArrayI16FromWasm0(arg0, arg1);
|
|
3504
3866
|
return ret;
|
|
3505
3867
|
}, arguments); },
|
|
3506
|
-
|
|
3868
|
+
__wbindgen_generic_0000000000000009: function() { return logError(function (arg0, arg1) {
|
|
3507
3869
|
// Cast intrinsic for `Ref(Slice(I32)) -> NamedExternref("Int32Array")`.
|
|
3508
3870
|
const ret = getArrayI32FromWasm0(arg0, arg1);
|
|
3509
3871
|
return ret;
|
|
3510
3872
|
}, arguments); },
|
|
3511
|
-
|
|
3873
|
+
__wbindgen_generic_000000000000000a: function() { return logError(function (arg0, arg1) {
|
|
3512
3874
|
// Cast intrinsic for `Ref(Slice(I8)) -> NamedExternref("Int8Array")`.
|
|
3513
3875
|
const ret = getArrayI8FromWasm0(arg0, arg1);
|
|
3514
3876
|
return ret;
|
|
3515
3877
|
}, arguments); },
|
|
3516
|
-
|
|
3878
|
+
__wbindgen_generic_000000000000000b: function() { return logError(function (arg0, arg1) {
|
|
3517
3879
|
// Cast intrinsic for `Ref(Slice(U16)) -> NamedExternref("Uint16Array")`.
|
|
3518
3880
|
const ret = getArrayU16FromWasm0(arg0, arg1);
|
|
3519
3881
|
return ret;
|
|
3520
3882
|
}, arguments); },
|
|
3521
|
-
|
|
3883
|
+
__wbindgen_generic_000000000000000c: function() { return logError(function (arg0, arg1) {
|
|
3522
3884
|
// Cast intrinsic for `Ref(Slice(U32)) -> NamedExternref("Uint32Array")`.
|
|
3523
3885
|
const ret = getArrayU32FromWasm0(arg0, arg1);
|
|
3524
3886
|
return ret;
|
|
3525
3887
|
}, arguments); },
|
|
3526
|
-
|
|
3888
|
+
__wbindgen_generic_000000000000000d: function() { return logError(function (arg0, arg1) {
|
|
3527
3889
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
3528
3890
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
3529
3891
|
return ret;
|
|
3530
3892
|
}, arguments); },
|
|
3531
|
-
|
|
3893
|
+
__wbindgen_generic_000000000000000e: function() { return logError(function (arg0, arg1) {
|
|
3532
3894
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
3533
3895
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
3534
3896
|
return ret;
|
|
3535
3897
|
}, arguments); },
|
|
3536
|
-
|
|
3898
|
+
__wbindgen_generic_000000000000000f: function() { return logError(function (arg0) {
|
|
3537
3899
|
// Cast intrinsic for `U64 -> Externref`.
|
|
3538
3900
|
const ret = BigInt.asUintN(64, arg0);
|
|
3539
3901
|
return ret;
|
|
3540
3902
|
}, arguments); },
|
|
3541
|
-
|
|
3903
|
+
__wbindgen_generic_0000000000000010: function() { return logError(function (arg0, arg1) {
|
|
3542
3904
|
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
3543
3905
|
wasm.__wbindgen_export3(arg0, arg1 * 1, 1);
|
|
3544
3906
|
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
@@ -3562,30 +3924,30 @@ function __wbg_get_imports() {
|
|
|
3562
3924
|
|
|
3563
3925
|
|
|
3564
3926
|
//#endregion
|
|
3565
|
-
function
|
|
3927
|
+
function __wasm_bindgen_func_elem_3929(arg0, arg1, arg2) {
|
|
3566
3928
|
_assertNum(arg0);
|
|
3567
3929
|
_assertNum(arg1);
|
|
3568
|
-
wasm.
|
|
3930
|
+
wasm.__wasm_bindgen_func_elem_3929(arg0, arg1, arg2);
|
|
3569
3931
|
}
|
|
3570
3932
|
|
|
3571
|
-
function
|
|
3933
|
+
function __wasm_bindgen_func_elem_3929_101(arg0, arg1, arg2) {
|
|
3572
3934
|
_assertNum(arg0);
|
|
3573
3935
|
_assertNum(arg1);
|
|
3574
|
-
wasm.
|
|
3936
|
+
wasm.__wasm_bindgen_func_elem_3929_101(arg0, arg1, arg2);
|
|
3575
3937
|
}
|
|
3576
3938
|
|
|
3577
|
-
function
|
|
3939
|
+
function __wasm_bindgen_func_elem_8837(arg0, arg1, arg2, arg3) {
|
|
3578
3940
|
_assertNum(arg0);
|
|
3579
3941
|
_assertNum(arg1);
|
|
3580
|
-
wasm.
|
|
3942
|
+
wasm.__wasm_bindgen_func_elem_8837(arg0, arg1, arg2, arg3);
|
|
3581
3943
|
}
|
|
3582
3944
|
|
|
3583
|
-
function
|
|
3945
|
+
function __wasm_bindgen_func_elem_3928(arg0, arg1) {
|
|
3584
3946
|
try {
|
|
3585
3947
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
3586
3948
|
_assertNum(arg0);
|
|
3587
3949
|
_assertNum(arg1);
|
|
3588
|
-
wasm.
|
|
3950
|
+
wasm.__wasm_bindgen_func_elem_3928(retptr, arg0, arg1);
|
|
3589
3951
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3590
3952
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3591
3953
|
if (r1) {
|
|
@@ -3596,12 +3958,12 @@ function __wasm_bindgen_func_elem_3742(arg0, arg1) {
|
|
|
3596
3958
|
}
|
|
3597
3959
|
}
|
|
3598
3960
|
|
|
3599
|
-
function
|
|
3961
|
+
function __wasm_bindgen_func_elem_8835(arg0, arg1, arg2) {
|
|
3600
3962
|
try {
|
|
3601
3963
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16) >>> 0;
|
|
3602
3964
|
_assertNum(arg0);
|
|
3603
3965
|
_assertNum(arg1);
|
|
3604
|
-
wasm.
|
|
3966
|
+
wasm.__wasm_bindgen_func_elem_8835(retptr, arg0, arg1, arg2);
|
|
3605
3967
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3606
3968
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3607
3969
|
if (r1) {
|
|
@@ -3617,6 +3979,9 @@ const __wbindgen_enum_ResizeObserverBoxOptions = ["border-box", "content-box", "
|
|
|
3617
3979
|
const AnimationFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3618
3980
|
? { register: () => {}, unregister: () => {} }
|
|
3619
3981
|
: new FinalizationRegistry(ptr => wasm.__wbg_animation_free(ptr, 1));
|
|
3982
|
+
const MoleculeColorsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3983
|
+
? { register: () => {}, unregister: () => {} }
|
|
3984
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_moleculecolors_free(ptr, 1));
|
|
3620
3985
|
const SceneFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
3621
3986
|
? { register: () => {}, unregister: () => {} }
|
|
3622
3987
|
: new FinalizationRegistry(ptr => wasm.__wbg_scene_free(ptr, 1));
|
|
Binary file
|
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as ck from "@cosmol-studio/cosmolkit";
|
|
3
3
|
import initWasm, { __setCkTypes, __setViewerTypes, Selection, Sphere, Stick, Style } from "./cosmol_viewer_wasm.js";
|
|
4
4
|
|
|
5
|
-
await
|
|
5
|
+
await initWasm();
|
|
6
6
|
|
|
7
7
|
__setCkTypes(ck.Molecule, ck.Protein, ck.Element);
|
|
8
8
|
__setViewerTypes(Selection, Sphere, Stick, Style);
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@cosmol-studio/cosmol-viewer",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "Molecular visualization tools by rust",
|
|
5
|
-
"version": "0.6.
|
|
5
|
+
"version": "0.6.4-rc.1",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"./index.js"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@cosmol-studio/cosmolkit": "0.6.
|
|
26
|
+
"@cosmol-studio/cosmolkit": "0.6.3"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public",
|