@openheart/tavio-renderer 2.2.9-without-wasm → 2.2.11-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.
@@ -1,9 +1,14 @@
1
- import { PerspectiveCamera, Vector3, Ray } from 'three';
1
+ import { PerspectiveCamera, Vector3, Ray, Quaternion, Euler } from 'three';
2
2
  import { Selector, iIntersection } from './selector';
3
3
  export interface iBoxSelectorOption {
4
4
  width?: number;
5
+ height?: number;
6
+ depth?: number;
5
7
  segment?: number;
6
8
  color?: number;
9
+ position?: Vector3 | [number, number, number];
10
+ rotation?: Euler | Quaternion | [number, number, number];
11
+ visible?: boolean;
7
12
  }
8
13
  /**
9
14
  * 3D ガウシアンを選択するための box インターフェースを提供する
@@ -11,6 +16,8 @@ export interface iBoxSelectorOption {
11
16
  */
12
17
  export declare class BoxSelector extends Selector {
13
18
  private width;
19
+ private height;
20
+ private depth;
14
21
  private geometry;
15
22
  private material;
16
23
  /**
@@ -20,9 +27,17 @@ export declare class BoxSelector extends Selector {
20
27
  */
21
28
  constructor(camera: PerspectiveCamera, eventTarget: HTMLElement, option?: iBoxSelectorOption);
22
29
  /**
23
- * 設定されている一辺の長さを返す
30
+ * 設定されている幅を返す
24
31
  */
25
32
  getWidth(): number;
33
+ /**
34
+ * 設定されている高さを返す
35
+ */
36
+ getHeight(): number;
37
+ /**
38
+ * 設定されている奥行きを返す
39
+ */
40
+ getDepth(): number;
26
41
  /**
27
42
  * セットアップを行う
28
43
  * @param option - セットアップオプション
@@ -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>;