@galacean/effects-core 1.2.5 → 1.2.6
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 +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- 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: v1.2.
|
|
6
|
+
* Version: v1.2.6
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -14944,7 +14944,6 @@ var SpriteItem = /** @class */ (function (_super) {
|
|
|
14944
14944
|
ret.texOffset = [0, 0, 1, 1];
|
|
14945
14945
|
}
|
|
14946
14946
|
ret.visible = this.vfxItem.contentVisible;
|
|
14947
|
-
// 图层元素作为父节点时,除了k的大小变换,自身的尺寸也需要传递给子元素,子元素可以通过startSize读取
|
|
14948
14947
|
ret.startSize = this.startSize;
|
|
14949
14948
|
return ret;
|
|
14950
14949
|
};
|
|
@@ -15042,7 +15041,9 @@ var SpriteVFXItem = /** @class */ (function (_super) {
|
|
|
15042
15041
|
};
|
|
15043
15042
|
SpriteVFXItem.prototype.doCreateContent = function (composition) {
|
|
15044
15043
|
var emptyTexture = composition.getRendererOptions().emptyTexture;
|
|
15045
|
-
|
|
15044
|
+
var content = new SpriteItem(this.sprite, { emptyTexture: emptyTexture }, this);
|
|
15045
|
+
content.getRenderData(0, true);
|
|
15046
|
+
return content;
|
|
15046
15047
|
};
|
|
15047
15048
|
SpriteVFXItem.prototype.createWireframeMesh = function (item, color) {
|
|
15048
15049
|
var spMesh = new SpriteMesh(this.composition.getEngine(), __assign$1({ wireframe: true }, item.renderInfo), this.composition);
|