@sanox/sangine-core 0.3.3 → 0.4.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 +59 -21
- package/dist/gen-types.d.ts.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +101 -78
- package/dist/wasm/basis-decode/snippets/basisu_c_sys-273c0aeb51b100af/wasm/basisu_transcoder.js +2 -0
- package/dist/wasm/basis-decode/snippets/basisu_c_sys-273c0aeb51b100af/wasm/basisu_transcoder.wasm +0 -0
- package/dist/wasm/basis-decode/wasm_basis_decode.a8b7eebd.js +553 -0
- package/dist/wasm/basis-decode/wasm_basis_decode.d.ts +58 -0
- package/dist/wasm/basis-decode/wasm_basis_decode_bg.a8b7eebd.wasm +0 -0
- package/dist/wasm/basis-decode/wasm_basis_decode_bg.wasm.d.ts +16 -0
- package/dist/wasm/sangine/{sangine.9aeb8f2a.js → sangine.c27a2565.js} +909 -796
- package/dist/wasm/sangine/sangine.d.ts +13 -7
- package/dist/wasm/sangine/{sangine_bg.9aeb8f2a.wasm → sangine_bg.c27a2565.wasm} +0 -0
- package/dist/wasm/sangine/sangine_bg.wasm.d.ts +13 -7
- package/dist/wasm/sbo-decode/{wasm_sbo_decode.95e75786.js → wasm_sbo_decode.5c359661.js} +3 -4
- package/dist/wasm/sbo-decode/wasm_sbo_decode_bg.5c359661.wasm +0 -0
- package/dist/wasm-hashes/basis-decode.d.ts +2 -0
- package/dist/wasm-hashes/basis-decode.d.ts.map +1 -0
- package/dist/wasm-hashes/sangine.d.ts +1 -1
- package/dist/wasm-hashes/sbo-decode.d.ts +1 -1
- package/dist/worker/decodeWorkerImpl.d.ts +9 -4
- package/dist/worker/decodeWorkerImpl.d.ts.map +1 -1
- package/dist/worker/pool.d.ts +1 -0
- package/dist/worker/pool.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/wasm/sbo-decode/wasm_sbo_decode_bg.95e75786.wasm +0 -0
|
@@ -44,7 +44,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
44
44
|
|
|
45
45
|
export interface InitOutput {
|
|
46
46
|
readonly memory: WebAssembly.Memory;
|
|
47
|
-
readonly run: () => void;
|
|
48
47
|
readonly animate_to: (a: number, b: any) => [number, number];
|
|
49
48
|
readonly animate_to_route: (a: number, b: number, c: number) => [number, number];
|
|
50
49
|
readonly create_window: (a: number, b: number, c: any, d: number) => [number, number, number];
|
|
@@ -62,18 +61,25 @@ export interface InitOutput {
|
|
|
62
61
|
readonly set_sun_properties: (a: number, b: any) => [number, number];
|
|
63
62
|
readonly set_window_action: (a: number, b: any) => [number, number];
|
|
64
63
|
readonly set_window_scale: (a: number, b: number) => [number, number];
|
|
65
|
-
readonly
|
|
66
|
-
readonly
|
|
67
|
-
readonly
|
|
68
|
-
readonly
|
|
69
|
-
readonly
|
|
70
|
-
readonly
|
|
64
|
+
readonly run: () => void;
|
|
65
|
+
readonly wasm_bindgen__convert__closures_____invoke__hd8590da73942d3e0: (a: number, b: number, c: any) => [number, number];
|
|
66
|
+
readonly wasm_bindgen__convert__closures_____invoke__h6ff3e7511bd758a3: (a: number, b: number, c: any, d: any) => void;
|
|
67
|
+
readonly wasm_bindgen__convert__closures_____invoke__h00cde4323839146b: (a: number, b: number, c: any) => void;
|
|
68
|
+
readonly wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_3: (a: number, b: number, c: any) => void;
|
|
69
|
+
readonly wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_4: (a: number, b: number, c: any) => void;
|
|
70
|
+
readonly wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_5: (a: number, b: number, c: any) => void;
|
|
71
|
+
readonly wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_6: (a: number, b: number, c: any) => void;
|
|
72
|
+
readonly wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_7: (a: number, b: number, c: any) => void;
|
|
73
|
+
readonly wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_8: (a: number, b: number, c: any) => void;
|
|
74
|
+
readonly wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_9: (a: number, b: number, c: any) => void;
|
|
75
|
+
readonly wasm_bindgen__convert__closures_____invoke__hdb7f99c0126c5c28: (a: number, b: number) => void;
|
|
71
76
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
72
77
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
73
78
|
readonly __externref_table_alloc: () => number;
|
|
74
79
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
75
80
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
76
81
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
82
|
+
readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
|
|
77
83
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
78
84
|
readonly __wbindgen_start: () => void;
|
|
79
85
|
}
|
|
Binary file
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const run: () => void;
|
|
5
4
|
export const animate_to: (a: number, b: any) => [number, number];
|
|
6
5
|
export const animate_to_route: (a: number, b: number, c: number) => [number, number];
|
|
7
6
|
export const create_window: (a: number, b: number, c: any, d: number) => [number, number, number];
|
|
@@ -19,17 +18,24 @@ export const set_route_visible: (a: number, b: number, c: number, d: number) =>
|
|
|
19
18
|
export const set_sun_properties: (a: number, b: any) => [number, number];
|
|
20
19
|
export const set_window_action: (a: number, b: any) => [number, number];
|
|
21
20
|
export const set_window_scale: (a: number, b: number) => [number, number];
|
|
22
|
-
export const
|
|
23
|
-
export const
|
|
24
|
-
export const
|
|
25
|
-
export const
|
|
26
|
-
export const
|
|
27
|
-
export const
|
|
21
|
+
export const run: () => void;
|
|
22
|
+
export const wasm_bindgen__convert__closures_____invoke__hd8590da73942d3e0: (a: number, b: number, c: any) => [number, number];
|
|
23
|
+
export const wasm_bindgen__convert__closures_____invoke__h6ff3e7511bd758a3: (a: number, b: number, c: any, d: any) => void;
|
|
24
|
+
export const wasm_bindgen__convert__closures_____invoke__h00cde4323839146b: (a: number, b: number, c: any) => void;
|
|
25
|
+
export const wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_3: (a: number, b: number, c: any) => void;
|
|
26
|
+
export const wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_4: (a: number, b: number, c: any) => void;
|
|
27
|
+
export const wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_5: (a: number, b: number, c: any) => void;
|
|
28
|
+
export const wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_6: (a: number, b: number, c: any) => void;
|
|
29
|
+
export const wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_7: (a: number, b: number, c: any) => void;
|
|
30
|
+
export const wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_8: (a: number, b: number, c: any) => void;
|
|
31
|
+
export const wasm_bindgen__convert__closures_____invoke__h00cde4323839146b_9: (a: number, b: number, c: any) => void;
|
|
32
|
+
export const wasm_bindgen__convert__closures_____invoke__hdb7f99c0126c5c28: (a: number, b: number) => void;
|
|
28
33
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
29
34
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
30
35
|
export const __externref_table_alloc: () => number;
|
|
31
36
|
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
32
37
|
export const __wbindgen_exn_store: (a: number) => void;
|
|
33
38
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
39
|
+
export const __wbindgen_destroy_closure: (a: number, b: number) => void;
|
|
34
40
|
export const __externref_table_dealloc: (a: number) => void;
|
|
35
41
|
export const __wbindgen_start: () => void;
|
|
@@ -13,14 +13,13 @@ export function decode_sbo(data) {
|
|
|
13
13
|
}
|
|
14
14
|
return takeFromExternrefTable0(ret[0]);
|
|
15
15
|
}
|
|
16
|
-
|
|
17
16
|
function __wbg_get_imports() {
|
|
18
17
|
const import0 = {
|
|
19
18
|
__proto__: null,
|
|
20
|
-
|
|
19
|
+
__wbg___wbindgen_throw_6b64449b9b9ed33c: function(arg0, arg1) {
|
|
21
20
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
22
21
|
},
|
|
23
|
-
|
|
22
|
+
__wbg_new_from_slice_b5ea43e23f6008c0: function(arg0, arg1) {
|
|
24
23
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
25
24
|
return ret;
|
|
26
25
|
},
|
|
@@ -169,7 +168,7 @@ async function __wbg_init(module_or_path) {
|
|
|
169
168
|
}
|
|
170
169
|
|
|
171
170
|
if (module_or_path === undefined) {
|
|
172
|
-
module_or_path = new URL('wasm_sbo_decode_bg.
|
|
171
|
+
module_or_path = new URL('wasm_sbo_decode_bg.5c359661.wasm', import.meta.url);
|
|
173
172
|
}
|
|
174
173
|
const imports = __wbg_get_imports();
|
|
175
174
|
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basis-decode.d.ts","sourceRoot":"","sources":["../../src/wasm-hashes/basis-decode.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,aAAa,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SANGINE_HASH = "
|
|
1
|
+
export declare const SANGINE_HASH = "c27a2565";
|
|
2
2
|
//# sourceMappingURL=sangine.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SBO_DECODE_HASH = "
|
|
1
|
+
export declare const SBO_DECODE_HASH = "5c359661";
|
|
2
2
|
//# sourceMappingURL=sbo-decode.d.ts.map
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
declare const FORMAT_RGBA32 = 0;
|
|
2
|
+
declare const FORMAT_ETC2_RGBA8 = 1;
|
|
3
|
+
declare const FORMAT_ASTC_4X4 = 2;
|
|
4
|
+
declare const FORMAT_BC7 = 3;
|
|
5
|
+
declare const FORMAT_RG8 = 4;
|
|
6
|
+
declare const FORMAT_BC5_RG = 5;
|
|
7
|
+
declare const FORMAT_EAC2_RG11 = 6;
|
|
8
|
+
export declare function registerDecodeWorker(self: DedicatedWorkerGlobalScope): void;
|
|
9
|
+
export { FORMAT_ASTC_4X4, FORMAT_BC5_RG, FORMAT_BC7, FORMAT_EAC2_RG11, FORMAT_ETC2_RGBA8, FORMAT_RG8, FORMAT_RGBA32, };
|
|
5
10
|
//# sourceMappingURL=decodeWorkerImpl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decodeWorkerImpl.d.ts","sourceRoot":"","sources":["../../src/worker/decodeWorkerImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"decodeWorkerImpl.d.ts","sourceRoot":"","sources":["../../src/worker/decodeWorkerImpl.ts"],"names":[],"mappings":"AASA,QAAA,MAAM,aAAa,IAAI,CAAA;AACvB,QAAA,MAAM,iBAAiB,IAAI,CAAA;AAC3B,QAAA,MAAM,eAAe,IAAI,CAAA;AACzB,QAAA,MAAM,UAAU,IAAI,CAAA;AACpB,QAAA,MAAM,UAAU,IAAI,CAAA;AACpB,QAAA,MAAM,aAAa,IAAI,CAAA;AACvB,QAAA,MAAM,gBAAgB,IAAI,CAAA;AAE1B,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,0BAA0B,QA8HpE;AAED,OAAO,EACL,eAAe,EACf,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,EACV,aAAa,GACd,CAAA"}
|
package/dist/worker/pool.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pool.d.ts","sourceRoot":"","sources":["../../src/worker/pool.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAU,CAAC,OAAO,EAAE,QAAQ;IACvC,OAAO,CAAC,OAAO,CAAU;IACzB,OAAO,CAAC,IAAI,CAAU;IACtB,OAAO,CAAC,KAAK,CAIL;gBAEI,aAAa,EAAE,MAAM,MAAM,EAAE,GAAG,EAAE,MAAM;IAKpD,GAAG,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC;IAWxC,OAAO,CAAC,QAAQ;IA4BhB,OAAO,CAAC,OAAO;IASR,SAAS;CAKjB"}
|
|
1
|
+
{"version":3,"file":"pool.d.ts","sourceRoot":"","sources":["../../src/worker/pool.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAU,CAAC,OAAO,EAAE,QAAQ;IACvC,OAAO,CAAC,OAAO,CAAU;IACzB,OAAO,CAAC,IAAI,CAAU;IACtB,OAAO,CAAC,KAAK,CAIL;gBAEI,aAAa,EAAE,MAAM,MAAM,EAAE,GAAG,EAAE,MAAM;IAKpD,GAAG,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC;IAWxC,OAAO,CAAC,QAAQ;IA4BhB,OAAO,CAAC,OAAO;IASR,SAAS,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAMjC,SAAS;CAKjB"}
|
package/package.json
CHANGED
|
Binary file
|