@sanox/sangine-core 0.4.4 → 0.5.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.
- package/dist/gen-types.d.ts +146 -24
- package/dist/gen-types.d.ts.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +106 -90
- package/dist/rendererService.d.ts +11 -7
- package/dist/rendererService.d.ts.map +1 -1
- package/dist/wasm/sangine/{sangine.48c42a65.js → sangine.3dd43ad4.js} +91 -44
- package/dist/wasm/sangine/sangine.d.ts +20 -8
- package/dist/wasm/sangine/{sangine_bg.48c42a65.wasm → sangine_bg.3dd43ad4.wasm} +0 -0
- package/dist/wasm/sangine/sangine_bg.wasm.d.ts +7 -3
- package/dist/wasm-hashes/sangine.d.ts +1 -1
- package/package.json +1 -1
- package/dist/wasm/basis-decode/wasm_basis_decode.6c648416.js +0 -283
- package/dist/wasm/basis-decode/wasm_basis_decode.d.ts +0 -46
- package/dist/wasm/basis-decode/wasm_basis_decode_bg.6c648416.wasm +0 -0
- package/dist/wasm/basis-decode/wasm_basis_decode_bg.wasm.d.ts +0 -10
- package/dist/wasm/sbo-decode/wasm_sbo_decode.d.ts +0 -37
- package/dist/wasm/sbo-decode/wasm_sbo_decode.db6e2054.js +0 -217
- package/dist/wasm/sbo-decode/wasm_sbo_decode_bg.db6e2054.wasm +0 -0
- package/dist/wasm/sbo-decode/wasm_sbo_decode_bg.wasm.d.ts +0 -8
- package/dist/wasm-hashes/basis-decode.d.ts +0 -2
- package/dist/wasm-hashes/basis-decode.d.ts.map +0 -1
- package/dist/wasm-hashes/sbo-decode.d.ts +0 -2
- package/dist/wasm-hashes/sbo-decode.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rendererService.d.ts","sourceRoot":"","sources":["../src/rendererService.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,SAAS,EACT,UAAU,EACV,uBAAuB,EACvB,YAAY,EACZ,WAAW,EACX,oBAAoB,EACpB,cAAc,EACd,iBAAiB,EACjB,
|
|
1
|
+
{"version":3,"file":"rendererService.d.ts","sourceRoot":"","sources":["../src/rendererService.ts"],"names":[],"mappings":"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"}
|
|
@@ -13,12 +13,87 @@ export function animate_to(window_id, camera_target) {
|
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @param {number} window_id
|
|
16
|
-
* @param {string}
|
|
16
|
+
* @param {string} annotation_id
|
|
17
17
|
*/
|
|
18
|
-
export function
|
|
19
|
-
const ptr0 = passStringToWasm0(
|
|
18
|
+
export function animate_to_annotation(window_id, annotation_id) {
|
|
19
|
+
const ptr0 = passStringToWasm0(annotation_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
20
20
|
const len0 = WASM_VECTOR_LEN;
|
|
21
|
-
const ret = wasm.
|
|
21
|
+
const ret = wasm.animate_to_annotation(window_id, ptr0, len0);
|
|
22
|
+
if (ret[1]) {
|
|
23
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @param {number} window_id
|
|
29
|
+
*/
|
|
30
|
+
export function annotation_finish(window_id) {
|
|
31
|
+
const ret = wasm.annotation_finish(window_id);
|
|
32
|
+
if (ret[1]) {
|
|
33
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @param {number} window_id
|
|
39
|
+
* @param {string} annotation_id
|
|
40
|
+
* @param {any} annotation
|
|
41
|
+
*/
|
|
42
|
+
export function annotation_insert(window_id, annotation_id, annotation) {
|
|
43
|
+
const ptr0 = passStringToWasm0(annotation_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
44
|
+
const len0 = WASM_VECTOR_LEN;
|
|
45
|
+
const ret = wasm.annotation_insert(window_id, ptr0, len0, annotation);
|
|
46
|
+
if (ret[1]) {
|
|
47
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @param {number} window_id
|
|
53
|
+
* @param {string} annotation_id
|
|
54
|
+
*/
|
|
55
|
+
export function annotation_remove(window_id, annotation_id) {
|
|
56
|
+
const ptr0 = passStringToWasm0(annotation_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
57
|
+
const len0 = WASM_VECTOR_LEN;
|
|
58
|
+
const ret = wasm.annotation_remove(window_id, ptr0, len0);
|
|
59
|
+
if (ret[1]) {
|
|
60
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @param {number} window_id
|
|
66
|
+
*/
|
|
67
|
+
export function annotation_remove_last_point(window_id) {
|
|
68
|
+
const ret = wasm.annotation_remove_last_point(window_id);
|
|
69
|
+
if (ret[1]) {
|
|
70
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @param {number} window_id
|
|
76
|
+
* @param {string} annotation_id
|
|
77
|
+
* @param {any} kind
|
|
78
|
+
*/
|
|
79
|
+
export function annotation_set_kind(window_id, annotation_id, kind) {
|
|
80
|
+
const ptr0 = passStringToWasm0(annotation_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
81
|
+
const len0 = WASM_VECTOR_LEN;
|
|
82
|
+
const ret = wasm.annotation_set_kind(window_id, ptr0, len0, kind);
|
|
83
|
+
if (ret[1]) {
|
|
84
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @param {number} window_id
|
|
90
|
+
* @param {string} annotation_id
|
|
91
|
+
* @param {any} props
|
|
92
|
+
*/
|
|
93
|
+
export function annotation_set_props(window_id, annotation_id, props) {
|
|
94
|
+
const ptr0 = passStringToWasm0(annotation_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
95
|
+
const len0 = WASM_VECTOR_LEN;
|
|
96
|
+
const ret = wasm.annotation_set_props(window_id, ptr0, len0, props);
|
|
22
97
|
if (ret[1]) {
|
|
23
98
|
throw takeFromExternrefTable0(ret[0]);
|
|
24
99
|
}
|
|
@@ -139,34 +214,6 @@ export function set_render_quality(window_id, quality) {
|
|
|
139
214
|
}
|
|
140
215
|
}
|
|
141
216
|
|
|
142
|
-
/**
|
|
143
|
-
* @param {number} window_id
|
|
144
|
-
* @param {string} route_id
|
|
145
|
-
* @param {number} highlight
|
|
146
|
-
*/
|
|
147
|
-
export function set_route_highlight(window_id, route_id, highlight) {
|
|
148
|
-
const ptr0 = passStringToWasm0(route_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
149
|
-
const len0 = WASM_VECTOR_LEN;
|
|
150
|
-
const ret = wasm.set_route_highlight(window_id, ptr0, len0, highlight);
|
|
151
|
-
if (ret[1]) {
|
|
152
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* @param {number} window_id
|
|
158
|
-
* @param {string} route_id
|
|
159
|
-
* @param {number} visible
|
|
160
|
-
*/
|
|
161
|
-
export function set_route_visible(window_id, route_id, visible) {
|
|
162
|
-
const ptr0 = passStringToWasm0(route_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
163
|
-
const len0 = WASM_VECTOR_LEN;
|
|
164
|
-
const ret = wasm.set_route_visible(window_id, ptr0, len0, visible);
|
|
165
|
-
if (ret[1]) {
|
|
166
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
217
|
/**
|
|
171
218
|
* @param {number} window_id
|
|
172
219
|
* @param {any} properties
|
|
@@ -2705,57 +2752,57 @@ function __wbg_get_imports() {
|
|
|
2705
2752
|
arg0.writeTexture(arg1, arg2, arg3, arg4);
|
|
2706
2753
|
}, arguments); },
|
|
2707
2754
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
2708
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
2755
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1635, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2709
2756
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h00cde4323839146b);
|
|
2710
2757
|
return ret;
|
|
2711
2758
|
},
|
|
2712
2759
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
2713
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
2760
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 3972, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2714
2761
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hd8590da73942d3e0);
|
|
2715
2762
|
return ret;
|
|
2716
2763
|
},
|
|
2717
2764
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
2718
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>"), NamedExternref("ResizeObserver")], shim_idx:
|
|
2765
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>"), NamedExternref("ResizeObserver")], shim_idx: 1642, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2719
2766
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h6ff3e7511bd758a3);
|
|
2720
2767
|
return ret;
|
|
2721
2768
|
},
|
|
2722
2769
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
2723
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx:
|
|
2770
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 1635, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2724
2771
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_3);
|
|
2725
2772
|
return ret;
|
|
2726
2773
|
},
|
|
2727
2774
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
2728
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
2775
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1635, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2729
2776
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_4);
|
|
2730
2777
|
return ret;
|
|
2731
2778
|
},
|
|
2732
2779
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
2733
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("FocusEvent")], shim_idx:
|
|
2780
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("FocusEvent")], shim_idx: 1635, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2734
2781
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_5);
|
|
2735
2782
|
return ret;
|
|
2736
2783
|
},
|
|
2737
2784
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
2738
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx:
|
|
2785
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 1635, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2739
2786
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_6);
|
|
2740
2787
|
return ret;
|
|
2741
2788
|
},
|
|
2742
2789
|
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
2743
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("PageTransitionEvent")], shim_idx:
|
|
2790
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("PageTransitionEvent")], shim_idx: 1635, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2744
2791
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_7);
|
|
2745
2792
|
return ret;
|
|
2746
2793
|
},
|
|
2747
2794
|
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
2748
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("PointerEvent")], shim_idx:
|
|
2795
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("PointerEvent")], shim_idx: 1635, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2749
2796
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_8);
|
|
2750
2797
|
return ret;
|
|
2751
2798
|
},
|
|
2752
2799
|
__wbindgen_cast_000000000000000a: function(arg0, arg1) {
|
|
2753
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("WheelEvent")], shim_idx:
|
|
2800
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("WheelEvent")], shim_idx: 1635, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2754
2801
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_9);
|
|
2755
2802
|
return ret;
|
|
2756
2803
|
},
|
|
2757
2804
|
__wbindgen_cast_000000000000000b: function(arg0, arg1) {
|
|
2758
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
2805
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1640, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2759
2806
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hdb7f99c0126c5c28);
|
|
2760
2807
|
return ret;
|
|
2761
2808
|
},
|
|
@@ -3324,7 +3371,7 @@ async function __wbg_init(module_or_path) {
|
|
|
3324
3371
|
}
|
|
3325
3372
|
|
|
3326
3373
|
if (module_or_path === undefined) {
|
|
3327
|
-
module_or_path = new URL('sangine_bg.
|
|
3374
|
+
module_or_path = new URL('sangine_bg.3dd43ad4.wasm', import.meta.url);
|
|
3328
3375
|
}
|
|
3329
3376
|
const imports = __wbg_get_imports();
|
|
3330
3377
|
|
|
@@ -3,7 +3,19 @@
|
|
|
3
3
|
|
|
4
4
|
export function animate_to(window_id: number, camera_target: any): void;
|
|
5
5
|
|
|
6
|
-
export function
|
|
6
|
+
export function animate_to_annotation(window_id: number, annotation_id: string): void;
|
|
7
|
+
|
|
8
|
+
export function annotation_finish(window_id: number): void;
|
|
9
|
+
|
|
10
|
+
export function annotation_insert(window_id: number, annotation_id: string, annotation: any): void;
|
|
11
|
+
|
|
12
|
+
export function annotation_remove(window_id: number, annotation_id: string): void;
|
|
13
|
+
|
|
14
|
+
export function annotation_remove_last_point(window_id: number): void;
|
|
15
|
+
|
|
16
|
+
export function annotation_set_kind(window_id: number, annotation_id: string, kind: any): void;
|
|
17
|
+
|
|
18
|
+
export function annotation_set_props(window_id: number, annotation_id: string, props: any): void;
|
|
7
19
|
|
|
8
20
|
export function create_window(container_id: string, scene: any, rendering_settings?: any | null): number;
|
|
9
21
|
|
|
@@ -30,10 +42,6 @@ export function set_north_correction(window_id: number, north_correction: number
|
|
|
30
42
|
|
|
31
43
|
export function set_render_quality(window_id: number, quality: any): void;
|
|
32
44
|
|
|
33
|
-
export function set_route_highlight(window_id: number, route_id: string, highlight: number): void;
|
|
34
|
-
|
|
35
|
-
export function set_route_visible(window_id: number, route_id: string, visible: number): void;
|
|
36
|
-
|
|
37
45
|
export function set_sun_properties(window_id: number, properties: any): void;
|
|
38
46
|
|
|
39
47
|
export function set_window_action(window_id: number, action: any): void;
|
|
@@ -45,7 +53,13 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
45
53
|
export interface InitOutput {
|
|
46
54
|
readonly memory: WebAssembly.Memory;
|
|
47
55
|
readonly animate_to: (a: number, b: any) => [number, number];
|
|
48
|
-
readonly
|
|
56
|
+
readonly animate_to_annotation: (a: number, b: number, c: number) => [number, number];
|
|
57
|
+
readonly annotation_finish: (a: number) => [number, number];
|
|
58
|
+
readonly annotation_insert: (a: number, b: number, c: number, d: any) => [number, number];
|
|
59
|
+
readonly annotation_remove: (a: number, b: number, c: number) => [number, number];
|
|
60
|
+
readonly annotation_remove_last_point: (a: number) => [number, number];
|
|
61
|
+
readonly annotation_set_kind: (a: number, b: number, c: number, d: any) => [number, number];
|
|
62
|
+
readonly annotation_set_props: (a: number, b: number, c: number, d: any) => [number, number];
|
|
49
63
|
readonly create_window: (a: number, b: number, c: any, d: number) => [number, number, number];
|
|
50
64
|
readonly destroy_window: (a: number) => [number, number];
|
|
51
65
|
readonly read_camera_pos: (a: number) => [number, number, number];
|
|
@@ -56,8 +70,6 @@ export interface InitOutput {
|
|
|
56
70
|
readonly set_lighting_mode: (a: number, b: any) => [number, number];
|
|
57
71
|
readonly set_north_correction: (a: number, b: number) => [number, number];
|
|
58
72
|
readonly set_render_quality: (a: number, b: any) => [number, number];
|
|
59
|
-
readonly set_route_highlight: (a: number, b: number, c: number, d: number) => [number, number];
|
|
60
|
-
readonly set_route_visible: (a: number, b: number, c: number, d: number) => [number, number];
|
|
61
73
|
readonly set_sun_properties: (a: number, b: any) => [number, number];
|
|
62
74
|
readonly set_window_action: (a: number, b: any) => [number, number];
|
|
63
75
|
readonly set_window_scale: (a: number, b: number) => [number, number];
|
|
Binary file
|
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
4
|
export const animate_to: (a: number, b: any) => [number, number];
|
|
5
|
-
export const
|
|
5
|
+
export const animate_to_annotation: (a: number, b: number, c: number) => [number, number];
|
|
6
|
+
export const annotation_finish: (a: number) => [number, number];
|
|
7
|
+
export const annotation_insert: (a: number, b: number, c: number, d: any) => [number, number];
|
|
8
|
+
export const annotation_remove: (a: number, b: number, c: number) => [number, number];
|
|
9
|
+
export const annotation_remove_last_point: (a: number) => [number, number];
|
|
10
|
+
export const annotation_set_kind: (a: number, b: number, c: number, d: any) => [number, number];
|
|
11
|
+
export const annotation_set_props: (a: number, b: number, c: number, d: any) => [number, number];
|
|
6
12
|
export const create_window: (a: number, b: number, c: any, d: number) => [number, number, number];
|
|
7
13
|
export const destroy_window: (a: number) => [number, number];
|
|
8
14
|
export const read_camera_pos: (a: number) => [number, number, number];
|
|
@@ -13,8 +19,6 @@ export const set_gpu_memory_budget_mb: (a: number, b: number) => [number, number
|
|
|
13
19
|
export const set_lighting_mode: (a: number, b: any) => [number, number];
|
|
14
20
|
export const set_north_correction: (a: number, b: number) => [number, number];
|
|
15
21
|
export const set_render_quality: (a: number, b: any) => [number, number];
|
|
16
|
-
export const set_route_highlight: (a: number, b: number, c: number, d: number) => [number, number];
|
|
17
|
-
export const set_route_visible: (a: number, b: number, c: number, d: number) => [number, number];
|
|
18
22
|
export const set_sun_properties: (a: number, b: any) => [number, number];
|
|
19
23
|
export const set_window_action: (a: number, b: any) => [number, number];
|
|
20
24
|
export const set_window_scale: (a: number, b: number) => [number, number];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SANGINE_HASH = "
|
|
1
|
+
export declare const SANGINE_HASH = "3dd43ad4";
|
|
2
2
|
//# sourceMappingURL=sangine.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
/* @ts-self-types="./wasm_basis_decode.d.ts" */
|
|
2
|
-
|
|
3
|
-
//#region exports
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Transcode a .basis file to a GPU-compressed (or RGBA32) format.
|
|
7
|
-
*
|
|
8
|
-
* `format`: 0=RGBA32, 1=ETC2_RGBA8, 2=ASTC_4×4, 3=BC7
|
|
9
|
-
*
|
|
10
|
-
* Returns a JS object `{ data: Uint8Array, width: u32, height: u32, format: u32 }`.
|
|
11
|
-
* @param {Uint8Array} data
|
|
12
|
-
* @param {number} format
|
|
13
|
-
* @returns {object}
|
|
14
|
-
*/
|
|
15
|
-
export function transcode_basis(data, format) {
|
|
16
|
-
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
17
|
-
const len0 = WASM_VECTOR_LEN;
|
|
18
|
-
_assertNum(format);
|
|
19
|
-
const ret = wasm.transcode_basis(ptr0, len0, format);
|
|
20
|
-
if (ret[2]) {
|
|
21
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
22
|
-
}
|
|
23
|
-
return takeFromExternrefTable0(ret[0]);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
|
|
28
|
-
//#region wasm imports
|
|
29
|
-
import * as import1 from "env"
|
|
30
|
-
import * as import2 from "env"
|
|
31
|
-
import * as import3 from "env"
|
|
32
|
-
import * as import4 from "env"
|
|
33
|
-
import * as import5 from "env"
|
|
34
|
-
import * as import6 from "env"
|
|
35
|
-
import * as import7 from "env"
|
|
36
|
-
import * as import8 from "env"
|
|
37
|
-
import * as import9 from "env"
|
|
38
|
-
import * as import10 from "env"
|
|
39
|
-
|
|
40
|
-
function __wbg_get_imports() {
|
|
41
|
-
const import0 = {
|
|
42
|
-
__proto__: null,
|
|
43
|
-
__wbg___wbindgen_throw_be289d5034ed271b: function(arg0, arg1) {
|
|
44
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
45
|
-
},
|
|
46
|
-
__wbg_new_361308b2356cecd0: function() { return logError(function () {
|
|
47
|
-
const ret = new Object();
|
|
48
|
-
return ret;
|
|
49
|
-
}, arguments); },
|
|
50
|
-
__wbg_new_from_slice_a3d2629dc1826784: function() { return logError(function (arg0, arg1) {
|
|
51
|
-
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
52
|
-
return ret;
|
|
53
|
-
}, arguments); },
|
|
54
|
-
__wbg_set_6cb8631f80447a67: function() { return handleError(function (arg0, arg1, arg2) {
|
|
55
|
-
const ret = Reflect.set(arg0, arg1, arg2);
|
|
56
|
-
_assertBoolean(ret);
|
|
57
|
-
return ret;
|
|
58
|
-
}, arguments); },
|
|
59
|
-
__wbindgen_cast_0000000000000001: function() { return logError(function (arg0) {
|
|
60
|
-
// Cast intrinsic for `F64 -> Externref`.
|
|
61
|
-
const ret = arg0;
|
|
62
|
-
return ret;
|
|
63
|
-
}, arguments); },
|
|
64
|
-
__wbindgen_cast_0000000000000002: function() { return logError(function (arg0, arg1) {
|
|
65
|
-
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
66
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
67
|
-
return ret;
|
|
68
|
-
}, arguments); },
|
|
69
|
-
__wbindgen_init_externref_table: function() {
|
|
70
|
-
const table = wasm.__wbindgen_externrefs;
|
|
71
|
-
const offset = table.grow(4);
|
|
72
|
-
table.set(0, undefined);
|
|
73
|
-
table.set(offset + 0, undefined);
|
|
74
|
-
table.set(offset + 1, null);
|
|
75
|
-
table.set(offset + 2, true);
|
|
76
|
-
table.set(offset + 3, false);
|
|
77
|
-
},
|
|
78
|
-
};
|
|
79
|
-
return {
|
|
80
|
-
__proto__: null,
|
|
81
|
-
"./wasm_basis_decode_bg.js": import0,
|
|
82
|
-
"env": import1,
|
|
83
|
-
"env": import2,
|
|
84
|
-
"env": import3,
|
|
85
|
-
"env": import4,
|
|
86
|
-
"env": import5,
|
|
87
|
-
"env": import6,
|
|
88
|
-
"env": import7,
|
|
89
|
-
"env": import8,
|
|
90
|
-
"env": import9,
|
|
91
|
-
"env": import10,
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
//#endregion
|
|
97
|
-
|
|
98
|
-
//#region intrinsics
|
|
99
|
-
function addToExternrefTable0(obj) {
|
|
100
|
-
const idx = wasm.__externref_table_alloc();
|
|
101
|
-
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
102
|
-
return idx;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
function _assertBoolean(n) {
|
|
106
|
-
if (typeof(n) !== 'boolean') {
|
|
107
|
-
throw new Error(`expected a boolean argument, found ${typeof(n)}`);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
function _assertNum(n) {
|
|
112
|
-
if (typeof(n) !== 'number') throw new Error(`expected a number argument, found ${typeof(n)}`);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
116
|
-
ptr = ptr >>> 0;
|
|
117
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
function getStringFromWasm0(ptr, len) {
|
|
121
|
-
ptr = ptr >>> 0;
|
|
122
|
-
return decodeText(ptr, len);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
let cachedUint8ArrayMemory0 = null;
|
|
126
|
-
function getUint8ArrayMemory0() {
|
|
127
|
-
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
128
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
129
|
-
}
|
|
130
|
-
return cachedUint8ArrayMemory0;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
function handleError(f, args) {
|
|
134
|
-
try {
|
|
135
|
-
return f.apply(this, args);
|
|
136
|
-
} catch (e) {
|
|
137
|
-
const idx = addToExternrefTable0(e);
|
|
138
|
-
wasm.__wbindgen_exn_store(idx);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
function logError(f, args) {
|
|
143
|
-
try {
|
|
144
|
-
return f.apply(this, args);
|
|
145
|
-
} catch (e) {
|
|
146
|
-
let error = (function () {
|
|
147
|
-
try {
|
|
148
|
-
return e instanceof Error ? `${e.message}\n\nStack:\n${e.stack}` : e.toString();
|
|
149
|
-
} catch(_) {
|
|
150
|
-
return "<failed to stringify thrown value>";
|
|
151
|
-
}
|
|
152
|
-
}());
|
|
153
|
-
console.error("wasm-bindgen: imported JS function that was not marked as `catch` threw an error:", error);
|
|
154
|
-
throw e;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
159
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
160
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
161
|
-
WASM_VECTOR_LEN = arg.length;
|
|
162
|
-
return ptr;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
function takeFromExternrefTable0(idx) {
|
|
166
|
-
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
167
|
-
wasm.__externref_table_dealloc(idx);
|
|
168
|
-
return value;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
172
|
-
cachedTextDecoder.decode();
|
|
173
|
-
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
174
|
-
let numBytesDecoded = 0;
|
|
175
|
-
function decodeText(ptr, len) {
|
|
176
|
-
numBytesDecoded += len;
|
|
177
|
-
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
178
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
179
|
-
cachedTextDecoder.decode();
|
|
180
|
-
numBytesDecoded = len;
|
|
181
|
-
}
|
|
182
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
let WASM_VECTOR_LEN = 0;
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
//#endregion
|
|
189
|
-
|
|
190
|
-
//#region wasm loading
|
|
191
|
-
let wasmModule, wasm;
|
|
192
|
-
function __wbg_finalize_init(instance, module) {
|
|
193
|
-
wasm = instance.exports;
|
|
194
|
-
wasmModule = module;
|
|
195
|
-
cachedUint8ArrayMemory0 = null;
|
|
196
|
-
wasm.__wbindgen_start();
|
|
197
|
-
return wasm;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
async function __wbg_load(module, imports) {
|
|
201
|
-
if (typeof Response === 'function' && module instanceof Response) {
|
|
202
|
-
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
203
|
-
try {
|
|
204
|
-
return await WebAssembly.instantiateStreaming(module, imports);
|
|
205
|
-
} catch (e) {
|
|
206
|
-
const validResponse = module.ok && expectedResponseType(module.type);
|
|
207
|
-
|
|
208
|
-
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
209
|
-
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
210
|
-
|
|
211
|
-
} else { throw e; }
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
const bytes = await module.arrayBuffer();
|
|
216
|
-
return await WebAssembly.instantiate(bytes, imports);
|
|
217
|
-
} else {
|
|
218
|
-
const instance = await WebAssembly.instantiate(module, imports);
|
|
219
|
-
|
|
220
|
-
if (instance instanceof WebAssembly.Instance) {
|
|
221
|
-
return { instance, module };
|
|
222
|
-
} else {
|
|
223
|
-
return instance;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
function expectedResponseType(type) {
|
|
228
|
-
switch (type) {
|
|
229
|
-
case 'basic': case 'cors': case 'default': return true;
|
|
230
|
-
}
|
|
231
|
-
return false;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
function initSync(module) {
|
|
236
|
-
if (wasm !== undefined) return wasm;
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
if (module !== undefined) {
|
|
240
|
-
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
241
|
-
({module} = module)
|
|
242
|
-
} else {
|
|
243
|
-
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
const imports = __wbg_get_imports();
|
|
248
|
-
if (!(module instanceof WebAssembly.Module)) {
|
|
249
|
-
module = new WebAssembly.Module(module);
|
|
250
|
-
}
|
|
251
|
-
const instance = new WebAssembly.Instance(module, imports);
|
|
252
|
-
return __wbg_finalize_init(instance, module);
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
async function __wbg_init(module_or_path) {
|
|
256
|
-
if (wasm !== undefined) return wasm;
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
if (module_or_path !== undefined) {
|
|
260
|
-
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
261
|
-
({module_or_path} = module_or_path)
|
|
262
|
-
} else {
|
|
263
|
-
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
if (module_or_path === undefined) {
|
|
268
|
-
module_or_path = new URL('wasm_basis_decode_bg.6c648416.wasm', import.meta.url);
|
|
269
|
-
}
|
|
270
|
-
const imports = __wbg_get_imports();
|
|
271
|
-
|
|
272
|
-
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
273
|
-
module_or_path = fetch(module_or_path);
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
277
|
-
|
|
278
|
-
return __wbg_finalize_init(instance, module);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
export { initSync, __wbg_init as default };
|
|
282
|
-
//#endregion
|
|
283
|
-
export { wasm as __wasm }
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Transcode a .basis file to a GPU-compressed (or RGBA32) format.
|
|
6
|
-
*
|
|
7
|
-
* `format`: 0=RGBA32, 1=ETC2_RGBA8, 2=ASTC_4×4, 3=BC7
|
|
8
|
-
*
|
|
9
|
-
* Returns a JS object `{ data: Uint8Array, width: u32, height: u32, format: u32 }`.
|
|
10
|
-
*/
|
|
11
|
-
export function transcode_basis(data: Uint8Array, format: number): object;
|
|
12
|
-
|
|
13
|
-
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
14
|
-
|
|
15
|
-
export interface InitOutput {
|
|
16
|
-
readonly memory: WebAssembly.Memory;
|
|
17
|
-
readonly transcode_basis: (a: number, b: number, c: number) => [number, number, number];
|
|
18
|
-
readonly __wbindgen_exn_store: (a: number) => void;
|
|
19
|
-
readonly __externref_table_alloc: () => number;
|
|
20
|
-
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
21
|
-
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
22
|
-
readonly __externref_table_dealloc: (a: number) => void;
|
|
23
|
-
readonly __wbindgen_start: () => void;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Instantiates the given `module`, which can either be bytes or
|
|
30
|
-
* a precompiled `WebAssembly.Module`.
|
|
31
|
-
*
|
|
32
|
-
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
33
|
-
*
|
|
34
|
-
* @returns {InitOutput}
|
|
35
|
-
*/
|
|
36
|
-
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
40
|
-
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
41
|
-
*
|
|
42
|
-
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
43
|
-
*
|
|
44
|
-
* @returns {Promise<InitOutput>}
|
|
45
|
-
*/
|
|
46
|
-
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|
|
Binary file
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const transcode_basis: (a: number, b: number, c: number) => [number, number, number];
|
|
5
|
-
export const __wbindgen_exn_store: (a: number) => void;
|
|
6
|
-
export const __externref_table_alloc: () => number;
|
|
7
|
-
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
8
|
-
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
9
|
-
export const __externref_table_dealloc: (a: number) => void;
|
|
10
|
-
export const __wbindgen_start: () => void;
|