@galacean/effects-threejs 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 CHANGED
@@ -3,7 +3,7 @@
3
3
  * Description: Galacean Effects runtime threejs plugin for the web
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
6
- * Version: v2.5.0
6
+ * Version: v2.5.1
7
7
  */
8
8
 
9
9
  'use strict';
@@ -26401,14 +26401,14 @@ var TextComponentBase = /*#__PURE__*/ function() {
26401
26401
  _proto.getLineCount = function getLineCount(text, init) {
26402
26402
  var context = this.context;
26403
26403
  var _this_textLayout = this.textLayout, letterSpace = _this_textLayout.letterSpace, overflow = _this_textLayout.overflow;
26404
- var fontScale = init ? this.textStyle.fontSize / 10 : this.textStyle.fontScale;
26404
+ var fontScale = init ? this.textStyle.fontSize / 10 : 1 / this.textStyle.fontScale;
26405
26405
  var width = this.textLayout.width + this.textStyle.fontOffset;
26406
26406
  var lineCount = 1;
26407
26407
  var x = 0;
26408
26408
  //设置context.font的字号
26409
- if (context) {
26410
- context.font = this.getFontDesc(this.textStyle.fontSize);
26411
- }
26409
+ // if (context) {
26410
+ // context.font = this.getFontDesc(this.textStyle.fontSize);
26411
+ // }
26412
26412
  for(var i = 0; i < text.length; i++){
26413
26413
  var _context_measureText;
26414
26414
  var str = text[i];
@@ -28597,7 +28597,7 @@ function getStandardSpriteContent(sprite, transform) {
28597
28597
  return ret;
28598
28598
  }
28599
28599
 
28600
- var version$2 = "2.5.0";
28600
+ var version$2 = "2.5.1";
28601
28601
  var v0 = /^(\d+)\.(\d+)\.(\d+)(-(\w+)\.\d+)?$/;
28602
28602
  var standardVersion = /^(\d+)\.(\d+)$/;
28603
28603
  var reverseParticle = false;
@@ -31847,7 +31847,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem);
31847
31847
  registerPlugin("particle", ParticleLoader, exports.VFXItem);
31848
31848
  registerPlugin("cal", CalculateLoader, exports.VFXItem);
31849
31849
  registerPlugin("interact", InteractLoader, exports.VFXItem);
31850
- var version$1 = "2.5.0";
31850
+ var version$1 = "2.5.1";
31851
31851
  logger.info("Core version: " + version$1 + ".");
31852
31852
 
31853
31853
  var _obj;
@@ -33449,7 +33449,7 @@ setMaxSpriteMeshItemCount(8);
33449
33449
  */ Mesh.create = function(engine, props) {
33450
33450
  return new ThreeMesh(engine, props);
33451
33451
  };
33452
- var version = "2.5.0";
33452
+ var version = "2.5.1";
33453
33453
  logger.info("THREEJS plugin version: " + version + ".");
33454
33454
 
33455
33455
  exports.AbstractPlugin = AbstractPlugin;