lythreeframe 1.2.12 → 1.2.14

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.
@@ -985,6 +985,9 @@ class AssetManager {
985
985
  get LoadingManager() {
986
986
  return this.loadingManager;
987
987
  }
988
+ async init() {
989
+ return;
990
+ }
988
991
  setupDracoLoader(dracoPath) {
989
992
  if (!this.dracoLoader) {
990
993
  this.dracoLoader = new Addons_js.DRACOLoader(this.loadingManager);
@@ -2844,8 +2847,8 @@ class ThreeJsApp {
2844
2847
  }
2845
2848
  destroy() {
2846
2849
  this.onCameraChangedDelegate.clear();
2847
- this.world.destroy();
2848
2850
  this.controller.destroy();
2851
+ this.world.destroy();
2849
2852
  this.viewport.destroy();
2850
2853
  this._assetManager.clearAssets();
2851
2854
  }
@@ -983,6 +983,9 @@ class AssetManager {
983
983
  get LoadingManager() {
984
984
  return this.loadingManager;
985
985
  }
986
+ async init() {
987
+ return;
988
+ }
986
989
  setupDracoLoader(dracoPath) {
987
990
  if (!this.dracoLoader) {
988
991
  this.dracoLoader = new DRACOLoader(this.loadingManager);
@@ -2842,8 +2845,8 @@ class ThreeJsApp {
2842
2845
  }
2843
2846
  destroy() {
2844
2847
  this.onCameraChangedDelegate.clear();
2845
- this.world.destroy();
2846
2848
  this.controller.destroy();
2849
+ this.world.destroy();
2847
2850
  this.viewport.destroy();
2848
2851
  this._assetManager.clearAssets();
2849
2852
  }
@@ -17,6 +17,7 @@ export declare class AssetManager {
17
17
  protected app: ThreeJsApp;
18
18
  constructor(app: ThreeJsApp);
19
19
  get LoadingManager(): LoadingManager;
20
+ init(): Promise<void>;
20
21
  setupDracoLoader(dracoPath: string): void;
21
22
  convertThreeObjectToLYObject(parentLYComponent: SceneComponent, threejsObject: any): SceneComponent | null;
22
23
  collectResourcesAndReferences(object: Object3D): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lythreeframe",
3
- "version": "1.2.12",
3
+ "version": "1.2.14",
4
4
  "description": "Three.js 封装",
5
5
  "main": "dist/bundle.cjs.js",
6
6
  "module": "dist/bundle.esm.js",