lythreeframe 1.2.1 → 1.2.2

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.
@@ -3001,7 +3001,6 @@ class SkyComponent extends SceneComponent {
3001
3001
  }
3002
3002
  constructor(app, skyparam, uuid) {
3003
3003
  super(app, uuid);
3004
- this.obj = null;
3005
3004
  this.skyParam = DefaultSkyParam;
3006
3005
  this.sunPosition = new webgpu.Vector3();
3007
3006
  if (skyparam) {
@@ -3026,17 +3025,17 @@ class SkyComponent extends SceneComponent {
3026
3025
  }
3027
3026
  destroyObject() {
3028
3027
  if (this.obj) {
3029
- ThreeObjectLibrary.disposeMeshResource(this.obj);
3028
+ ThreeObjectLibrary.disposeMeshResource(this.threeObject);
3030
3029
  }
3031
3030
  }
3032
3031
  }
3033
3032
 
3034
3033
  class SkyActor extends Actor {
3035
- constructor(app) {
3036
- super(app);
3034
+ constructor(app, uuid) {
3035
+ super(app, uuid);
3037
3036
  this._name = "SkyActor";
3038
3037
  this.skyComponent = null;
3039
- this.name = "DirectionalLightActor";
3038
+ this.name = "SkyActor";
3040
3039
  this.skyComponent = this.rootComponent;
3041
3040
  this.rootComponent.name = `${this.rootComponent.name}(Root)`;
3042
3041
  this.setScale(45000, 45000, 45000);
@@ -2999,7 +2999,6 @@ class SkyComponent extends SceneComponent {
2999
2999
  }
3000
3000
  constructor(app, skyparam, uuid) {
3001
3001
  super(app, uuid);
3002
- this.obj = null;
3003
3002
  this.skyParam = DefaultSkyParam;
3004
3003
  this.sunPosition = new Vector3();
3005
3004
  if (skyparam) {
@@ -3024,17 +3023,17 @@ class SkyComponent extends SceneComponent {
3024
3023
  }
3025
3024
  destroyObject() {
3026
3025
  if (this.obj) {
3027
- ThreeObjectLibrary.disposeMeshResource(this.obj);
3026
+ ThreeObjectLibrary.disposeMeshResource(this.threeObject);
3028
3027
  }
3029
3028
  }
3030
3029
  }
3031
3030
 
3032
3031
  class SkyActor extends Actor {
3033
- constructor(app) {
3034
- super(app);
3032
+ constructor(app, uuid) {
3033
+ super(app, uuid);
3035
3034
  this._name = "SkyActor";
3036
3035
  this.skyComponent = null;
3037
- this.name = "DirectionalLightActor";
3036
+ this.name = "SkyActor";
3038
3037
  this.skyComponent = this.rootComponent;
3039
3038
  this.rootComponent.name = `${this.rootComponent.name}(Root)`;
3040
3039
  this.setScale(45000, 45000, 45000);
@@ -4,6 +4,6 @@ import { SkyComponent } from "../../Components/Sky/SkyComponent";
4
4
  export declare class SkyActor extends Actor {
5
5
  protected _name: string;
6
6
  protected skyComponent: SkyComponent | null;
7
- constructor(app: ThreeJsApp);
7
+ constructor(app: ThreeJsApp, uuid?: string);
8
8
  protected constructRootComponent(): SkyComponent;
9
9
  }
@@ -12,8 +12,7 @@ export interface SkyComponentParam {
12
12
  export declare const DefaultSkyParam: SkyComponentParam;
13
13
  export declare class SkyComponent extends SceneComponent {
14
14
  get threeObject(): SkyMesh;
15
- set threeObject(newThreeObject: SkyMesh);
16
- protected obj: SkyMesh | null;
15
+ protected set threeObject(newThreeObject: SkyMesh);
17
16
  private skyParam;
18
17
  private sunPosition;
19
18
  constructor(app: ThreeJsApp, skyparam?: SkyComponentParam, uuid?: string);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lythreeframe",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Three.js 封装",
5
5
  "main": "dist/bundle.cjs.js",
6
6
  "module": "dist/bundle.esm.js",