@galacean/effects-threejs 2.8.3 → 2.8.4

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.8.3
6
+ * Version: v2.8.4
7
7
  */
8
8
 
9
9
  'use strict';
@@ -2687,6 +2687,11 @@ function asserts(condition, msg) {
2687
2687
  * @returns
2688
2688
  */ function isValidFontFamily(fontFamily) {
2689
2689
  // iOS 11/12 不支持自定义字体开头为数字的名称,特殊字符也有风险
2690
+ return isSafeFontFamily(fontFamily) || !isSimulatorCellPhone();
2691
+ }
2692
+ /**
2693
+ * @internal
2694
+ */ function isSafeFontFamily(fontFamily) {
2690
2695
  return /^[^\d.][\w-]*$/.test(fontFamily);
2691
2696
  }
2692
2697
 
@@ -29428,7 +29433,7 @@ exports.TextComponent = /*#__PURE__*/ function(MaskableGraphic) {
29428
29433
  charOffsetX: charOffsetX
29429
29434
  });
29430
29435
  // 先描边
29431
- if (style.isOutlined) {
29436
+ if (style.isOutlined && style.outlineWidth > 0) {
29432
29437
  charsInfo.forEach(function(charInfo) {
29433
29438
  var ox = layout.getOffsetX(style, charInfo.width);
29434
29439
  for(var i = 0; i < charInfo.chars.length; i++){
@@ -31632,7 +31637,7 @@ function getStandardSpriteContent(sprite, transform) {
31632
31637
  return ret;
31633
31638
  }
31634
31639
 
31635
- var version$2 = "2.8.3";
31640
+ var version$2 = "2.8.4";
31636
31641
  var v0 = /^(\d+)\.(\d+)\.(\d+)(-(\w+)\.\d+)?$/;
31637
31642
  var standardVersion = /^(\d+)\.(\d+)$/;
31638
31643
  var reverseParticle = false;
@@ -35332,7 +35337,7 @@ registerPlugin("text", TextLoader);
35332
35337
  registerPlugin("sprite", SpriteLoader);
35333
35338
  registerPlugin("particle", ParticleLoader);
35334
35339
  registerPlugin("interact", InteractLoader);
35335
- var version$1 = "2.8.3";
35340
+ var version$1 = "2.8.4";
35336
35341
  logger.info("Core version: " + version$1 + ".");
35337
35342
 
35338
35343
  var _obj;
@@ -36909,7 +36914,7 @@ applyMixins(exports.ThreeTextComponent, [
36909
36914
  */ Mesh.create = function(engine, props) {
36910
36915
  return new ThreeMesh(engine, props);
36911
36916
  };
36912
- var version = "2.8.3";
36917
+ var version = "2.8.4";
36913
36918
  logger.info("THREEJS plugin version: " + version + ".");
36914
36919
 
36915
36920
  exports.ActivationMixerPlayable = ActivationMixerPlayable;
@@ -37164,6 +37169,7 @@ exports.isObject = isObject;
37164
37169
  exports.isOpenHarmony = isOpenHarmony;
37165
37170
  exports.isPlainObject = isPlainObject;
37166
37171
  exports.isPowerOfTwo = isPowerOfTwo;
37172
+ exports.isSafeFontFamily = isSafeFontFamily;
37167
37173
  exports.isSimulatorCellPhone = isSimulatorCellPhone;
37168
37174
  exports.isString = isString;
37169
37175
  exports.isUniformStruct = isUniformStruct;