@galacean/effects-core 2.2.6 → 2.2.7
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 +6 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Description: Galacean Effects runtime core for the web
|
|
4
4
|
* Author: Ant Group CO., Ltd.
|
|
5
5
|
* Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
|
|
6
|
-
* Version: v2.2.
|
|
6
|
+
* Version: v2.2.7
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -12664,18 +12664,12 @@ var BezierCurve = /*#__PURE__*/ function(ValueGetter) {
|
|
|
12664
12664
|
var keyTimeStart = this.curveMap[keyTimeData[0]].timeStart;
|
|
12665
12665
|
var keyTimeEnd = this.curveMap[keyTimeData[keyTimeData.length - 1]].timeEnd;
|
|
12666
12666
|
if (time <= keyTimeStart) {
|
|
12667
|
-
|
|
12668
|
-
|
|
12669
|
-
return this.endKeyframe[1][keyframeInfo.pointIndexCache.yIndex];
|
|
12670
|
-
}
|
|
12671
|
-
return this.getCurveValue(keyTimeData[0], keyTimeStart);
|
|
12667
|
+
keyframeInfo.getPointIndexInCurve(this.startKeyframe, keyframeInfo.pointIndexCache);
|
|
12668
|
+
return this.startKeyframe[1][keyframeInfo.pointIndexCache.yIndex];
|
|
12672
12669
|
}
|
|
12673
12670
|
if (time >= keyTimeEnd) {
|
|
12674
|
-
|
|
12675
|
-
|
|
12676
|
-
return this.endKeyframe[1][keyframeInfo.pointIndexCache.yIndex];
|
|
12677
|
-
}
|
|
12678
|
-
return this.getCurveValue(keyTimeData[keyTimeData.length - 1], keyTimeEnd);
|
|
12671
|
+
keyframeInfo.getPointIndexInCurve(this.endKeyframe, keyframeInfo.pointIndexCache);
|
|
12672
|
+
return this.endKeyframe[1][keyframeInfo.pointIndexCache.yIndex];
|
|
12679
12673
|
}
|
|
12680
12674
|
for(var i = 0; i < keyTimeData.length; i++){
|
|
12681
12675
|
var xMin = this.curveMap[keyTimeData[i]].timeStart;
|
|
@@ -31403,7 +31397,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem, true);
|
|
|
31403
31397
|
registerPlugin("particle", ParticleLoader, exports.VFXItem, true);
|
|
31404
31398
|
registerPlugin("cal", CalculateLoader, exports.VFXItem, true);
|
|
31405
31399
|
registerPlugin("interact", InteractLoader, exports.VFXItem, true);
|
|
31406
|
-
var version = "2.2.
|
|
31400
|
+
var version = "2.2.7";
|
|
31407
31401
|
logger.info("Core version: " + version + ".");
|
|
31408
31402
|
|
|
31409
31403
|
exports.AbstractPlugin = AbstractPlugin;
|