@galacean/effects-plugin-rich-text 2.8.9 → 2.9.0-alpha.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 player rich text plugin
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 云垣
6
- * Version: v2.8.9
6
+ * Version: v2.9.0-alpha.1
7
7
  */
8
8
 
9
9
  'use strict';
@@ -426,7 +426,7 @@ var RichTextLayout = /*#__PURE__*/ function() {
426
426
  // TODO: width 和 height 新版富文本计算没有地方用到
427
427
  this.width = 0;
428
428
  this.height = 0;
429
- var size = options.size, _options_textOverflow = options.textOverflow, textOverflow = _options_textOverflow === void 0 ? EFFECTS.spec.TextOverflow.clip : _options_textOverflow, _options_textVerticalAlign = options.textVerticalAlign, textVerticalAlign = _options_textVerticalAlign === void 0 ? EFFECTS.spec.TextVerticalAlign.middle : _options_textVerticalAlign, _options_textAlign = options.textAlign, textAlign = _options_textAlign === void 0 ? EFFECTS.spec.TextAlignment.left : _options_textAlign, _options_letterSpace = options.letterSpace, letterSpace = _options_letterSpace === void 0 ? 0 : _options_letterSpace, _options_lineHeight = options.lineHeight, lineHeight = _options_lineHeight === void 0 ? 0.571 : _options_lineHeight, _options_wrapEnabled = options.wrapEnabled, wrapEnabled = _options_wrapEnabled === void 0 ? false : _options_wrapEnabled, _options_maxTextWidth = options.maxTextWidth, maxTextWidth = _options_maxTextWidth === void 0 ? 350 : _options_maxTextWidth, _options_maxTextHeight = options.maxTextHeight, maxTextHeight = _options_maxTextHeight === void 0 ? 1000 : _options_maxTextHeight, _options_autoResize = options.autoResize, autoResize = _options_autoResize === void 0 ? EFFECTS.spec.TextSizeMode.autoWidth : _options_autoResize, _options_useLegacyRichText = options.// @ts-expect-error 兼容旧版
429
+ var _options_textOverflow = options.textOverflow, textOverflow = _options_textOverflow === void 0 ? EFFECTS.spec.TextOverflow.clip : _options_textOverflow, _options_textVerticalAlign = options.textVerticalAlign, textVerticalAlign = _options_textVerticalAlign === void 0 ? EFFECTS.spec.TextVerticalAlign.middle : _options_textVerticalAlign, _options_textAlign = options.textAlign, textAlign = _options_textAlign === void 0 ? EFFECTS.spec.TextAlignment.left : _options_textAlign, _options_letterSpace = options.letterSpace, letterSpace = _options_letterSpace === void 0 ? 0 : _options_letterSpace, _options_lineHeight = options.lineHeight, lineHeight = _options_lineHeight === void 0 ? 0.571 : _options_lineHeight, _options_wrapEnabled = options.wrapEnabled, wrapEnabled = _options_wrapEnabled === void 0 ? false : _options_wrapEnabled, _options_maxTextWidth = options.maxTextWidth, maxTextWidth = _options_maxTextWidth === void 0 ? 350 : _options_maxTextWidth, _options_maxTextHeight = options.maxTextHeight, maxTextHeight = _options_maxTextHeight === void 0 ? 1000 : _options_maxTextHeight, _options_autoResize = options.autoResize, autoResize = _options_autoResize === void 0 ? EFFECTS.spec.TextSizeMode.autoWidth : _options_autoResize, _options_useLegacyRichText = options.// @ts-expect-error 兼容旧版
430
430
  useLegacyRichText, useLegacyRichText = _options_useLegacyRichText === void 0 ? false : _options_useLegacyRichText;
431
431
  this.letterSpace = letterSpace;
432
432
  this.lineHeight = lineHeight;
@@ -434,8 +434,8 @@ var RichTextLayout = /*#__PURE__*/ function() {
434
434
  this.overflow = textOverflow;
435
435
  this.textVerticalAlign = textVerticalAlign;
436
436
  this.textAlign = textAlign;
437
- this.width = size ? size[0] : 100;
438
- this.height = size ? size[1] : 100;
437
+ this.width = 100;
438
+ this.height = 100;
439
439
  this.wrapEnabled = wrapEnabled;
440
440
  this.maxTextWidth = maxTextWidth;
441
441
  this.maxTextHeight = maxTextHeight;
@@ -1605,7 +1605,7 @@ EFFECTS.applyMixins(exports.RichTextComponent, [
1605
1605
 
1606
1606
  /**
1607
1607
  * 插件版本号
1608
- */ var version = "2.8.9";
1608
+ */ var version = "2.9.0-alpha.1";
1609
1609
  EFFECTS.registerPlugin("rich-text", RichTextLoader);
1610
1610
  EFFECTS.logger.info("Plugin rich text version: " + version + ".");
1611
1611
  if (version !== EFFECTS__namespace.version) {