@openheart/tavio-renderer 2.2.9-without-wasm → 2.2.10-without-wasm
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/wasm/pkg/no-thread/package.json +18 -0
- package/build/esm/wasm/pkg/no-thread/tavio.d.ts +106 -0
- package/build/esm/wasm/pkg/no-thread/tavio.js +933 -0
- package/build/esm/wasm/pkg/no-thread/tavio_bg.wasm +0 -0
- package/build/esm/wasm/pkg/no-thread/tavio_bg.wasm.d.ts +28 -0
- package/build/esm/wasm/pkg/thread/package.json +18 -0
- package/build/esm/wasm/pkg/thread/snippets/wasm-bindgen-rayon-38edf6e439f6d70d/src/workerHelpers.js +107 -0
- package/build/esm/wasm/pkg/thread/tavio.d.ts +128 -0
- package/build/esm/wasm/pkg/thread/tavio.js +1081 -0
- package/build/esm/wasm/pkg/thread/tavio_bg.wasm +0 -0
- package/build/esm/wasm/pkg/thread/tavio_bg.wasm.d.ts +35 -0
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bindings-wasm",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"collaborators": [
|
|
5
|
+
"hnd <honda@softdevice.co.jp>"
|
|
6
|
+
],
|
|
7
|
+
"version": "0.1.0",
|
|
8
|
+
"files": [
|
|
9
|
+
"tavio_bg.wasm",
|
|
10
|
+
"tavio.js",
|
|
11
|
+
"tavio.d.ts"
|
|
12
|
+
],
|
|
13
|
+
"main": "tavio.js",
|
|
14
|
+
"types": "tavio.d.ts",
|
|
15
|
+
"sideEffects": [
|
|
16
|
+
"./snippets/*"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* The `ReadableStreamType` enum.
|
|
5
|
+
*
|
|
6
|
+
* *This API requires the following crate features to be activated: `ReadableStreamType`*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
type ReadableStreamType = "bytes";
|
|
10
|
+
|
|
11
|
+
interface DecodeOptions {
|
|
12
|
+
decodeMode?: "sync" | "parallel";
|
|
13
|
+
maxDecodePoints?: number;
|
|
14
|
+
useSphericalHarmonics?: boolean;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
export class IntoUnderlyingByteSource {
|
|
20
|
+
private constructor();
|
|
21
|
+
free(): void;
|
|
22
|
+
[Symbol.dispose](): void;
|
|
23
|
+
cancel(): void;
|
|
24
|
+
pull(controller: ReadableByteStreamController): Promise<any>;
|
|
25
|
+
start(controller: ReadableByteStreamController): void;
|
|
26
|
+
readonly autoAllocateChunkSize: number;
|
|
27
|
+
readonly type: ReadableStreamType;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export class IntoUnderlyingSink {
|
|
31
|
+
private constructor();
|
|
32
|
+
free(): void;
|
|
33
|
+
[Symbol.dispose](): void;
|
|
34
|
+
abort(reason: any): Promise<any>;
|
|
35
|
+
close(): Promise<any>;
|
|
36
|
+
write(chunk: any): Promise<any>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class IntoUnderlyingSource {
|
|
40
|
+
private constructor();
|
|
41
|
+
free(): void;
|
|
42
|
+
[Symbol.dispose](): void;
|
|
43
|
+
cancel(): void;
|
|
44
|
+
pull(controller: ReadableStreamDefaultController): Promise<any>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function decodeTavio(url: string, decode_options: DecodeOptions): Promise<void>;
|
|
48
|
+
|
|
49
|
+
export function main(): void;
|
|
50
|
+
|
|
51
|
+
export function registerEventHandler(event_handler: Function): Promise<void>;
|
|
52
|
+
|
|
53
|
+
export function sort(depths: Uint16Array, ordering: Uint32Array, splat_count: number): number;
|
|
54
|
+
|
|
55
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
56
|
+
|
|
57
|
+
export interface InitOutput {
|
|
58
|
+
readonly memory: WebAssembly.Memory;
|
|
59
|
+
readonly decodeTavio: (a: number, b: number, c: number) => number;
|
|
60
|
+
readonly main: () => void;
|
|
61
|
+
readonly registerEventHandler: (a: number) => number;
|
|
62
|
+
readonly sort: (a: number, b: number, c: number) => number;
|
|
63
|
+
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
64
|
+
readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
65
|
+
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
|
66
|
+
readonly intounderlyingbytesource_pull: (a: number, b: number) => number;
|
|
67
|
+
readonly intounderlyingbytesource_start: (a: number, b: number) => void;
|
|
68
|
+
readonly intounderlyingbytesource_type: (a: number) => number;
|
|
69
|
+
readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
70
|
+
readonly intounderlyingsink_abort: (a: number, b: number) => number;
|
|
71
|
+
readonly intounderlyingsink_close: (a: number) => number;
|
|
72
|
+
readonly intounderlyingsink_write: (a: number, b: number) => number;
|
|
73
|
+
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
74
|
+
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
75
|
+
readonly intounderlyingsource_pull: (a: number, b: number) => number;
|
|
76
|
+
readonly __wasm_bindgen_func_elem_720: (a: number, b: number) => void;
|
|
77
|
+
readonly __wasm_bindgen_func_elem_1266: (a: number, b: number, c: number, d: number) => void;
|
|
78
|
+
readonly __wasm_bindgen_func_elem_721: (a: number, b: number, c: number) => void;
|
|
79
|
+
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
80
|
+
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
81
|
+
readonly __wbindgen_export3: (a: number) => void;
|
|
82
|
+
readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
|
|
83
|
+
readonly __wbindgen_start: () => void;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
90
|
+
* a precompiled `WebAssembly.Module`.
|
|
91
|
+
*
|
|
92
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
93
|
+
*
|
|
94
|
+
* @returns {InitOutput}
|
|
95
|
+
*/
|
|
96
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
100
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
101
|
+
*
|
|
102
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
103
|
+
*
|
|
104
|
+
* @returns {Promise<InitOutput>}
|
|
105
|
+
*/
|
|
106
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|