hoeditor-web 3.1.144 → 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",
@@ -82364,17 +82363,15 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
82364
82363
  if (!this._bd) this._bd = new createjs.Shape();
82365
82364
  this._dWidth = this._dWidth + 20;
82366
82365
  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);
82366
+ this.setBounds(0, -this.dHeight - 4, this._dWidth * 4, this.dHeight * 2);
82367
+ this._textNode.dCombineStyle.chineseWidth = this._dWidth;
82371
82368
  this._bd.graphics.clear();
82372
- this._bd.graphics.beginStroke(this._textNode.dCombineStyle.color).drawRect(5,
82369
+ this._bd.graphics.beginStroke(this._textNode.dCombineStyle.color).drawRect(0,
82373
82370
  //x
82374
- -this.dHeight - 5,
82371
+ -this.dHeight - 4,
82375
82372
  //y
82376
- this.dWidth - 5, this.dHeight * 2);
82377
- this._dText.x = 5;
82373
+ this._dWidth, this.dHeight * 2);
82374
+ this._dText.x = 10;
82378
82375
  this._dText.y = 0;
82379
82376
  this.addChild(this._bd);
82380
82377
  }
@@ -90091,6 +90088,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
90091
90088
  /* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(51760);
90092
90089
  /* harmony import */ var _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(92501);
90093
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);
90094
90092
 
90095
90093
 
90096
90094
 
@@ -90131,6 +90129,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
90131
90129
 
90132
90130
 
90133
90131
 
90132
+
90134
90133
  var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
90135
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);
90136
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);
@@ -90178,27 +90177,33 @@ var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
90178
90177
  while (1) switch (_context.prev = _context.next) {
90179
90178
  case 0:
90180
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);
90181
90181
  if (!(this.node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_27__/* .MarkNode */ .j && this.node.MarkNodeType === 1)) {
90182
- _context.next = 3;
90182
+ _context.next = 6;
90183
90183
  break;
90184
90184
  }
90185
90185
  return _context.abrupt("return");
90186
- case 3:
90187
- 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:
90188
90193
  changeEvent.oldEndPath = hoEditorFactory.docTree.getNodeLastPath(this.node);
90189
90194
  changeEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_25__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(this.strBeforePath, changeEvent.oldEndPath);
90190
90195
  ret = hoEditorFactory.docTree.deleteNode(this.node, "update");
90191
90196
  if (ret) {
90192
- _context.next = 9;
90197
+ _context.next = 13;
90193
90198
  break;
90194
90199
  }
90195
90200
  throw new Error('删除失败');
90196
- case 9:
90201
+ case 13:
90197
90202
  changeEvent.afterChangePath = this.strBeforePath;
90198
90203
  changeEvent.repaintImmediate = this.repaintImmediate;
90199
- _context.next = 13;
90204
+ _context.next = 17;
90200
90205
  return hoEditorFactory.docTree.change(changeEvent);
90201
- case 13:
90206
+ case 17:
90202
90207
  hoEditorFactory.docTree.curDomRange.setSamePath(this.strBeforePath);
90203
90208
  while (!this._undo.atBottom()) {
90204
90209
  this._undo.undo();
@@ -90208,7 +90213,7 @@ var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
90208
90213
  hoEditorFactory.docTree.curDomRange.setSamePath(this.strBeforePath);
90209
90214
  hoEditorFactory.drawTree.moveCaretToPath(this.strBeforePath);
90210
90215
  this.ParentRepaint();
90211
- case 20:
90216
+ case 24:
90212
90217
  case "end":
90213
90218
  return _context.stop();
90214
90219
  }
@@ -210363,7 +210368,7 @@ var TextNode = __webpack_require__(27198);
210363
210368
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
210364
210369
  var ParagraphNode = __webpack_require__(67945);
210365
210370
  ;// CONCATENATED MODULE: ./src/components/version.ts
210366
- /* harmony default export */ var version = ('3.1.144');
210371
+ /* harmony default export */ var version = ('3.1.145');
210367
210372
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
210368
210373
  var PoperTipText = __webpack_require__(84531);
210369
210374
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -224201,8 +224206,8 @@ var VueController = /*#__PURE__*/function () {
224201
224206
  if (node instanceof SignNode/* SignNode */.N && node !== null && node !== void 0 && node.drawNodes[0]) {
224202
224207
  var drawNode = node === null || node === void 0 ? void 0 : node.drawNodes[0];
224203
224208
  result = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, result), {}, {
224204
- ptLeft: hoEditorFactory.unitConvert.pxToPt(x - drawNode.dWidth),
224205
- ptRight: result.ptX
224209
+ ptRight: hoEditorFactory.unitConvert.pxToPt(caret.stageX + drawNode.dWidth),
224210
+ ptLeft: result.ptX
224206
224211
  });
224207
224212
  if (node.number == 0) {
224208
224213
  result.ptTop = result.ptY;