@openheart/tavio-renderer 2.3.25-with-wasm → 2.3.26-with-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/assets/tavio-DV1_OmuN.js +601 -0
- package/build/esm/assets/workerHelpers-RSH7Elta.js +22 -0
- package/build/esm/index.js +12775 -44471
- package/build/esm/types/src/loader/streamLoader.d.ts +4 -4
- package/build/esm/types/src/viewer/canvas.d.ts +6 -4
- package/build/esm/types/src/viewer/tavioMesh.d.ts +3 -2
- package/build/esm/wasm/pkg/no-thread/tavio.d.ts +3 -3
- package/build/esm/wasm/pkg/no-thread/tavio.js +10 -10
- package/build/esm/wasm/pkg/no-thread/tavio_bg.wasm +0 -0
- package/build/esm/wasm/pkg/no-thread/tavio_bg.wasm.d.ts +3 -3
- package/build/esm/wasm/pkg/thread/tavio.d.ts +8 -8
- package/build/esm/wasm/pkg/thread/tavio.js +12 -12
- package/build/esm/wasm/pkg/thread/tavio_bg.wasm +0 -0
- package/build/esm/wasm/pkg/thread/tavio_bg.wasm.d.ts +8 -8
- package/package.json +1 -1
- package/build/esm/assets/tavio-BqFgJTjm.js +0 -971
- package/build/esm/assets/workerHelpers-DHLuZzKp.js +0 -39
|
@@ -13,9 +13,9 @@ export declare class StreamLoader extends EventEmitter {
|
|
|
13
13
|
constructor();
|
|
14
14
|
/**
|
|
15
15
|
* ロードを行う
|
|
16
|
-
* @param
|
|
17
|
-
*
|
|
16
|
+
* @param source - 読み込みの対象。URL 文字列を渡した場合は fetch を行い、
|
|
17
|
+
* Blob / ArrayBuffer を渡した場合は呼び出し側で取得済みのデータをそのまま利用する
|
|
18
|
+
* @param option - source が URL 文字列の場合に fetch へ渡されるオプション
|
|
18
19
|
*/
|
|
19
|
-
load(
|
|
20
|
-
loadFile(file: File): Promise<void>;
|
|
20
|
+
load(source: string | Blob | ArrayBuffer, option?: RequestInit): Promise<void>;
|
|
21
21
|
}
|
|
@@ -389,17 +389,19 @@ export declare class Core extends EventEmitter {
|
|
|
389
389
|
/**
|
|
390
390
|
* TavioMesh のインスタンスを生成し tavio 形式のリソースをロード、シーンに追加する
|
|
391
391
|
* @param name - このメッシュの固有名
|
|
392
|
-
* @param
|
|
392
|
+
* @param source - 読み込む .tavio ファイル。URL 文字列に加え、事前に取得済みの
|
|
393
|
+
* Blob / ArrayBuffer を渡すこともできる
|
|
393
394
|
* @param option - ロード・パース関連のオプション
|
|
394
395
|
*/
|
|
395
|
-
loadTavio(name: string,
|
|
396
|
+
loadTavio(name: string, source: string | Blob | ArrayBuffer, option?: iLoadingOption): Promise<void>;
|
|
396
397
|
/**
|
|
397
398
|
* 既存の TavioMesh のインスタンスにデータを統合する
|
|
398
399
|
* @param name - このメッシュの固有名
|
|
399
|
-
* @param
|
|
400
|
+
* @param source - 読み込む .tavio ファイル。URL 文字列に加え、事前に取得済みの
|
|
401
|
+
* Blob / ArrayBuffer を渡すこともできる
|
|
400
402
|
* @param option - ロード・パース関連のオプション
|
|
401
403
|
*/
|
|
402
|
-
concatTavio(name: string,
|
|
404
|
+
concatTavio(name: string, source: string | Blob | ArrayBuffer, option?: iLoadingOption): Promise<void>;
|
|
403
405
|
/**
|
|
404
406
|
* TavioMesh のインスタンスを生成し ply 形式のリソースをロード、シーンに追加する
|
|
405
407
|
* @param name - このメッシュの固有名
|
|
@@ -133,10 +133,11 @@ export declare class TavioMesh extends EventEmitter {
|
|
|
133
133
|
*/
|
|
134
134
|
/**
|
|
135
135
|
* tavio 形式のリソースをロードする
|
|
136
|
-
* @param
|
|
136
|
+
* @param source - 読み込む .tavio ファイル。URL 文字列に加え、事前に取得済みの
|
|
137
|
+
* Blob / ArrayBuffer を渡すこともできる
|
|
137
138
|
* @param option - ロード・パース関連のオプション
|
|
138
139
|
*/
|
|
139
|
-
loadTavio(
|
|
140
|
+
loadTavio(source: string | Blob | ArrayBuffer, option?: iLoadingOption): Promise<void>;
|
|
140
141
|
/**
|
|
141
142
|
* ply 形式のリソースをロードする
|
|
142
143
|
* @param url - 読み込む .ply ファイル
|
|
@@ -92,9 +92,9 @@ export interface InitOutput {
|
|
|
92
92
|
readonly intounderlyingsink_abort: (a: number, b: number) => number;
|
|
93
93
|
readonly intounderlyingsink_close: (a: number) => number;
|
|
94
94
|
readonly intounderlyingsink_write: (a: number, b: number) => number;
|
|
95
|
-
readonly
|
|
96
|
-
readonly
|
|
97
|
-
readonly
|
|
95
|
+
readonly __wasm_bindgen_func_elem_2879: (a: number, b: number, c: number, d: number) => void;
|
|
96
|
+
readonly __wasm_bindgen_func_elem_2881: (a: number, b: number, c: number, d: number) => void;
|
|
97
|
+
readonly __wasm_bindgen_func_elem_1113: (a: number, b: number, c: number) => void;
|
|
98
98
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
99
99
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
100
100
|
readonly __wbindgen_export3: (a: number) => void;
|
|
@@ -618,7 +618,7 @@ function __wbg_get_imports() {
|
|
|
618
618
|
const a = state0.a;
|
|
619
619
|
state0.a = 0;
|
|
620
620
|
try {
|
|
621
|
-
return
|
|
621
|
+
return __wasm_bindgen_func_elem_2881(a, state0.b, arg0, arg1);
|
|
622
622
|
} finally {
|
|
623
623
|
state0.a = a;
|
|
624
624
|
}
|
|
@@ -757,12 +757,12 @@ function __wbg_get_imports() {
|
|
|
757
757
|
},
|
|
758
758
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
759
759
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 300, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
760
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
760
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1113);
|
|
761
761
|
return addHeapObject(ret);
|
|
762
762
|
},
|
|
763
763
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
764
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
765
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
764
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 590, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
765
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2879);
|
|
766
766
|
return addHeapObject(ret);
|
|
767
767
|
},
|
|
768
768
|
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
@@ -827,14 +827,14 @@ function __wbg_get_imports() {
|
|
|
827
827
|
};
|
|
828
828
|
}
|
|
829
829
|
|
|
830
|
-
function
|
|
831
|
-
wasm.
|
|
830
|
+
function __wasm_bindgen_func_elem_1113(arg0, arg1, arg2) {
|
|
831
|
+
wasm.__wasm_bindgen_func_elem_1113(arg0, arg1, addHeapObject(arg2));
|
|
832
832
|
}
|
|
833
833
|
|
|
834
|
-
function
|
|
834
|
+
function __wasm_bindgen_func_elem_2879(arg0, arg1, arg2) {
|
|
835
835
|
try {
|
|
836
836
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
837
|
-
wasm.
|
|
837
|
+
wasm.__wasm_bindgen_func_elem_2879(retptr, arg0, arg1, addHeapObject(arg2));
|
|
838
838
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
839
839
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
840
840
|
if (r1) {
|
|
@@ -845,8 +845,8 @@ function __wasm_bindgen_func_elem_2892(arg0, arg1, arg2) {
|
|
|
845
845
|
}
|
|
846
846
|
}
|
|
847
847
|
|
|
848
|
-
function
|
|
849
|
-
wasm.
|
|
848
|
+
function __wasm_bindgen_func_elem_2881(arg0, arg1, arg2, arg3) {
|
|
849
|
+
wasm.__wasm_bindgen_func_elem_2881(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
850
850
|
}
|
|
851
851
|
|
|
852
852
|
|
|
Binary file
|
|
@@ -27,9 +27,9 @@ export const __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
|
27
27
|
export const intounderlyingsink_abort: (a: number, b: number) => number;
|
|
28
28
|
export const intounderlyingsink_close: (a: number) => number;
|
|
29
29
|
export const intounderlyingsink_write: (a: number, b: number) => number;
|
|
30
|
-
export const
|
|
31
|
-
export const
|
|
32
|
-
export const
|
|
30
|
+
export const __wasm_bindgen_func_elem_2879: (a: number, b: number, c: number, d: number) => void;
|
|
31
|
+
export const __wasm_bindgen_func_elem_2881: (a: number, b: number, c: number, d: number) => void;
|
|
32
|
+
export const __wasm_bindgen_func_elem_1113: (a: number, b: number, c: number) => void;
|
|
33
33
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
34
34
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
35
35
|
export const __wbindgen_export3: (a: number) => void;
|
|
@@ -80,6 +80,10 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
80
80
|
export interface InitOutput {
|
|
81
81
|
readonly decodeSog: (a: number, b: number, c: number) => number;
|
|
82
82
|
readonly main: () => void;
|
|
83
|
+
readonly decodePly: (a: number, b: number, c: number) => number;
|
|
84
|
+
readonly decodeSplat: (a: number, b: number, c: number) => number;
|
|
85
|
+
readonly encodePly: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
86
|
+
readonly encodeSplat: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
83
87
|
readonly sort: (a: number, b: number, c: number) => number;
|
|
84
88
|
readonly decodeTavio: (a: number, b: number, c: number) => number;
|
|
85
89
|
readonly encodeTavio: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
|
|
@@ -87,10 +91,6 @@ export interface InitOutput {
|
|
|
87
91
|
readonly decodeSpz: (a: number, b: number, c: number) => number;
|
|
88
92
|
readonly encodeSpz: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
89
93
|
readonly registerEventHandler: (a: number) => number;
|
|
90
|
-
readonly decodePly: (a: number, b: number, c: number) => number;
|
|
91
|
-
readonly decodeSplat: (a: number, b: number, c: number) => number;
|
|
92
|
-
readonly encodePly: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
93
|
-
readonly encodeSplat: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
94
94
|
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
95
95
|
readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
96
96
|
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
|
@@ -105,15 +105,15 @@ export interface InitOutput {
|
|
|
105
105
|
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
106
106
|
readonly intounderlyingsource_pull: (a: number, b: number) => number;
|
|
107
107
|
readonly __wbg_wbg_rayon_poolbuilder_free: (a: number, b: number) => void;
|
|
108
|
+
readonly initThreadPool: (a: number) => number;
|
|
108
109
|
readonly wbg_rayon_poolbuilder_build: (a: number) => void;
|
|
109
110
|
readonly wbg_rayon_poolbuilder_numThreads: (a: number) => number;
|
|
110
111
|
readonly wbg_rayon_poolbuilder_receiver: (a: number) => number;
|
|
111
112
|
readonly wbg_rayon_start_worker: (a: number) => void;
|
|
112
|
-
readonly
|
|
113
|
-
readonly
|
|
114
|
-
readonly __wasm_bindgen_func_elem_3148: (a: number, b: number, c: number, d: number) => void;
|
|
113
|
+
readonly __wasm_bindgen_func_elem_3139: (a: number, b: number, c: number, d: number) => void;
|
|
114
|
+
readonly __wasm_bindgen_func_elem_3142: (a: number, b: number, c: number, d: number) => void;
|
|
115
115
|
readonly __wasm_bindgen_func_elem_1232: (a: number, b: number, c: number) => void;
|
|
116
|
-
readonly
|
|
116
|
+
readonly __wasm_bindgen_func_elem_3141: (a: number, b: number, c: number) => void;
|
|
117
117
|
readonly memory: WebAssembly.Memory;
|
|
118
118
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
119
119
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
@@ -690,7 +690,7 @@ function __wbg_get_imports(memory) {
|
|
|
690
690
|
const a = state0.a;
|
|
691
691
|
state0.a = 0;
|
|
692
692
|
try {
|
|
693
|
-
return
|
|
693
|
+
return __wasm_bindgen_func_elem_3142(a, state0.b, arg0, arg1);
|
|
694
694
|
} finally {
|
|
695
695
|
state0.a = a;
|
|
696
696
|
}
|
|
@@ -728,7 +728,7 @@ function __wbg_get_imports(memory) {
|
|
|
728
728
|
const a = state0.a;
|
|
729
729
|
state0.a = 0;
|
|
730
730
|
try {
|
|
731
|
-
return
|
|
731
|
+
return __wasm_bindgen_func_elem_3142(a, state0.b, arg0, arg1);
|
|
732
732
|
} finally {
|
|
733
733
|
state0.a = a;
|
|
734
734
|
}
|
|
@@ -905,13 +905,13 @@ function __wbg_get_imports(memory) {
|
|
|
905
905
|
return addHeapObject(ret);
|
|
906
906
|
},
|
|
907
907
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
908
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
909
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
908
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 625, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
909
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3139);
|
|
910
910
|
return addHeapObject(ret);
|
|
911
911
|
},
|
|
912
912
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
913
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
914
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
913
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 648, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
914
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_3141);
|
|
915
915
|
return addHeapObject(ret);
|
|
916
916
|
},
|
|
917
917
|
__wbindgen_cast_0000000000000004: function(arg0) {
|
|
@@ -995,14 +995,14 @@ function __wasm_bindgen_func_elem_1232(arg0, arg1, arg2) {
|
|
|
995
995
|
wasm.__wasm_bindgen_func_elem_1232(arg0, arg1, addHeapObject(arg2));
|
|
996
996
|
}
|
|
997
997
|
|
|
998
|
-
function
|
|
999
|
-
wasm.
|
|
998
|
+
function __wasm_bindgen_func_elem_3141(arg0, arg1, arg2) {
|
|
999
|
+
wasm.__wasm_bindgen_func_elem_3141(arg0, arg1, addHeapObject(arg2));
|
|
1000
1000
|
}
|
|
1001
1001
|
|
|
1002
|
-
function
|
|
1002
|
+
function __wasm_bindgen_func_elem_3139(arg0, arg1, arg2) {
|
|
1003
1003
|
try {
|
|
1004
1004
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1005
|
-
wasm.
|
|
1005
|
+
wasm.__wasm_bindgen_func_elem_3139(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1006
1006
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1007
1007
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1008
1008
|
if (r1) {
|
|
@@ -1013,8 +1013,8 @@ function __wasm_bindgen_func_elem_3145(arg0, arg1, arg2) {
|
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
1015
1015
|
|
|
1016
|
-
function
|
|
1017
|
-
wasm.
|
|
1016
|
+
function __wasm_bindgen_func_elem_3142(arg0, arg1, arg2, arg3) {
|
|
1017
|
+
wasm.__wasm_bindgen_func_elem_3142(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1018
1018
|
}
|
|
1019
1019
|
|
|
1020
1020
|
|
|
Binary file
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const decodeSog: (a: number, b: number, c: number) => number;
|
|
4
4
|
export const main: () => void;
|
|
5
|
+
export const decodePly: (a: number, b: number, c: number) => number;
|
|
6
|
+
export const decodeSplat: (a: number, b: number, c: number) => number;
|
|
7
|
+
export const encodePly: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
8
|
+
export const encodeSplat: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
5
9
|
export const sort: (a: number, b: number, c: number) => number;
|
|
6
10
|
export const decodeTavio: (a: number, b: number, c: number) => number;
|
|
7
11
|
export const encodeTavio: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number) => void;
|
|
@@ -9,10 +13,6 @@ export const resolveGaussianEdits: (a: number, b: number, c: number, d: number,
|
|
|
9
13
|
export const decodeSpz: (a: number, b: number, c: number) => number;
|
|
10
14
|
export const encodeSpz: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
11
15
|
export const registerEventHandler: (a: number) => number;
|
|
12
|
-
export const decodePly: (a: number, b: number, c: number) => number;
|
|
13
|
-
export const decodeSplat: (a: number, b: number, c: number) => number;
|
|
14
|
-
export const encodePly: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => void;
|
|
15
|
-
export const encodeSplat: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
|
16
16
|
export const __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
17
17
|
export const intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
18
18
|
export const intounderlyingbytesource_cancel: (a: number) => void;
|
|
@@ -27,15 +27,15 @@ export const __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
|
27
27
|
export const intounderlyingsource_cancel: (a: number) => void;
|
|
28
28
|
export const intounderlyingsource_pull: (a: number, b: number) => number;
|
|
29
29
|
export const __wbg_wbg_rayon_poolbuilder_free: (a: number, b: number) => void;
|
|
30
|
+
export const initThreadPool: (a: number) => number;
|
|
30
31
|
export const wbg_rayon_poolbuilder_build: (a: number) => void;
|
|
31
32
|
export const wbg_rayon_poolbuilder_numThreads: (a: number) => number;
|
|
32
33
|
export const wbg_rayon_poolbuilder_receiver: (a: number) => number;
|
|
33
34
|
export const wbg_rayon_start_worker: (a: number) => void;
|
|
34
|
-
export const
|
|
35
|
-
export const
|
|
36
|
-
export const __wasm_bindgen_func_elem_3148: (a: number, b: number, c: number, d: number) => void;
|
|
35
|
+
export const __wasm_bindgen_func_elem_3139: (a: number, b: number, c: number, d: number) => void;
|
|
36
|
+
export const __wasm_bindgen_func_elem_3142: (a: number, b: number, c: number, d: number) => void;
|
|
37
37
|
export const __wasm_bindgen_func_elem_1232: (a: number, b: number, c: number) => void;
|
|
38
|
-
export const
|
|
38
|
+
export const __wasm_bindgen_func_elem_3141: (a: number, b: number, c: number) => void;
|
|
39
39
|
export const memory: WebAssembly.Memory;
|
|
40
40
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
41
41
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|