@sanox/sangine-core 0.3.4 → 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.df2c068e.js → sangine.c27a2565.js} +909 -819
- package/dist/wasm/sangine/sangine.d.ts +23 -39
- package/dist/wasm/sangine/{sangine_bg.df2c068e.wasm → sangine_bg.c27a2565.wasm} +0 -0
- package/dist/wasm/sangine/sangine_bg.wasm.d.ts +23 -17
- package/dist/wasm/sbo-decode/{wasm_sbo_decode.fa5ceba1.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.fa5ceba1.wasm +0 -0
|
@@ -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 function animate_to(window_id: number, camera_target: any): void;
|
|
27
5
|
|
|
28
6
|
export function animate_to_route(window_id: number, route_id: string): void;
|
|
@@ -66,36 +44,42 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
66
44
|
|
|
67
45
|
export interface InitOutput {
|
|
68
46
|
readonly memory: WebAssembly.Memory;
|
|
69
|
-
readonly
|
|
47
|
+
readonly animate_to: (a: number, b: any) => [number, number];
|
|
48
|
+
readonly animate_to_route: (a: number, b: number, c: number) => [number, number];
|
|
49
|
+
readonly create_window: (a: number, b: number, c: any, d: number) => [number, number, number];
|
|
50
|
+
readonly destroy_window: (a: number) => [number, number];
|
|
51
|
+
readonly read_camera_pos: (a: number) => [number, number, number];
|
|
70
52
|
readonly register_asset_decoder: (a: any) => void;
|
|
71
|
-
readonly
|
|
53
|
+
readonly register_event_listener: (a: any) => void;
|
|
72
54
|
readonly set_ambient_lighting: (a: number, b: any) => [number, number];
|
|
73
|
-
readonly set_render_quality: (a: number, b: any) => [number, number];
|
|
74
55
|
readonly set_gpu_memory_budget_mb: (a: number, b: number) => [number, number];
|
|
56
|
+
readonly set_lighting_mode: (a: number, b: any) => [number, number];
|
|
75
57
|
readonly set_north_correction: (a: number, b: number) => [number, number];
|
|
76
|
-
readonly
|
|
77
|
-
readonly set_window_scale: (a: number, b: number) => [number, number];
|
|
78
|
-
readonly read_camera_pos: (a: number) => [number, number, number];
|
|
79
|
-
readonly animate_to: (a: number, b: any) => [number, number];
|
|
80
|
-
readonly animate_to_route: (a: number, b: number, c: number) => [number, number];
|
|
81
|
-
readonly set_route_visible: (a: number, b: number, c: number, d: number) => [number, number];
|
|
58
|
+
readonly set_render_quality: (a: number, b: any) => [number, number];
|
|
82
59
|
readonly set_route_highlight: (a: number, b: number, c: number, d: number) => [number, number];
|
|
83
|
-
readonly
|
|
60
|
+
readonly set_route_visible: (a: number, b: number, c: number, d: number) => [number, number];
|
|
61
|
+
readonly set_sun_properties: (a: number, b: any) => [number, number];
|
|
84
62
|
readonly set_window_action: (a: number, b: any) => [number, number];
|
|
85
|
-
readonly
|
|
63
|
+
readonly set_window_scale: (a: number, b: number) => [number, number];
|
|
86
64
|
readonly run: () => void;
|
|
87
|
-
readonly
|
|
88
|
-
readonly
|
|
89
|
-
readonly
|
|
90
|
-
readonly
|
|
91
|
-
readonly
|
|
92
|
-
readonly
|
|
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;
|
|
93
76
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
94
77
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
95
78
|
readonly __externref_table_alloc: () => number;
|
|
96
79
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
97
80
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
98
81
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
82
|
+
readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
|
|
99
83
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
100
84
|
readonly __wbindgen_start: () => void;
|
|
101
85
|
}
|
|
Binary file
|
|
@@ -1,35 +1,41 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const
|
|
4
|
+
export const animate_to: (a: number, b: any) => [number, number];
|
|
5
|
+
export const animate_to_route: (a: number, b: number, c: number) => [number, number];
|
|
6
|
+
export const create_window: (a: number, b: number, c: any, d: number) => [number, number, number];
|
|
7
|
+
export const destroy_window: (a: number) => [number, number];
|
|
8
|
+
export const read_camera_pos: (a: number) => [number, number, number];
|
|
5
9
|
export const register_asset_decoder: (a: any) => void;
|
|
6
|
-
export const
|
|
10
|
+
export const register_event_listener: (a: any) => void;
|
|
7
11
|
export const set_ambient_lighting: (a: number, b: any) => [number, number];
|
|
8
|
-
export const set_render_quality: (a: number, b: any) => [number, number];
|
|
9
12
|
export const set_gpu_memory_budget_mb: (a: number, b: number) => [number, number];
|
|
13
|
+
export const set_lighting_mode: (a: number, b: any) => [number, number];
|
|
10
14
|
export const set_north_correction: (a: number, b: number) => [number, number];
|
|
11
|
-
export const
|
|
12
|
-
export const set_window_scale: (a: number, b: number) => [number, number];
|
|
13
|
-
export const read_camera_pos: (a: number) => [number, number, number];
|
|
14
|
-
export const animate_to: (a: number, b: any) => [number, number];
|
|
15
|
-
export const animate_to_route: (a: number, b: number, c: number) => [number, number];
|
|
16
|
-
export const set_route_visible: (a: number, b: number, c: number, d: number) => [number, number];
|
|
15
|
+
export const set_render_quality: (a: number, b: any) => [number, number];
|
|
17
16
|
export const set_route_highlight: (a: number, b: number, c: number, d: number) => [number, number];
|
|
18
|
-
export const
|
|
17
|
+
export const set_route_visible: (a: number, b: number, c: number, d: number) => [number, number];
|
|
18
|
+
export const set_sun_properties: (a: number, b: any) => [number, number];
|
|
19
19
|
export const set_window_action: (a: number, b: any) => [number, number];
|
|
20
|
-
export const
|
|
20
|
+
export const set_window_scale: (a: number, b: number) => [number, number];
|
|
21
21
|
export const run: () => void;
|
|
22
|
-
export const
|
|
23
|
-
export const
|
|
24
|
-
export const
|
|
25
|
-
export const
|
|
26
|
-
export const
|
|
27
|
-
export const
|
|
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
|