@galacean/effects 1.4.0 → 1.4.2
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/index.js +8 -10
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +8 -10
- package/dist/index.mjs.map +1 -1
- package/dist/weapp.js +7 -9
- package/dist/weapp.js.map +1 -1
- package/dist/weapp.mjs +7 -9
- package/dist/weapp.mjs.map +1 -1
- package/package.json +3 -3
package/dist/weapp.js
CHANGED
|
@@ -8191,19 +8191,19 @@ var BezierCurvePath = /** @class */ (function (_super) {
|
|
|
8191
8191
|
var perc = 0, point = new Vector3();
|
|
8192
8192
|
var keyTimeData = Object.keys(this.curveSegments);
|
|
8193
8193
|
if (!keyTimeData.length) {
|
|
8194
|
-
return point
|
|
8194
|
+
return point;
|
|
8195
8195
|
}
|
|
8196
8196
|
var keyTimeStart = Number(keyTimeData[0].split('&')[0]);
|
|
8197
8197
|
var keyTimeEnd = Number(keyTimeData[keyTimeData.length - 1].split('&')[1]);
|
|
8198
8198
|
if (t <= keyTimeStart) {
|
|
8199
8199
|
var pathCurve = this.curveSegments[keyTimeData[0]].pathCurve;
|
|
8200
8200
|
point = pathCurve.getPointInPercent(0);
|
|
8201
|
-
return point
|
|
8201
|
+
return point;
|
|
8202
8202
|
}
|
|
8203
8203
|
if (t >= keyTimeEnd) {
|
|
8204
8204
|
var pathCurve = this.curveSegments[keyTimeData[keyTimeData.length - 1]].pathCurve;
|
|
8205
8205
|
point = pathCurve.getPointInPercent(1);
|
|
8206
|
-
return point
|
|
8206
|
+
return point;
|
|
8207
8207
|
}
|
|
8208
8208
|
for (var i = 0; i < keyTimeData.length; i++) {
|
|
8209
8209
|
var _a = __read$3(keyTimeData[i].split('&'), 2), xMin = _a[0], xMax = _a[1];
|
|
@@ -8213,7 +8213,7 @@ var BezierCurvePath = /** @class */ (function (_super) {
|
|
|
8213
8213
|
point = bezierPath.getPointInPercent(perc);
|
|
8214
8214
|
}
|
|
8215
8215
|
}
|
|
8216
|
-
return point
|
|
8216
|
+
return point;
|
|
8217
8217
|
};
|
|
8218
8218
|
BezierCurvePath.prototype.getPercValue = function (curveKey, time) {
|
|
8219
8219
|
var curveInfo = this.curveSegments[curveKey];
|
|
@@ -8271,7 +8271,7 @@ var map$2 = (_a$8 = {},
|
|
|
8271
8271
|
},
|
|
8272
8272
|
_a$8[ValueType$1.BEZIER_CURVE_PATH] = function (props) {
|
|
8273
8273
|
if (props[0].length === 1) {
|
|
8274
|
-
return new StaticValue(new Vector3(
|
|
8274
|
+
return new StaticValue(new (Vector3.bind.apply(Vector3, __spreadArray$2([void 0], __read$3(props[1][0]), false)))());
|
|
8275
8275
|
}
|
|
8276
8276
|
return new BezierCurvePath(props);
|
|
8277
8277
|
},
|
|
@@ -9934,9 +9934,7 @@ var CameraController = /** @class */ (function () {
|
|
|
9934
9934
|
position.z += translateOverLifetime.z.getValue(lifetime);
|
|
9935
9935
|
if (translateOverLifetime.path) {
|
|
9936
9936
|
var val = translateOverLifetime.path.getValue(lifetime);
|
|
9937
|
-
position.
|
|
9938
|
-
position.y += val[1];
|
|
9939
|
-
position.z += val[2];
|
|
9937
|
+
position.add(val);
|
|
9940
9938
|
}
|
|
9941
9939
|
}
|
|
9942
9940
|
if (rotationOverLifetime) {
|
|
@@ -30905,7 +30903,7 @@ Renderer.create = function (canvas, framework, renderOptions) {
|
|
|
30905
30903
|
Engine.create = function (gl) {
|
|
30906
30904
|
return new GLEngine(gl);
|
|
30907
30905
|
};
|
|
30908
|
-
var version = "1.4.
|
|
30906
|
+
var version = "1.4.2";
|
|
30909
30907
|
logger.info('player version: ' + version);
|
|
30910
30908
|
|
|
30911
30909
|
exports.AbstractPlugin = AbstractPlugin;
|