hoeditor-web 3.1.143 → 3.1.145

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.
@@ -51675,12 +51675,11 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
51675
51675
  this.node2DrawNode();
51676
51676
  changeEvent.afterChangePath = ePath;
51677
51677
  hoEditorFactory.docTree.change(changeEvent);
51678
- if (hoEditorFactory.drawTree.paintStatus !== _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_19__/* .PaintState */ .Dh.psPrint) {
51679
- hoEditorFactory.contentIsModify.isModify = true;
51680
- hoEditorFactory.cachedModify = false;
51681
- hoEditorFactory.hoLocalStorage.autoSaveLocalStorage();
51682
- }
51683
- ;
51678
+ // if (hoEditorFactory.drawTree.paintStatus !== PaintState.psPrint) {
51679
+ // hoEditorFactory.contentIsModify.isModify = true;
51680
+ // hoEditorFactory.cachedModify = false;
51681
+ // hoEditorFactory.hoLocalStorage.autoSaveLocalStorage();
51682
+ // };
51684
51683
  }
51685
51684
  }, {
51686
51685
  key: "getDateTimeText",
@@ -81879,6 +81878,7 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
81879
81878
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_bg", void 0);
81880
81879
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_dl", void 0);
81881
81880
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_ul", void 0);
81881
+ (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_bd", void 0);
81882
81882
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_spacing", void 0);
81883
81883
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_docWidth", void 0);
81884
81884
  (0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_charCount", void 0);
@@ -82048,6 +82048,7 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
82048
82048
  }
82049
82049
  this.drawBackColor();
82050
82050
  this.updateStyleByScript();
82051
+ // this.updateBorder();
82051
82052
  this.drawUnderline();
82052
82053
  this.drawStrikeout();
82053
82054
  if (this.node instanceof TextNode/* TextNode */.R) {
@@ -82337,6 +82338,9 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
82337
82338
  if (this._textNode.dCombineStyle.script !== TextStyle/* StyleScriptType */.n$.sstnormal) {
82338
82339
  tmp = this._dText.clone();
82339
82340
  tmp.font = this.getStyle(this._textNode.dCombineStyle);
82341
+ // console.log(this._dText.getBounds());
82342
+ // console.log(this._wspace, this._dWidth, this._dHeight);
82343
+ // console.log(tmp);
82340
82344
  // rect = tmp.getBounds(); //实际大小
82341
82345
  this.setBounds(0, 0, this._dWidth + this._wspace, this.dHeight);
82342
82346
  switch (this._textNode.dCombineStyle.script) {
@@ -82353,6 +82357,24 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
82353
82357
  }
82354
82358
  }
82355
82359
  }
82360
+ }, {
82361
+ key: "updateBorder",
82362
+ value: function updateBorder() {
82363
+ if (!this._bd) this._bd = new createjs.Shape();
82364
+ this._dWidth = this._dWidth + 20;
82365
+ this.dWidth = this._dWidth;
82366
+ this.setBounds(0, -this.dHeight - 4, this._dWidth * 4, this.dHeight * 2);
82367
+ this._textNode.dCombineStyle.chineseWidth = this._dWidth;
82368
+ this._bd.graphics.clear();
82369
+ this._bd.graphics.beginStroke(this._textNode.dCombineStyle.color).drawRect(0,
82370
+ //x
82371
+ -this.dHeight - 4,
82372
+ //y
82373
+ this._dWidth, this.dHeight * 2);
82374
+ this._dText.x = 10;
82375
+ this._dText.y = 0;
82376
+ this.addChild(this._bd);
82377
+ }
82356
82378
  /**
82357
82379
  * 功能:同getStyleKey()
82358
82380
  * NOTE:TextStyle.getStyleKey()中不要修改size的值
@@ -90066,6 +90088,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
90066
90088
  /* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(51760);
90067
90089
  /* harmony import */ var _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(92501);
90068
90090
  /* harmony import */ var _dom_TableProperty__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(79546);
90091
+ /* harmony import */ var _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(24701);
90069
90092
 
90070
90093
 
90071
90094
 
@@ -90106,6 +90129,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
90106
90129
 
90107
90130
 
90108
90131
 
90132
+
90109
90133
  var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
90110
90134
  (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(NodeInsertUndoUnit, _UndoInfo);
90111
90135
  var _super = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(NodeInsertUndoUnit);
@@ -90153,27 +90177,33 @@ var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
90153
90177
  while (1) switch (_context.prev = _context.next) {
90154
90178
  case 0:
90155
90179
  changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_16__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_15__/* .DocAction */ .gk.daUndoInsert, this.strBeforePath, "");
90180
+ hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_26__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
90156
90181
  if (!(this.node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_27__/* .MarkNode */ .j && this.node.MarkNodeType === 1)) {
90157
- _context.next = 3;
90182
+ _context.next = 6;
90158
90183
  break;
90159
90184
  }
90160
90185
  return _context.abrupt("return");
90161
- case 3:
90162
- hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_26__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
90186
+ case 6:
90187
+ if (!(this.node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_32__/* .SignNode */ .N && hoEditorFactory.drawTree.paintStatus != _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_29__/* .PaintState */ .Dh.psDesign)) {
90188
+ _context.next = 8;
90189
+ break;
90190
+ }
90191
+ return _context.abrupt("return");
90192
+ case 8:
90163
90193
  changeEvent.oldEndPath = hoEditorFactory.docTree.getNodeLastPath(this.node);
90164
90194
  changeEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_25__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(this.strBeforePath, changeEvent.oldEndPath);
90165
90195
  ret = hoEditorFactory.docTree.deleteNode(this.node, "update");
90166
90196
  if (ret) {
90167
- _context.next = 9;
90197
+ _context.next = 13;
90168
90198
  break;
90169
90199
  }
90170
90200
  throw new Error('删除失败');
90171
- case 9:
90201
+ case 13:
90172
90202
  changeEvent.afterChangePath = this.strBeforePath;
90173
90203
  changeEvent.repaintImmediate = this.repaintImmediate;
90174
- _context.next = 13;
90204
+ _context.next = 17;
90175
90205
  return hoEditorFactory.docTree.change(changeEvent);
90176
- case 13:
90206
+ case 17:
90177
90207
  hoEditorFactory.docTree.curDomRange.setSamePath(this.strBeforePath);
90178
90208
  while (!this._undo.atBottom()) {
90179
90209
  this._undo.undo();
@@ -90183,7 +90213,7 @@ var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
90183
90213
  hoEditorFactory.docTree.curDomRange.setSamePath(this.strBeforePath);
90184
90214
  hoEditorFactory.drawTree.moveCaretToPath(this.strBeforePath);
90185
90215
  this.ParentRepaint();
90186
- case 20:
90216
+ case 24:
90187
90217
  case "end":
90188
90218
  return _context.stop();
90189
90219
  }
@@ -210338,7 +210368,7 @@ var TextNode = __webpack_require__(27198);
210338
210368
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
210339
210369
  var ParagraphNode = __webpack_require__(67945);
210340
210370
  ;// CONCATENATED MODULE: ./src/components/version.ts
210341
- /* harmony default export */ var version = ('3.1.143');
210371
+ /* harmony default export */ var version = ('3.1.145');
210342
210372
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
210343
210373
  var PoperTipText = __webpack_require__(84531);
210344
210374
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts