@galacean/effects 1.6.5 → 1.6.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/alipay.js +9 -7
- package/dist/alipay.js.map +1 -1
- package/dist/alipay.mjs +9 -7
- package/dist/alipay.mjs.map +1 -1
- package/dist/index.js +10 -8
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +10 -8
- package/dist/index.mjs.map +1 -1
- package/dist/weapp.js +9 -7
- package/dist/weapp.js.map +1 -1
- package/dist/weapp.mjs +9 -7
- package/dist/weapp.mjs.map +1 -1
- package/package.json +3 -3
package/dist/alipay.js
CHANGED
|
@@ -20814,18 +20814,20 @@ var TextLoader = /** @class */ (function (_super) {
|
|
|
20814
20814
|
};
|
|
20815
20815
|
TextLoader.prototype.onCompositionUpdate = function (composition, dt) {
|
|
20816
20816
|
this.addItems.forEach(function (item) {
|
|
20817
|
-
var
|
|
20817
|
+
var textMesh = item.content.mesh;
|
|
20818
20818
|
if (!item.contentVisible) {
|
|
20819
|
-
|
|
20819
|
+
textMesh === null || textMesh === void 0 ? void 0 : textMesh.mesh.setVisible(false);
|
|
20820
20820
|
return;
|
|
20821
20821
|
}
|
|
20822
20822
|
else {
|
|
20823
|
-
|
|
20823
|
+
textMesh === null || textMesh === void 0 ? void 0 : textMesh.mesh.setVisible(true);
|
|
20824
20824
|
}
|
|
20825
20825
|
item.content.updateTexture();
|
|
20826
|
-
if (!item.content.ended &&
|
|
20827
|
-
|
|
20828
|
-
|
|
20826
|
+
if (!item.content.ended &&
|
|
20827
|
+
textMesh &&
|
|
20828
|
+
!textMesh.mesh.isDestroyed) {
|
|
20829
|
+
textMesh.updateItem(item.content);
|
|
20830
|
+
textMesh.applyChange();
|
|
20829
20831
|
}
|
|
20830
20832
|
});
|
|
20831
20833
|
};
|
|
@@ -31034,7 +31036,7 @@ Renderer.create = function (canvas, framework, renderOptions) {
|
|
|
31034
31036
|
Engine.create = function (gl) {
|
|
31035
31037
|
return new GLEngine(gl);
|
|
31036
31038
|
};
|
|
31037
|
-
var version = "1.6.
|
|
31039
|
+
var version = "1.6.6";
|
|
31038
31040
|
logger.info('player version: ' + version);
|
|
31039
31041
|
|
|
31040
31042
|
exports.AbstractPlugin = AbstractPlugin;
|