@galacean/effects 1.4.0-beta.1 → 1.4.1
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 +22 -14
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +5 -5
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +22 -14
- package/dist/index.mjs.map +1 -1
- package/dist/weapp.js +21 -13
- package/dist/weapp.js.map +1 -1
- package/dist/weapp.mjs +21 -13
- package/dist/weapp.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Description: Galacean Effects runtime player for the web
|
|
4
4
|
* Author: Ant Group CO., Ltd.
|
|
5
5
|
* Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
|
|
6
|
-
* Version: v1.4.
|
|
6
|
+
* Version: v1.4.1
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -686,7 +686,7 @@ function asserts(condition, msg) {
|
|
|
686
686
|
* Name: @galacean/effects-specification
|
|
687
687
|
* Description: Galacean Effects JSON Specification
|
|
688
688
|
* Author: Ant Group CO., Ltd.
|
|
689
|
-
* Version: v1.2.0
|
|
689
|
+
* Version: v1.2.0
|
|
690
690
|
*/
|
|
691
691
|
|
|
692
692
|
/*********************************************/
|
|
@@ -8277,7 +8277,7 @@ var map$2 = (_a$8 = {},
|
|
|
8277
8277
|
},
|
|
8278
8278
|
_a$8[ValueType$1.BEZIER_CURVE_PATH] = function (props) {
|
|
8279
8279
|
if (props[0].length === 1) {
|
|
8280
|
-
return new StaticValue(new Vector3(
|
|
8280
|
+
return new StaticValue(new (Vector3.bind.apply(Vector3, __spreadArray$2([void 0], __read$3(props[1][0]), false)))());
|
|
8281
8281
|
}
|
|
8282
8282
|
return new BezierCurvePath(props);
|
|
8283
8283
|
},
|
|
@@ -9940,9 +9940,7 @@ var CameraController = /** @class */ (function () {
|
|
|
9940
9940
|
position.z += translateOverLifetime.z.getValue(lifetime);
|
|
9941
9941
|
if (translateOverLifetime.path) {
|
|
9942
9942
|
var val = translateOverLifetime.path.getValue(lifetime);
|
|
9943
|
-
position.
|
|
9944
|
-
position.y += val[1];
|
|
9945
|
-
position.z += val[2];
|
|
9943
|
+
position.add(val);
|
|
9946
9944
|
}
|
|
9947
9945
|
}
|
|
9948
9946
|
if (rotationOverLifetime) {
|
|
@@ -21868,7 +21866,7 @@ var filters = {
|
|
|
21868
21866
|
* Name: @galacean/effects-specification
|
|
21869
21867
|
* Description: Galacean Effects JSON Specification
|
|
21870
21868
|
* Author: Ant Group CO., Ltd.
|
|
21871
|
-
* Version: v1.2.0
|
|
21869
|
+
* Version: v1.2.0
|
|
21872
21870
|
*/
|
|
21873
21871
|
|
|
21874
21872
|
/*********************************************/
|
|
@@ -23357,6 +23355,9 @@ function version24Migration(json) {
|
|
|
23357
23355
|
}
|
|
23358
23356
|
function convertParam(content) {
|
|
23359
23357
|
var e_2, _a;
|
|
23358
|
+
if (!content) {
|
|
23359
|
+
return;
|
|
23360
|
+
}
|
|
23360
23361
|
try {
|
|
23361
23362
|
for (var _b = __values(Object.keys(content)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
23362
23363
|
var key = _c.value;
|
|
@@ -24527,18 +24528,14 @@ var CompVFXItem = /** @class */ (function (_super) {
|
|
|
24527
24528
|
// 设置预合成作为元素时的时长、结束行为和渲染延时
|
|
24528
24529
|
if (exports.Item.isComposition(itemProps)) {
|
|
24529
24530
|
var refId = itemProps.content.options.refId;
|
|
24530
|
-
|
|
24531
|
-
if (!props) {
|
|
24532
|
-
throw new Error("\u5F15\u7528\u7684Id: ".concat(refId, " \u7684\u9884\u5408\u6210\u4E0D\u5B58\u5728"));
|
|
24533
|
-
}
|
|
24534
|
-
props.content = itemProps.content;
|
|
24535
|
-
item = new CompVFXItem(__assign$1(__assign$1({}, props), { refId: refId, delay: itemProps.delay, id: itemProps.id, name: itemProps.name, duration: itemProps.duration, endBehavior: itemProps.endBehavior, parentId: itemProps.parentId, transform: itemProps.transform }), this.composition);
|
|
24531
|
+
item = new CompVFXItem(__assign$1({ refId: refId }, itemProps), this.composition);
|
|
24536
24532
|
item.contentProps = itemProps.content;
|
|
24537
24533
|
item.transform.parentTransform = this.transform;
|
|
24538
24534
|
this.composition.refContent.push(item);
|
|
24539
24535
|
if (item.endBehavior === END_BEHAVIOR_RESTART$1) {
|
|
24540
24536
|
this.composition.autoRefTex = false;
|
|
24541
24537
|
}
|
|
24538
|
+
item.createContent();
|
|
24542
24539
|
}
|
|
24543
24540
|
else {
|
|
24544
24541
|
item = createVFXItem(this.itemProps[i], this.composition);
|
|
@@ -24670,6 +24667,17 @@ var CompVFXItem = /** @class */ (function (_super) {
|
|
|
24670
24667
|
CompVFXItem.prototype.handleVisibleChanged = function (visible) {
|
|
24671
24668
|
this.items.forEach(function (item) { return item.setVisible(visible); });
|
|
24672
24669
|
};
|
|
24670
|
+
CompVFXItem.prototype.setScale = function (x, y, z) {
|
|
24671
|
+
if (this.content) {
|
|
24672
|
+
this.content.startSize = new Vector3(x, y, z);
|
|
24673
|
+
}
|
|
24674
|
+
};
|
|
24675
|
+
CompVFXItem.prototype.scale = function (x, y, z) {
|
|
24676
|
+
if (this.content) {
|
|
24677
|
+
var startSize = this.content.startSize.clone();
|
|
24678
|
+
this.content.startSize = new Vector3(x * startSize.x, y * startSize.y, z * startSize.z);
|
|
24679
|
+
}
|
|
24680
|
+
};
|
|
24673
24681
|
CompVFXItem.prototype.getUpdateTime = function (t) {
|
|
24674
24682
|
var startTime = this.startTimeInms;
|
|
24675
24683
|
var now = this.timeInms;
|
|
@@ -30901,7 +30909,7 @@ Renderer.create = function (canvas, framework, renderOptions) {
|
|
|
30901
30909
|
Engine.create = function (gl) {
|
|
30902
30910
|
return new GLEngine(gl);
|
|
30903
30911
|
};
|
|
30904
|
-
var version = "1.4.
|
|
30912
|
+
var version = "1.4.1";
|
|
30905
30913
|
logger.info('player version: ' + version);
|
|
30906
30914
|
|
|
30907
30915
|
exports.AbstractPlugin = AbstractPlugin;
|