cosmol_viewer_wasm 0.2.13 → 0.2.14
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 +5 -27
- package/cosmol_viewer_wasm.js +19 -42
- package/cosmol_viewer_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/cosmol_viewer_wasm.d.ts
CHANGED
|
@@ -1,28 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* Chroma subsampling format
|
|
6
|
-
*/
|
|
7
|
-
export enum ChromaSampling {
|
|
8
|
-
/**
|
|
9
|
-
* Both vertically and horizontally subsampled.
|
|
10
|
-
*/
|
|
11
|
-
Cs420 = 0,
|
|
12
|
-
/**
|
|
13
|
-
* Horizontally subsampled.
|
|
14
|
-
*/
|
|
15
|
-
Cs422 = 1,
|
|
16
|
-
/**
|
|
17
|
-
* Not subsampled.
|
|
18
|
-
*/
|
|
19
|
-
Cs444 = 2,
|
|
20
|
-
/**
|
|
21
|
-
* Monochrome.
|
|
22
|
-
*/
|
|
23
|
-
Cs400 = 3,
|
|
24
|
-
}
|
|
25
|
-
|
|
26
4
|
export class WebHandle {
|
|
27
5
|
free(): void;
|
|
28
6
|
[Symbol.dispose](): void;
|
|
@@ -43,11 +21,11 @@ export interface InitOutput {
|
|
|
43
21
|
readonly webhandle_start_with_scene: (a: number, b: number, c: number, d: number) => number;
|
|
44
22
|
readonly webhandle_take_screenshot: (a: number) => number;
|
|
45
23
|
readonly webhandle_update_scene: (a: number, b: number, c: number) => number;
|
|
46
|
-
readonly
|
|
47
|
-
readonly
|
|
48
|
-
readonly
|
|
49
|
-
readonly
|
|
50
|
-
readonly
|
|
24
|
+
readonly __wasm_bindgen_func_elem_6316: (a: number, b: number, c: number, d: number) => void;
|
|
25
|
+
readonly __wasm_bindgen_func_elem_6297: (a: number, b: number, c: number, d: number) => void;
|
|
26
|
+
readonly __wasm_bindgen_func_elem_2356: (a: number, b: number, c: number) => void;
|
|
27
|
+
readonly __wasm_bindgen_func_elem_2356_2: (a: number, b: number, c: number) => void;
|
|
28
|
+
readonly __wasm_bindgen_func_elem_2355: (a: number, b: number, c: number) => void;
|
|
51
29
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
52
30
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
53
31
|
readonly __wbindgen_export3: (a: number) => void;
|
package/cosmol_viewer_wasm.js
CHANGED
|
@@ -2,29 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
//#region exports
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* Chroma subsampling format
|
|
7
|
-
* @enum {0 | 1 | 2 | 3}
|
|
8
|
-
*/
|
|
9
|
-
export const ChromaSampling = Object.freeze({
|
|
10
|
-
/**
|
|
11
|
-
* Both vertically and horizontally subsampled.
|
|
12
|
-
*/
|
|
13
|
-
Cs420: 0, "0": "Cs420",
|
|
14
|
-
/**
|
|
15
|
-
* Horizontally subsampled.
|
|
16
|
-
*/
|
|
17
|
-
Cs422: 1, "1": "Cs422",
|
|
18
|
-
/**
|
|
19
|
-
* Not subsampled.
|
|
20
|
-
*/
|
|
21
|
-
Cs444: 2, "2": "Cs444",
|
|
22
|
-
/**
|
|
23
|
-
* Monochrome.
|
|
24
|
-
*/
|
|
25
|
-
Cs400: 3, "3": "Cs400",
|
|
26
|
-
});
|
|
27
|
-
|
|
28
5
|
export class WebHandle {
|
|
29
6
|
__destroy_into_raw() {
|
|
30
7
|
const ptr = this.__wbg_ptr;
|
|
@@ -1035,7 +1012,7 @@ function __wbg_get_imports() {
|
|
|
1035
1012
|
const a = state0.a;
|
|
1036
1013
|
state0.a = 0;
|
|
1037
1014
|
try {
|
|
1038
|
-
return
|
|
1015
|
+
return __wasm_bindgen_func_elem_6297(a, state0.b, arg0, arg1);
|
|
1039
1016
|
} finally {
|
|
1040
1017
|
state0.a = a;
|
|
1041
1018
|
}
|
|
@@ -1415,23 +1392,23 @@ function __wbg_get_imports() {
|
|
|
1415
1392
|
return addHeapObject(ret);
|
|
1416
1393
|
}, arguments); },
|
|
1417
1394
|
__wbindgen_cast_0000000000000001: function() { return logError(function (arg0, arg1) {
|
|
1418
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1419
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1395
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1115, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1396
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_6316);
|
|
1420
1397
|
return addHeapObject(ret);
|
|
1421
1398
|
}, arguments); },
|
|
1422
1399
|
__wbindgen_cast_0000000000000002: function() { return logError(function (arg0, arg1) {
|
|
1423
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx:
|
|
1424
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1400
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 518, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1401
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2356);
|
|
1425
1402
|
return addHeapObject(ret);
|
|
1426
1403
|
}, arguments); },
|
|
1427
1404
|
__wbindgen_cast_0000000000000003: function() { return logError(function (arg0, arg1) {
|
|
1428
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
1429
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1405
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 518, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1406
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2356_2);
|
|
1430
1407
|
return addHeapObject(ret);
|
|
1431
1408
|
}, arguments); },
|
|
1432
1409
|
__wbindgen_cast_0000000000000004: function() { return logError(function (arg0, arg1) {
|
|
1433
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
1434
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1410
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 527, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1411
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2355);
|
|
1435
1412
|
return addHeapObject(ret);
|
|
1436
1413
|
}, arguments); },
|
|
1437
1414
|
__wbindgen_cast_0000000000000005: function() { return logError(function (arg0, arg1) {
|
|
@@ -1490,24 +1467,24 @@ function __wbg_get_imports() {
|
|
|
1490
1467
|
|
|
1491
1468
|
|
|
1492
1469
|
//#endregion
|
|
1493
|
-
function
|
|
1470
|
+
function __wasm_bindgen_func_elem_2356(arg0, arg1, arg2) {
|
|
1494
1471
|
_assertNum(arg0);
|
|
1495
1472
|
_assertNum(arg1);
|
|
1496
|
-
wasm.
|
|
1473
|
+
wasm.__wasm_bindgen_func_elem_2356(arg0, arg1, addHeapObject(arg2));
|
|
1497
1474
|
}
|
|
1498
1475
|
|
|
1499
|
-
function
|
|
1476
|
+
function __wasm_bindgen_func_elem_2356_2(arg0, arg1, arg2) {
|
|
1500
1477
|
_assertNum(arg0);
|
|
1501
1478
|
_assertNum(arg1);
|
|
1502
|
-
wasm.
|
|
1479
|
+
wasm.__wasm_bindgen_func_elem_2356_2(arg0, arg1, addHeapObject(arg2));
|
|
1503
1480
|
}
|
|
1504
1481
|
|
|
1505
|
-
function
|
|
1482
|
+
function __wasm_bindgen_func_elem_2355(arg0, arg1) {
|
|
1506
1483
|
try {
|
|
1507
1484
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1508
1485
|
_assertNum(arg0);
|
|
1509
1486
|
_assertNum(arg1);
|
|
1510
|
-
wasm.
|
|
1487
|
+
wasm.__wasm_bindgen_func_elem_2355(retptr, arg0, arg1);
|
|
1511
1488
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1512
1489
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1513
1490
|
if (r1) {
|
|
@@ -1518,12 +1495,12 @@ function __wasm_bindgen_func_elem_1917(arg0, arg1) {
|
|
|
1518
1495
|
}
|
|
1519
1496
|
}
|
|
1520
1497
|
|
|
1521
|
-
function
|
|
1498
|
+
function __wasm_bindgen_func_elem_6316(arg0, arg1, arg2) {
|
|
1522
1499
|
try {
|
|
1523
1500
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1524
1501
|
_assertNum(arg0);
|
|
1525
1502
|
_assertNum(arg1);
|
|
1526
|
-
wasm.
|
|
1503
|
+
wasm.__wasm_bindgen_func_elem_6316(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1527
1504
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1528
1505
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1529
1506
|
if (r1) {
|
|
@@ -1534,10 +1511,10 @@ function __wasm_bindgen_func_elem_9615(arg0, arg1, arg2) {
|
|
|
1534
1511
|
}
|
|
1535
1512
|
}
|
|
1536
1513
|
|
|
1537
|
-
function
|
|
1514
|
+
function __wasm_bindgen_func_elem_6297(arg0, arg1, arg2, arg3) {
|
|
1538
1515
|
_assertNum(arg0);
|
|
1539
1516
|
_assertNum(arg1);
|
|
1540
|
-
wasm.
|
|
1517
|
+
wasm.__wasm_bindgen_func_elem_6297(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1541
1518
|
}
|
|
1542
1519
|
|
|
1543
1520
|
|
|
Binary file
|
package/package.json
CHANGED