@galacean/effects-core 2.5.0 → 2.5.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 +7 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -7
- 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: v2.5.
|
|
6
|
+
* Version: v2.5.1
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -26379,14 +26379,14 @@ var TextComponentBase = /*#__PURE__*/ function() {
|
|
|
26379
26379
|
_proto.getLineCount = function getLineCount(text, init) {
|
|
26380
26380
|
var context = this.context;
|
|
26381
26381
|
var _this_textLayout = this.textLayout, letterSpace = _this_textLayout.letterSpace, overflow = _this_textLayout.overflow;
|
|
26382
|
-
var fontScale = init ? this.textStyle.fontSize / 10 : this.textStyle.fontScale;
|
|
26382
|
+
var fontScale = init ? this.textStyle.fontSize / 10 : 1 / this.textStyle.fontScale;
|
|
26383
26383
|
var width = this.textLayout.width + this.textStyle.fontOffset;
|
|
26384
26384
|
var lineCount = 1;
|
|
26385
26385
|
var x = 0;
|
|
26386
26386
|
//设置context.font的字号
|
|
26387
|
-
if (context) {
|
|
26388
|
-
|
|
26389
|
-
}
|
|
26387
|
+
// if (context) {
|
|
26388
|
+
// context.font = this.getFontDesc(this.textStyle.fontSize);
|
|
26389
|
+
// }
|
|
26390
26390
|
for(var i = 0; i < text.length; i++){
|
|
26391
26391
|
var _context_measureText;
|
|
26392
26392
|
var str = text[i];
|
|
@@ -28575,7 +28575,7 @@ function getStandardSpriteContent(sprite, transform) {
|
|
|
28575
28575
|
return ret;
|
|
28576
28576
|
}
|
|
28577
28577
|
|
|
28578
|
-
var version$1 = "2.5.
|
|
28578
|
+
var version$1 = "2.5.1";
|
|
28579
28579
|
var v0 = /^(\d+)\.(\d+)\.(\d+)(-(\w+)\.\d+)?$/;
|
|
28580
28580
|
var standardVersion = /^(\d+)\.(\d+)$/;
|
|
28581
28581
|
var reverseParticle = false;
|
|
@@ -31825,7 +31825,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem);
|
|
|
31825
31825
|
registerPlugin("particle", ParticleLoader, exports.VFXItem);
|
|
31826
31826
|
registerPlugin("cal", CalculateLoader, exports.VFXItem);
|
|
31827
31827
|
registerPlugin("interact", InteractLoader, exports.VFXItem);
|
|
31828
|
-
var version = "2.5.
|
|
31828
|
+
var version = "2.5.1";
|
|
31829
31829
|
logger.info("Core version: " + version + ".");
|
|
31830
31830
|
|
|
31831
31831
|
exports.AbstractPlugin = AbstractPlugin;
|