@galacean/engine-core 2.0.0-alpha.45 → 2.0.0-alpha.47
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/dist/main.js +115 -39
- package/dist/main.js.map +1 -1
- package/dist/module.js +115 -39
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/ComponentsDependencies.d.ts +5 -1
- package/types/Entity.d.ts +3 -1
- package/types/Transform.d.ts +6 -0
- package/types/input/InputManager.d.ts +6 -6
- package/types/input/pointer/Pointer.d.ts +1 -1
- package/types/mesh/ModelMesh.d.ts +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-core",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.47",
|
|
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.
|
|
21
|
+
"@galacean/engine-math": "2.0.0-alpha.47"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@galacean/engine-design": "2.0.0-alpha.
|
|
24
|
+
"@galacean/engine-design": "2.0.0-alpha.47"
|
|
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
|
|
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
|
|
252
|
+
private _replaceTransform;
|
|
251
253
|
private _invModelMatrix;
|
|
252
254
|
private _inverseWorldMatFlag;
|
|
253
255
|
/**
|
package/types/Transform.d.ts
CHANGED
|
@@ -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
|
*/
|
|
@@ -54,15 +54,15 @@ export declare class InputManager {
|
|
|
54
54
|
*/
|
|
55
55
|
isPointerHeldDown(pointerButton?: PointerButton): boolean;
|
|
56
56
|
/**
|
|
57
|
-
* Whether
|
|
58
|
-
* @param pointerButton - The
|
|
59
|
-
* @returns
|
|
57
|
+
* Whether any pointer was pressed this frame.
|
|
58
|
+
* @param pointerButton - The button to query; omit to include all buttons
|
|
59
|
+
* @returns The result remains true for the frame, even if a release also occurred
|
|
60
60
|
*/
|
|
61
61
|
isPointerDown(pointerButton?: PointerButton): boolean;
|
|
62
62
|
/**
|
|
63
|
-
* Whether
|
|
64
|
-
* @param pointerButton - The
|
|
65
|
-
* @returns
|
|
63
|
+
* Whether any pointer was released this frame.
|
|
64
|
+
* @param pointerButton - The button to query; omit to include all buttons
|
|
65
|
+
* @returns The result remains true for the frame, even if a press also occurred
|
|
66
66
|
*/
|
|
67
67
|
isPointerUp(pointerButton?: PointerButton): boolean;
|
|
68
68
|
/**
|
|
@@ -14,7 +14,7 @@ export declare class Pointer {
|
|
|
14
14
|
* @remarks Start from 0.
|
|
15
15
|
*/
|
|
16
16
|
readonly id: number;
|
|
17
|
-
/** The phase of pointer. */
|
|
17
|
+
/** The current phase of this pointer. */
|
|
18
18
|
phase: PointerPhase;
|
|
19
19
|
/** The button that triggers the pointer event. */
|
|
20
20
|
button: PointerButton;
|
|
@@ -10,6 +10,7 @@ import { BlendShapeManager } from "./BlendShapeManager";
|
|
|
10
10
|
import { VertexAttribute } from "./enums/VertexAttribute";
|
|
11
11
|
/**
|
|
12
12
|
* Mesh containing common vertex elements of the model.
|
|
13
|
+
* Define draw ranges with `addSubMesh()` and assign a material to each corresponding MeshRenderer slot.
|
|
13
14
|
*/
|
|
14
15
|
export declare class ModelMesh extends Mesh {
|
|
15
16
|
private static _tempVec0;
|
|
@@ -216,8 +217,8 @@ export declare class ModelMesh extends Mesh {
|
|
|
216
217
|
*/
|
|
217
218
|
getBlendShapeName(index: number): string;
|
|
218
219
|
/**
|
|
219
|
-
* Upload data to GPU
|
|
220
|
-
*
|
|
220
|
+
* Upload mesh data to the GPU, generating vertex elements and buffer bindings as needed.
|
|
221
|
+
* Bounds must be set separately for culling.
|
|
221
222
|
*
|
|
222
223
|
* @param releaseData - Whether to release the data cache, release data can reduce memory usage.
|
|
223
224
|
*/
|