@galacean/effects-core 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 core 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';
@@ -2665,6 +2665,11 @@ function asserts(condition, msg) {
2665
2665
  * @returns
2666
2666
  */ function isValidFontFamily(fontFamily) {
2667
2667
  // iOS 11/12 不支持自定义字体开头为数字的名称,特殊字符也有风险
2668
+ return isSafeFontFamily(fontFamily) || !isSimulatorCellPhone();
2669
+ }
2670
+ /**
2671
+ * @internal
2672
+ */ function isSafeFontFamily(fontFamily) {
2668
2673
  return /^[^\d.][\w-]*$/.test(fontFamily);
2669
2674
  }
2670
2675
 
@@ -29406,7 +29411,7 @@ exports.TextComponent = /*#__PURE__*/ function(MaskableGraphic) {
29406
29411
  charOffsetX: charOffsetX
29407
29412
  });
29408
29413
  // 先描边
29409
- if (style.isOutlined) {
29414
+ if (style.isOutlined && style.outlineWidth > 0) {
29410
29415
  charsInfo.forEach(function(charInfo) {
29411
29416
  var ox = layout.getOffsetX(style, charInfo.width);
29412
29417
  for(var i = 0; i < charInfo.chars.length; i++){
@@ -31610,7 +31615,7 @@ function getStandardSpriteContent(sprite, transform) {
31610
31615
  return ret;
31611
31616
  }
31612
31617
 
31613
- var version$1 = "2.8.3";
31618
+ var version$1 = "2.8.4";
31614
31619
  var v0 = /^(\d+)\.(\d+)\.(\d+)(-(\w+)\.\d+)?$/;
31615
31620
  var standardVersion = /^(\d+)\.(\d+)$/;
31616
31621
  var reverseParticle = false;
@@ -35310,7 +35315,7 @@ registerPlugin("text", TextLoader);
35310
35315
  registerPlugin("sprite", SpriteLoader);
35311
35316
  registerPlugin("particle", ParticleLoader);
35312
35317
  registerPlugin("interact", InteractLoader);
35313
- var version = "2.8.3";
35318
+ var version = "2.8.4";
35314
35319
  logger.info("Core version: " + version + ".");
35315
35320
 
35316
35321
  exports.ActivationMixerPlayable = ActivationMixerPlayable;
@@ -35555,6 +35560,7 @@ exports.isObject = isObject;
35555
35560
  exports.isOpenHarmony = isOpenHarmony;
35556
35561
  exports.isPlainObject = isPlainObject;
35557
35562
  exports.isPowerOfTwo = isPowerOfTwo;
35563
+ exports.isSafeFontFamily = isSafeFontFamily;
35558
35564
  exports.isSimulatorCellPhone = isSimulatorCellPhone;
35559
35565
  exports.isString = isString;
35560
35566
  exports.isUniformStruct = isUniformStruct;