@quick-threejs/reactive 0.1.18 → 0.1.20
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/main.d.mts +5 -3
- package/dist/main.d.ts +5 -3
- package/dist/main.js +7 -7
- package/dist/main.js.map +1 -1
- package/dist/main.mjs +3 -3
- package/dist/main.mjs.map +1 -1
- package/dist/{main.worker-Dms3WqJl.d.mts → main.worker-DSzVtnTj.d.mts} +8 -5
- package/dist/{main.worker-Dms3WqJl.d.ts → main.worker-DSzVtnTj.d.ts} +8 -5
- package/dist/main.worker.d.mts +4 -2
- package/dist/main.worker.d.ts +4 -2
- package/dist/main.worker.js +3 -3
- package/dist/main.worker.js.map +1 -1
- package/dist/main.worker.mjs +1 -1
- package/dist/main.worker.mjs.map +1 -1
- package/package.json +2 -4
|
@@ -4,13 +4,16 @@ import * as rxjs from 'rxjs';
|
|
|
4
4
|
import { Subject, Observable } from 'rxjs';
|
|
5
5
|
import * as three from 'three';
|
|
6
6
|
import { Texture, CubeTextureLoader, VideoTexture, LoadingManager, ImageBitmapLoader, AudioLoader, Clock, Scene, Camera, PerspectiveCamera, Quaternion, Vector3, Euler, CameraHelper, AxesHelper, GridHelper, WebGLRenderer, Vector2Like } from 'three';
|
|
7
|
-
import * as
|
|
8
|
-
import {
|
|
7
|
+
import * as three_examples_jsm_controls_OrbitControls from 'three/examples/jsm/controls/OrbitControls';
|
|
8
|
+
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls';
|
|
9
9
|
import * as three_examples_jsm_libs_lil_gui_module_min from 'three/examples/jsm/libs/lil-gui.module.min';
|
|
10
10
|
import * as threads_dist_types_master from 'threads/dist/types/master';
|
|
11
11
|
import * as threads from 'threads';
|
|
12
12
|
import GUI from 'three/examples/jsm/libs/lil-gui.module.min.js';
|
|
13
13
|
import Stats from 'stats.js';
|
|
14
|
+
import * as three_examples_jsm_loaders_GLTFLoader from 'three/examples/jsm/loaders/GLTFLoader';
|
|
15
|
+
import { GLTF, GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
|
|
16
|
+
import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader';
|
|
14
17
|
|
|
15
18
|
interface OffscreenCanvasWithStyle extends OffscreenCanvas {
|
|
16
19
|
style: Partial<CSSStyleDeclaration> & {
|
|
@@ -284,7 +287,7 @@ declare class LoaderModule implements Module, WorkerThreadModule {
|
|
|
284
287
|
};
|
|
285
288
|
loaders(): {
|
|
286
289
|
dracoLoader?: DRACOLoader;
|
|
287
|
-
gltfLoader?:
|
|
290
|
+
gltfLoader?: three_examples_jsm_loaders_GLTFLoader.GLTFLoader;
|
|
288
291
|
textureLoader?: three.ImageBitmapLoader;
|
|
289
292
|
cubeTextureLoader?: three.CubeTextureLoader;
|
|
290
293
|
audioLoader?: three.AudioLoader;
|
|
@@ -693,11 +696,11 @@ declare class DebugModule implements Module {
|
|
|
693
696
|
init(props?: Parameters<DebugComponent["init"]>[0]): void;
|
|
694
697
|
dispose(): void;
|
|
695
698
|
axesHelper(): three.AxesHelper | undefined;
|
|
696
|
-
cameraControls():
|
|
699
|
+
cameraControls(): three_examples_jsm_controls_OrbitControls.OrbitControls | undefined;
|
|
697
700
|
cameraHelper(): three.CameraHelper | undefined;
|
|
698
701
|
enabled(value?: boolean): boolean;
|
|
699
702
|
gridHelper(): three.GridHelper | undefined;
|
|
700
|
-
miniCameraControls():
|
|
703
|
+
miniCameraControls(): three_examples_jsm_controls_OrbitControls.OrbitControls | undefined;
|
|
701
704
|
enabled$(): rxjs.Observable<boolean>;
|
|
702
705
|
}
|
|
703
706
|
|
|
@@ -4,13 +4,16 @@ import * as rxjs from 'rxjs';
|
|
|
4
4
|
import { Subject, Observable } from 'rxjs';
|
|
5
5
|
import * as three from 'three';
|
|
6
6
|
import { Texture, CubeTextureLoader, VideoTexture, LoadingManager, ImageBitmapLoader, AudioLoader, Clock, Scene, Camera, PerspectiveCamera, Quaternion, Vector3, Euler, CameraHelper, AxesHelper, GridHelper, WebGLRenderer, Vector2Like } from 'three';
|
|
7
|
-
import * as
|
|
8
|
-
import {
|
|
7
|
+
import * as three_examples_jsm_controls_OrbitControls from 'three/examples/jsm/controls/OrbitControls';
|
|
8
|
+
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls';
|
|
9
9
|
import * as three_examples_jsm_libs_lil_gui_module_min from 'three/examples/jsm/libs/lil-gui.module.min';
|
|
10
10
|
import * as threads_dist_types_master from 'threads/dist/types/master';
|
|
11
11
|
import * as threads from 'threads';
|
|
12
12
|
import GUI from 'three/examples/jsm/libs/lil-gui.module.min.js';
|
|
13
13
|
import Stats from 'stats.js';
|
|
14
|
+
import * as three_examples_jsm_loaders_GLTFLoader from 'three/examples/jsm/loaders/GLTFLoader';
|
|
15
|
+
import { GLTF, GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
|
|
16
|
+
import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader';
|
|
14
17
|
|
|
15
18
|
interface OffscreenCanvasWithStyle extends OffscreenCanvas {
|
|
16
19
|
style: Partial<CSSStyleDeclaration> & {
|
|
@@ -284,7 +287,7 @@ declare class LoaderModule implements Module, WorkerThreadModule {
|
|
|
284
287
|
};
|
|
285
288
|
loaders(): {
|
|
286
289
|
dracoLoader?: DRACOLoader;
|
|
287
|
-
gltfLoader?:
|
|
290
|
+
gltfLoader?: three_examples_jsm_loaders_GLTFLoader.GLTFLoader;
|
|
288
291
|
textureLoader?: three.ImageBitmapLoader;
|
|
289
292
|
cubeTextureLoader?: three.CubeTextureLoader;
|
|
290
293
|
audioLoader?: three.AudioLoader;
|
|
@@ -693,11 +696,11 @@ declare class DebugModule implements Module {
|
|
|
693
696
|
init(props?: Parameters<DebugComponent["init"]>[0]): void;
|
|
694
697
|
dispose(): void;
|
|
695
698
|
axesHelper(): three.AxesHelper | undefined;
|
|
696
|
-
cameraControls():
|
|
699
|
+
cameraControls(): three_examples_jsm_controls_OrbitControls.OrbitControls | undefined;
|
|
697
700
|
cameraHelper(): three.CameraHelper | undefined;
|
|
698
701
|
enabled(value?: boolean): boolean;
|
|
699
702
|
gridHelper(): three.GridHelper | undefined;
|
|
700
|
-
miniCameraControls():
|
|
703
|
+
miniCameraControls(): three_examples_jsm_controls_OrbitControls.OrbitControls | undefined;
|
|
701
704
|
enabled$(): rxjs.Observable<boolean>;
|
|
702
705
|
}
|
|
703
706
|
|
package/dist/main.worker.d.mts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
export { E as ExposedAppModule, u as launchApp } from './main.worker-
|
|
1
|
+
export { E as ExposedAppModule, u as launchApp } from './main.worker-DSzVtnTj.mjs';
|
|
2
2
|
import '@quick-threejs/utils';
|
|
3
3
|
import 'rxjs';
|
|
4
4
|
import 'three';
|
|
5
|
-
import 'three/examples/jsm/
|
|
5
|
+
import 'three/examples/jsm/controls/OrbitControls';
|
|
6
6
|
import 'three/examples/jsm/libs/lil-gui.module.min';
|
|
7
7
|
import 'threads/dist/types/master';
|
|
8
8
|
import 'threads';
|
|
9
9
|
import 'three/examples/jsm/libs/lil-gui.module.min.js';
|
|
10
10
|
import 'stats.js';
|
|
11
|
+
import 'three/examples/jsm/loaders/GLTFLoader';
|
|
12
|
+
import 'three/examples/jsm/loaders/DRACOLoader';
|
package/dist/main.worker.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
export { E as ExposedAppModule, u as launchApp } from './main.worker-
|
|
1
|
+
export { E as ExposedAppModule, u as launchApp } from './main.worker-DSzVtnTj.js';
|
|
2
2
|
import '@quick-threejs/utils';
|
|
3
3
|
import 'rxjs';
|
|
4
4
|
import 'three';
|
|
5
|
-
import 'three/examples/jsm/
|
|
5
|
+
import 'three/examples/jsm/controls/OrbitControls';
|
|
6
6
|
import 'three/examples/jsm/libs/lil-gui.module.min';
|
|
7
7
|
import 'threads/dist/types/master';
|
|
8
8
|
import 'threads';
|
|
9
9
|
import 'three/examples/jsm/libs/lil-gui.module.min.js';
|
|
10
10
|
import 'stats.js';
|
|
11
|
+
import 'three/examples/jsm/loaders/GLTFLoader';
|
|
12
|
+
import 'three/examples/jsm/loaders/DRACOLoader';
|
package/dist/main.worker.js
CHANGED
|
@@ -2390,7 +2390,7 @@ CameraComponent = _ts_decorate6([
|
|
|
2390
2390
|
|
|
2391
2391
|
// src/core/app/debug/debug.component.ts
|
|
2392
2392
|
var import_three4 = require("three");
|
|
2393
|
-
var
|
|
2393
|
+
var import_OrbitControls = require("three/examples/jsm/controls/OrbitControls");
|
|
2394
2394
|
function _ts_decorate7(decorators, target, key, desc) {
|
|
2395
2395
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2396
2396
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2434,7 +2434,7 @@ var DebugComponent = class {
|
|
|
2434
2434
|
}
|
|
2435
2435
|
if (!this.enabled || !(this.cameraComponent.instance instanceof import_three4.Camera)) return;
|
|
2436
2436
|
if (this.cameraComponent.instance instanceof import_three4.Camera) {
|
|
2437
|
-
this.cameraControls = new
|
|
2437
|
+
this.cameraControls = new import_OrbitControls.OrbitControls(this.cameraComponent.instance, this.appComponent.proxyReceiver);
|
|
2438
2438
|
if (this.cameraControls) this.cameraControls.enableDamping = true;
|
|
2439
2439
|
}
|
|
2440
2440
|
}
|
|
@@ -2445,7 +2445,7 @@ var DebugComponent = class {
|
|
|
2445
2445
|
}
|
|
2446
2446
|
if (!this.enabled) return;
|
|
2447
2447
|
if (this.cameraComponent.miniCamera) {
|
|
2448
|
-
this.miniCameraControls = new
|
|
2448
|
+
this.miniCameraControls = new import_OrbitControls.OrbitControls(this.cameraComponent.miniCamera, this.appComponent.proxyReceiver);
|
|
2449
2449
|
this.miniCameraControls.enableDamping = true;
|
|
2450
2450
|
}
|
|
2451
2451
|
}
|