@galacean/effects 1.3.1 → 1.3.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 +15 -8
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +15 -8
- package/dist/index.mjs.map +1 -1
- package/dist/weapp.js +14 -7
- package/dist/weapp.js.map +1 -1
- package/dist/weapp.mjs +14 -7
- 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.3.
|
|
6
|
+
* Version: v1.3.2
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -24096,18 +24096,14 @@ var CompVFXItem = /** @class */ (function (_super) {
|
|
|
24096
24096
|
// 设置预合成作为元素时的时长、结束行为和渲染延时
|
|
24097
24097
|
if (exports.Item.isComposition(itemProps)) {
|
|
24098
24098
|
var refId = itemProps.content.options.refId;
|
|
24099
|
-
|
|
24100
|
-
if (!props) {
|
|
24101
|
-
throw new Error("\u5F15\u7528\u7684Id: ".concat(refId, " \u7684\u9884\u5408\u6210\u4E0D\u5B58\u5728"));
|
|
24102
|
-
}
|
|
24103
|
-
props.content = itemProps.content;
|
|
24104
|
-
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);
|
|
24099
|
+
item = new CompVFXItem(__assign$1({ refId: refId }, itemProps), this.composition);
|
|
24105
24100
|
item.contentProps = itemProps.content;
|
|
24106
24101
|
item.transform.parentTransform = this.transform;
|
|
24107
24102
|
this.composition.refContent.push(item);
|
|
24108
24103
|
if (item.endBehavior === END_BEHAVIOR_RESTART$1) {
|
|
24109
24104
|
this.composition.autoRefTex = false;
|
|
24110
24105
|
}
|
|
24106
|
+
item.createContent();
|
|
24111
24107
|
}
|
|
24112
24108
|
else {
|
|
24113
24109
|
item = createVFXItem(this.itemProps[i], this.composition);
|
|
@@ -24239,6 +24235,17 @@ var CompVFXItem = /** @class */ (function (_super) {
|
|
|
24239
24235
|
CompVFXItem.prototype.handleVisibleChanged = function (visible) {
|
|
24240
24236
|
this.items.forEach(function (item) { return item.setVisible(visible); });
|
|
24241
24237
|
};
|
|
24238
|
+
CompVFXItem.prototype.setScale = function (x, y, z) {
|
|
24239
|
+
if (this.content) {
|
|
24240
|
+
this.content.startSize = new Vector3(x, y, z);
|
|
24241
|
+
}
|
|
24242
|
+
};
|
|
24243
|
+
CompVFXItem.prototype.scale = function (x, y, z) {
|
|
24244
|
+
if (this.content) {
|
|
24245
|
+
var startSize = this.content.startSize.clone();
|
|
24246
|
+
this.content.startSize = new Vector3(x * startSize.x, y * startSize.y, z * startSize.z);
|
|
24247
|
+
}
|
|
24248
|
+
};
|
|
24242
24249
|
CompVFXItem.prototype.getUpdateTime = function (t) {
|
|
24243
24250
|
var startTime = this.startTimeInms;
|
|
24244
24251
|
var now = this.timeInms;
|
|
@@ -30470,7 +30477,7 @@ Renderer.create = function (canvas, framework, renderOptions) {
|
|
|
30470
30477
|
Engine.create = function (gl) {
|
|
30471
30478
|
return new GLEngine(gl);
|
|
30472
30479
|
};
|
|
30473
|
-
var version = "1.3.
|
|
30480
|
+
var version = "1.3.2";
|
|
30474
30481
|
logger.info('player version: ' + version);
|
|
30475
30482
|
|
|
30476
30483
|
exports.AbstractPlugin = AbstractPlugin;
|