@galacean/effects-threejs 2.8.0-alpha.6 → 2.8.0

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.0-alpha.6
6
+ * Version: v2.8.0
7
7
  */
8
8
 
9
9
  'use strict';
@@ -13364,6 +13364,7 @@ function _loadVideo() {
13364
13364
  }
13365
13365
  video.crossOrigin = "anonymous";
13366
13366
  video.muted = true;
13367
+ video.autoplay = false;
13367
13368
  if (isAndroid()) {
13368
13369
  video.setAttribute("renderer", "standard");
13369
13370
  }
@@ -28891,6 +28892,13 @@ var TextComponentBase = /*#__PURE__*/ function() {
28891
28892
  this.textStyle.outlineColor = value;
28892
28893
  this.isDirty = true;
28893
28894
  };
28895
+ _proto.setOutlineEnabled = function setOutlineEnabled(value) {
28896
+ if (this.textStyle.isOutlined === value) {
28897
+ return;
28898
+ }
28899
+ this.textStyle.isOutlined = value;
28900
+ this.isDirty = true;
28901
+ };
28894
28902
  _proto.setFontScale = function setFontScale(value) {
28895
28903
  if (this.textStyle.fontScale === value) {
28896
28904
  return;
@@ -29427,6 +29435,17 @@ exports.TextComponent = /*#__PURE__*/ function(MaskableGraphic) {
29427
29435
  this.textStyle.outlineWidth = v;
29428
29436
  this.isDirty = true;
29429
29437
  };
29438
+ /**
29439
+ * 设置是否启用文本描边
29440
+ * @param value - 是否启用描边
29441
+ * @returns
29442
+ */ _proto.setOutlineEnabled = function setOutlineEnabled(value) {
29443
+ if (this.textStyle.isOutlined === value) {
29444
+ return;
29445
+ }
29446
+ this.textStyle.isOutlined = value;
29447
+ this.isDirty = true;
29448
+ };
29430
29449
  _proto.setShadowBlur = function setShadowBlur(value) {
29431
29450
  var v = Math.max(0, Number(value) || 0);
29432
29451
  if (this.textStyle.shadowBlur === v) {
@@ -31499,7 +31518,7 @@ function getStandardSpriteContent(sprite, transform) {
31499
31518
  return ret;
31500
31519
  }
31501
31520
 
31502
- var version$2 = "2.8.0-alpha.6";
31521
+ var version$2 = "2.8.0";
31503
31522
  var v0 = /^(\d+)\.(\d+)\.(\d+)(-(\w+)\.\d+)?$/;
31504
31523
  var standardVersion = /^(\d+)\.(\d+)$/;
31505
31524
  var reverseParticle = false;
@@ -35199,7 +35218,7 @@ registerPlugin("text", TextLoader);
35199
35218
  registerPlugin("sprite", SpriteLoader);
35200
35219
  registerPlugin("particle", ParticleLoader);
35201
35220
  registerPlugin("interact", InteractLoader);
35202
- var version$1 = "2.8.0-alpha.6";
35221
+ var version$1 = "2.8.0";
35203
35222
  logger.info("Core version: " + version$1 + ".");
35204
35223
 
35205
35224
  var _obj;
@@ -36776,7 +36795,7 @@ applyMixins(exports.ThreeTextComponent, [
36776
36795
  */ Mesh.create = function(engine, props) {
36777
36796
  return new ThreeMesh(engine, props);
36778
36797
  };
36779
- var version = "2.8.0-alpha.6";
36798
+ var version = "2.8.0";
36780
36799
  logger.info("THREEJS plugin version: " + version + ".");
36781
36800
 
36782
36801
  exports.ActivationMixerPlayable = ActivationMixerPlayable;