@quick-threejs/reactive 0.1.19 → 0.1.21

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.
@@ -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 three_examples_jsm_Addons from 'three/examples/jsm/Addons';
8
- import { GLTF, DRACOLoader, GLTFLoader, OrbitControls } from 'three/examples/jsm/Addons';
7
+ import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
8
+ import * as three_examples_jsm_controls_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 { GLTF, GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
15
+ import * as three_examples_jsm_loaders_GLTFLoader from 'three/examples/jsm/loaders/GLTFLoader';
16
+ import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader.js';
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?: three_examples_jsm_Addons.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(): three_examples_jsm_Addons.OrbitControls | undefined;
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(): three_examples_jsm_Addons.OrbitControls | undefined;
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 three_examples_jsm_Addons from 'three/examples/jsm/Addons';
8
- import { GLTF, DRACOLoader, GLTFLoader, OrbitControls } from 'three/examples/jsm/Addons';
7
+ import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
8
+ import * as three_examples_jsm_controls_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 { GLTF, GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
15
+ import * as three_examples_jsm_loaders_GLTFLoader from 'three/examples/jsm/loaders/GLTFLoader';
16
+ import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader.js';
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?: three_examples_jsm_Addons.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(): three_examples_jsm_Addons.OrbitControls | undefined;
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(): three_examples_jsm_Addons.OrbitControls | undefined;
703
+ miniCameraControls(): three_examples_jsm_controls_OrbitControls.OrbitControls | undefined;
701
704
  enabled$(): rxjs.Observable<boolean>;
702
705
  }
703
706
 
@@ -1,10 +1,14 @@
1
- export { E as ExposedAppModule, u as launchApp } from './main.worker-Dms3WqJl.mjs';
1
+ export { E as ExposedAppModule, u as launchApp } from './main.worker-CJCIoHnh.mjs';
2
2
  import '@quick-threejs/utils';
3
3
  import 'rxjs';
4
4
  import 'three';
5
- import 'three/examples/jsm/Addons';
5
+ import 'three/examples/jsm/controls/OrbitControls.js';
6
+ import 'three/examples/jsm/controls/OrbitControls';
6
7
  import 'three/examples/jsm/libs/lil-gui.module.min';
7
8
  import 'threads/dist/types/master';
8
9
  import 'threads';
9
10
  import 'three/examples/jsm/libs/lil-gui.module.min.js';
10
11
  import 'stats.js';
12
+ import 'three/examples/jsm/loaders/GLTFLoader.js';
13
+ import 'three/examples/jsm/loaders/GLTFLoader';
14
+ import 'three/examples/jsm/loaders/DRACOLoader.js';
@@ -1,10 +1,14 @@
1
- export { E as ExposedAppModule, u as launchApp } from './main.worker-Dms3WqJl.js';
1
+ export { E as ExposedAppModule, u as launchApp } from './main.worker-CJCIoHnh.js';
2
2
  import '@quick-threejs/utils';
3
3
  import 'rxjs';
4
4
  import 'three';
5
- import 'three/examples/jsm/Addons';
5
+ import 'three/examples/jsm/controls/OrbitControls.js';
6
+ import 'three/examples/jsm/controls/OrbitControls';
6
7
  import 'three/examples/jsm/libs/lil-gui.module.min';
7
8
  import 'threads/dist/types/master';
8
9
  import 'threads';
9
10
  import 'three/examples/jsm/libs/lil-gui.module.min.js';
10
11
  import 'stats.js';
12
+ import 'three/examples/jsm/loaders/GLTFLoader.js';
13
+ import 'three/examples/jsm/loaders/GLTFLoader';
14
+ import 'three/examples/jsm/loaders/DRACOLoader.js';
@@ -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 import_Addons = require("three/examples/jsm/Addons");
2393
+ var import_OrbitControls = require("three/examples/jsm/controls/OrbitControls.js");
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 import_Addons.OrbitControls(this.cameraComponent.instance, this.appComponent.proxyReceiver);
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 import_Addons.OrbitControls(this.cameraComponent.miniCamera, this.appComponent.proxyReceiver);
2448
+ this.miniCameraControls = new import_OrbitControls.OrbitControls(this.cameraComponent.miniCamera, this.appComponent.proxyReceiver);
2449
2449
  this.miniCameraControls.enableDamping = true;
2450
2450
  }
2451
2451
  }