hoeditor-web 3.1.143 → 3.1.144

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.
@@ -81879,6 +81879,7 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
81879
81879
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_bg", void 0);
81880
81880
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_dl", void 0);
81881
81881
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_ul", void 0);
81882
+ (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_bd", void 0);
81882
81883
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_spacing", void 0);
81883
81884
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_docWidth", void 0);
81884
81885
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_charCount", void 0);
@@ -82048,6 +82049,7 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
82048
82049
  }
82049
82050
  this.drawBackColor();
82050
82051
  this.updateStyleByScript();
82052
+ // this.updateBorder();
82051
82053
  this.drawUnderline();
82052
82054
  this.drawStrikeout();
82053
82055
  if (this.node instanceof TextNode/* TextNode */.R) {
@@ -82337,6 +82339,9 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
82337
82339
  if (this._textNode.dCombineStyle.script !== TextStyle/* StyleScriptType */.n$.sstnormal) {
82338
82340
  tmp = this._dText.clone();
82339
82341
  tmp.font = this.getStyle(this._textNode.dCombineStyle);
82342
+ // console.log(this._dText.getBounds());
82343
+ // console.log(this._wspace, this._dWidth, this._dHeight);
82344
+ // console.log(tmp);
82340
82345
  // rect = tmp.getBounds(); //实际大小
82341
82346
  this.setBounds(0, 0, this._dWidth + this._wspace, this.dHeight);
82342
82347
  switch (this._textNode.dCombineStyle.script) {
@@ -82353,6 +82358,26 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
82353
82358
  }
82354
82359
  }
82355
82360
  }
82361
+ }, {
82362
+ key: "updateBorder",
82363
+ value: function updateBorder() {
82364
+ if (!this._bd) this._bd = new createjs.Shape();
82365
+ this._dWidth = this._dWidth + 20;
82366
+ this.dWidth = this._dWidth;
82367
+ this.setBounds(0, -this.dHeight - 5, this._dWidth * 2, this.dHeight * 2);
82368
+ // console.log(this.dWidth, this.dHeight, '---');
82369
+ // console.log(this._textNode.dCombineStyle);
82370
+ // console.log(this._text);
82371
+ this._bd.graphics.clear();
82372
+ this._bd.graphics.beginStroke(this._textNode.dCombineStyle.color).drawRect(5,
82373
+ //x
82374
+ -this.dHeight - 5,
82375
+ //y
82376
+ this.dWidth - 5, this.dHeight * 2);
82377
+ this._dText.x = 5;
82378
+ this._dText.y = 0;
82379
+ this.addChild(this._bd);
82380
+ }
82356
82381
  /**
82357
82382
  * 功能:同getStyleKey()
82358
82383
  * NOTE:TextStyle.getStyleKey()中不要修改size的值
@@ -210338,7 +210363,7 @@ var TextNode = __webpack_require__(27198);
210338
210363
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
210339
210364
  var ParagraphNode = __webpack_require__(67945);
210340
210365
  ;// CONCATENATED MODULE: ./src/components/version.ts
210341
- /* harmony default export */ var version = ('3.1.143');
210366
+ /* harmony default export */ var version = ('3.1.144');
210342
210367
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
210343
210368
  var PoperTipText = __webpack_require__(84531);
210344
210369
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -224176,8 +224201,8 @@ var VueController = /*#__PURE__*/function () {
224176
224201
  if (node instanceof SignNode/* SignNode */.N && node !== null && node !== void 0 && node.drawNodes[0]) {
224177
224202
  var drawNode = node === null || node === void 0 ? void 0 : node.drawNodes[0];
224178
224203
  result = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, result), {}, {
224179
- ptRight: hoEditorFactory.unitConvert.pxToPt(caret.stageX + drawNode.dWidth),
224180
- ptLeft: result.ptX
224204
+ ptLeft: hoEditorFactory.unitConvert.pxToPt(x - drawNode.dWidth),
224205
+ ptRight: result.ptX
224181
224206
  });
224182
224207
  if (node.number == 0) {
224183
224208
  result.ptTop = result.ptY;