@cosmol-studio/cosmol-viewer 0.6.2 → 0.6.3-rc.2
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/cosmol_viewer_wasm.d.ts +90 -62
- package/cosmol_viewer_wasm.js +1266 -1199
- package/cosmol_viewer_wasm_bg.wasm +0 -0
- package/package.json +2 -2
package/cosmol_viewer_wasm.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ export type I32Input = number;
|
|
|
18
18
|
|
|
19
19
|
export type I8Input = number;
|
|
20
20
|
|
|
21
|
+
export type IndexArrayInput = number[];
|
|
22
|
+
|
|
21
23
|
export type IndexInput = number;
|
|
22
24
|
|
|
23
25
|
export type IntegerInput = bigint;
|
|
@@ -28,6 +30,8 @@ export type TextInput = string;
|
|
|
28
30
|
|
|
29
31
|
export type U16Input = number;
|
|
30
32
|
|
|
33
|
+
export type U32ArrayInput = number[];
|
|
34
|
+
|
|
31
35
|
export type U32Input = number;
|
|
32
36
|
|
|
33
37
|
export type UnsignedIntegerInput = bigint;
|
|
@@ -105,9 +109,25 @@ export class Selection {
|
|
|
105
109
|
* Copy the selection handle while sharing the same imported source.
|
|
106
110
|
*/
|
|
107
111
|
cloneSelection(): Selection;
|
|
112
|
+
/**
|
|
113
|
+
* Remove a selection of the same kind from the same source.
|
|
114
|
+
*/
|
|
115
|
+
difference(other: Selection): Selection;
|
|
108
116
|
element(element: import("@cosmol-studio/cosmolkit").Element): Selection;
|
|
117
|
+
/**
|
|
118
|
+
* Keep only these zero-based source IDs, preserving source order.
|
|
119
|
+
*/
|
|
120
|
+
filterIds(ids: IndexArrayInput): Selection;
|
|
109
121
|
ids(): Uint32Array;
|
|
110
122
|
len(): number;
|
|
123
|
+
/**
|
|
124
|
+
* Keep atoms in zero-based CK residue IDs, not PDB sequence numbers.
|
|
125
|
+
*/
|
|
126
|
+
residueIds(ids: U32ArrayInput): Selection;
|
|
127
|
+
/**
|
|
128
|
+
* Select side-chain heavy atoms; excludes H and N, CA, C, O, OXT.
|
|
129
|
+
*/
|
|
130
|
+
sidechain(): Selection;
|
|
111
131
|
}
|
|
112
132
|
|
|
113
133
|
export class Selector {
|
|
@@ -230,8 +250,8 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
230
250
|
|
|
231
251
|
export interface InitOutput {
|
|
232
252
|
readonly memory: WebAssembly.Memory;
|
|
233
|
-
readonly __setCkTypes: (a:
|
|
234
|
-
readonly __setViewerTypes: (a:
|
|
253
|
+
readonly __setCkTypes: (a: any, b: any, c: any) => void;
|
|
254
|
+
readonly __setViewerTypes: (a: any, b: any, c: any, d: any) => void;
|
|
235
255
|
readonly __wbg_animation_free: (a: number, b: number) => void;
|
|
236
256
|
readonly __wbg_scene_free: (a: number, b: number) => void;
|
|
237
257
|
readonly __wbg_selection_free: (a: number, b: number) => void;
|
|
@@ -242,97 +262,105 @@ export interface InitOutput {
|
|
|
242
262
|
readonly __wbg_viewer_free: (a: number, b: number) => void;
|
|
243
263
|
readonly animation_addFrame: (a: number, b: number, c: number) => void;
|
|
244
264
|
readonly animation_frameCount: (a: number, b: number) => void;
|
|
245
|
-
readonly animation_new: (a: number, b:
|
|
246
|
-
readonly animation_setInterpolate: (a: number, b: number, c:
|
|
247
|
-
readonly animation_setInterval: (a: number, b: number, c:
|
|
248
|
-
readonly animation_setLoops: (a: number, b: number, c:
|
|
265
|
+
readonly animation_new: (a: number, b: any, c: any, d: any) => void;
|
|
266
|
+
readonly animation_setInterpolate: (a: number, b: number, c: any) => void;
|
|
267
|
+
readonly animation_setInterval: (a: number, b: number, c: any) => void;
|
|
268
|
+
readonly animation_setLoops: (a: number, b: number, c: any) => void;
|
|
249
269
|
readonly animation_setStaticScene: (a: number, b: number, c: number) => void;
|
|
250
270
|
readonly animation_toJson: (a: number, b: number) => void;
|
|
251
271
|
readonly bindingContractJson: (a: number) => void;
|
|
252
|
-
readonly scene_add: (a: number, b: number, c:
|
|
272
|
+
readonly scene_add: (a: number, b: number, c: any, d: number) => void;
|
|
253
273
|
readonly scene_cloneScene: (a: number, b: number) => void;
|
|
254
274
|
readonly scene_mergeShapes: (a: number, b: number, c: number) => void;
|
|
255
275
|
readonly scene_new: (a: number) => void;
|
|
256
|
-
readonly scene_recenter: (a: number, b: number, c:
|
|
257
|
-
readonly scene_recenterOn: (a: number, b: number, c:
|
|
258
|
-
readonly scene_removeShape: (a: number, b: number, c:
|
|
259
|
-
readonly scene_rotateCamera: (a: number, b: number, c:
|
|
260
|
-
readonly scene_set: (a: number, b: number, c:
|
|
261
|
-
readonly scene_setAmbientLight: (a: number, b: number, c:
|
|
262
|
-
readonly scene_setAutoRotate: (a: number, b: number, c:
|
|
263
|
-
readonly scene_setBackgroundColor: (a: number, b: number, c:
|
|
264
|
-
readonly scene_setCameraDistance: (a: number, b: number, c:
|
|
265
|
-
readonly scene_setCameraFov: (a: number, b: number, c:
|
|
266
|
-
readonly scene_setCameraTarget: (a: number, b: number, c:
|
|
267
|
-
readonly scene_setCameraView: (a: number, b: number, c:
|
|
268
|
-
readonly scene_setDepthCue: (a: number, b: number, c:
|
|
269
|
-
readonly scene_setDepthCueColor: (a: number, b: number, c:
|
|
270
|
-
readonly scene_setDepthCueRange: (a: number, b: number, c:
|
|
271
|
-
readonly scene_setLightColor: (a: number, b: number, c:
|
|
272
|
-
readonly scene_setLightIntensity: (a: number, b: number, c:
|
|
273
|
-
readonly scene_setLighting: (a: number, b: number, c:
|
|
274
|
-
readonly scene_setScale: (a: number, b: number, c:
|
|
275
|
-
readonly scene_setTransparentBackground: (a: number, b: number, c:
|
|
276
|
-
readonly scene_setZoomDisabled: (a: number, b: number, c:
|
|
276
|
+
readonly scene_recenter: (a: number, b: number, c: any) => void;
|
|
277
|
+
readonly scene_recenterOn: (a: number, b: number, c: any) => void;
|
|
278
|
+
readonly scene_removeShape: (a: number, b: number, c: any) => void;
|
|
279
|
+
readonly scene_rotateCamera: (a: number, b: number, c: any, d: any, e: any) => void;
|
|
280
|
+
readonly scene_set: (a: number, b: number, c: any, d: any, e: number) => void;
|
|
281
|
+
readonly scene_setAmbientLight: (a: number, b: number, c: any) => void;
|
|
282
|
+
readonly scene_setAutoRotate: (a: number, b: number, c: any, d: any) => void;
|
|
283
|
+
readonly scene_setBackgroundColor: (a: number, b: number, c: any) => void;
|
|
284
|
+
readonly scene_setCameraDistance: (a: number, b: number, c: any) => void;
|
|
285
|
+
readonly scene_setCameraFov: (a: number, b: number, c: any) => void;
|
|
286
|
+
readonly scene_setCameraTarget: (a: number, b: number, c: any) => void;
|
|
287
|
+
readonly scene_setCameraView: (a: number, b: number, c: any, d: any, e: any, f: any, g: any, h: any) => void;
|
|
288
|
+
readonly scene_setDepthCue: (a: number, b: number, c: any) => void;
|
|
289
|
+
readonly scene_setDepthCueColor: (a: number, b: number, c: any) => void;
|
|
290
|
+
readonly scene_setDepthCueRange: (a: number, b: number, c: any, d: any) => void;
|
|
291
|
+
readonly scene_setLightColor: (a: number, b: number, c: any) => void;
|
|
292
|
+
readonly scene_setLightIntensity: (a: number, b: number, c: any) => void;
|
|
293
|
+
readonly scene_setLighting: (a: number, b: number, c: any, d: any, e: any, f: any, g: any) => void;
|
|
294
|
+
readonly scene_setScale: (a: number, b: number, c: any) => void;
|
|
295
|
+
readonly scene_setTransparentBackground: (a: number, b: number, c: any) => void;
|
|
296
|
+
readonly scene_setZoomDisabled: (a: number, b: number, c: any) => void;
|
|
277
297
|
readonly scene_shapeCount: (a: number, b: number) => void;
|
|
278
298
|
readonly scene_toJson: (a: number, b: number) => void;
|
|
279
299
|
readonly scene_useBlackBackground: (a: number, b: number) => void;
|
|
280
|
-
readonly select: (a: number, b:
|
|
300
|
+
readonly select: (a: number, b: any) => void;
|
|
281
301
|
readonly selection_aromatic: (a: number, b: number) => void;
|
|
282
302
|
readonly selection_cloneSelection: (a: number, b: number) => void;
|
|
283
|
-
readonly
|
|
303
|
+
readonly selection_difference: (a: number, b: number, c: number) => void;
|
|
304
|
+
readonly selection_element: (a: number, b: number, c: any) => void;
|
|
305
|
+
readonly selection_filterIds: (a: number, b: number, c: any) => void;
|
|
284
306
|
readonly selection_ids: (a: number, b: number) => void;
|
|
285
307
|
readonly selection_len: (a: number, b: number) => void;
|
|
308
|
+
readonly selection_residueIds: (a: number, b: number, c: any) => void;
|
|
309
|
+
readonly selection_sidechain: (a: number, b: number) => void;
|
|
286
310
|
readonly selector_atoms: (a: number, b: number) => void;
|
|
287
311
|
readonly selector_bonds: (a: number, b: number) => void;
|
|
288
312
|
readonly selector_residues: (a: number, b: number) => void;
|
|
289
313
|
readonly sphere_cloneShape: (a: number, b: number) => void;
|
|
290
|
-
readonly sphere_color: (a: number, b: number, c:
|
|
291
|
-
readonly sphere_new: (a: number, b:
|
|
292
|
-
readonly sphere_opacity: (a: number, b: number, c:
|
|
314
|
+
readonly sphere_color: (a: number, b: number, c: any) => void;
|
|
315
|
+
readonly sphere_new: (a: number, b: any, c: any) => void;
|
|
316
|
+
readonly sphere_opacity: (a: number, b: number, c: any) => void;
|
|
293
317
|
readonly stick_cloneShape: (a: number, b: number) => void;
|
|
294
|
-
readonly stick_color: (a: number, b: number, c:
|
|
295
|
-
readonly stick_new: (a: number, b:
|
|
296
|
-
readonly stick_opacity: (a: number, b: number, c:
|
|
318
|
+
readonly stick_color: (a: number, b: number, c: any) => void;
|
|
319
|
+
readonly stick_new: (a: number, b: any, c: any, d: any) => void;
|
|
320
|
+
readonly stick_opacity: (a: number, b: number, c: any) => void;
|
|
297
321
|
readonly style_ballAndStick: (a: number) => void;
|
|
298
322
|
readonly style_cartoon: (a: number) => void;
|
|
299
323
|
readonly style_cloneStyle: (a: number, b: number) => void;
|
|
300
|
-
readonly style_color: (a: number, b: number, c:
|
|
301
|
-
readonly style_configureSurface: (a: number, b: number, c:
|
|
302
|
-
readonly style_conformer: (a: number, b: number, c:
|
|
324
|
+
readonly style_color: (a: number, b: number, c: any) => void;
|
|
325
|
+
readonly style_configureSurface: (a: number, b: number, c: any, d: any, e: any, f: any) => void;
|
|
326
|
+
readonly style_conformer: (a: number, b: number, c: any) => void;
|
|
303
327
|
readonly style_coordinates2d: (a: number, b: number) => void;
|
|
304
|
-
readonly style_metallic: (a: number, b: number, c:
|
|
305
|
-
readonly style_opacity: (a: number, b: number, c:
|
|
306
|
-
readonly style_outline: (a: number, b: number, c:
|
|
328
|
+
readonly style_metallic: (a: number, b: number, c: any) => void;
|
|
329
|
+
readonly style_opacity: (a: number, b: number, c: any) => void;
|
|
330
|
+
readonly style_outline: (a: number, b: number, c: any, d: any) => void;
|
|
307
331
|
readonly style_rainbowResidues: (a: number, b: number) => void;
|
|
308
|
-
readonly style_roughness: (a: number, b: number, c:
|
|
309
|
-
readonly style_scale: (a: number, b: number, c:
|
|
332
|
+
readonly style_roughness: (a: number, b: number, c: any) => void;
|
|
333
|
+
readonly style_scale: (a: number, b: number, c: any) => void;
|
|
310
334
|
readonly style_sphere: (a: number) => void;
|
|
311
335
|
readonly style_stick: (a: number) => void;
|
|
312
336
|
readonly style_surface: (a: number) => void;
|
|
313
|
-
readonly viewer_cameraParameterLogging: (a: number, b: number, c:
|
|
337
|
+
readonly viewer_cameraParameterLogging: (a: number, b: number, c: any) => void;
|
|
314
338
|
readonly viewer_close: (a: number, b: number) => void;
|
|
315
|
-
readonly viewer_dispatch: (a: number, b: number, c:
|
|
316
|
-
readonly viewer_new: (a: number, b:
|
|
317
|
-
readonly viewer_openNotebook: (a:
|
|
318
|
-
readonly viewer_play: (a: number, b: number) =>
|
|
319
|
-
readonly viewer_playNotebook: (a:
|
|
320
|
-
readonly viewer_render: (a: number, b: number) =>
|
|
321
|
-
readonly viewer_showCameraParameters: (a: number, b: number, c:
|
|
322
|
-
readonly viewer_showFps: (a: number, b: number, c:
|
|
323
|
-
readonly viewer_takeScreenshot: (a: number) =>
|
|
339
|
+
readonly viewer_dispatch: (a: number, b: number, c: any) => void;
|
|
340
|
+
readonly viewer_new: (a: number, b: any) => void;
|
|
341
|
+
readonly viewer_openNotebook: (a: any, b: any) => any;
|
|
342
|
+
readonly viewer_play: (a: number, b: number) => any;
|
|
343
|
+
readonly viewer_playNotebook: (a: any, b: any) => any;
|
|
344
|
+
readonly viewer_render: (a: number, b: number) => any;
|
|
345
|
+
readonly viewer_showCameraParameters: (a: number, b: number, c: any) => void;
|
|
346
|
+
readonly viewer_showFps: (a: number, b: number, c: any) => void;
|
|
347
|
+
readonly viewer_takeScreenshot: (a: number) => any;
|
|
324
348
|
readonly viewer_update: (a: number, b: number, c: number) => void;
|
|
325
|
-
readonly
|
|
326
|
-
readonly
|
|
327
|
-
readonly
|
|
328
|
-
readonly
|
|
329
|
-
readonly
|
|
349
|
+
readonly __wasm_bindgen_func_elem_8603: (a: number, b: number, c: number, d: any) => void;
|
|
350
|
+
readonly __wasm_bindgen_func_elem_8605: (a: number, b: number, c: any, d: any) => void;
|
|
351
|
+
readonly __wasm_bindgen_func_elem_3742: (a: number, b: number, c: number) => void;
|
|
352
|
+
readonly __wasm_bindgen_func_elem_3743: (a: number, b: number, c: any) => void;
|
|
353
|
+
readonly __wasm_bindgen_func_elem_3743_91: (a: number, b: number, c: any) => void;
|
|
330
354
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
331
355
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
332
|
-
readonly __wbindgen_export3: (a: number) => void;
|
|
333
|
-
readonly __wbindgen_export4: (
|
|
334
|
-
readonly
|
|
356
|
+
readonly __wbindgen_export3: (a: number, b: number, c: number) => void;
|
|
357
|
+
readonly __wbindgen_export4: () => number;
|
|
358
|
+
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
359
|
+
readonly __wbindgen_export5: (a: number) => void;
|
|
360
|
+
readonly __wbindgen_export6: (a: number, b: number) => void;
|
|
335
361
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
362
|
+
readonly __wbindgen_export7: (a: number) => void;
|
|
363
|
+
readonly __wbindgen_start: () => void;
|
|
336
364
|
}
|
|
337
365
|
|
|
338
366
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|