@cosmol-studio/cosmol-viewer 0.6.2-rc.1 → 0.6.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/README.md +10 -3
- package/cosmol_viewer_wasm.d.ts +3 -3
- package/cosmol_viewer_wasm.js +13 -13
- package/cosmol_viewer_wasm_bg.wasm +0 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -89,9 +89,9 @@ scene.free();
|
|
|
89
89
|
`Stick.new(start, end, radius)` create reusable positioned shapes; `.color(rgb)`
|
|
90
90
|
and `.opacity(value)` return styled copies. Scenes snapshot shapes on insertion.
|
|
91
91
|
Shapes already carry their material, so passing an extra scientific style fails.
|
|
92
|
-
Omitting the style uses the Rust core defaults: Molecule
|
|
93
|
-
|
|
94
|
-
and
|
|
92
|
+
Omitting the style uses the Rust core defaults: Molecule uses BallAndStick and
|
|
93
|
+
Protein uses Cartoon. Atom selections use Sphere regardless of their source;
|
|
94
|
+
bond selections use Stick and residue selections use Cartoon.
|
|
95
95
|
|
|
96
96
|
## COSMolKit scientific objects
|
|
97
97
|
|
|
@@ -195,3 +195,10 @@ python wasm/check.py --browser
|
|
|
195
195
|
Linux CI uses `playwright install --with-deps chromium`. `PLAYWRIGHT_MODULE` can
|
|
196
196
|
point to another installed Playwright module and `BROWSER_EXECUTABLE` to a local
|
|
197
197
|
Chromium/Chrome executable. These test dependencies are not shipped in npm/wheels.
|
|
198
|
+
|
|
199
|
+
Scene source ownership follows its current content. Replacing or removing named
|
|
200
|
+
content releases its imported source when no other content in that scene uses it.
|
|
201
|
+
Selections and other scenes keep their own references; failed replacements leave
|
|
202
|
+
ownership unchanged. `recenter_on` (JavaScript: `recenterOn`) stores only a center,
|
|
203
|
+
not a lasting reference to the source. Once all owners release an import, passing
|
|
204
|
+
the CK object again imports its current data.
|
package/cosmol_viewer_wasm.d.ts
CHANGED
|
@@ -324,9 +324,9 @@ export interface InitOutput {
|
|
|
324
324
|
readonly viewer_update: (a: number, b: number, c: number) => void;
|
|
325
325
|
readonly __wasm_bindgen_func_elem_7665: (a: number, b: number, c: number, d: number) => void;
|
|
326
326
|
readonly __wasm_bindgen_func_elem_7667: (a: number, b: number, c: number, d: number) => void;
|
|
327
|
-
readonly
|
|
328
|
-
readonly
|
|
329
|
-
readonly
|
|
327
|
+
readonly __wasm_bindgen_func_elem_2886: (a: number, b: number, c: number) => void;
|
|
328
|
+
readonly __wasm_bindgen_func_elem_2887: (a: number, b: number, c: number) => void;
|
|
329
|
+
readonly __wasm_bindgen_func_elem_2887_87: (a: number, b: number, c: number) => void;
|
|
330
330
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
331
331
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
332
332
|
readonly __wbindgen_export3: (a: number) => void;
|
package/cosmol_viewer_wasm.js
CHANGED
|
@@ -3383,23 +3383,23 @@ function __wbg_get_imports() {
|
|
|
3383
3383
|
return addHeapObject(ret);
|
|
3384
3384
|
}, arguments); },
|
|
3385
3385
|
__wbindgen_generic_0000000000000001: function() { return logError(function (arg0, arg1) {
|
|
3386
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
3386
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1255, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3387
3387
|
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_7665);
|
|
3388
3388
|
return addHeapObject(ret);
|
|
3389
3389
|
}, arguments); },
|
|
3390
3390
|
__wbindgen_generic_0000000000000002: function() { return logError(function (arg0, arg1) {
|
|
3391
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx:
|
|
3392
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3391
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 511, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3392
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2887);
|
|
3393
3393
|
return addHeapObject(ret);
|
|
3394
3394
|
}, arguments); },
|
|
3395
3395
|
__wbindgen_generic_0000000000000003: function() { return logError(function (arg0, arg1) {
|
|
3396
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
3397
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3396
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 511, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3397
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2887_87);
|
|
3398
3398
|
return addHeapObject(ret);
|
|
3399
3399
|
}, arguments); },
|
|
3400
3400
|
__wbindgen_generic_0000000000000004: function() { return logError(function (arg0, arg1) {
|
|
3401
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
3402
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3401
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 514, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3402
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2886);
|
|
3403
3403
|
return addHeapObject(ret);
|
|
3404
3404
|
}, arguments); },
|
|
3405
3405
|
__wbindgen_generic_0000000000000005: function() { return logError(function (arg0) {
|
|
@@ -3475,24 +3475,24 @@ function __wbg_get_imports() {
|
|
|
3475
3475
|
|
|
3476
3476
|
|
|
3477
3477
|
//#endregion
|
|
3478
|
-
function
|
|
3478
|
+
function __wasm_bindgen_func_elem_2887(arg0, arg1, arg2) {
|
|
3479
3479
|
_assertNum(arg0);
|
|
3480
3480
|
_assertNum(arg1);
|
|
3481
|
-
wasm.
|
|
3481
|
+
wasm.__wasm_bindgen_func_elem_2887(arg0, arg1, addHeapObject(arg2));
|
|
3482
3482
|
}
|
|
3483
3483
|
|
|
3484
|
-
function
|
|
3484
|
+
function __wasm_bindgen_func_elem_2887_87(arg0, arg1, arg2) {
|
|
3485
3485
|
_assertNum(arg0);
|
|
3486
3486
|
_assertNum(arg1);
|
|
3487
|
-
wasm.
|
|
3487
|
+
wasm.__wasm_bindgen_func_elem_2887_87(arg0, arg1, addHeapObject(arg2));
|
|
3488
3488
|
}
|
|
3489
3489
|
|
|
3490
|
-
function
|
|
3490
|
+
function __wasm_bindgen_func_elem_2886(arg0, arg1) {
|
|
3491
3491
|
try {
|
|
3492
3492
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
3493
3493
|
_assertNum(arg0);
|
|
3494
3494
|
_assertNum(arg1);
|
|
3495
|
-
wasm.
|
|
3495
|
+
wasm.__wasm_bindgen_func_elem_2886(retptr, arg0, arg1);
|
|
3496
3496
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
3497
3497
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
3498
3498
|
if (r1) {
|
|
Binary file
|
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.2
|
|
5
|
+
"version": "0.6.2",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"./index.js"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@cosmol-studio/cosmolkit": "0.6.2
|
|
26
|
+
"@cosmol-studio/cosmolkit": "0.6.2"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public",
|
|
30
|
-
"tag": "
|
|
30
|
+
"tag": "latest"
|
|
31
31
|
}
|
|
32
32
|
}
|