hoeditor-web 3.1.133 → 3.1.135
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/lib/hoeditor.css +18016 -1
- package/lib/hoeditor.umd.js +249 -350
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -42317,83 +42317,31 @@ var DocTree = /*#__PURE__*/function () {
|
|
|
42317
42317
|
*/
|
|
42318
42318
|
}, {
|
|
42319
42319
|
key: "deleteNode",
|
|
42320
|
-
value: function deleteNode(node, operType) {
|
|
42320
|
+
value: function deleteNode(node, operType, isForceDelete) {
|
|
42321
42321
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_45__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42322
42322
|
if (node instanceof _treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_39__/* .RadioAndCheckBoxNode */ .Yh && (node.isAllowDelete || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_49__/* .PaintState */ .Dh.psDesign)) {
|
|
42323
42323
|
this.radioAndCheckBoxsMap.delete(node.dataId);
|
|
42324
42324
|
}
|
|
42325
|
-
|
|
42326
|
-
// const preNode = node.previousLeaf();
|
|
42327
|
-
// if (preNode instanceof SignNode && preNode.number === 2) {
|
|
42328
|
-
// const drawSignNode = (preNode.drawNodes[0] as DrawSignNode);
|
|
42329
|
-
// const lineObj = (((drawSignNode.children[1]) as createjs.Shape).graphics.instructions[1]);
|
|
42330
|
-
// const width = (lineObj as any).x;
|
|
42331
|
-
// drawSignNode.children.splice(1, 1);
|
|
42332
|
-
// drawSignNode.dWidth = width;
|
|
42333
|
-
// }
|
|
42334
|
-
// if (!(preNode instanceof SignNode)) {
|
|
42335
|
-
// const nextNode = node.nextLeaf();
|
|
42336
|
-
// if (!(nextNode instanceof SignNode)) {
|
|
42337
|
-
// if (node.isTemplate) {
|
|
42338
|
-
// node.number = 0;
|
|
42339
|
-
// node.type = 0;
|
|
42340
|
-
// node.name = node.name === "" ? "签名" : node.name;
|
|
42341
|
-
// node.imgSrc = "";
|
|
42342
|
-
// return true;
|
|
42343
|
-
// }
|
|
42344
|
-
// }
|
|
42345
|
-
// }
|
|
42346
|
-
//}
|
|
42347
|
-
// if (node instanceof PageNumNode) {
|
|
42348
|
-
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.removeaPageMark(node);
|
|
42349
|
-
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.pageNumNodes.delete(node.id);
|
|
42350
|
-
// }
|
|
42351
|
-
// if (node instanceof PageCountNode) {
|
|
42352
|
-
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.removeaPageMark(node);
|
|
42353
|
-
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.pageCountNodes.delete(node.id);
|
|
42354
|
-
// }
|
|
42325
|
+
var nodeType = undefined;
|
|
42355
42326
|
if (node.nodeType === _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_26__/* .NodeType */ .Jq.ntImage) {
|
|
42356
42327
|
if (this.curOnDragNode === node) {
|
|
42357
42328
|
this.curOnDragNode = null;
|
|
42358
42329
|
}
|
|
42359
|
-
}
|
|
42360
|
-
// if (node instanceof ParagraphNode) {
|
|
42361
|
-
// const preNode = node.prevSibling();
|
|
42362
|
-
// if (preNode && preNode instanceof TableNode) {
|
|
42363
|
-
// return true;
|
|
42364
|
-
// }
|
|
42365
|
-
// }
|
|
42366
|
-
var nodeType = undefined;
|
|
42367
|
-
if (node instanceof _treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_39__/* .RadioAndCheckBoxNode */ .Yh) {
|
|
42330
|
+
} else if (node instanceof _treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_39__/* .RadioAndCheckBoxNode */ .Yh) {
|
|
42368
42331
|
if (node.controlStyle === "RadioBox") {
|
|
42369
42332
|
nodeType = "RadioBox";
|
|
42370
42333
|
}
|
|
42371
42334
|
if (node.controlStyle === "CheckBox") {
|
|
42372
42335
|
nodeType = "CheckBox";
|
|
42373
42336
|
}
|
|
42374
|
-
}
|
|
42375
|
-
if (node instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_46__/* .DateTimeNode */ .Z) {
|
|
42337
|
+
} else if (node instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_46__/* .DateTimeNode */ .Z) {
|
|
42376
42338
|
nodeType = "DateTime";
|
|
42377
|
-
}
|
|
42378
|
-
if (node instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_47__/* .DownListNode */ .yF) {
|
|
42339
|
+
} else if (node instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_47__/* .DownListNode */ .yF) {
|
|
42379
42340
|
nodeType = "DownList";
|
|
42380
|
-
}
|
|
42381
|
-
if (node instanceof _treeNode_LabelNode__WEBPACK_IMPORTED_MODULE_48__/* .LabelNode */ .P) {
|
|
42341
|
+
} else if (node instanceof _treeNode_LabelNode__WEBPACK_IMPORTED_MODULE_48__/* .LabelNode */ .P) {
|
|
42382
42342
|
nodeType = "LabelNode";
|
|
42383
42343
|
}
|
|
42384
|
-
return node.delete(operType, nodeType);
|
|
42385
|
-
// let bret = false;
|
|
42386
|
-
// const pNode = node.parentNode;
|
|
42387
|
-
// if (pNode) {
|
|
42388
|
-
// bret = pNode.removeChild(node);
|
|
42389
|
-
// } else {
|
|
42390
|
-
// const index = node.rootNodes.indexOf(node);
|
|
42391
|
-
// if (index >= 0) {
|
|
42392
|
-
// node.rootNodes.splice(index, 1);
|
|
42393
|
-
// bret = true;
|
|
42394
|
-
// }
|
|
42395
|
-
// }
|
|
42396
|
-
// return bret;
|
|
42344
|
+
return node.delete(operType, nodeType, isForceDelete);
|
|
42397
42345
|
}
|
|
42398
42346
|
/**
|
|
42399
42347
|
* @author
|
|
@@ -49285,8 +49233,7 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49285
49233
|
// protected rootNodes: BaseNode[]; //所在根节点数组
|
|
49286
49234
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_rootPath", void 0);
|
|
49287
49235
|
//根节点路径
|
|
49288
|
-
|
|
49289
|
-
//记录this指针
|
|
49236
|
+
// protected _that: BaseNode; //记录this指针
|
|
49290
49237
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_hoEditorFactoryID", void 0);
|
|
49291
49238
|
this._parentNode = pNode;
|
|
49292
49239
|
this._nodeType = nodeType;
|
|
@@ -49294,7 +49241,7 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49294
49241
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
49295
49242
|
this._rootPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_14__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getRootPathByNodes(rootNodes);
|
|
49296
49243
|
// this.rootNodes = rootNodes;
|
|
49297
|
-
this._that = this;
|
|
49244
|
+
// this._that = this;
|
|
49298
49245
|
}
|
|
49299
49246
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(BaseNode, [{
|
|
49300
49247
|
key: "hoEditorFactoryID",
|
|
@@ -49341,7 +49288,7 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49341
49288
|
value: function getNodePath() {
|
|
49342
49289
|
var pnode = this._parentNode;
|
|
49343
49290
|
var strRet = '';
|
|
49344
|
-
var node = this
|
|
49291
|
+
var node = this;
|
|
49345
49292
|
while (pnode !== null) {
|
|
49346
49293
|
strRet = pnode.childNodes.indexOf(node) + '/' + strRet;
|
|
49347
49294
|
node = pnode;
|
|
@@ -49407,7 +49354,7 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49407
49354
|
*/
|
|
49408
49355
|
}, {
|
|
49409
49356
|
key: "delete",
|
|
49410
|
-
value: function _delete(operType, nodeType) {
|
|
49357
|
+
value: function _delete(operType, nodeType, isForceDelete) {
|
|
49411
49358
|
var parentNodes = this.getParentNodes();
|
|
49412
49359
|
try {
|
|
49413
49360
|
var index = parentNodes.indexOf(this);
|
|
@@ -49434,7 +49381,7 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49434
49381
|
key: "nextSibling",
|
|
49435
49382
|
value: function nextSibling() {
|
|
49436
49383
|
var parentNode = this._parentNode;
|
|
49437
|
-
var node = this
|
|
49384
|
+
var node = this;
|
|
49438
49385
|
for (;;) {
|
|
49439
49386
|
if (!parentNode) {
|
|
49440
49387
|
if (node) {
|
|
@@ -49480,7 +49427,7 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49480
49427
|
key: "prevSibling",
|
|
49481
49428
|
value: function prevSibling() {
|
|
49482
49429
|
var parentNode = this._parentNode;
|
|
49483
|
-
var node = this
|
|
49430
|
+
var node = this;
|
|
49484
49431
|
for (;;) {
|
|
49485
49432
|
if (!parentNode) {
|
|
49486
49433
|
if (node) {
|
|
@@ -49517,7 +49464,7 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49517
49464
|
value: function nextLeaf() {
|
|
49518
49465
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_14__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
49519
49466
|
var parentNode = this._parentNode;
|
|
49520
|
-
var node = this
|
|
49467
|
+
var node = this;
|
|
49521
49468
|
for (;;) {
|
|
49522
49469
|
if (!parentNode) {
|
|
49523
49470
|
if (node) {
|
|
@@ -49613,7 +49560,7 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49613
49560
|
value: function previousLeaf() {
|
|
49614
49561
|
var parentNode = this._parentNode;
|
|
49615
49562
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_14__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
49616
|
-
var node = this
|
|
49563
|
+
var node = this;
|
|
49617
49564
|
//this 直接在根节点上
|
|
49618
49565
|
for (;;) {
|
|
49619
49566
|
if (!parentNode) {
|
|
@@ -59296,6 +59243,8 @@ var RareCharNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
59296
59243
|
var RectNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
59297
59244
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(RectNode, _BaseCombineNode);
|
|
59298
59245
|
var _super = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(RectNode);
|
|
59246
|
+
// private _combineParagraph: CombineParagraph;
|
|
59247
|
+
// private _selfRectNode: RectNode;
|
|
59299
59248
|
//private _pagePaintStart: PagePaintPosition;
|
|
59300
59249
|
//private _baseDTop: number;
|
|
59301
59250
|
function RectNode(hoEditorFactoryID, rootNodes, pNode, nodeType) {
|
|
@@ -59304,13 +59253,11 @@ var RectNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
59304
59253
|
_this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
|
|
59305
59254
|
//const pParaGraph= pNode instanceof RectNode? (pNode as RectNode).combineParagraph
|
|
59306
59255
|
// this._combineParagraph=Paragraph.para2CombinePara(this,paragraph,this.getParentCombineParagraph());
|
|
59307
|
-
|
|
59308
|
-
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_height", void 0);
|
|
59309
|
-
// private _combineParagraph: CombineParagraph;
|
|
59310
|
-
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_selfRectNode", void 0);
|
|
59311
|
-
_this._selfRectNode = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this);
|
|
59256
|
+
// this._selfRectNode = this;
|
|
59312
59257
|
//this._pagePaintStart=new PagePaintPosition(null,-1,-1);
|
|
59313
59258
|
// this._baseDTop=0;
|
|
59259
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_width", void 0);
|
|
59260
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_height", void 0);
|
|
59314
59261
|
return _this;
|
|
59315
59262
|
}
|
|
59316
59263
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(RectNode, [{
|
|
@@ -63930,35 +63877,22 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
63930
63877
|
}
|
|
63931
63878
|
}, {
|
|
63932
63879
|
key: "delete",
|
|
63933
|
-
value: function _delete(operType) {
|
|
63880
|
+
value: function _delete(operType, nodeType, isForceDelete) {
|
|
63934
63881
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_41__/* .HOEditorFactorys */ .b.instance().getFactory(this.hoEditorFactoryID);
|
|
63935
|
-
if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_42__/* .PaintState */ .Dh.psDesign || this.tableProperty.canDelTable) {
|
|
63882
|
+
if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_42__/* .PaintState */ .Dh.psDesign || this.tableProperty.canDelTable || isForceDelete) {
|
|
63936
63883
|
var parentNodes = this.getParentNodes();
|
|
63937
|
-
var nextParagraphNode = this.nextSibling();
|
|
63938
63884
|
var ret = false;
|
|
63939
63885
|
try {
|
|
63940
63886
|
var index = parentNodes.indexOf(this);
|
|
63941
63887
|
if (index != -1) {
|
|
63942
63888
|
if (this.parentNode) {
|
|
63943
63889
|
//有父节点,使用父节点的删除方法
|
|
63944
|
-
// if (nextParagraphNode) this.parentNode.removeChild(nextParagraphNode);
|
|
63945
|
-
// this.drawTable.clear();
|
|
63946
63890
|
ret = this.parentNode.removeChild(this);
|
|
63947
63891
|
} else {
|
|
63948
|
-
// if (nextParagraphNode) parentNodes.splice(index + 1, 1);
|
|
63949
|
-
// this.drawTable.clear();
|
|
63950
63892
|
parentNodes.splice(index, 1);
|
|
63951
63893
|
ret = true;
|
|
63952
63894
|
}
|
|
63953
63895
|
}
|
|
63954
|
-
// if (
|
|
63955
|
-
// index === 1 &&
|
|
63956
|
-
// (!this.parentNode ||
|
|
63957
|
-
// (this.parentNode &&
|
|
63958
|
-
// !this.parentNode.isTotalSelected(HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange)))
|
|
63959
|
-
// ) {
|
|
63960
|
-
// this._paragraphNode.node2DrawNode();
|
|
63961
|
-
// }
|
|
63962
63896
|
return ret;
|
|
63963
63897
|
} catch (error) {
|
|
63964
63898
|
return false;
|
|
@@ -63971,8 +63905,6 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
63971
63905
|
value: function getCellNodeByPath(path) {
|
|
63972
63906
|
var ret = null;
|
|
63973
63907
|
if (this._rows[0][0]) {
|
|
63974
|
-
var tableStartPath = this._rows[0][0].getNodePath();
|
|
63975
|
-
var tableEndPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_41__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(this);
|
|
63976
63908
|
var tablePath = this.getNodePath() + "/";
|
|
63977
63909
|
if (path.startsWith(tablePath)) {
|
|
63978
63910
|
var cellPath = path.substr(tablePath.length, path.length);
|
|
@@ -74265,7 +74197,7 @@ var DrawContainer = /*#__PURE__*/function (_createjs$Container) {
|
|
|
74265
74197
|
//是否允许行增长
|
|
74266
74198
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_parentDNode", void 0);
|
|
74267
74199
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_rootPath", void 0);
|
|
74268
|
-
|
|
74200
|
+
// protected _that: DrawContainer;
|
|
74269
74201
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_drawItems", void 0);
|
|
74270
74202
|
_this._rootPath = rootPath;
|
|
74271
74203
|
_this._index = index;
|
|
@@ -74276,7 +74208,7 @@ var DrawContainer = /*#__PURE__*/function (_createjs$Container) {
|
|
|
74276
74208
|
_this._canWidthInc = true;
|
|
74277
74209
|
_this._fixWidth = -1;
|
|
74278
74210
|
_this._dTop = 0;
|
|
74279
|
-
|
|
74211
|
+
// this._that = this;
|
|
74280
74212
|
_this._dHeight = 0;
|
|
74281
74213
|
_this._drawItems = new Array();
|
|
74282
74214
|
_this.discriminator = _IDrawInfos__WEBPACK_IMPORTED_MODULE_11__/* .gDrawIntfID */ .t;
|
|
@@ -74495,7 +74427,7 @@ var DrawContainer = /*#__PURE__*/function (_createjs$Container) {
|
|
|
74495
74427
|
var rPath = this._rootPath;
|
|
74496
74428
|
var nodePath = "";
|
|
74497
74429
|
var pDnode = this.parentDNode;
|
|
74498
|
-
var dNode = this
|
|
74430
|
+
var dNode = this;
|
|
74499
74431
|
while (pDnode) {
|
|
74500
74432
|
var index = pDnode._drawItems.indexOf(dNode);
|
|
74501
74433
|
nodePath += "/" + index.toString();
|
|
@@ -90829,60 +90761,58 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
90829
90761
|
/* harmony export */ F: function() { return /* binding */ NodesDeleteUndoUnit; }
|
|
90830
90762
|
/* harmony export */ });
|
|
90831
90763
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(94310);
|
|
90832
|
-
/* harmony import */ var
|
|
90764
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(40735);
|
|
90833
90765
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80543);
|
|
90834
90766
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81448);
|
|
90835
|
-
/* harmony import */ var
|
|
90836
|
-
/* harmony import */ var
|
|
90837
|
-
/* harmony import */ var
|
|
90838
|
-
/* harmony import */ var
|
|
90839
|
-
/* harmony import */ var
|
|
90840
|
-
/* harmony import */ var
|
|
90841
|
-
/* harmony import */ var
|
|
90842
|
-
/* harmony import */ var
|
|
90843
|
-
/* harmony import */ var
|
|
90844
|
-
/* harmony import */ var
|
|
90845
|
-
/* harmony import */ var
|
|
90846
|
-
/* harmony import */ var
|
|
90847
|
-
/* harmony import */ var
|
|
90848
|
-
/* harmony import */ var
|
|
90849
|
-
/* harmony import */ var
|
|
90850
|
-
/* harmony import */ var
|
|
90851
|
-
/* harmony import */ var
|
|
90852
|
-
/* harmony import */ var
|
|
90853
|
-
/* harmony import */ var
|
|
90854
|
-
/* harmony import */ var
|
|
90855
|
-
/* harmony import */ var
|
|
90856
|
-
/* harmony import */ var
|
|
90857
|
-
/* harmony import */ var
|
|
90858
|
-
/* harmony import */ var
|
|
90859
|
-
/* harmony import */ var
|
|
90860
|
-
/* harmony import */ var
|
|
90861
|
-
/* harmony import */ var
|
|
90862
|
-
/* harmony import */ var
|
|
90863
|
-
/* harmony import */ var
|
|
90864
|
-
/* harmony import */ var
|
|
90865
|
-
/* harmony import */ var
|
|
90866
|
-
/* harmony import */ var
|
|
90867
|
-
/* harmony import */ var
|
|
90868
|
-
/* harmony import */ var
|
|
90869
|
-
/* harmony import */ var
|
|
90870
|
-
/* harmony import */ var
|
|
90871
|
-
/* harmony import */ var
|
|
90872
|
-
/* harmony import */ var
|
|
90873
|
-
/* harmony import */ var
|
|
90874
|
-
/* harmony import */ var
|
|
90875
|
-
/* harmony import */ var
|
|
90876
|
-
/* harmony import */ var
|
|
90877
|
-
/* harmony import */ var
|
|
90878
|
-
/* harmony import */ var
|
|
90879
|
-
/* harmony import */ var
|
|
90880
|
-
/* harmony import */ var
|
|
90881
|
-
/* harmony import */ var
|
|
90882
|
-
/* harmony import */ var
|
|
90883
|
-
/* harmony import */ var
|
|
90884
|
-
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(51760);
|
|
90885
|
-
|
|
90767
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(70280);
|
|
90768
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(66298);
|
|
90769
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(78255);
|
|
90770
|
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(66992);
|
|
90771
|
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
90772
|
+
/* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(51532);
|
|
90773
|
+
/* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
90774
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(41539);
|
|
90775
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
90776
|
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(78783);
|
|
90777
|
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
90778
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(33948);
|
|
90779
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
90780
|
+
/* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(91038);
|
|
90781
|
+
/* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
90782
|
+
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(21703);
|
|
90783
|
+
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_12__);
|
|
90784
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(26699);
|
|
90785
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_13__);
|
|
90786
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(32023);
|
|
90787
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_14__);
|
|
90788
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(40561);
|
|
90789
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_15__);
|
|
90790
|
+
/* harmony import */ var _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(32629);
|
|
90791
|
+
/* harmony import */ var _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(27198);
|
|
90792
|
+
/* harmony import */ var _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(2613);
|
|
90793
|
+
/* harmony import */ var _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(94639);
|
|
90794
|
+
/* harmony import */ var _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(62358);
|
|
90795
|
+
/* harmony import */ var _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(59057);
|
|
90796
|
+
/* harmony import */ var _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(931);
|
|
90797
|
+
/* harmony import */ var _UndoService__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(19229);
|
|
90798
|
+
/* harmony import */ var _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(65043);
|
|
90799
|
+
/* harmony import */ var _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(57727);
|
|
90800
|
+
/* harmony import */ var _events_Exception__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(8277);
|
|
90801
|
+
/* harmony import */ var _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(67945);
|
|
90802
|
+
/* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(68598);
|
|
90803
|
+
/* harmony import */ var _draw_SelectRange__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(53901);
|
|
90804
|
+
/* harmony import */ var _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(5010);
|
|
90805
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(74089);
|
|
90806
|
+
/* harmony import */ var _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(91105);
|
|
90807
|
+
/* harmony import */ var _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(99152);
|
|
90808
|
+
/* harmony import */ var _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(92501);
|
|
90809
|
+
/* harmony import */ var _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(45712);
|
|
90810
|
+
/* harmony import */ var _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(64465);
|
|
90811
|
+
/* harmony import */ var _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(24701);
|
|
90812
|
+
/* harmony import */ var _dom_NodePosition__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(42921);
|
|
90813
|
+
/* harmony import */ var _dom_treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(90832);
|
|
90814
|
+
/* harmony import */ var _dom_treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(34910);
|
|
90815
|
+
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(51760);
|
|
90886
90816
|
|
|
90887
90817
|
|
|
90888
90818
|
|
|
@@ -90936,40 +90866,36 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90936
90866
|
* @description 删除范围套用数学中区域概念类似(startPath,endPath],即startPath后不包含startPath到endPath包含endPath
|
|
90937
90867
|
*/
|
|
90938
90868
|
function NodesDeleteUndoUnit(hoEditorFactoryID, startPath, endPath, isForceDelete) {
|
|
90939
|
-
(0,
|
|
90869
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, NodesDeleteUndoUnit);
|
|
90940
90870
|
//删除时 startPath是删除范围前一个节点的路径
|
|
90941
|
-
(0,
|
|
90871
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_startPath", void 0);
|
|
90942
90872
|
//删除时 endPath 是删除范围后一个节点的路径
|
|
90943
|
-
(0,
|
|
90944
|
-
(0,
|
|
90873
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_endPath", void 0);
|
|
90874
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_tmp", {
|
|
90945
90875
|
start: "",
|
|
90946
90876
|
end: ""
|
|
90947
90877
|
});
|
|
90948
|
-
(0,
|
|
90949
|
-
(0,
|
|
90950
|
-
(0,
|
|
90951
|
-
(0,
|
|
90952
|
-
(0,
|
|
90953
|
-
(0,
|
|
90954
|
-
(0,
|
|
90955
|
-
(0,
|
|
90956
|
-
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "_isError", false);
|
|
90878
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_undoNodes", void 0);
|
|
90879
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_undo", void 0);
|
|
90880
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_pnode", null);
|
|
90881
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_hoEditorFactoryID", void 0);
|
|
90882
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_opTime", void 0);
|
|
90883
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_affectText", void 0);
|
|
90884
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_isForceDelete", void 0);
|
|
90885
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, "_isError", false);
|
|
90957
90886
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
90958
90887
|
this._startPath = startPath;
|
|
90959
90888
|
this._endPath = endPath;
|
|
90960
90889
|
this._isForceDelete = isForceDelete;
|
|
90961
|
-
this._undo = new
|
|
90890
|
+
this._undo = new _UndoService__WEBPACK_IMPORTED_MODULE_23__/* .UndoService */ .O(this._hoEditorFactoryID); //hoEditorFactory.undoService;
|
|
90962
90891
|
this._undoNodes = new Map();
|
|
90963
|
-
var aDomRange = new
|
|
90964
|
-
|
|
90965
|
-
|
|
90966
|
-
bSametable = _aDomRange$inSameTabl2[0],
|
|
90967
|
-
aTable = _aDomRange$inSameTabl2[1];
|
|
90968
|
-
this._bSameTable = bSametable;
|
|
90892
|
+
var aDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(hoEditorFactoryID, startPath, endPath).normalize();
|
|
90893
|
+
// const [bSametable] = aDomRange.inSameTable();
|
|
90894
|
+
// this._bSameTable = bSametable;
|
|
90969
90895
|
this._opTime = new Date();
|
|
90970
|
-
this._affectText =
|
|
90896
|
+
this._affectText = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_31__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID).vueController.getRangeText(aDomRange);
|
|
90971
90897
|
}
|
|
90972
|
-
(0,
|
|
90898
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(NodesDeleteUndoUnit, [{
|
|
90973
90899
|
key: "undo",
|
|
90974
90900
|
value: function undo() {
|
|
90975
90901
|
//2.插入删除的节点
|
|
@@ -90986,10 +90912,10 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90986
90912
|
arr = Array.from(this._undoNodes).reverse();
|
|
90987
90913
|
i = 0;
|
|
90988
90914
|
prevIsTable = false;
|
|
90989
|
-
hoEditorFactory =
|
|
90915
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_31__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
90990
90916
|
while (i < arr.length) {
|
|
90991
90917
|
value = arr[i];
|
|
90992
|
-
if (value[1] instanceof
|
|
90918
|
+
if (value[1] instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_28__/* .CellNode */ .D) {
|
|
90993
90919
|
// (value[1] as CellNode).redrawCell(true, DocAction.daInsert);
|
|
90994
90920
|
} else {
|
|
90995
90921
|
if (prevIsTable) {
|
|
@@ -90997,12 +90923,10 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
90997
90923
|
} else {
|
|
90998
90924
|
hoEditorFactory.docTree.insertNodeAfterPath(value[0], value[1]);
|
|
90999
90925
|
}
|
|
91000
|
-
if (value[1] instanceof
|
|
90926
|
+
if (value[1] instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_30__/* .TableNode */ .Fh) {
|
|
91001
90927
|
prevIsTable = true;
|
|
91002
|
-
// value[1].clearDrawNodes();
|
|
91003
|
-
// value[1].drawTable.drawPageTables.length = 0;
|
|
91004
90928
|
np = hoEditorFactory.docTree.findNodePositionByPath(value[0]);
|
|
91005
|
-
if (np && np.node && np.node instanceof
|
|
90929
|
+
if (np && np.node && np.node instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_27__/* .ParagraphNode */ .C) value[1].drawTable.paragraphNode = np.node;
|
|
91006
90930
|
} else {
|
|
91007
90931
|
prevIsTable = false;
|
|
91008
90932
|
}
|
|
@@ -91010,7 +90934,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91010
90934
|
i += 1;
|
|
91011
90935
|
}
|
|
91012
90936
|
aendPaht = hoEditorFactory.docTree.getNodeLastPath(arr[arr.length - 1][1]);
|
|
91013
|
-
changeEvent = new
|
|
90937
|
+
changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_18__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_16__/* .DocAction */ .gk.daInsert, arr[0][0], aendPaht);
|
|
91014
90938
|
_context.next = 9;
|
|
91015
90939
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
91016
90940
|
case 9:
|
|
@@ -91039,9 +90963,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91039
90963
|
// hoEditorFactory.docTree.change(changeEvent);
|
|
91040
90964
|
// }
|
|
91041
90965
|
//选中范围变化事件
|
|
91042
|
-
newRange = new
|
|
90966
|
+
newRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
|
|
91043
90967
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
91044
|
-
cgEvent = new
|
|
90968
|
+
cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_22__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, newRange);
|
|
91045
90969
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
91046
90970
|
//光标定位
|
|
91047
90971
|
hoEditorFactory.drawTree.moveCaretToPath(newRange.endPath);
|
|
@@ -91065,11 +90989,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91065
90989
|
this._undoNodes.clear();
|
|
91066
90990
|
this._undo.clear();
|
|
91067
90991
|
}
|
|
91068
|
-
|
|
91069
|
-
|
|
91070
|
-
|
|
91071
|
-
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.moveCaretToPath(path);
|
|
91072
|
-
}
|
|
90992
|
+
// private MoveCaret(path: string) {
|
|
90993
|
+
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.moveCaretToPath(path);
|
|
90994
|
+
// }
|
|
91073
90995
|
/**
|
|
91074
90996
|
* @description 返回前面一个node的开始结束选中范围 文本节点时候返回文本中单个文字的选中范围
|
|
91075
90997
|
* @param Anode
|
|
@@ -91078,24 +91000,24 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91078
91000
|
key: "getPrevNodeDomRange",
|
|
91079
91001
|
value: function getPrevNodeDomRange(Anode) {
|
|
91080
91002
|
var spath;
|
|
91081
|
-
var hoEditorFactory =
|
|
91003
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_31__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
91082
91004
|
var prev = Anode.prevSibling();
|
|
91083
91005
|
if (!prev) {
|
|
91084
|
-
throw
|
|
91006
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_26__/* .Exception */ .P.NodeNotFound();
|
|
91085
91007
|
}
|
|
91086
91008
|
var epath = hoEditorFactory.docTree.getNodeLastPath(prev);
|
|
91087
|
-
if (prev instanceof
|
|
91009
|
+
if (prev instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_17__/* .TextNode */ .R) {
|
|
91088
91010
|
spath = prev.prevPath(epath);
|
|
91089
|
-
} else if (prev instanceof
|
|
91011
|
+
} else if (prev instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_27__/* .ParagraphNode */ .C) {
|
|
91090
91012
|
spath = epath;
|
|
91091
91013
|
} else {
|
|
91092
91014
|
var prev1 = prev.previousLeaf();
|
|
91093
91015
|
if (!prev1) {
|
|
91094
|
-
throw
|
|
91016
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_26__/* .Exception */ .P.NodeNotFound();
|
|
91095
91017
|
}
|
|
91096
91018
|
spath = hoEditorFactory.docTree.getNodeLastPath(prev1);
|
|
91097
91019
|
}
|
|
91098
|
-
return new
|
|
91020
|
+
return new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(this._hoEditorFactoryID, spath, epath);
|
|
91099
91021
|
}
|
|
91100
91022
|
/**
|
|
91101
91023
|
*
|
|
@@ -91108,20 +91030,20 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91108
91030
|
}, {
|
|
91109
91031
|
key: "deleteRange",
|
|
91110
91032
|
value: function deleteRange(endpath, startpath) {
|
|
91111
|
-
var currRange = new
|
|
91033
|
+
var currRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(this._hoEditorFactoryID, startpath, endpath).normalize();
|
|
91112
91034
|
//拆分更新节点,更新删除范围 this._tmp
|
|
91113
91035
|
if (!this.spliteNode(currRange)) {
|
|
91114
91036
|
return 0;
|
|
91115
91037
|
}
|
|
91116
|
-
var newDomRange = new
|
|
91117
|
-
if (!newDomRange.npStart.node) throw
|
|
91118
|
-
if (!newDomRange.npEnd.node) throw
|
|
91119
|
-
|
|
91120
|
-
if (currRange.startMainNode) {
|
|
91121
|
-
|
|
91122
|
-
}
|
|
91123
|
-
var nodes =
|
|
91124
|
-
var hoEditorFactory =
|
|
91038
|
+
var newDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.end);
|
|
91039
|
+
if (!newDomRange.npStart.node) throw _events_Exception__WEBPACK_IMPORTED_MODULE_26__/* .Exception */ .P.NodeNotFound();
|
|
91040
|
+
if (!newDomRange.npEnd.node) throw _events_Exception__WEBPACK_IMPORTED_MODULE_26__/* .Exception */ .P.NodeNotFound();
|
|
91041
|
+
// let aStart = newDomRange.npStart.node;
|
|
91042
|
+
// if (currRange.startMainNode) {
|
|
91043
|
+
// aStart = currRange.startMainNode;
|
|
91044
|
+
// }
|
|
91045
|
+
var nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._tmp.start, this._tmp.end);
|
|
91046
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_31__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
91125
91047
|
// this.DeleteBaseCombineNodeContent(
|
|
91126
91048
|
// newDomRange,
|
|
91127
91049
|
// newDomRange.npEnd.node,
|
|
@@ -91134,7 +91056,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91134
91056
|
if (!prevNode) {
|
|
91135
91057
|
throw new Error("错误的节点位置");
|
|
91136
91058
|
}
|
|
91137
|
-
if (hoEditorFactory.docTree.deleteNode(nodes[i], operType)) {
|
|
91059
|
+
if (hoEditorFactory.docTree.deleteNode(nodes[i], operType, this._isForceDelete)) {
|
|
91138
91060
|
var path = hoEditorFactory.docTree.getNodeLastPath(prevNode);
|
|
91139
91061
|
this._undoNodes.set(path, nodes[i]);
|
|
91140
91062
|
}
|
|
@@ -91249,24 +91171,24 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91249
91171
|
*
|
|
91250
91172
|
* @param Anode
|
|
91251
91173
|
*/
|
|
91252
|
-
var hoEditorFactory =
|
|
91174
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_31__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
91253
91175
|
var forMarkNode = function forMarkNode(Anode) {
|
|
91254
|
-
if (Anode.parentNode instanceof
|
|
91176
|
+
if (Anode.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re) {
|
|
91255
91177
|
var pTINode = Anode.parentNode;
|
|
91256
91178
|
if (pTINode.isEmpty() || !pTINode.canModifyContent) {
|
|
91257
91179
|
//为空 或者 不允许编辑
|
|
91258
91180
|
var tmp = pTINode.previousLeaf();
|
|
91259
91181
|
if (!tmp) {
|
|
91260
|
-
throw
|
|
91182
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_26__/* .Exception */ .P.NodeNotFound();
|
|
91261
91183
|
}
|
|
91262
91184
|
info[0] = 0;
|
|
91263
|
-
info[1] = new
|
|
91185
|
+
info[1] = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(_this._hoEditorFactoryID, hoEditorFactory.docTree.getNodeLastPath(tmp), hoEditorFactory.docTree.getNodeLastPath(pTINode));
|
|
91264
91186
|
} else {
|
|
91265
91187
|
if (Anode == pTINode.last()) {
|
|
91266
91188
|
//递归调用删除
|
|
91267
91189
|
var _tmp = _this.getPrevNodeDomRange(Anode);
|
|
91268
91190
|
//1.移动光标
|
|
91269
|
-
hoEditorFactory.docTree.curDomRange = new
|
|
91191
|
+
hoEditorFactory.docTree.curDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(_this._hoEditorFactoryID, _tmp.endPath, _tmp.endPath);
|
|
91270
91192
|
// this.MoveCaret(tmp.endPath);
|
|
91271
91193
|
//2.删除内容
|
|
91272
91194
|
info[0] = 1;
|
|
@@ -91274,7 +91196,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91274
91196
|
} else if (Anode == pTINode.first()) {
|
|
91275
91197
|
//移动光标到文本域外
|
|
91276
91198
|
var _tmp2 = _this.getPrevNodeDomRange(Anode);
|
|
91277
|
-
hoEditorFactory.docTree.curDomRange = new
|
|
91199
|
+
hoEditorFactory.docTree.curDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(_this._hoEditorFactoryID, _tmp2.endPath, _tmp2.endPath);
|
|
91278
91200
|
// this.MoveCaret(tmp.endPath);
|
|
91279
91201
|
info[0] = 2;
|
|
91280
91202
|
info[1] = _tmp2;
|
|
@@ -91283,33 +91205,33 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91283
91205
|
}
|
|
91284
91206
|
};
|
|
91285
91207
|
if (!(s && e)) {
|
|
91286
|
-
throw
|
|
91208
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_26__/* .Exception */ .P.NodeNotFound();
|
|
91287
91209
|
}
|
|
91288
91210
|
this._tmp.start = Arange.startPath;
|
|
91289
91211
|
this._tmp.end = Arange.endPath;
|
|
91290
91212
|
var spnode = s.parentNode;
|
|
91291
91213
|
var epnode = e.parentNode;
|
|
91292
91214
|
var pnode = epnode;
|
|
91293
|
-
if (spnode instanceof
|
|
91294
|
-
var result =
|
|
91215
|
+
if (spnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re && epnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re && spnode != epnode) {
|
|
91216
|
+
var result = _dom_NodePosition__WEBPACK_IMPORTED_MODULE_38__/* .NodePosition */ .F.nodePositionCompare(spnode.StartMarkNode, epnode.StartMarkNode);
|
|
91295
91217
|
if (result < 0) {
|
|
91296
91218
|
pnode = spnode;
|
|
91297
91219
|
}
|
|
91298
91220
|
}
|
|
91299
|
-
if (this._isForceDelete && pnode instanceof
|
|
91221
|
+
if (this._isForceDelete && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re && pnode.inputFieldType === 1 && (_pnode$downListProper = pnode.downListProperty.listItems) !== null && _pnode$downListProper !== void 0 && _pnode$downListProper.includes("<元素>")) {
|
|
91300
91222
|
this._tmp.start = pnode.StartMarkNode.getNodePath();
|
|
91301
91223
|
this._tmp.end = hoEditorFactory.docTree.getNodeLastPath(pnode.EndMarkNode.previousLeaf());
|
|
91302
91224
|
return true;
|
|
91303
91225
|
}
|
|
91304
91226
|
if (s === e) {
|
|
91305
|
-
if (s instanceof
|
|
91227
|
+
if (s instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_17__/* .TextNode */ .R) {
|
|
91306
91228
|
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange = Arange;
|
|
91307
|
-
var tmp = new
|
|
91229
|
+
var tmp = new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_21__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.startPath, s, Arange);
|
|
91308
91230
|
this._undo.begin();
|
|
91309
91231
|
this._undo.add(tmp);
|
|
91310
91232
|
this._undo.commit();
|
|
91311
91233
|
this._tmp.end = hoEditorFactory.docTree.getNodeLastPath(tmp.theNode);
|
|
91312
|
-
} else if (s instanceof
|
|
91234
|
+
} else if (s instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__/* .MarkNode */ .j) {
|
|
91313
91235
|
forMarkNode(s);
|
|
91314
91236
|
if (info[0] == 0 && info[1]) {
|
|
91315
91237
|
this._tmp.start = info[1].startPath;
|
|
@@ -91324,25 +91246,25 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91324
91246
|
}
|
|
91325
91247
|
} else {
|
|
91326
91248
|
var _tmp3 = null;
|
|
91327
|
-
if (e instanceof
|
|
91328
|
-
_tmp3 = new
|
|
91249
|
+
if (e instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_17__/* .TextNode */ .R && Arange.npEnd.childIndex >= 0 && Arange.npEnd.childIndex < e.getLength() - 1) {
|
|
91250
|
+
_tmp3 = new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_21__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.endPath, e, Arange);
|
|
91329
91251
|
this._undo.begin();
|
|
91330
91252
|
this._undo.add(_tmp3);
|
|
91331
91253
|
this._undo.commit();
|
|
91332
91254
|
}
|
|
91333
|
-
if (s instanceof
|
|
91255
|
+
if (s instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_17__/* .TextNode */ .R && Arange.npStart.childIndex >= 0 && Arange.npStart.childIndex < s.getLength() - 1) {
|
|
91334
91256
|
this._undo.begin();
|
|
91335
|
-
this._undo.add(new
|
|
91257
|
+
this._undo.add(new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_21__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.startPath, s, Arange));
|
|
91336
91258
|
this._undo.commit();
|
|
91337
91259
|
}
|
|
91338
|
-
if (e instanceof
|
|
91260
|
+
if (e instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__/* .MarkNode */ .j) {
|
|
91339
91261
|
forMarkNode(e);
|
|
91340
91262
|
if (info[0] == 0 && info[1]) {
|
|
91341
91263
|
this._tmp.end = info[1].endPath;
|
|
91342
91264
|
// return this.spliteNode(new DomRange(this._tmp.start, this._tmp.end));
|
|
91343
91265
|
} else if ((info[0] == 1 || info[0] == 2) && info[1]) {
|
|
91344
91266
|
this._tmp.end = info[1].endPath;
|
|
91345
|
-
return this.spliteNode(new
|
|
91267
|
+
return this.spliteNode(new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.end));
|
|
91346
91268
|
}
|
|
91347
91269
|
}
|
|
91348
91270
|
if (_tmp3) {
|
|
@@ -91361,15 +91283,15 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91361
91283
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().wrap(function _callee2$(_context2) {
|
|
91362
91284
|
while (1) switch (_context2.prev = _context2.next) {
|
|
91363
91285
|
case 0:
|
|
91364
|
-
if (Anode && Anode instanceof
|
|
91365
|
-
hoEditorFactory =
|
|
91286
|
+
if (Anode && Anode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re) {
|
|
91287
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_31__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
91366
91288
|
if (Anode.childNodes.length === 2) {
|
|
91367
91289
|
contentMark = Anode.childNodes2[1];
|
|
91368
91290
|
styleIndex = Anode.childNodes[0].styleIndex;
|
|
91369
|
-
contentMarkNode = new
|
|
91291
|
+
contentMarkNode = new _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__/* .MarkNode */ .j(this._hoEditorFactoryID, Anode.childNodes[0].rootNodes, Anode, _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType */ .Jq.ntMark, contentMark.text, styleIndex, _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__/* .MarkNodeType */ .q.mtContent);
|
|
91370
91292
|
insertPath = hoEditorFactory.docTree.getNodeLastPath(Anode.childNodes[0]);
|
|
91371
91293
|
hoEditorFactory.undoService.begin();
|
|
91372
|
-
hoEditorFactory.undoService.add(new
|
|
91294
|
+
hoEditorFactory.undoService.add(new _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_36__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, insertPath, contentMarkNode));
|
|
91373
91295
|
hoEditorFactory.undoService.commit();
|
|
91374
91296
|
// Anode.childNodes.splice(1, 0, contentMarkNode);
|
|
91375
91297
|
// await (Anode as TextInputFieldNode).update(0);
|
|
@@ -91399,32 +91321,33 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91399
91321
|
value: function () {
|
|
91400
91322
|
var _doRedo = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().mark(function _callee3() {
|
|
91401
91323
|
var _currRange$npEnd$node;
|
|
91402
|
-
var currRange, hoEditorFactory, textStyle, nodes, lastNode, ePath, sPath, n, node, tip, pnode, pTiNode, _res, changeEvent, startPath, endPath, res, cgEvent, aNode;
|
|
91324
|
+
var currRange, hoEditorFactory, paintStatus, textStyle, nodes, lastNode, ePath, sPath, n, node, tip, pnode, pTiNode, _res, changeEvent, startPath, endPath, res, cgEvent, aNode;
|
|
91403
91325
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().wrap(function _callee3$(_context3) {
|
|
91404
91326
|
while (1) switch (_context3.prev = _context3.next) {
|
|
91405
91327
|
case 0:
|
|
91406
91328
|
this.initParam();
|
|
91407
|
-
currRange = new
|
|
91408
|
-
hoEditorFactory =
|
|
91329
|
+
currRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
|
|
91330
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_31__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
91409
91331
|
hoEditorFactory.docTree.curDomRange = currRange;
|
|
91410
|
-
|
|
91411
|
-
|
|
91332
|
+
paintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
91333
|
+
if (!(paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_41__/* .PaintState */ .Dh.psReview || paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_41__/* .PaintState */ .Dh.psTrace)) {
|
|
91334
|
+
_context3.next = 12;
|
|
91412
91335
|
break;
|
|
91413
91336
|
}
|
|
91414
|
-
if (!(currRange.npEnd.node && currRange.npEnd.node instanceof
|
|
91415
|
-
_context3.next =
|
|
91337
|
+
if (!(currRange.npEnd.node && currRange.npEnd.node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_17__/* .TextNode */ .R)) {
|
|
91338
|
+
_context3.next = 12;
|
|
91416
91339
|
break;
|
|
91417
91340
|
}
|
|
91418
91341
|
textStyle = hoEditorFactory.docTree.styles[currRange.npEnd.node.styleIndex];
|
|
91419
91342
|
if (!(textStyle.strikeout && currRange.npEnd.node.text.length > 0)) {
|
|
91420
|
-
_context3.next =
|
|
91343
|
+
_context3.next = 12;
|
|
91421
91344
|
break;
|
|
91422
91345
|
}
|
|
91423
|
-
|
|
91346
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("该内容当前已处于删除状态!");
|
|
91424
91347
|
this._isError = true;
|
|
91425
91348
|
return _context3.abrupt("return");
|
|
91426
|
-
case
|
|
91427
|
-
nodes =
|
|
91349
|
+
case 12:
|
|
91350
|
+
nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._startPath, this._endPath); // const npFirst = hoEditorFactory.docTree.findNodePositionByPath(this._startPath);
|
|
91428
91351
|
// if (npFirst && npFirst.node) {
|
|
91429
91352
|
// //const parentNode = hoEditorFactory.docTree.getParentNode(this._startPath);
|
|
91430
91353
|
// //if (parentNode) {
|
|
@@ -91433,138 +91356,138 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91433
91356
|
// if (!nodes.includes(npFirst.node)) nodes.splice(0, 0, npFirst.node);
|
|
91434
91357
|
// //}
|
|
91435
91358
|
// }
|
|
91436
|
-
if (!(
|
|
91437
|
-
_context3.next =
|
|
91359
|
+
if (!(paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_41__/* .PaintState */ .Dh.psDesign && !this._isForceDelete)) {
|
|
91360
|
+
_context3.next = 75;
|
|
91438
91361
|
break;
|
|
91439
91362
|
}
|
|
91440
91363
|
lastNode = nodes[nodes.length - 1];
|
|
91441
|
-
if (!(lastNode instanceof
|
|
91442
|
-
_context3.next =
|
|
91364
|
+
if (!(lastNode instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__/* .MarkNode */ .j && lastNode.MarkNodeType === 0)) {
|
|
91365
|
+
_context3.next = 23;
|
|
91443
91366
|
break;
|
|
91444
91367
|
}
|
|
91445
91368
|
if (!(nodes.length === 1)) {
|
|
91446
|
-
_context3.next =
|
|
91369
|
+
_context3.next = 20;
|
|
91447
91370
|
break;
|
|
91448
91371
|
}
|
|
91449
91372
|
return _context3.abrupt("return");
|
|
91450
|
-
case
|
|
91373
|
+
case 20:
|
|
91451
91374
|
ePath = hoEditorFactory.docTree.getNodeLastPath(lastNode.previousLeaf());
|
|
91452
91375
|
hoEditorFactory.docTree.curDomRange.endPath = ePath;
|
|
91453
91376
|
nodes.splice(nodes.length - 1, 1);
|
|
91454
|
-
case
|
|
91455
|
-
if (!(nodes.length === 1 && nodes[0] instanceof
|
|
91456
|
-
_context3.next =
|
|
91377
|
+
case 23:
|
|
91378
|
+
if (!(nodes.length === 1 && nodes[0] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__/* .MarkNode */ .j && nodes[0].MarkNodeType === 2)) {
|
|
91379
|
+
_context3.next = 25;
|
|
91457
91380
|
break;
|
|
91458
91381
|
}
|
|
91459
91382
|
return _context3.abrupt("return");
|
|
91460
|
-
case
|
|
91461
|
-
if (nodes.length === 2 && nodes[0] instanceof
|
|
91383
|
+
case 25:
|
|
91384
|
+
if (nodes.length === 2 && nodes[0] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__/* .MarkNode */ .j && nodes[0].MarkNodeType === 0) {
|
|
91462
91385
|
sPath = nodes[0].getNodePath();
|
|
91463
91386
|
hoEditorFactory.docTree.curDomRange.startPath = sPath;
|
|
91464
91387
|
nodes.splice(0, 1);
|
|
91465
91388
|
}
|
|
91466
|
-
if (!(nodes.length === 2 && nodes[1] instanceof
|
|
91467
|
-
_context3.next =
|
|
91389
|
+
if (!(nodes.length === 2 && nodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__/* .MarkNode */ .j && nodes[1].MarkNodeType === 2 && !nodes[1].parentNode.canModifyContent)) {
|
|
91390
|
+
_context3.next = 31;
|
|
91468
91391
|
break;
|
|
91469
91392
|
}
|
|
91470
|
-
|
|
91471
|
-
|
|
91393
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
|
|
91394
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("该元素不允许编辑。");
|
|
91472
91395
|
this._isError = true;
|
|
91473
91396
|
return _context3.abrupt("return");
|
|
91474
|
-
case 30:
|
|
91475
|
-
n = 0;
|
|
91476
91397
|
case 31:
|
|
91398
|
+
n = 0;
|
|
91399
|
+
case 32:
|
|
91477
91400
|
if (!(n < nodes.length)) {
|
|
91478
|
-
_context3.next =
|
|
91401
|
+
_context3.next = 74;
|
|
91479
91402
|
break;
|
|
91480
91403
|
}
|
|
91481
91404
|
node = nodes[n];
|
|
91482
|
-
if (!(node instanceof
|
|
91483
|
-
_context3.next =
|
|
91405
|
+
if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_32__/* .ControlNode */ .w && !(node instanceof _dom_treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_40__/* .RareCharNode */ .Q) || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re)) {
|
|
91406
|
+
_context3.next = 45;
|
|
91484
91407
|
break;
|
|
91485
91408
|
}
|
|
91486
91409
|
if (node.isAllowDelete) {
|
|
91487
|
-
_context3.next =
|
|
91410
|
+
_context3.next = 45;
|
|
91488
91411
|
break;
|
|
91489
91412
|
}
|
|
91490
91413
|
tip = "";
|
|
91491
|
-
if (node instanceof
|
|
91414
|
+
if (node instanceof _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_33__/* .RadioAndCheckBoxNode */ .Yh && node.controlStyle === "RadioBox") {
|
|
91492
91415
|
tip = "单选框";
|
|
91493
91416
|
}
|
|
91494
|
-
if (node instanceof
|
|
91417
|
+
if (node instanceof _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_33__/* .RadioAndCheckBoxNode */ .Yh && node.controlStyle === "CheckBox") {
|
|
91495
91418
|
tip = "复选框";
|
|
91496
91419
|
}
|
|
91497
|
-
if (node instanceof
|
|
91420
|
+
if (node instanceof _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_34__/* .DateTimeNode */ .Z) {
|
|
91498
91421
|
tip = "日期时间";
|
|
91499
91422
|
}
|
|
91500
|
-
if (node instanceof
|
|
91423
|
+
if (node instanceof _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_35__/* .DownListNode */ .yF) {
|
|
91501
91424
|
tip = "下拉列表";
|
|
91502
91425
|
}
|
|
91503
|
-
|
|
91504
|
-
|
|
91426
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
|
|
91427
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn(tip + "元素已设置为不允许删除。");
|
|
91505
91428
|
this._isError = true;
|
|
91506
91429
|
return _context3.abrupt("return");
|
|
91507
|
-
case
|
|
91508
|
-
if (!(node instanceof
|
|
91509
|
-
_context3.next =
|
|
91430
|
+
case 45:
|
|
91431
|
+
if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__/* .MarkNode */ .j)) {
|
|
91432
|
+
_context3.next = 56;
|
|
91510
91433
|
break;
|
|
91511
91434
|
}
|
|
91512
91435
|
if (!(node.MarkNodeType === 0)) {
|
|
91513
|
-
_context3.next =
|
|
91436
|
+
_context3.next = 51;
|
|
91514
91437
|
break;
|
|
91515
91438
|
}
|
|
91516
|
-
|
|
91517
|
-
|
|
91439
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
|
|
91440
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("元素已设置为不允许删除,请正确操作。");
|
|
91518
91441
|
this._isError = true;
|
|
91519
91442
|
return _context3.abrupt("return");
|
|
91520
|
-
case
|
|
91521
|
-
if (!(node.MarkNodeType === 2 && node.parentNode instanceof
|
|
91522
|
-
_context3.next =
|
|
91443
|
+
case 51:
|
|
91444
|
+
if (!(node.MarkNodeType === 2 && node.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re && !node.parentNode.canModifyContent)) {
|
|
91445
|
+
_context3.next = 56;
|
|
91523
91446
|
break;
|
|
91524
91447
|
}
|
|
91525
|
-
|
|
91526
|
-
|
|
91448
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
|
|
91449
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("该元素不允许编辑、删除,请正确操作。");
|
|
91527
91450
|
this._isError = true;
|
|
91528
91451
|
return _context3.abrupt("return");
|
|
91529
|
-
case
|
|
91530
|
-
if (!(node instanceof
|
|
91531
|
-
_context3.next =
|
|
91452
|
+
case 56:
|
|
91453
|
+
if (!(node instanceof _dom_treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_39__/* .TableFormula */ .N)) {
|
|
91454
|
+
_context3.next = 61;
|
|
91532
91455
|
break;
|
|
91533
91456
|
}
|
|
91534
|
-
|
|
91535
|
-
|
|
91457
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
|
|
91458
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("不允许删除表格计算公式");
|
|
91536
91459
|
this._isError = true;
|
|
91537
91460
|
return _context3.abrupt("return");
|
|
91538
|
-
case
|
|
91539
|
-
if (!(node instanceof
|
|
91540
|
-
_context3.next =
|
|
91461
|
+
case 61:
|
|
91462
|
+
if (!(node instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_30__/* .TableNode */ .Fh && !node.tableProperty.canDelTable)) {
|
|
91463
|
+
_context3.next = 66;
|
|
91541
91464
|
break;
|
|
91542
91465
|
}
|
|
91543
|
-
|
|
91544
|
-
|
|
91466
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
|
|
91467
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("不允许删除表格");
|
|
91545
91468
|
this._isError = true;
|
|
91546
91469
|
return _context3.abrupt("return");
|
|
91547
|
-
case
|
|
91548
|
-
if (!(node instanceof
|
|
91549
|
-
_context3.next =
|
|
91470
|
+
case 66:
|
|
91471
|
+
if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_37__/* .SignNode */ .N)) {
|
|
91472
|
+
_context3.next = 71;
|
|
91550
91473
|
break;
|
|
91551
91474
|
}
|
|
91552
|
-
|
|
91553
|
-
|
|
91475
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.destroy();
|
|
91476
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_42__/* ["default"] */ .Z.warn("不允许直接删除签名!");
|
|
91554
91477
|
this._isError = true;
|
|
91555
91478
|
return _context3.abrupt("return");
|
|
91556
|
-
case
|
|
91479
|
+
case 71:
|
|
91557
91480
|
n++;
|
|
91558
|
-
_context3.next =
|
|
91481
|
+
_context3.next = 32;
|
|
91559
91482
|
break;
|
|
91560
|
-
case
|
|
91561
|
-
if (nodes.length === 1 && nodes[0] instanceof
|
|
91483
|
+
case 74:
|
|
91484
|
+
if (nodes.length === 1 && nodes[0] instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re && !nodes[0].isAllowDelete && nodes[0].childNodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_25__/* .MarkNode */ .j) {
|
|
91562
91485
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._endPath);
|
|
91563
91486
|
}
|
|
91564
|
-
case
|
|
91487
|
+
case 75:
|
|
91565
91488
|
pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
|
|
91566
|
-
if (!(pnode && pnode instanceof
|
|
91567
|
-
_context3.next =
|
|
91489
|
+
if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_24__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
|
|
91490
|
+
_context3.next = 81;
|
|
91568
91491
|
break;
|
|
91569
91492
|
}
|
|
91570
91493
|
//判断当前TextInputField是否可编辑
|
|
@@ -91576,19 +91499,19 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91576
91499
|
// this._undo.commit();
|
|
91577
91500
|
});
|
|
91578
91501
|
if (_res[0]) {
|
|
91579
|
-
_context3.next =
|
|
91502
|
+
_context3.next = 81;
|
|
91580
91503
|
break;
|
|
91581
91504
|
}
|
|
91582
91505
|
return _context3.abrupt("return");
|
|
91583
|
-
case
|
|
91584
|
-
changeEvent = new
|
|
91506
|
+
case 81:
|
|
91507
|
+
changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_18__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_16__/* .DocAction */ .gk.daUndoInsert, currRange.startPath, ""); //FIXME:deleteRange函数完成后调用这个
|
|
91585
91508
|
// hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
|
|
91586
91509
|
if (currRange.npStart.node && currRange.npEnd.node) {
|
|
91587
|
-
_context3.next =
|
|
91510
|
+
_context3.next = 84;
|
|
91588
91511
|
break;
|
|
91589
91512
|
}
|
|
91590
|
-
throw
|
|
91591
|
-
case
|
|
91513
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_26__/* .Exception */ .P.NodeNotFound();
|
|
91514
|
+
case 84:
|
|
91592
91515
|
// const [startPath, endPath] = DomRange.skipStartEndTablePath(
|
|
91593
91516
|
// this._hoEditorFactory,
|
|
91594
91517
|
// currRange.startPath,
|
|
@@ -91597,20 +91520,20 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91597
91520
|
startPath = currRange.startPath;
|
|
91598
91521
|
endPath = currRange.endPath;
|
|
91599
91522
|
changeEvent.oldEndPath = endPath;
|
|
91600
|
-
changeEvent.oldDrawTreeLines = new
|
|
91523
|
+
changeEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_29__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(startPath, endPath);
|
|
91601
91524
|
res = this.deleteRange(currRange.endPath, currRange.startPath);
|
|
91602
91525
|
if (!(res == 1)) {
|
|
91603
|
-
_context3.next =
|
|
91526
|
+
_context3.next = 96;
|
|
91604
91527
|
break;
|
|
91605
91528
|
}
|
|
91606
91529
|
changeEvent.beforeChangePath = startPath;
|
|
91607
91530
|
changeEvent.afterChangePath = this._tmp.start;
|
|
91608
|
-
_context3.next =
|
|
91531
|
+
_context3.next = 94;
|
|
91609
91532
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
91610
|
-
case
|
|
91611
|
-
cgEvent = new
|
|
91533
|
+
case 94:
|
|
91534
|
+
cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_22__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, new _dom_DomRange__WEBPACK_IMPORTED_MODULE_19__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.start));
|
|
91612
91535
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
91613
|
-
case
|
|
91536
|
+
case 96:
|
|
91614
91537
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
|
|
91615
91538
|
hoEditorFactory.drawTree.moveCaretToPath(this._tmp.start);
|
|
91616
91539
|
aNode = currRange.npStart.node;
|
|
@@ -91618,12 +91541,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
91618
91541
|
pnode = aNode.parentNode;
|
|
91619
91542
|
}
|
|
91620
91543
|
if (!(aNode && pnode)) {
|
|
91621
|
-
_context3.next =
|
|
91544
|
+
_context3.next = 103;
|
|
91622
91545
|
break;
|
|
91623
91546
|
}
|
|
91624
|
-
_context3.next =
|
|
91547
|
+
_context3.next = 103;
|
|
91625
91548
|
return this.ParentRepaint(pnode);
|
|
91626
|
-
case
|
|
91549
|
+
case 103:
|
|
91627
91550
|
case "end":
|
|
91628
91551
|
return _context3.stop();
|
|
91629
91552
|
}
|
|
@@ -94350,7 +94273,6 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
94350
94273
|
_this.letterSpacing = spacing ? spacing : 0;
|
|
94351
94274
|
_this._chinesWordWidth = _this._getMeasuredWidth('中');
|
|
94352
94275
|
_this._docWidth = 0;
|
|
94353
|
-
var isFullLine = false;
|
|
94354
94276
|
var lastTextWidth = 0;
|
|
94355
94277
|
if (text) {
|
|
94356
94278
|
for (var j = 0, jl = text.length; j < jl; j++) {
|
|
@@ -94379,15 +94301,8 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
94379
94301
|
}, {
|
|
94380
94302
|
key: "_prepContext",
|
|
94381
94303
|
value: function _prepContext(ctx) {
|
|
94382
|
-
// const strLowFont = this.font.toLowerCase();
|
|
94383
|
-
// ctx.imageSmoothingEnabled = true;
|
|
94384
|
-
// ctx.imageSmoothingQuality = "high";
|
|
94385
|
-
// if(ctx instanceof CanvasRenderingContext2D) {
|
|
94386
|
-
// ctx.font = strLowFont.replace("bold", "") || "12pt 宋体";
|
|
94387
|
-
// } else {
|
|
94388
94304
|
ctx.font = this.font || '12pt SimSun';
|
|
94389
94305
|
ctx.letterSpacing = this._letterSpacing;
|
|
94390
|
-
// }
|
|
94391
94306
|
ctx.textAlign = this.textAlign || 'left';
|
|
94392
94307
|
ctx.textBaseline = this.textBaseline || 'top';
|
|
94393
94308
|
ctx.lineJoin = 'miter';
|
|
@@ -94403,14 +94318,8 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
94403
94318
|
ctx.save();
|
|
94404
94319
|
this._prepContext(ctx);
|
|
94405
94320
|
}
|
|
94406
|
-
// const lineHeight = this.lineHeight || this.getMeasuredLineHeight();
|
|
94407
94321
|
ctx.imageSmoothingEnabled = true;
|
|
94408
94322
|
var col = this.color || '#000';
|
|
94409
|
-
// if(commonParamList.get('viewBlack')) { // 预览时设置全部
|
|
94410
|
-
// col = "#000";
|
|
94411
|
-
// }
|
|
94412
|
-
// const strLowFont = this.font.toLowerCase();
|
|
94413
|
-
// const isbold = strLowFont.indexOf("bold") >= 0;
|
|
94414
94323
|
if (this.outline) {
|
|
94415
94324
|
ctx.strokeStyle = col;
|
|
94416
94325
|
ctx.lineWidth = this.outline * 1;
|
|
@@ -94418,37 +94327,27 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
94418
94327
|
ctx.fillStyle = col;
|
|
94419
94328
|
}
|
|
94420
94329
|
ctx = this._prepContext(ctx);
|
|
94421
|
-
// ctx.font = this.font;
|
|
94422
94330
|
// u2003 html实体全角空格( ) 转换为中文全角空格 u2002 html实体半角空格( )转换为普通空格
|
|
94423
94331
|
var str = this.text.replace(/\ /g, ' ').replace(/\ /g, ' ');
|
|
94424
94332
|
var left = 0;
|
|
94425
94333
|
var docWidth = 0;
|
|
94426
|
-
|
|
94427
|
-
|
|
94428
|
-
|
|
94429
|
-
|
|
94430
|
-
|
|
94431
|
-
|
|
94432
|
-
|
|
94433
|
-
|
|
94434
|
-
} else wordW = this._getMeasuredWidth(str[j]);
|
|
94435
|
-
// if (brecordSpace && (str[j] ==' '||str[j] ==' '||str[j] ==' ' )) {
|
|
94436
|
-
// charStart += 1;
|
|
94437
|
-
// } else {
|
|
94438
|
-
// brecordSpace = false;
|
|
94439
|
-
// }
|
|
94440
|
-
if (ctx instanceof CanvasRenderingContext2D) {
|
|
94441
|
-
// if ((ctx as any).name ==undefined ||(ctx as any).name!=='canvas2svg') {
|
|
94334
|
+
if (ctx instanceof CanvasRenderingContext2D) {
|
|
94335
|
+
for (var j = 0, jl = str.length; j < jl; j++) {
|
|
94336
|
+
var wordW = 0;
|
|
94337
|
+
if (str.charCodeAt(j) >= 10000) {
|
|
94338
|
+
wordW = this._chinesWordWidth;
|
|
94339
|
+
} else {
|
|
94340
|
+
wordW = this._getMeasuredWidth(str[j]);
|
|
94341
|
+
}
|
|
94442
94342
|
if (this.outline) {
|
|
94443
94343
|
ctx.strokeText(str[j], left, 0, this.maxWidth || 0xffff);
|
|
94444
94344
|
} else {
|
|
94445
94345
|
ctx.fillText(str[j], left, 0, this.maxWidth || 0xffff);
|
|
94446
94346
|
}
|
|
94347
|
+
left += wordW + this._letterSpacing;
|
|
94348
|
+
docWidth += wordW;
|
|
94447
94349
|
}
|
|
94448
|
-
|
|
94449
|
-
docWidth += wordW;
|
|
94450
|
-
}
|
|
94451
|
-
if (!(ctx instanceof CanvasRenderingContext2D)) {
|
|
94350
|
+
} else if (ctx) {
|
|
94452
94351
|
if (this.outline) {
|
|
94453
94352
|
ctx.strokeText(str, 0, 0, this.maxWidth || 0xffff);
|
|
94454
94353
|
} else {
|
|
@@ -94460,11 +94359,6 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
94460
94359
|
}
|
|
94461
94360
|
}
|
|
94462
94361
|
this._docWidth = docWidth;
|
|
94463
|
-
// this._dWidth = left > 0 ? left - this._letterSpacing : 0;
|
|
94464
|
-
// if (o) {
|
|
94465
|
-
// o.width = this._dWidth;
|
|
94466
|
-
// o.height = this._node.dHeight;
|
|
94467
|
-
// }
|
|
94468
94362
|
if (!paint) {
|
|
94469
94363
|
ctx.restore();
|
|
94470
94364
|
}
|
|
@@ -210291,7 +210185,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
210291
210185
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
210292
210186
|
var ParagraphNode = __webpack_require__(67945);
|
|
210293
210187
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
210294
|
-
/* harmony default export */ var version = ('3.1.
|
|
210188
|
+
/* harmony default export */ var version = ('3.1.135');
|
|
210295
210189
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
210296
210190
|
var PoperTipText = __webpack_require__(84531);
|
|
210297
210191
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -227152,9 +227046,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
227152
227046
|
return isWidthValid && isHeightValid;
|
|
227153
227047
|
}
|
|
227154
227048
|
}, {
|
|
227155
|
-
key: "
|
|
227156
|
-
value: function
|
|
227049
|
+
key: "waitLoadImageCount",
|
|
227050
|
+
value: function waitLoadImageCount(callback) {
|
|
227157
227051
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
227052
|
+
if (hoEditorFactory.loadImageCount > 0) {
|
|
227053
|
+
hoEditorFactory.loadImageCallback = callback;
|
|
227054
|
+
} else {
|
|
227055
|
+
callback();
|
|
227056
|
+
}
|
|
227158
227057
|
}
|
|
227159
227058
|
}, {
|
|
227160
227059
|
key: "scrollToLastLine",
|