lythreeframe 1.2.3 → 1.2.5

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.
@@ -226,7 +226,7 @@ class SceneComponent extends Component {
226
226
  let childrens = [];
227
227
  for (let i = 0; i < this.threeObject.children.length; ++i) {
228
228
  if (!this.threeObject.children[i].userData.LYObject) {
229
- console.warn("One of children component has no parentActor", this.threeObject.children[i].userData.LYObject, this.threeObject.children[i]);
229
+ // console.warn("One of children component has no parentActor", this.threeObject.children[i].userData.LYObject, this.threeObject.children[i]);
230
230
  continue;
231
231
  }
232
232
  if (this.threeObject.children[i].userData.LYObject.parentActor === this.parentActor) {
@@ -785,7 +785,6 @@ class MeshComponent extends SceneComponent {
785
785
  matPtrs.push(ptr);
786
786
  });
787
787
  super(app, uuid);
788
- this.obj = null;
789
788
  this._geometryPtr = app.assetManager.addGeometryAsset(geometry);
790
789
  this._materialPtr = matPtrs;
791
790
  matPtrs.forEach((elem) => {
@@ -2893,7 +2892,6 @@ class LightComponent extends SceneComponent {
2893
2892
  }
2894
2893
  constructor(app, uuid) {
2895
2894
  super(app, uuid);
2896
- this.obj = null;
2897
2895
  }
2898
2896
  }
2899
2897
 
@@ -2918,7 +2916,6 @@ class DirectionalLightComponent extends LightComponent {
2918
2916
  }
2919
2917
  constructor(app, color = 0xffffff, intensity = 10, uuid) {
2920
2918
  super(app, uuid);
2921
- this.obj = null;
2922
2919
  this.threeObject.color.set(color);
2923
2920
  this.threeObject.intensity = intensity;
2924
2921
  }
@@ -224,7 +224,7 @@ class SceneComponent extends Component {
224
224
  let childrens = [];
225
225
  for (let i = 0; i < this.threeObject.children.length; ++i) {
226
226
  if (!this.threeObject.children[i].userData.LYObject) {
227
- console.warn("One of children component has no parentActor", this.threeObject.children[i].userData.LYObject, this.threeObject.children[i]);
227
+ // console.warn("One of children component has no parentActor", this.threeObject.children[i].userData.LYObject, this.threeObject.children[i]);
228
228
  continue;
229
229
  }
230
230
  if (this.threeObject.children[i].userData.LYObject.parentActor === this.parentActor) {
@@ -783,7 +783,6 @@ class MeshComponent extends SceneComponent {
783
783
  matPtrs.push(ptr);
784
784
  });
785
785
  super(app, uuid);
786
- this.obj = null;
787
786
  this._geometryPtr = app.assetManager.addGeometryAsset(geometry);
788
787
  this._materialPtr = matPtrs;
789
788
  matPtrs.forEach((elem) => {
@@ -2891,7 +2890,6 @@ class LightComponent extends SceneComponent {
2891
2890
  }
2892
2891
  constructor(app, uuid) {
2893
2892
  super(app, uuid);
2894
- this.obj = null;
2895
2893
  }
2896
2894
  }
2897
2895
 
@@ -2916,7 +2914,6 @@ class DirectionalLightComponent extends LightComponent {
2916
2914
  }
2917
2915
  constructor(app, color = 0xffffff, intensity = 10, uuid) {
2918
2916
  super(app, uuid);
2919
- this.obj = null;
2920
2917
  this.threeObject.color.set(color);
2921
2918
  this.threeObject.intensity = intensity;
2922
2919
  }
@@ -7,7 +7,6 @@ export declare class DirectionalLightComponent extends LightComponent {
7
7
  set threeObject(newThreeObject: DirectionalLight);
8
8
  get castShadow(): boolean;
9
9
  set castShadow(value: boolean);
10
- protected obj: DirectionalLight | null;
11
10
  constructor(app: ThreeJsApp, color?: ColorRepresentation, intensity?: number, uuid?: string);
12
11
  protected createDefaultObject(): DirectionalLight;
13
12
  setPosition(...args: [Vector3] | [number, number, number]): void;
@@ -8,6 +8,5 @@ export declare abstract class LightComponent extends SceneComponent {
8
8
  set color(color: ColorRepresentation);
9
9
  get intensity(): number;
10
10
  set intensity(intensity: number);
11
- protected obj: Light | null;
12
11
  protected constructor(app: ThreeJsApp, uuid?: string);
13
12
  }
@@ -4,8 +4,7 @@ import { TAssetPointer } from "../../../AssetManagement/AssetPointer/AssetPointe
4
4
  import { ThreeJsApp } from "../../../ThreeJsApp";
5
5
  export declare class MeshComponent extends SceneComponent {
6
6
  get threeObject(): Mesh;
7
- set threeObject(newThreeObject: Mesh);
8
- protected obj: Mesh | null;
7
+ protected set threeObject(newThreeObject: Mesh);
9
8
  get geometry(): BufferGeometry | null;
10
9
  set geometry(geo: BufferGeometry);
11
10
  get geometryPtr(): TAssetPointer<BufferGeometry>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lythreeframe",
3
- "version": "1.2.3",
3
+ "version": "1.2.5",
4
4
  "description": "Three.js 封装",
5
5
  "main": "dist/bundle.cjs.js",
6
6
  "module": "dist/bundle.esm.js",