@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/weapp.js
CHANGED
|
@@ -680,7 +680,7 @@ function asserts(condition, msg) {
|
|
|
680
680
|
* Name: @galacean/effects-specification
|
|
681
681
|
* Description: Galacean Effects JSON Specification
|
|
682
682
|
* Author: Ant Group CO., Ltd.
|
|
683
|
-
* Version: v1.2.0
|
|
683
|
+
* Version: v1.2.0
|
|
684
684
|
*/
|
|
685
685
|
|
|
686
686
|
/*********************************************/
|
|
@@ -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) {
|
|
@@ -21862,7 +21860,7 @@ var filters = {
|
|
|
21862
21860
|
* Name: @galacean/effects-specification
|
|
21863
21861
|
* Description: Galacean Effects JSON Specification
|
|
21864
21862
|
* Author: Ant Group CO., Ltd.
|
|
21865
|
-
* Version: v1.2.0
|
|
21863
|
+
* Version: v1.2.0
|
|
21866
21864
|
*/
|
|
21867
21865
|
|
|
21868
21866
|
/*********************************************/
|
|
@@ -23351,6 +23349,9 @@ function version24Migration(json) {
|
|
|
23351
23349
|
}
|
|
23352
23350
|
function convertParam(content) {
|
|
23353
23351
|
var e_2, _a;
|
|
23352
|
+
if (!content) {
|
|
23353
|
+
return;
|
|
23354
|
+
}
|
|
23354
23355
|
try {
|
|
23355
23356
|
for (var _b = __values(Object.keys(content)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
23356
23357
|
var key = _c.value;
|
|
@@ -24521,18 +24522,14 @@ var CompVFXItem = /** @class */ (function (_super) {
|
|
|
24521
24522
|
// 设置预合成作为元素时的时长、结束行为和渲染延时
|
|
24522
24523
|
if (exports.Item.isComposition(itemProps)) {
|
|
24523
24524
|
var refId = itemProps.content.options.refId;
|
|
24524
|
-
|
|
24525
|
-
if (!props) {
|
|
24526
|
-
throw new Error("\u5F15\u7528\u7684Id: ".concat(refId, " \u7684\u9884\u5408\u6210\u4E0D\u5B58\u5728"));
|
|
24527
|
-
}
|
|
24528
|
-
props.content = itemProps.content;
|
|
24529
|
-
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);
|
|
24525
|
+
item = new CompVFXItem(__assign$1({ refId: refId }, itemProps), this.composition);
|
|
24530
24526
|
item.contentProps = itemProps.content;
|
|
24531
24527
|
item.transform.parentTransform = this.transform;
|
|
24532
24528
|
this.composition.refContent.push(item);
|
|
24533
24529
|
if (item.endBehavior === END_BEHAVIOR_RESTART$1) {
|
|
24534
24530
|
this.composition.autoRefTex = false;
|
|
24535
24531
|
}
|
|
24532
|
+
item.createContent();
|
|
24536
24533
|
}
|
|
24537
24534
|
else {
|
|
24538
24535
|
item = createVFXItem(this.itemProps[i], this.composition);
|
|
@@ -24664,6 +24661,17 @@ var CompVFXItem = /** @class */ (function (_super) {
|
|
|
24664
24661
|
CompVFXItem.prototype.handleVisibleChanged = function (visible) {
|
|
24665
24662
|
this.items.forEach(function (item) { return item.setVisible(visible); });
|
|
24666
24663
|
};
|
|
24664
|
+
CompVFXItem.prototype.setScale = function (x, y, z) {
|
|
24665
|
+
if (this.content) {
|
|
24666
|
+
this.content.startSize = new Vector3(x, y, z);
|
|
24667
|
+
}
|
|
24668
|
+
};
|
|
24669
|
+
CompVFXItem.prototype.scale = function (x, y, z) {
|
|
24670
|
+
if (this.content) {
|
|
24671
|
+
var startSize = this.content.startSize.clone();
|
|
24672
|
+
this.content.startSize = new Vector3(x * startSize.x, y * startSize.y, z * startSize.z);
|
|
24673
|
+
}
|
|
24674
|
+
};
|
|
24667
24675
|
CompVFXItem.prototype.getUpdateTime = function (t) {
|
|
24668
24676
|
var startTime = this.startTimeInms;
|
|
24669
24677
|
var now = this.timeInms;
|
|
@@ -30895,7 +30903,7 @@ Renderer.create = function (canvas, framework, renderOptions) {
|
|
|
30895
30903
|
Engine.create = function (gl) {
|
|
30896
30904
|
return new GLEngine(gl);
|
|
30897
30905
|
};
|
|
30898
|
-
var version = "1.4.
|
|
30906
|
+
var version = "1.4.1";
|
|
30899
30907
|
logger.info('player version: ' + version);
|
|
30900
30908
|
|
|
30901
30909
|
exports.AbstractPlugin = AbstractPlugin;
|