@galacean/effects 1.6.5 → 1.6.6-alpha.0
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/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.6.
|
|
6
|
+
* Version: v1.6.6-alpha.0
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -20820,18 +20820,20 @@ var TextLoader = /** @class */ (function (_super) {
|
|
|
20820
20820
|
};
|
|
20821
20821
|
TextLoader.prototype.onCompositionUpdate = function (composition, dt) {
|
|
20822
20822
|
this.addItems.forEach(function (item) {
|
|
20823
|
-
var
|
|
20823
|
+
var textMesh = item.content.mesh;
|
|
20824
20824
|
if (!item.contentVisible) {
|
|
20825
|
-
|
|
20825
|
+
textMesh === null || textMesh === void 0 ? void 0 : textMesh.mesh.setVisible(false);
|
|
20826
20826
|
return;
|
|
20827
20827
|
}
|
|
20828
20828
|
else {
|
|
20829
|
-
|
|
20829
|
+
textMesh === null || textMesh === void 0 ? void 0 : textMesh.mesh.setVisible(true);
|
|
20830
20830
|
}
|
|
20831
20831
|
item.content.updateTexture();
|
|
20832
|
-
if (!item.content.ended &&
|
|
20833
|
-
|
|
20834
|
-
|
|
20832
|
+
if (!item.content.ended &&
|
|
20833
|
+
textMesh &&
|
|
20834
|
+
!textMesh.mesh.isDestroyed) {
|
|
20835
|
+
textMesh.updateItem(item.content);
|
|
20836
|
+
textMesh.applyChange();
|
|
20835
20837
|
}
|
|
20836
20838
|
});
|
|
20837
20839
|
};
|
|
@@ -31040,7 +31042,7 @@ Renderer.create = function (canvas, framework, renderOptions) {
|
|
|
31040
31042
|
Engine.create = function (gl) {
|
|
31041
31043
|
return new GLEngine(gl);
|
|
31042
31044
|
};
|
|
31043
|
-
var version = "1.6.
|
|
31045
|
+
var version = "1.6.6-alpha.0";
|
|
31044
31046
|
logger.info('player version: ' + version);
|
|
31045
31047
|
|
|
31046
31048
|
exports.AbstractPlugin = AbstractPlugin;
|