@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/dist/module.js
CHANGED
|
@@ -14822,6 +14822,7 @@ BlendShapeManager._blendShapeTextureInfoProperty = ShaderProperty.getByName("ren
|
|
|
14822
14822
|
|
|
14823
14823
|
/**
|
|
14824
14824
|
* Mesh containing common vertex elements of the model.
|
|
14825
|
+
* Define draw ranges with `addSubMesh()` and assign a material to each corresponding MeshRenderer slot.
|
|
14825
14826
|
*/ var ModelMesh = /*#__PURE__*/ function(Mesh) {
|
|
14826
14827
|
_inherits(ModelMesh, Mesh);
|
|
14827
14828
|
function ModelMesh(engine, name) {
|
|
@@ -15155,8 +15156,8 @@ BlendShapeManager._blendShapeTextureInfoProperty = ShaderProperty.getByName("ren
|
|
|
15155
15156
|
return blendShapes[index].name;
|
|
15156
15157
|
};
|
|
15157
15158
|
/**
|
|
15158
|
-
* Upload data to GPU
|
|
15159
|
-
*
|
|
15159
|
+
* Upload mesh data to the GPU, generating vertex elements and buffer bindings as needed.
|
|
15160
|
+
* Bounds must be set separately for culling.
|
|
15160
15161
|
*
|
|
15161
15162
|
* @param releaseData - Whether to release the data cache, release data can reduce memory usage.
|
|
15162
15163
|
*/ _proto.uploadData = function uploadData(releaseData) {
|
|
@@ -19580,7 +19581,7 @@ var rePropName = RegExp(// Match anything that isn't a dot or bracket.
|
|
|
19580
19581
|
* Pointer.
|
|
19581
19582
|
*/ var Pointer = /*#__PURE__*/ function() {
|
|
19582
19583
|
function Pointer(id) {
|
|
19583
|
-
/** The phase of pointer. */ this.phase = PointerPhase.Leave;
|
|
19584
|
+
/** The current phase of this pointer. */ this.phase = PointerPhase.Leave;
|
|
19584
19585
|
/** The position of the pointer in screen space pixel coordinates. */ this.position = new Vector2();
|
|
19585
19586
|
/** The change of the pointer. */ this.deltaPosition = new Vector2();
|
|
19586
19587
|
/** @internal */ this._events = [];
|
|
@@ -23059,9 +23060,9 @@ PointerEventEmitter._tempRay = new Ray();
|
|
|
23059
23060
|
}
|
|
23060
23061
|
};
|
|
23061
23062
|
/**
|
|
23062
|
-
* Whether
|
|
23063
|
-
* @param pointerButton - The
|
|
23064
|
-
* @returns
|
|
23063
|
+
* Whether any pointer was pressed this frame.
|
|
23064
|
+
* @param pointerButton - The button to query; omit to include all buttons
|
|
23065
|
+
* @returns The result remains true for the frame, even if a release also occurred
|
|
23065
23066
|
*/ _proto.isPointerDown = function isPointerDown(pointerButton) {
|
|
23066
23067
|
if (this._initialized) {
|
|
23067
23068
|
if (pointerButton === undefined) {
|
|
@@ -23074,9 +23075,9 @@ PointerEventEmitter._tempRay = new Ray();
|
|
|
23074
23075
|
}
|
|
23075
23076
|
};
|
|
23076
23077
|
/**
|
|
23077
|
-
* Whether
|
|
23078
|
-
* @param pointerButton - The
|
|
23079
|
-
* @returns
|
|
23078
|
+
* Whether any pointer was released this frame.
|
|
23079
|
+
* @param pointerButton - The button to query; omit to include all buttons
|
|
23080
|
+
* @returns The result remains true for the frame, even if a press also occurred
|
|
23080
23081
|
*/ _proto.isPointerUp = function isPointerUp(pointerButton) {
|
|
23081
23082
|
if (this._initialized) {
|
|
23082
23083
|
if (pointerButton === undefined) {
|