@openheart/tavio-renderer 2.2.13-without-wasm → 2.3.1-withWasm
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/build/esm/index.js +1150 -253
- package/build/esm/types/types/global.d.ts +8 -4
- package/build/esm/types/viewer/canvas.d.ts +86 -5
- package/build/esm/types/viewer/materialGenerator.d.ts +120 -0
- package/build/esm/types/viewer/tavioMesh.d.ts +15 -27
- package/build/esm/types/wasm-bindings/wasm-handlers.d.ts +37 -0
- package/build/esm/types/wasm-bindings/wasm-worker-client.d.ts +68 -11
- package/build/esm/wasm/pkg/no-thread/tavio.d.ts +35 -20
- package/build/esm/wasm/pkg/no-thread/tavio.js +351 -95
- package/build/esm/wasm/pkg/no-thread/tavio_bg.wasm +0 -0
- package/build/esm/wasm/pkg/no-thread/tavio_bg.wasm.d.ts +18 -11
- package/build/esm/wasm/pkg/thread/tavio.d.ts +38 -23
- package/build/esm/wasm/pkg/thread/tavio.js +387 -130
- package/build/esm/wasm/pkg/thread/tavio_bg.wasm +0 -0
- package/build/esm/wasm/pkg/thread/tavio_bg.wasm.d.ts +21 -14
- package/package.json +1 -1
|
Binary file
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const
|
|
4
|
+
export const decodePly: (a: number, b: number, c: number) => number;
|
|
5
|
+
export const encodePly: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
5
6
|
export const registerEventHandler: (a: number) => number;
|
|
6
|
-
export const
|
|
7
|
+
export const decodeSog: (a: number, b: number, c: number) => number;
|
|
7
8
|
export const decodeTavio: (a: number, b: number, c: number) => number;
|
|
8
|
-
export const
|
|
9
|
-
export const
|
|
10
|
-
export const
|
|
11
|
-
export const
|
|
9
|
+
export const encodeTavio: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
10
|
+
export const decodeSplat: (a: number, b: number, c: number) => number;
|
|
11
|
+
export const decodeSpz: (a: number, b: number, c: number) => number;
|
|
12
|
+
export const encodeSplat: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
13
|
+
export const encodeSpz: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
14
|
+
export const sort: (a: number, b: number, c: number) => number;
|
|
15
|
+
export const main: () => void;
|
|
12
16
|
export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
13
17
|
export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
14
18
|
export const intounderlyingbytesource_cancel: (a: number) => void;
|
|
@@ -18,14 +22,17 @@ export const intounderlyingbytesource_type: (a: number) => number;
|
|
|
18
22
|
export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
19
23
|
export const intounderlyingsource_cancel: (a: number) => void;
|
|
20
24
|
export const intounderlyingsource_pull: (a: number, b: number) => number;
|
|
21
|
-
export const
|
|
22
|
-
export const
|
|
23
|
-
export const
|
|
24
|
-
export const
|
|
25
|
-
export const
|
|
25
|
+
export const __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
26
|
+
export const intounderlyingsink_abort: (a: number, b: number) => number;
|
|
27
|
+
export const intounderlyingsink_close: (a: number) => number;
|
|
28
|
+
export const intounderlyingsink_write: (a: number, b: number) => number;
|
|
29
|
+
export const __wasm_bindgen_func_elem_2673: (a: number, b: number, c: number, d: number) => void;
|
|
30
|
+
export const __wasm_bindgen_func_elem_2675: (a: number, b: number, c: number, d: number) => void;
|
|
31
|
+
export const __wasm_bindgen_func_elem_955: (a: number, b: number, c: number) => void;
|
|
26
32
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
27
33
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
28
34
|
export const __wbindgen_export3: (a: number) => void;
|
|
29
35
|
export const __wbindgen_export4: (a: number, b: number, c: number) => void;
|
|
36
|
+
export const __wbindgen_export5: (a: number, b: number) => void;
|
|
30
37
|
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
31
38
|
export const __wbindgen_start: () => void;
|
|
@@ -8,14 +8,6 @@
|
|
|
8
8
|
|
|
9
9
|
type ReadableStreamType = "bytes";
|
|
10
10
|
|
|
11
|
-
interface DecodeOptions {
|
|
12
|
-
decodeMode?: "sync" | "parallel";
|
|
13
|
-
maxDecodePoints?: number;
|
|
14
|
-
useSphericalHarmonics?: boolean;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
11
|
export class IntoUnderlyingByteSource {
|
|
20
12
|
private constructor();
|
|
21
13
|
free(): void;
|
|
@@ -44,7 +36,23 @@ export class IntoUnderlyingSource {
|
|
|
44
36
|
pull(controller: ReadableStreamDefaultController): Promise<any>;
|
|
45
37
|
}
|
|
46
38
|
|
|
47
|
-
export function
|
|
39
|
+
export function decodePly(url: string, decode_options: any): Promise<void>;
|
|
40
|
+
|
|
41
|
+
export function decodeSog(url: string, decode_options: any): Promise<void>;
|
|
42
|
+
|
|
43
|
+
export function decodeSplat(url: string, decode_options: any): Promise<void>;
|
|
44
|
+
|
|
45
|
+
export function decodeSpz(url: string, decode_options: any): Promise<void>;
|
|
46
|
+
|
|
47
|
+
export function decodeTavio(url: string, decode_options: any): Promise<void>;
|
|
48
|
+
|
|
49
|
+
export function encodePly(point_count: number, gaussian_buffer: Uint8Array, sh_buffer: Float32Array | null | undefined, scale_min_values: Float32Array, scale_max_values: Float32Array, alpha_min_value: number, alpha_max_value: number): Uint8Array;
|
|
50
|
+
|
|
51
|
+
export function encodeSplat(point_count: number, gaussian_buffer: Uint8Array, scale_min_values: Float32Array, scale_max_values: Float32Array, alpha_min_value: number, alpha_max_value: number): Uint8Array;
|
|
52
|
+
|
|
53
|
+
export function encodeSpz(point_count: number, gaussian_buffer: Uint8Array, sh_buffer: Float32Array | null | undefined, scale_min_values: Float32Array, scale_max_values: Float32Array, alpha_min_value: number, alpha_max_value: number): Uint8Array;
|
|
54
|
+
|
|
55
|
+
export function encodeTavio(point_count: number, gaussian_buffer: Uint8Array, _sh_buffer: Float32Array | null | undefined, scale_min_values: Float32Array, scale_max_values: Float32Array, alpha_min_value: number, alpha_max_value: number): Uint8Array;
|
|
48
56
|
|
|
49
57
|
export function initThreadPool(num_threads: number): Promise<any>;
|
|
50
58
|
|
|
@@ -68,40 +76,47 @@ export function wbg_rayon_start_worker(receiver: number): void;
|
|
|
68
76
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
69
77
|
|
|
70
78
|
export interface InitOutput {
|
|
79
|
+
readonly decodeSog: (a: number, b: number, c: number) => number;
|
|
71
80
|
readonly decodeTavio: (a: number, b: number, c: number) => number;
|
|
81
|
+
readonly encodeTavio: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
82
|
+
readonly main: () => void;
|
|
83
|
+
readonly decodePly: (a: number, b: number, c: number) => number;
|
|
84
|
+
readonly encodePly: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
72
85
|
readonly registerEventHandler: (a: number) => number;
|
|
73
86
|
readonly sort: (a: number, b: number, c: number) => number;
|
|
74
|
-
readonly
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
77
|
-
readonly
|
|
78
|
-
readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
79
|
-
readonly intounderlyingsink_abort: (a: number, b: number) => number;
|
|
80
|
-
readonly intounderlyingsink_close: (a: number) => number;
|
|
81
|
-
readonly intounderlyingsink_write: (a: number, b: number) => number;
|
|
87
|
+
readonly decodeSplat: (a: number, b: number, c: number) => number;
|
|
88
|
+
readonly decodeSpz: (a: number, b: number, c: number) => number;
|
|
89
|
+
readonly encodeSplat: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
90
|
+
readonly encodeSpz: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
82
91
|
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
83
92
|
readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
84
93
|
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
|
85
94
|
readonly intounderlyingbytesource_pull: (a: number, b: number) => number;
|
|
86
95
|
readonly intounderlyingbytesource_start: (a: number, b: number) => void;
|
|
87
96
|
readonly intounderlyingbytesource_type: (a: number) => number;
|
|
97
|
+
readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
98
|
+
readonly intounderlyingsink_abort: (a: number, b: number) => number;
|
|
99
|
+
readonly intounderlyingsink_close: (a: number) => number;
|
|
100
|
+
readonly intounderlyingsink_write: (a: number, b: number) => number;
|
|
101
|
+
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
102
|
+
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
103
|
+
readonly intounderlyingsource_pull: (a: number, b: number) => number;
|
|
88
104
|
readonly __wbg_wbg_rayon_poolbuilder_free: (a: number, b: number) => void;
|
|
89
105
|
readonly initThreadPool: (a: number) => number;
|
|
90
106
|
readonly wbg_rayon_poolbuilder_build: (a: number) => void;
|
|
91
107
|
readonly wbg_rayon_poolbuilder_numThreads: (a: number) => number;
|
|
92
108
|
readonly wbg_rayon_poolbuilder_receiver: (a: number) => number;
|
|
93
109
|
readonly wbg_rayon_start_worker: (a: number) => void;
|
|
94
|
-
readonly
|
|
95
|
-
readonly
|
|
96
|
-
readonly
|
|
97
|
-
readonly
|
|
98
|
-
readonly __wasm_bindgen_func_elem_570: (a: number, b: number, c: number) => void;
|
|
99
|
-
readonly __wasm_bindgen_func_elem_695: (a: number, b: number, c: number) => void;
|
|
110
|
+
readonly __wasm_bindgen_func_elem_2707: (a: number, b: number, c: number, d: number) => void;
|
|
111
|
+
readonly __wasm_bindgen_func_elem_2710: (a: number, b: number, c: number, d: number) => void;
|
|
112
|
+
readonly __wasm_bindgen_func_elem_1035: (a: number, b: number, c: number) => void;
|
|
113
|
+
readonly __wasm_bindgen_func_elem_2709: (a: number, b: number, c: number) => void;
|
|
100
114
|
readonly memory: WebAssembly.Memory;
|
|
101
115
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
102
116
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
103
117
|
readonly __wbindgen_export3: (a: number) => void;
|
|
104
118
|
readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
|
|
119
|
+
readonly __wbindgen_export5: (a: number, b: number) => void;
|
|
105
120
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
106
121
|
readonly __wbindgen_thread_destroy: (a?: number, b?: number, c?: number) => void;
|
|
107
122
|
readonly __wbindgen_start: (a: number) => void;
|