@galacean/engine-core 2.0.0-alpha.45 → 2.0.0-alpha.46

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/engine-core",
3
- "version": "2.0.0-alpha.45",
3
+ "version": "2.0.0-alpha.46",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -18,10 +18,10 @@
18
18
  "types/**/*"
19
19
  ],
20
20
  "dependencies": {
21
- "@galacean/engine-math": "2.0.0-alpha.45"
21
+ "@galacean/engine-math": "2.0.0-alpha.46"
22
22
  },
23
23
  "devDependencies": {
24
- "@galacean/engine-design": "2.0.0-alpha.45"
24
+ "@galacean/engine-design": "2.0.0-alpha.46"
25
25
  },
26
26
  "scripts": {
27
27
  "b:types": "tsc"
@@ -13,7 +13,11 @@ export declare class ComponentsDependencies {
13
13
  /**
14
14
  * @internal
15
15
  */
16
- static _removeCheck(entity: Entity, type: ComponentConstructor): void;
16
+ static _hasDependencies(type: ComponentConstructor): boolean;
17
+ /**
18
+ * @internal
19
+ */
20
+ static _removeCheck(entity: Entity, type: ComponentConstructor, replace?: ComponentConstructor): void;
17
21
  /**
18
22
  * @internal
19
23
  */
package/types/Entity.d.ts CHANGED
@@ -18,6 +18,8 @@ import { DisorderedArray } from "./utils/DisorderedArray";
18
18
  export declare class Entity extends EngineObject {
19
19
  /** @internal */
20
20
  static _tempComponentConstructors: ComponentConstructor[];
21
+ private static _isTransformType;
22
+ private static _checkTransformDependencies;
21
23
  /**
22
24
  * @internal
23
25
  */
@@ -247,7 +249,7 @@ export declare class Entity extends EngineObject {
247
249
  private _setActiveInHierarchy;
248
250
  private _setInActiveInHierarchy;
249
251
  private _setSiblingIndex;
250
- private _setTransform;
252
+ private _replaceTransform;
251
253
  private _invModelMatrix;
252
254
  private _inverseWorldMatFlag;
253
255
  /**
@@ -5,6 +5,7 @@ import { Entity } from "./Entity";
5
5
  import type { ICloneHook } from "./clone/ICloneHook";
6
6
  /**
7
7
  * Used to implement transformation related functions.
8
+ * @remarks A `Transform` subclass must not declare component dependencies.
8
9
  */
9
10
  export declare class Transform extends Component implements ICloneHook<Transform> {
10
11
  private static _tempQuat0;
@@ -93,6 +94,7 @@ export declare class Transform extends Component implements ICloneHook<Transform
93
94
  * @internal
94
95
  */
95
96
  constructor(entity: Entity);
97
+ destroy(): void;
96
98
  /**
97
99
  * Set local position by X, Y, Z value.
98
100
  * @param x - X coordinate
@@ -206,6 +208,10 @@ export declare class Transform extends Component implements ICloneHook<Transform
206
208
  * @internal
207
209
  */
208
210
  _isFrontFaceInvert(): boolean;
211
+ /**
212
+ * @internal
213
+ */
214
+ _copyLocalPoseFrom(source: Transform): void;
209
215
  /**
210
216
  * @inheritdoc
211
217
  */