@galacean/engine-core 2.0.0-alpha.46 → 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 +10 -9
- package/dist/main.js.map +1 -1
- package/dist/module.js +10 -9
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- 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"
|
|
@@ -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
|
*/
|