hoeditor-web 3.1.76 → 3.1.77
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.umd.js +105 -87
- package/lib/hoeditor.umd.min.js +4 -4
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -35748,9 +35748,9 @@ var Print = /*#__PURE__*/function () {
|
|
|
35748
35748
|
if (isPrintFirstDoc && firstPageIndex == -1) {
|
|
35749
35749
|
hoEditorFactory.docTree.mainNodes.forEach(function (node) {
|
|
35750
35750
|
if (node instanceof ParagraphNode/* ParagraphNode */.C && node.printAsSinglePage) {
|
|
35751
|
-
if (node.drawlines[0].parent instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
35751
|
+
if (firstPageIndex == -1 && node.drawlines[0].parent instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
35752
35752
|
firstPageIndex = node.drawlines[0].parent.pageIndex;
|
|
35753
|
-
} else if (node.drawlines[0] instanceof DrawTable/* DrawTable */.t && node.drawlines[0].drawPageTables[0].parent instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
35753
|
+
} else if (firstPageIndex == -1 && node.drawlines[0] instanceof DrawTable/* DrawTable */.t && node.drawlines[0].drawPageTables[0].parent instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
35754
35754
|
firstPageIndex = node.drawlines[0].drawPageTables[0].parent.pageIndex;
|
|
35755
35755
|
}
|
|
35756
35756
|
}
|
|
@@ -87642,7 +87642,7 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
87642
87642
|
/* harmony export */ F: function() { return /* binding */ NodesDeleteUndoUnit; }
|
|
87643
87643
|
/* harmony export */ });
|
|
87644
87644
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(94310);
|
|
87645
|
-
/* harmony import */ var
|
|
87645
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(40735);
|
|
87646
87646
|
/* 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);
|
|
87647
87647
|
/* 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);
|
|
87648
87648
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(27222);
|
|
@@ -87689,11 +87689,13 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
87689
87689
|
/* harmony import */ var _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(99152);
|
|
87690
87690
|
/* harmony import */ var _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(92501);
|
|
87691
87691
|
/* harmony import */ var _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(45712);
|
|
87692
|
-
/* harmony import */ var
|
|
87693
|
-
/* harmony import */ var
|
|
87694
|
-
/* harmony import */ var
|
|
87695
|
-
/* harmony import */ var
|
|
87696
|
-
/* harmony import */ var
|
|
87692
|
+
/* harmony import */ var _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(64465);
|
|
87693
|
+
/* harmony import */ var _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(24701);
|
|
87694
|
+
/* harmony import */ var _dom_NodePosition__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(42921);
|
|
87695
|
+
/* harmony import */ var _dom_treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(90832);
|
|
87696
|
+
/* harmony import */ var _dom_treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(34910);
|
|
87697
|
+
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(51760);
|
|
87698
|
+
|
|
87697
87699
|
|
|
87698
87700
|
|
|
87699
87701
|
|
|
@@ -88102,7 +88104,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88102
88104
|
var epnode = e.parentNode;
|
|
88103
88105
|
var pnode = epnode;
|
|
88104
88106
|
if (spnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re && epnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re && spnode != epnode) {
|
|
88105
|
-
var result =
|
|
88107
|
+
var result = _dom_NodePosition__WEBPACK_IMPORTED_MODULE_39__/* .NodePosition */ .F.nodePositionCompare(spnode.StartMarkNode, epnode.StartMarkNode);
|
|
88106
88108
|
if (result < 0) {
|
|
88107
88109
|
pnode = spnode;
|
|
88108
88110
|
}
|
|
@@ -88166,25 +88168,39 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88166
88168
|
}
|
|
88167
88169
|
}, {
|
|
88168
88170
|
key: "ParentRepaint",
|
|
88169
|
-
value: function
|
|
88170
|
-
|
|
88171
|
-
|
|
88172
|
-
|
|
88173
|
-
|
|
88174
|
-
|
|
88175
|
-
|
|
88176
|
-
|
|
88177
|
-
|
|
88178
|
-
|
|
88179
|
-
|
|
88180
|
-
|
|
88181
|
-
|
|
88182
|
-
|
|
88183
|
-
|
|
88184
|
-
|
|
88185
|
-
|
|
88171
|
+
value: function () {
|
|
88172
|
+
var _ParentRepaint = (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 _callee2(Anode) {
|
|
88173
|
+
var hoEditorFactory, contentMark, styleIndex, contentMarkNode, insertPath;
|
|
88174
|
+
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) {
|
|
88175
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
88176
|
+
case 0:
|
|
88177
|
+
if (Anode && Anode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re) {
|
|
88178
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
88179
|
+
if (Anode.childNodes.length === 2) {
|
|
88180
|
+
contentMark = Anode.childNodes2[1];
|
|
88181
|
+
styleIndex = Anode.childNodes[0].styleIndex;
|
|
88182
|
+
contentMarkNode = new _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j(this._hoEditorFactoryID, Anode.childNodes[0].rootNodes, Anode, _dom_treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_21__/* .NodeType */ .Jq.ntMark, contentMark.text, styleIndex, _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNodeType */ .q.mtContent);
|
|
88183
|
+
insertPath = hoEditorFactory.docTree.getNodeLastPath(Anode.childNodes[0]);
|
|
88184
|
+
hoEditorFactory.undoService.begin();
|
|
88185
|
+
hoEditorFactory.undoService.add(new _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, insertPath, contentMarkNode));
|
|
88186
|
+
hoEditorFactory.undoService.commit();
|
|
88187
|
+
// Anode.childNodes.splice(1, 0, contentMarkNode);
|
|
88188
|
+
// await (Anode as TextInputFieldNode).update(0);
|
|
88189
|
+
} else {
|
|
88190
|
+
Anode.update();
|
|
88191
|
+
}
|
|
88192
|
+
}
|
|
88193
|
+
case 1:
|
|
88194
|
+
case "end":
|
|
88195
|
+
return _context2.stop();
|
|
88196
|
+
}
|
|
88197
|
+
}, _callee2, this);
|
|
88198
|
+
}));
|
|
88199
|
+
function ParentRepaint(_x) {
|
|
88200
|
+
return _ParentRepaint.apply(this, arguments);
|
|
88186
88201
|
}
|
|
88187
|
-
|
|
88202
|
+
return ParentRepaint;
|
|
88203
|
+
}()
|
|
88188
88204
|
}, {
|
|
88189
88205
|
key: "redo",
|
|
88190
88206
|
value: function redo() {
|
|
@@ -88194,32 +88210,32 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88194
88210
|
}, {
|
|
88195
88211
|
key: "doRedo",
|
|
88196
88212
|
value: function () {
|
|
88197
|
-
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
|
|
88213
|
+
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() {
|
|
88198
88214
|
var _currRange$npEnd$node;
|
|
88199
88215
|
var currRange, hoEditorFactory, textStyle, nodes, lastNode, ePath, sPath, n, node, tip, pnode, pTiNode, _res, changeEvent, startPath, endPath, res, cgEvent, aNode;
|
|
88200
|
-
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
|
|
88201
|
-
while (1) switch (
|
|
88216
|
+
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) {
|
|
88217
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
88202
88218
|
case 0:
|
|
88203
88219
|
this.initParam();
|
|
88204
88220
|
currRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
|
|
88205
88221
|
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_32__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
88206
88222
|
hoEditorFactory.docTree.curDomRange = currRange;
|
|
88207
|
-
if (!(hoEditorFactory.drawTree.paintStatus ===
|
|
88208
|
-
|
|
88223
|
+
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_42__/* .PaintState */ .Dh.psReview)) {
|
|
88224
|
+
_context3.next = 11;
|
|
88209
88225
|
break;
|
|
88210
88226
|
}
|
|
88211
88227
|
if (!(currRange.npEnd.node && currRange.npEnd.node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_18__/* .TextNode */ .R)) {
|
|
88212
|
-
|
|
88228
|
+
_context3.next = 11;
|
|
88213
88229
|
break;
|
|
88214
88230
|
}
|
|
88215
88231
|
textStyle = hoEditorFactory.docTree.styles[currRange.npEnd.node.styleIndex];
|
|
88216
88232
|
if (!(textStyle.strikeout && currRange.npEnd.node.text.length > 0)) {
|
|
88217
|
-
|
|
88233
|
+
_context3.next = 11;
|
|
88218
88234
|
break;
|
|
88219
88235
|
}
|
|
88220
|
-
|
|
88236
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn("该内容当前已处于删除状态!");
|
|
88221
88237
|
this._isError = true;
|
|
88222
|
-
return
|
|
88238
|
+
return _context3.abrupt("return");
|
|
88223
88239
|
case 11:
|
|
88224
88240
|
nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._startPath, this._endPath); // const npFirst = hoEditorFactory.docTree.findNodePositionByPath(this._startPath);
|
|
88225
88241
|
// if (npFirst && npFirst.node) {
|
|
@@ -88230,30 +88246,30 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88230
88246
|
// if (!nodes.includes(npFirst.node)) nodes.splice(0, 0, npFirst.node);
|
|
88231
88247
|
// //}
|
|
88232
88248
|
// }
|
|
88233
|
-
if (!(hoEditorFactory.drawTree.paintStatus !==
|
|
88234
|
-
|
|
88249
|
+
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_42__/* .PaintState */ .Dh.psDesign && !this._isForceDelete)) {
|
|
88250
|
+
_context3.next = 68;
|
|
88235
88251
|
break;
|
|
88236
88252
|
}
|
|
88237
88253
|
lastNode = nodes[nodes.length - 1];
|
|
88238
88254
|
if (!(lastNode instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j && lastNode.MarkNodeType === 0)) {
|
|
88239
|
-
|
|
88255
|
+
_context3.next = 22;
|
|
88240
88256
|
break;
|
|
88241
88257
|
}
|
|
88242
88258
|
if (!(nodes.length === 1)) {
|
|
88243
|
-
|
|
88259
|
+
_context3.next = 19;
|
|
88244
88260
|
break;
|
|
88245
88261
|
}
|
|
88246
|
-
return
|
|
88262
|
+
return _context3.abrupt("return");
|
|
88247
88263
|
case 19:
|
|
88248
88264
|
ePath = hoEditorFactory.docTree.getNodeLastPath(lastNode.previousLeaf());
|
|
88249
88265
|
hoEditorFactory.docTree.curDomRange.endPath = ePath;
|
|
88250
88266
|
nodes.splice(nodes.length - 1, 1);
|
|
88251
88267
|
case 22:
|
|
88252
88268
|
if (!(nodes.length === 1 && nodes[0] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j && nodes[0].MarkNodeType === 2)) {
|
|
88253
|
-
|
|
88269
|
+
_context3.next = 24;
|
|
88254
88270
|
break;
|
|
88255
88271
|
}
|
|
88256
|
-
return
|
|
88272
|
+
return _context3.abrupt("return");
|
|
88257
88273
|
case 24:
|
|
88258
88274
|
if (nodes.length === 2 && nodes[0] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j && nodes[0].MarkNodeType === 0) {
|
|
88259
88275
|
sPath = nodes[0].getNodePath();
|
|
@@ -88261,18 +88277,18 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88261
88277
|
nodes.splice(0, 1);
|
|
88262
88278
|
}
|
|
88263
88279
|
if (!(nodes.length === 2 && nodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j && nodes[1].MarkNodeType === 2 && !nodes[1].parentNode.canModifyContent)) {
|
|
88264
|
-
|
|
88280
|
+
_context3.next = 30;
|
|
88265
88281
|
break;
|
|
88266
88282
|
}
|
|
88267
|
-
|
|
88268
|
-
|
|
88283
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.destroy();
|
|
88284
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn("该元素不允许编辑。");
|
|
88269
88285
|
this._isError = true;
|
|
88270
|
-
return
|
|
88286
|
+
return _context3.abrupt("return");
|
|
88271
88287
|
case 30:
|
|
88272
88288
|
n = 0;
|
|
88273
88289
|
case 31:
|
|
88274
88290
|
if (!(n < nodes.length)) {
|
|
88275
|
-
|
|
88291
|
+
_context3.next = 67;
|
|
88276
88292
|
break;
|
|
88277
88293
|
}
|
|
88278
88294
|
node = nodes[n]; // if (node instanceof MarkNode && node.parentNode instanceof TextInputFieldNode && node.MarkNodeType === 1 && !node.parentNode.isAllowDelete) {
|
|
@@ -88280,12 +88296,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88280
88296
|
// this._isError = true;
|
|
88281
88297
|
// return;
|
|
88282
88298
|
// }
|
|
88283
|
-
if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_33__/* .ControlNode */ .w && !(node instanceof
|
|
88284
|
-
|
|
88299
|
+
if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_33__/* .ControlNode */ .w && !(node instanceof _dom_treeNode_RareCharNode__WEBPACK_IMPORTED_MODULE_41__/* .RareCharNode */ .Q) || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re)) {
|
|
88300
|
+
_context3.next = 44;
|
|
88285
88301
|
break;
|
|
88286
88302
|
}
|
|
88287
88303
|
if (node.isAllowDelete) {
|
|
88288
|
-
|
|
88304
|
+
_context3.next = 44;
|
|
88289
88305
|
break;
|
|
88290
88306
|
}
|
|
88291
88307
|
tip = "";
|
|
@@ -88301,49 +88317,49 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88301
88317
|
if (node instanceof _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_36__/* .DownListNode */ .yF) {
|
|
88302
88318
|
tip = "下拉列表";
|
|
88303
88319
|
}
|
|
88304
|
-
|
|
88305
|
-
|
|
88320
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.destroy();
|
|
88321
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn(tip + "元素已设置为不允许删除。");
|
|
88306
88322
|
this._isError = true;
|
|
88307
|
-
return
|
|
88323
|
+
return _context3.abrupt("return");
|
|
88308
88324
|
case 44:
|
|
88309
88325
|
if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j && node.MarkNodeType === 0)) {
|
|
88310
|
-
|
|
88326
|
+
_context3.next = 49;
|
|
88311
88327
|
break;
|
|
88312
88328
|
}
|
|
88313
|
-
|
|
88314
|
-
|
|
88329
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.destroy();
|
|
88330
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn("元素已设置为不允许删除,请正确操作。");
|
|
88315
88331
|
this._isError = true;
|
|
88316
|
-
return
|
|
88332
|
+
return _context3.abrupt("return");
|
|
88317
88333
|
case 49:
|
|
88318
|
-
if (!(node instanceof
|
|
88319
|
-
|
|
88334
|
+
if (!(node instanceof _dom_treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_40__/* .TableFormula */ .N)) {
|
|
88335
|
+
_context3.next = 54;
|
|
88320
88336
|
break;
|
|
88321
88337
|
}
|
|
88322
|
-
|
|
88323
|
-
|
|
88338
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.destroy();
|
|
88339
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn("不允许删除表格计算公式");
|
|
88324
88340
|
this._isError = true;
|
|
88325
|
-
return
|
|
88341
|
+
return _context3.abrupt("return");
|
|
88326
88342
|
case 54:
|
|
88327
88343
|
if (!(node instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_31__/* .TableNode */ .Fh)) {
|
|
88328
|
-
|
|
88344
|
+
_context3.next = 59;
|
|
88329
88345
|
break;
|
|
88330
88346
|
}
|
|
88331
|
-
|
|
88332
|
-
|
|
88347
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.destroy();
|
|
88348
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn("不允许删除表格");
|
|
88333
88349
|
this._isError = true;
|
|
88334
|
-
return
|
|
88350
|
+
return _context3.abrupt("return");
|
|
88335
88351
|
case 59:
|
|
88336
|
-
if (!(node instanceof
|
|
88337
|
-
|
|
88352
|
+
if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_38__/* .SignNode */ .N)) {
|
|
88353
|
+
_context3.next = 64;
|
|
88338
88354
|
break;
|
|
88339
88355
|
}
|
|
88340
|
-
|
|
88341
|
-
|
|
88356
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.destroy();
|
|
88357
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_43__/* ["default"] */ .Z.warn("不允许直接删除签名!");
|
|
88342
88358
|
this._isError = true;
|
|
88343
|
-
return
|
|
88359
|
+
return _context3.abrupt("return");
|
|
88344
88360
|
case 64:
|
|
88345
88361
|
n++;
|
|
88346
|
-
|
|
88362
|
+
_context3.next = 31;
|
|
88347
88363
|
break;
|
|
88348
88364
|
case 67:
|
|
88349
88365
|
if (nodes.length === 1 && nodes[0] instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re && !nodes[0].isAllowDelete && nodes[0].childNodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_26__/* .MarkNode */ .j) {
|
|
@@ -88352,7 +88368,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88352
88368
|
case 68:
|
|
88353
88369
|
pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
|
|
88354
88370
|
if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
|
|
88355
|
-
|
|
88371
|
+
_context3.next = 74;
|
|
88356
88372
|
break;
|
|
88357
88373
|
}
|
|
88358
88374
|
//判断当前TextInputField是否可编辑
|
|
@@ -88364,15 +88380,15 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88364
88380
|
// this._undo.commit();
|
|
88365
88381
|
});
|
|
88366
88382
|
if (_res[0]) {
|
|
88367
|
-
|
|
88383
|
+
_context3.next = 74;
|
|
88368
88384
|
break;
|
|
88369
88385
|
}
|
|
88370
|
-
return
|
|
88386
|
+
return _context3.abrupt("return");
|
|
88371
88387
|
case 74:
|
|
88372
88388
|
changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_19__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_17__/* .DocAction */ .gk.daUndoInsert, currRange.startPath, ""); //FIXME:deleteRange函数完成后调用这个
|
|
88373
88389
|
// hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
|
|
88374
88390
|
if (currRange.npStart.node && currRange.npEnd.node) {
|
|
88375
|
-
|
|
88391
|
+
_context3.next = 77;
|
|
88376
88392
|
break;
|
|
88377
88393
|
}
|
|
88378
88394
|
throw _events_Exception__WEBPACK_IMPORTED_MODULE_27__/* .Exception */ .P.NodeNotFound();
|
|
@@ -88388,12 +88404,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88388
88404
|
changeEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_30__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(startPath, endPath);
|
|
88389
88405
|
res = this.deleteRange(currRange.endPath, currRange.startPath);
|
|
88390
88406
|
if (!(res == 1)) {
|
|
88391
|
-
|
|
88407
|
+
_context3.next = 89;
|
|
88392
88408
|
break;
|
|
88393
88409
|
}
|
|
88394
88410
|
changeEvent.beforeChangePath = startPath;
|
|
88395
88411
|
changeEvent.afterChangePath = this._tmp.start;
|
|
88396
|
-
|
|
88412
|
+
_context3.next = 87;
|
|
88397
88413
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
88398
88414
|
case 87:
|
|
88399
88415
|
cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_23__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, new _dom_DomRange__WEBPACK_IMPORTED_MODULE_20__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.start));
|
|
@@ -88406,16 +88422,16 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88406
88422
|
pnode = aNode.parentNode;
|
|
88407
88423
|
}
|
|
88408
88424
|
if (!(aNode && pnode)) {
|
|
88409
|
-
|
|
88425
|
+
_context3.next = 96;
|
|
88410
88426
|
break;
|
|
88411
88427
|
}
|
|
88412
|
-
|
|
88428
|
+
_context3.next = 96;
|
|
88413
88429
|
return this.ParentRepaint(pnode);
|
|
88414
88430
|
case 96:
|
|
88415
88431
|
case "end":
|
|
88416
|
-
return
|
|
88432
|
+
return _context3.stop();
|
|
88417
88433
|
}
|
|
88418
|
-
},
|
|
88434
|
+
}, _callee3, this);
|
|
88419
88435
|
}));
|
|
88420
88436
|
function doRedo() {
|
|
88421
88437
|
return _doRedo.apply(this, arguments);
|
|
@@ -207008,7 +207024,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
207008
207024
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207009
207025
|
var ParagraphNode = __webpack_require__(67945);
|
|
207010
207026
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207011
|
-
/* harmony default export */ var version = ('3.1.
|
|
207027
|
+
/* harmony default export */ var version = ('3.1.77');
|
|
207012
207028
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
207013
207029
|
var PoperTipText = __webpack_require__(50987);
|
|
207014
207030
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -224024,7 +224040,7 @@ var EditController = /*#__PURE__*/function () {
|
|
|
224024
224040
|
message/* default */.Z.error("本列已完成签名,不允许修改编辑。");
|
|
224025
224041
|
return false;
|
|
224026
224042
|
}
|
|
224027
|
-
if (colProperty.editorProperty === TableProperty/* EditorProperty */.YS.OrderNumber) {
|
|
224043
|
+
if (pNode.table.tableProperty.addRowByOrder && colProperty.editorProperty === TableProperty/* EditorProperty */.YS.OrderNumber) {
|
|
224028
224044
|
message/* default */.Z.destroy();
|
|
224029
224045
|
message/* default */.Z.error("不允许编辑该列");
|
|
224030
224046
|
return false;
|
|
@@ -229150,7 +229166,7 @@ if(bch>>8){/* something left after dividing by 256 second time */throw new Error
|
|
|
229150
229166
|
*/return to8bitStream(text,flags).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)");};var beginPage=API.__private__.beginPage=function(format){pages[++page]=[];pagesContext[page]={objId:0,contentsObjId:0,userUnit:Number(userUnit),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(format[0]),topRightY:Number(format[1])}};_setPage(page);setOutputDestination(pages[currentPage]);};var _addPage=function _addPage(parmFormat,parmOrientation){var dimensions,width,height;orientation=parmOrientation||orientation;if(typeof parmFormat==="string"){dimensions=getPageFormat(parmFormat.toLowerCase());if(Array.isArray(dimensions)){width=dimensions[0];height=dimensions[1];}}if(Array.isArray(parmFormat)){width=parmFormat[0]*scaleFactor;height=parmFormat[1]*scaleFactor;}if(isNaN(width)){width=format[0];height=format[1];}if(width>14400||height>14400){jspdf_console.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400");width=Math.min(14400,width);height=Math.min(14400,height);}format=[width,height];switch(orientation.substr(0,1)){case"l":if(height>width){format=[height,width];}break;case"p":if(width>height){format=[height,width];}break;}beginPage(format);// Set line width
|
|
229151
229167
|
setLineWidth(lineWidth);// Set draw color
|
|
229152
229168
|
out(strokeColor);// resurrecting non-default line caps, joins
|
|
229153
|
-
if(lineCapID!==0){out(lineCapID+" J");}if(lineJoinID!==0){out(lineJoinID+" j");}events.publish("addPage",{pageNumber:page});};var _deletePage=function _deletePage(n){if(n>0&&n<=page){pages.splice(n,1);pagesContext.splice(n,1);page--;if(currentPage>page){currentPage=page;}jspdf_console.log(page);this.setPage(currentPage);}};var _setPage=function _setPage(n){if(n>0&&n<=page){currentPage=n;}};var getNumberOfPages=API.__private__.getNumberOfPages=API.getNumberOfPages=function(){return pages.length-1;};/**
|
|
229169
|
+
if(lineCapID!==0){out(lineCapID+" J");}if(lineJoinID!==0){out(lineJoinID+" j");}events.publish("addPage",{pageNumber:page});};var _deletePage=function _deletePage(n){if(n>0&&n<=page){pages.splice(n,1);pagesContext.splice(n,1);page--;if(currentPage>page){currentPage=page;}jspdf_console.log(page,'delete page');this.setPage(currentPage);}};var _setPage=function _setPage(n){if(n>0&&n<=page){currentPage=n;}};var getNumberOfPages=API.__private__.getNumberOfPages=API.getNumberOfPages=function(){return pages.length-1;};/**
|
|
229154
229170
|
* Returns a document-specific font key - a label assigned to a
|
|
229155
229171
|
* font name + font type combination at the time the font was added
|
|
229156
229172
|
* to the font inventory.
|
|
@@ -232035,7 +232051,9 @@ data=dataAsBinaryString||data;data=this.__addimage__.isArrayBuffer(data)?new Uin
|
|
|
232035
232051
|
var PNG=function(){var APNG_BLEND_OP_SOURCE,APNG_DISPOSE_OP_BACKGROUND,APNG_DISPOSE_OP_PREVIOUS,makeImage,scratchCanvas,scratchCtx;APNG_DISPOSE_OP_BACKGROUND=1;APNG_DISPOSE_OP_PREVIOUS=2;APNG_BLEND_OP_SOURCE=0;function PNG(data){var chunkSize,colors,palLen,delayDen,delayNum,frame,i,index,key,section,palShort,text,_i,_j,_ref;this.data=data;this.pos=8;this.palette=[];this.imgData=[];this.transparency={};this.animation=null;this.text={};frame=null;while(true){chunkSize=this.readUInt32();section=function(){var _i,_results;_results=[];for(i=_i=0;_i<4;i=++_i){_results.push(String.fromCharCode(this.data[this.pos++]));}return _results;}.call(this).join("");switch(section){case"IHDR":this.width=this.readUInt32();this.height=this.readUInt32();this.bits=this.data[this.pos++];this.colorType=this.data[this.pos++];this.compressionMethod=this.data[this.pos++];this.filterMethod=this.data[this.pos++];this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||Infinity,frames:[]};break;case"PLTE":this.palette=this.read(chunkSize);break;case"fcTL":if(frame){this.animation.frames.push(frame);}this.pos+=4;frame={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()};delayNum=this.readUInt16();delayDen=this.readUInt16()||100;frame.delay=1000*delayNum/delayDen;frame.disposeOp=this.data[this.pos++];frame.blendOp=this.data[this.pos++];frame.data=[];break;case"IDAT":case"fdAT":if(section==="fdAT"){this.pos+=4;chunkSize-=4;}data=(frame!=null?frame.data:void 0)||this.imgData;for(i=_i=0;0<=chunkSize?_i<chunkSize:_i>chunkSize;i=0<=chunkSize?++_i:--_i){data.push(this.data[this.pos++]);}break;case"tRNS":this.transparency={};switch(this.colorType){case 3:palLen=this.palette.length/3;this.transparency.indexed=this.read(chunkSize);if(this.transparency.indexed.length>palLen)throw new Error("More transparent colors than palette size");/*
|
|
232036
232052
|
* According to the PNG spec trns should be increased to the same size as palette if shorter
|
|
232037
232053
|
*/ //palShort = 255 - this.transparency.indexed.length;
|
|
232038
|
-
palShort=palLen-this.transparency.indexed.length;if(palShort>0){for(i=_j=0;0<=palShort?_j<palShort:_j>palShort;i=0<=palShort?++_j:--_j){this.transparency.indexed.push(255);}}break;case 0:this.transparency.grayscale=this.read(chunkSize)[0];break;case 2:this.transparency.rgb=this.read(chunkSize);}break;case"tEXt":text=this.read(chunkSize);index=text.indexOf(0);key=String.fromCharCode.apply(String,text.slice(0,index));this.text[key]=String.fromCharCode.apply(String,text.slice(index+1));break;case"IEND":if(frame){this.animation.frames.push(frame);}this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3;}}.call(this);this.hasAlphaChannel=(_ref=this.colorType)===4||_ref===6;colors=this.colors+(this.hasAlphaChannel?1:0);this.pixelBitlength=this.bits*colors;this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB";}}.call(this);this.imgData=new Uint8Array(this.imgData);return;default:this.pos+=chunkSize;}this.pos+=4;if(this.pos>this.data.length){throw new Error("Incomplete or corrupt PNG file");}}}PNG.prototype.read=function(bytes){var i,_i,_results;_results=[];for(i=_i=0;0<=bytes?_i<bytes:_i>bytes;i=0<=bytes?++_i:--_i){_results.push(this.data[this.pos++]);}return _results;};PNG.prototype.readUInt32=function(){var b1,b2,b3,b4;b1=this.data[this.pos++]<<24;b2=this.data[this.pos++]<<16;b3=this.data[this.pos++]<<8;b4=this.data[this.pos++];return b1|b2|b3|b4;};PNG.prototype.readUInt16=function(){var b1,b2;b1=this.data[this.pos++]<<8;b2=this.data[this.pos++];return b1|b2;};PNG.prototype.decodePixels=function(data){var pixelBytes=this.pixelBitlength/8;var fullPixels=new Uint8Array(this.width*this.height*pixelBytes);var pos=0;var _this=this;if(data==null){data=this.imgData;}if(data.length===0){return new Uint8Array(0);}data=unzlibSync(data);function pass(x0,y0,dx,dy){var abyte,c,col,i,left,length,p,pa,paeth,pb,pc,pixels,row,scanlineLength,upper,upperLeft,_i,_j,_k,_l,_m;var w=Math.ceil((_this.width-x0)/dx),h=Math.ceil((_this.height-y0)/dy);var isFull=_this.width==w&&_this.height==h;scanlineLength=pixelBytes*w;pixels=isFull?fullPixels:new Uint8Array(scanlineLength*h);length=data.length;row=0;c=0;while(row<h&&pos<length){switch(data[pos++]){case 0:for(i=_i=0;_i<scanlineLength;i=_i+=1){pixels[c++]=data[pos++];}break;case 1:for(i=_j=0;_j<scanlineLength;i=_j+=1){abyte=data[pos++];left=i<pixelBytes?0:pixels[c-pixelBytes];pixels[c++]=(abyte+left)%256;}break;case 2:for(i=_k=0;_k<scanlineLength;i=_k+=1){abyte=data[pos++];col=(i-i%pixelBytes)/pixelBytes;upper=row&&pixels[(row-1)*scanlineLength+col*pixelBytes+i%pixelBytes];pixels[c++]=(upper+abyte)%256;}break;case 3:for(i=_l=0;_l<scanlineLength;i=_l+=1){abyte=data[pos++];col=(i-i%pixelBytes)/pixelBytes;left=i<pixelBytes?0:pixels[c-pixelBytes];upper=row&&pixels[(row-1)*scanlineLength+col*pixelBytes+i%pixelBytes];pixels[c++]=(abyte+Math.floor((left+upper)/2))%256;}break;case 4:for(i=_m=0;_m<scanlineLength;i=_m+=1){abyte=data[pos++];col=(i-i%pixelBytes)/pixelBytes;left=i<pixelBytes?0:pixels[c-pixelBytes];if(row===0){upper=upperLeft=0;}else{upper=pixels[(row-1)*scanlineLength+col*pixelBytes+i%pixelBytes];upperLeft=col&&pixels[(row-1)*scanlineLength+(col-1)*pixelBytes+i%pixelBytes];}p=left+upper-upperLeft;pa=Math.abs(p-left);pb=Math.abs(p-upper);pc=Math.abs(p-upperLeft);if(pa<=pb&&pa<=pc){paeth=left;}else if(pb<=pc){paeth=upper;}else{paeth=upperLeft;}pixels[c++]=(abyte+paeth)%256;}break;default
|
|
232054
|
+
palShort=palLen-this.transparency.indexed.length;if(palShort>0){for(i=_j=0;0<=palShort?_j<palShort:_j>palShort;i=0<=palShort?++_j:--_j){this.transparency.indexed.push(255);}}break;case 0:this.transparency.grayscale=this.read(chunkSize)[0];break;case 2:this.transparency.rgb=this.read(chunkSize);}break;case"tEXt":text=this.read(chunkSize);index=text.indexOf(0);key=String.fromCharCode.apply(String,text.slice(0,index));this.text[key]=String.fromCharCode.apply(String,text.slice(index+1));break;case"IEND":if(frame){this.animation.frames.push(frame);}this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3;}}.call(this);this.hasAlphaChannel=(_ref=this.colorType)===4||_ref===6;colors=this.colors+(this.hasAlphaChannel?1:0);this.pixelBitlength=this.bits*colors;this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB";}}.call(this);this.imgData=new Uint8Array(this.imgData);return;default:this.pos+=chunkSize;}this.pos+=4;if(this.pos>this.data.length){throw new Error("Incomplete or corrupt PNG file");}}}PNG.prototype.read=function(bytes){var i,_i,_results;_results=[];for(i=_i=0;0<=bytes?_i<bytes:_i>bytes;i=0<=bytes?++_i:--_i){_results.push(this.data[this.pos++]);}return _results;};PNG.prototype.readUInt32=function(){var b1,b2,b3,b4;b1=this.data[this.pos++]<<24;b2=this.data[this.pos++]<<16;b3=this.data[this.pos++]<<8;b4=this.data[this.pos++];return b1|b2|b3|b4;};PNG.prototype.readUInt16=function(){var b1,b2;b1=this.data[this.pos++]<<8;b2=this.data[this.pos++];return b1|b2;};PNG.prototype.decodePixels=function(data){var pixelBytes=this.pixelBitlength/8;var fullPixels=new Uint8Array(this.width*this.height*pixelBytes);var pos=0;var _this=this;if(data==null){data=this.imgData;}if(data.length===0){return new Uint8Array(0);}data=unzlibSync(data);function pass(x0,y0,dx,dy){var abyte,c,col,i,left,length,p,pa,paeth,pb,pc,pixels,row,scanlineLength,upper,upperLeft,_i,_j,_k,_l,_m;var w=Math.ceil((_this.width-x0)/dx),h=Math.ceil((_this.height-y0)/dy);var isFull=_this.width==w&&_this.height==h;scanlineLength=pixelBytes*w;pixels=isFull?fullPixels:new Uint8Array(scanlineLength*h);length=data.length;row=0;c=0;while(row<h&&pos<length){switch(data[pos++]){case 0:for(i=_i=0;_i<scanlineLength;i=_i+=1){pixels[c++]=data[pos++];}break;case 1:for(i=_j=0;_j<scanlineLength;i=_j+=1){abyte=data[pos++];left=i<pixelBytes?0:pixels[c-pixelBytes];pixels[c++]=(abyte+left)%256;}break;case 2:for(i=_k=0;_k<scanlineLength;i=_k+=1){abyte=data[pos++];col=(i-i%pixelBytes)/pixelBytes;upper=row&&pixels[(row-1)*scanlineLength+col*pixelBytes+i%pixelBytes];pixels[c++]=(upper+abyte)%256;}break;case 3:for(i=_l=0;_l<scanlineLength;i=_l+=1){abyte=data[pos++];col=(i-i%pixelBytes)/pixelBytes;left=i<pixelBytes?0:pixels[c-pixelBytes];upper=row&&pixels[(row-1)*scanlineLength+col*pixelBytes+i%pixelBytes];pixels[c++]=(abyte+Math.floor((left+upper)/2))%256;}break;case 4:for(i=_m=0;_m<scanlineLength;i=_m+=1){abyte=data[pos++];col=(i-i%pixelBytes)/pixelBytes;left=i<pixelBytes?0:pixels[c-pixelBytes];if(row===0){upper=upperLeft=0;}else{upper=pixels[(row-1)*scanlineLength+col*pixelBytes+i%pixelBytes];upperLeft=col&&pixels[(row-1)*scanlineLength+(col-1)*pixelBytes+i%pixelBytes];}p=left+upper-upperLeft;pa=Math.abs(p-left);pb=Math.abs(p-upper);pc=Math.abs(p-upperLeft);if(pa<=pb&&pa<=pc){paeth=left;}else if(pb<=pc){paeth=upper;}else{paeth=upperLeft;}pixels[c++]=(abyte+paeth)%256;}break;default:// 自定义修改 忽略图片格式解析报错,仅在控制台打印警告日志
|
|
232055
|
+
jspdf_console.warn("Invalid filter algorithm: ".concat((data[pos-1],data[pos]),"--png\u683C\u5F0F\u56FE\u7247\u53EA\u5305\u542B[01234]"));// throw new Error("Invalid filter algorithm: " + data[pos - 1]);
|
|
232056
|
+
}if(!isFull){var fullPos=((y0+row*dy)*_this.width+x0)*pixelBytes;var partPos=row*scanlineLength;for(i=0;i<w;i+=1){for(var j=0;j<pixelBytes;j+=1){fullPixels[fullPos++]=pixels[partPos++];}fullPos+=(dx-1)*pixelBytes;}}row++;}}if(_this.interlaceMethod==1){/*
|
|
232039
232057
|
1 6 4 6 2 6 4 6
|
|
232040
232058
|
7 7 7 7 7 7 7 7
|
|
232041
232059
|
5 6 5 6 5 6 5 6
|