@galacean/effects-core 2.8.0-alpha.6 → 2.8.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 core for the web
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
6
- * Version: v2.8.0-alpha.6
6
+ * Version: v2.8.1
7
7
  */
8
8
 
9
9
  'use strict';
@@ -13342,6 +13342,7 @@ function _loadVideo() {
13342
13342
  }
13343
13343
  video.crossOrigin = "anonymous";
13344
13344
  video.muted = true;
13345
+ video.autoplay = false;
13345
13346
  if (isAndroid()) {
13346
13347
  video.setAttribute("renderer", "standard");
13347
13348
  }
@@ -28869,6 +28870,13 @@ var TextComponentBase = /*#__PURE__*/ function() {
28869
28870
  this.textStyle.outlineColor = value;
28870
28871
  this.isDirty = true;
28871
28872
  };
28873
+ _proto.setOutlineEnabled = function setOutlineEnabled(value) {
28874
+ if (this.textStyle.isOutlined === value) {
28875
+ return;
28876
+ }
28877
+ this.textStyle.isOutlined = value;
28878
+ this.isDirty = true;
28879
+ };
28872
28880
  _proto.setFontScale = function setFontScale(value) {
28873
28881
  if (this.textStyle.fontScale === value) {
28874
28882
  return;
@@ -29405,6 +29413,17 @@ exports.TextComponent = /*#__PURE__*/ function(MaskableGraphic) {
29405
29413
  this.textStyle.outlineWidth = v;
29406
29414
  this.isDirty = true;
29407
29415
  };
29416
+ /**
29417
+ * 设置是否启用文本描边
29418
+ * @param value - 是否启用描边
29419
+ * @returns
29420
+ */ _proto.setOutlineEnabled = function setOutlineEnabled(value) {
29421
+ if (this.textStyle.isOutlined === value) {
29422
+ return;
29423
+ }
29424
+ this.textStyle.isOutlined = value;
29425
+ this.isDirty = true;
29426
+ };
29408
29427
  _proto.setShadowBlur = function setShadowBlur(value) {
29409
29428
  var v = Math.max(0, Number(value) || 0);
29410
29429
  if (this.textStyle.shadowBlur === v) {
@@ -31477,7 +31496,7 @@ function getStandardSpriteContent(sprite, transform) {
31477
31496
  return ret;
31478
31497
  }
31479
31498
 
31480
- var version$1 = "2.8.0-alpha.6";
31499
+ var version$1 = "2.8.1";
31481
31500
  var v0 = /^(\d+)\.(\d+)\.(\d+)(-(\w+)\.\d+)?$/;
31482
31501
  var standardVersion = /^(\d+)\.(\d+)$/;
31483
31502
  var reverseParticle = false;
@@ -35177,7 +35196,7 @@ registerPlugin("text", TextLoader);
35177
35196
  registerPlugin("sprite", SpriteLoader);
35178
35197
  registerPlugin("particle", ParticleLoader);
35179
35198
  registerPlugin("interact", InteractLoader);
35180
- var version = "2.8.0-alpha.6";
35199
+ var version = "2.8.1";
35181
35200
  logger.info("Core version: " + version + ".");
35182
35201
 
35183
35202
  exports.ActivationMixerPlayable = ActivationMixerPlayable;