hoeditor-web 3.1.144 → 3.1.146
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 +1 -18023
- package/lib/hoeditor.umd.js +393 -141
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +2 -2
package/lib/hoeditor.umd.js
CHANGED
|
@@ -39386,7 +39386,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39386
39386
|
var spath = sCell.childNodes[0].getNodePath();
|
|
39387
39387
|
var epath = hoEditorFactory.docTree.getNodeLastPath(sCell.childNodes[sCell.childNodes.length - 1]);
|
|
39388
39388
|
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, spath, epath);
|
|
39389
|
-
var jsonData = hoEditorFactory.structureNode.Copy(domRange, null, false);
|
|
39389
|
+
var jsonData = hoEditorFactory.structureNode.Copy(domRange, null, false, '', true);
|
|
39390
39390
|
hoEditorFactory.docTree.curDomRange.setSamePath(tCell.childNodes[0].getNodePath());
|
|
39391
39391
|
var nodes = hoEditorFactory.structureNode.Parse(_utils_StructureNode__WEBPACK_IMPORTED_MODULE_97__/* .ClipboardType */ .Y6.ctJSON, jsonData);
|
|
39392
39392
|
for (var n = 0; n < nodes.length; n++) {
|
|
@@ -39540,7 +39540,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39540
39540
|
var spath = sCell.childNodes[0].getNodePath();
|
|
39541
39541
|
var epath = hoEditorFactory.docTree.getNodeLastPath(sCell.childNodes[sCell.childNodes.length - 1]);
|
|
39542
39542
|
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, spath, epath);
|
|
39543
|
-
var jsonData = hoEditorFactory.structureNode.Copy(domRange, null, false);
|
|
39543
|
+
var jsonData = hoEditorFactory.structureNode.Copy(domRange, null, false, '', true);
|
|
39544
39544
|
var nodes = hoEditorFactory.structureNode.Parse(_utils_StructureNode__WEBPACK_IMPORTED_MODULE_97__/* .ClipboardType */ .Y6.ctJSON, jsonData);
|
|
39545
39545
|
hoEditorFactory.docTree.curDomRange.setSamePath(tCell.childNodes[0].getNodePath());
|
|
39546
39546
|
for (var n = 0; n < nodes.length; n++) {
|
|
@@ -40252,6 +40252,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40252
40252
|
if (returnPath === '-1') {
|
|
40253
40253
|
this._count = 0;
|
|
40254
40254
|
returnPath = this.find(curDomRange, findContent, direction, matchCase);
|
|
40255
|
+
} else if (returnPath === '') {
|
|
40256
|
+
return;
|
|
40255
40257
|
}
|
|
40256
40258
|
var path = returnPath;
|
|
40257
40259
|
var nodeLastPath = returnPath;
|
|
@@ -40341,15 +40343,17 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40341
40343
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
40342
40344
|
var item = _step.value;
|
|
40343
40345
|
var getArr1 = hoEditorFactory.docTree.allReplace(nodesMap, item, findContent, replaceContent);
|
|
40344
|
-
|
|
40345
|
-
|
|
40346
|
-
|
|
40347
|
-
|
|
40348
|
-
|
|
40349
|
-
|
|
40350
|
-
|
|
40346
|
+
if (getArr1[2]) {
|
|
40347
|
+
var startPath = getArr1[0];
|
|
40348
|
+
var endPath1 = getArr1[1];
|
|
40349
|
+
var newTextNode1 = getArr1[2];
|
|
40350
|
+
hoEditorFactory.undoService.begin();
|
|
40351
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_43__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, startPath, endPath1));
|
|
40352
|
+
if (replaceContent !== '') {
|
|
40353
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, newTextNode1));
|
|
40354
|
+
}
|
|
40355
|
+
hoEditorFactory.undoService.commit();
|
|
40351
40356
|
}
|
|
40352
|
-
hoEditorFactory.undoService.commit();
|
|
40353
40357
|
}
|
|
40354
40358
|
} catch (err) {
|
|
40355
40359
|
_iterator.e(err);
|
|
@@ -40368,20 +40372,22 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40368
40372
|
var getArr2 = hoEditorFactory.docTree.singleReplace(path, findContent, replaceContent);
|
|
40369
40373
|
var endPath2 = getArr2[0];
|
|
40370
40374
|
var newTextNode2 = getArr2[1];
|
|
40371
|
-
|
|
40372
|
-
|
|
40373
|
-
|
|
40374
|
-
|
|
40375
|
-
|
|
40376
|
-
|
|
40377
|
-
|
|
40378
|
-
|
|
40379
|
-
|
|
40380
|
-
|
|
40375
|
+
if (getArr2[3]) {
|
|
40376
|
+
hoEditorFactory.undoService.begin();
|
|
40377
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_43__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, path, endPath2));
|
|
40378
|
+
if (replaceContent !== '') {
|
|
40379
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, newTextNode2));
|
|
40380
|
+
}
|
|
40381
|
+
hoEditorFactory.undoService.commit();
|
|
40382
|
+
var oldRange = hoEditorFactory.docTree.curDomRange;
|
|
40383
|
+
var endPath = path;
|
|
40384
|
+
if (replaceContent !== '') {
|
|
40385
|
+
endPath = hoEditorFactory.docTree.getNodeLastPath(newTextNode2);
|
|
40386
|
+
}
|
|
40387
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, path, endPath);
|
|
40388
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_42__/* .SelectionChangeEvent */ .r(oldRange, newRange); //选中范围变化事件
|
|
40389
|
+
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
40381
40390
|
}
|
|
40382
|
-
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, path, endPath);
|
|
40383
|
-
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_42__/* .SelectionChangeEvent */ .r(oldRange, newRange); //选中范围变化事件
|
|
40384
|
-
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
40385
40391
|
}
|
|
40386
40392
|
}
|
|
40387
40393
|
}
|
|
@@ -41107,7 +41113,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41107
41113
|
}
|
|
41108
41114
|
});
|
|
41109
41115
|
if (isChange) {
|
|
41110
|
-
var sMarkNodePath =
|
|
41116
|
+
var sMarkNodePath = hoeditorfactory.docTree.getNodeLastPath(parentNode.childNodes[0]);
|
|
41111
41117
|
hoeditorfactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_38__/* .DomRange */ .a(this._hoEditorFactoryID, sMarkNodePath, sMarkNodePath);
|
|
41112
41118
|
}
|
|
41113
41119
|
}
|
|
@@ -41817,7 +41823,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41817
41823
|
/* harmony import */ var _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(5010);
|
|
41818
41824
|
/* harmony import */ var _events_Exception__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(8277);
|
|
41819
41825
|
/* harmony import */ var _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(68598);
|
|
41820
|
-
/* harmony import */ var _draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(
|
|
41826
|
+
/* harmony import */ var _draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(96610);
|
|
41821
41827
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(74089);
|
|
41822
41828
|
/* harmony import */ var _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(92501);
|
|
41823
41829
|
/* harmony import */ var _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(45712);
|
|
@@ -42873,6 +42879,7 @@ var DocTree = /*#__PURE__*/function () {
|
|
|
42873
42879
|
}, {
|
|
42874
42880
|
key: "getNodeFirstPath",
|
|
42875
42881
|
value: function getNodeFirstPath(node) {
|
|
42882
|
+
if (!node) return "";
|
|
42876
42883
|
var strPath = node.rootPath;
|
|
42877
42884
|
var aNode = node;
|
|
42878
42885
|
var pNodes = aNode.rootNodes;
|
|
@@ -43334,7 +43341,7 @@ var DocTree = /*#__PURE__*/function () {
|
|
|
43334
43341
|
var textCount = 1; //该段的第几个文本串(其它节点隔开的)
|
|
43335
43342
|
do {
|
|
43336
43343
|
if (aNode) {
|
|
43337
|
-
if (aNode instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_29__/* .TextNode */ .R) {
|
|
43344
|
+
if (aNode instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_29__/* .TextNode */ .R || aNode instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_46__/* .DateTimeNode */ .Z || aNode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_47__/* .DownListNode */ .yF) {
|
|
43338
43345
|
if (mark === -1) {
|
|
43339
43346
|
if (content.length > 0) {
|
|
43340
43347
|
if (matchCase) {
|
|
@@ -43423,7 +43430,7 @@ var DocTree = /*#__PURE__*/function () {
|
|
|
43423
43430
|
if (key.split("|")[0] === paraIndex && key.split("|")[1] === textCount && strIndex >= startIndex) {
|
|
43424
43431
|
var np = this.findNodePositionByPath(value);
|
|
43425
43432
|
if (np && np.node) {
|
|
43426
|
-
if (np.node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_29__/* .TextNode */ .R) {
|
|
43433
|
+
if (np.node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_29__/* .TextNode */ .R || np.node instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_46__/* .DateTimeNode */ .Z || np.node instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_47__/* .DownListNode */ .yF) {
|
|
43427
43434
|
if (strIndex < startIndex + np.node.text.length) {
|
|
43428
43435
|
var lastPath = strIndex - startIndex - 1;
|
|
43429
43436
|
if (lastPath >= 0) {
|
|
@@ -43496,7 +43503,7 @@ var DocTree = /*#__PURE__*/function () {
|
|
|
43496
43503
|
var styleIndex = 0;
|
|
43497
43504
|
var np = this.findNodePositionByPath(sPath);
|
|
43498
43505
|
if (np && np.node) {
|
|
43499
|
-
if (np.node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_29__/* .TextNode */ .R) {
|
|
43506
|
+
if (np.node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_29__/* .TextNode */ .R || np.node instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_46__/* .DateTimeNode */ .Z || np.node instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_47__/* .DownListNode */ .yF) {
|
|
43500
43507
|
styleIndex = np.node.styleIndex;
|
|
43501
43508
|
}
|
|
43502
43509
|
}
|
|
@@ -43529,12 +43536,20 @@ var DocTree = /*#__PURE__*/function () {
|
|
|
43529
43536
|
//}
|
|
43530
43537
|
}
|
|
43531
43538
|
}
|
|
43532
|
-
|
|
43533
|
-
var
|
|
43534
|
-
|
|
43535
|
-
|
|
43536
|
-
|
|
43537
|
-
|
|
43539
|
+
// const parentNode = this.getParentNode(sPath);
|
|
43540
|
+
var node = this.getFindPathNode(sPath);
|
|
43541
|
+
if (node instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_36__/* .TextInputFieldNode */ .re) {
|
|
43542
|
+
var textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_29__/* .TextNode */ .R(this._hoEditorFactoryID, np.roots, node, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_26__/* .NodeType */ .Jq.ntText, replaceContent, styleIndex);
|
|
43543
|
+
retArray[0] = startPath;
|
|
43544
|
+
retArray[1] = endPath;
|
|
43545
|
+
retArray[2] = textNode;
|
|
43546
|
+
} else if (node instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_46__/* .DateTimeNode */ .Z) {
|
|
43547
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_45__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43548
|
+
hoEditorFactory.elementController.updateDateTimeText(node, replaceContent);
|
|
43549
|
+
} else if (node instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_47__/* .DownListNode */ .yF) {
|
|
43550
|
+
var _hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_45__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43551
|
+
_hoEditorFactory.elementController.updateDownListText(node, replaceContent);
|
|
43552
|
+
}
|
|
43538
43553
|
return retArray;
|
|
43539
43554
|
}
|
|
43540
43555
|
}, {
|
|
@@ -43590,10 +43605,24 @@ var DocTree = /*#__PURE__*/function () {
|
|
|
43590
43605
|
}
|
|
43591
43606
|
}
|
|
43592
43607
|
}
|
|
43593
|
-
var
|
|
43594
|
-
|
|
43595
|
-
|
|
43596
|
-
|
|
43608
|
+
var snode = this.getFindPathNode(startPath);
|
|
43609
|
+
if (snode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_36__/* .TextInputFieldNode */ .re) {
|
|
43610
|
+
var textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_29__/* .TextNode */ .R(this._hoEditorFactoryID, np.roots, snode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_26__/* .NodeType */ .Jq.ntText, replaceContent, styleIndex);
|
|
43611
|
+
retArray[0] = startPath;
|
|
43612
|
+
retArray[1] = endPath;
|
|
43613
|
+
retArray[2] = textNode;
|
|
43614
|
+
retArray[3] = true;
|
|
43615
|
+
} else if (snode instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_46__/* .DateTimeNode */ .Z) {
|
|
43616
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_45__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43617
|
+
hoEditorFactory.elementController.updateDateTimeText(snode, replaceContent);
|
|
43618
|
+
// retArray[2] = snode;
|
|
43619
|
+
retArray[3] = false;
|
|
43620
|
+
} else if (snode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_47__/* .DownListNode */ .yF) {
|
|
43621
|
+
var _hoEditorFactory2 = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_45__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43622
|
+
_hoEditorFactory2.elementController.updateDownListText(snode, replaceContent);
|
|
43623
|
+
// retArray[2] = snode;
|
|
43624
|
+
retArray[3] = false;
|
|
43625
|
+
}
|
|
43597
43626
|
return retArray;
|
|
43598
43627
|
}
|
|
43599
43628
|
}, {
|
|
@@ -43894,6 +43923,24 @@ var DocTree = /*#__PURE__*/function () {
|
|
|
43894
43923
|
}
|
|
43895
43924
|
return parentNode;
|
|
43896
43925
|
}
|
|
43926
|
+
}, {
|
|
43927
|
+
key: "getFindPathNode",
|
|
43928
|
+
value: function getFindPathNode(startPath) {
|
|
43929
|
+
var node = null;
|
|
43930
|
+
var np = this.findNodePositionByPath(startPath);
|
|
43931
|
+
if (!(np && np.node)) {
|
|
43932
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_42__/* .Exception */ .P.NodeNotFound();
|
|
43933
|
+
}
|
|
43934
|
+
if (np.node instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_46__/* .DateTimeNode */ .Z || np.node instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_47__/* .DownListNode */ .yF) {
|
|
43935
|
+
return np.node;
|
|
43936
|
+
} else {
|
|
43937
|
+
node = np.node.parentNode;
|
|
43938
|
+
if (node && node instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_36__/* .TextInputFieldNode */ .re && node.last() == np.node) {
|
|
43939
|
+
node = node.parentNode;
|
|
43940
|
+
}
|
|
43941
|
+
return node;
|
|
43942
|
+
}
|
|
43943
|
+
}
|
|
43897
43944
|
}, {
|
|
43898
43945
|
key: "getFinalParentNode",
|
|
43899
43946
|
value: function getFinalParentNode(path) {
|
|
@@ -49282,6 +49329,7 @@ var NodeType;
|
|
|
49282
49329
|
NodeType[NodeType["ntGestation"] = 16] = "ntGestation";
|
|
49283
49330
|
NodeType[NodeType["ntRareChar"] = 17] = "ntRareChar";
|
|
49284
49331
|
NodeType[NodeType["ntJumpButton"] = 18] = "ntJumpButton";
|
|
49332
|
+
NodeType[NodeType["ntTextBorder"] = 19] = "ntTextBorder";
|
|
49285
49333
|
})(NodeType || (NodeType = {}));
|
|
49286
49334
|
var ChildIndexRange = /*#__PURE__*/function () {
|
|
49287
49335
|
function ChildIndexRange(start, end) {
|
|
@@ -49306,21 +49354,21 @@ var ChildIndexRange = /*#__PURE__*/function () {
|
|
|
49306
49354
|
}();
|
|
49307
49355
|
var BaseNode = /*#__PURE__*/function () {
|
|
49308
49356
|
/**
|
|
49309
|
-
|
|
49310
|
-
|
|
49311
|
-
|
|
49312
|
-
|
|
49313
|
-
|
|
49314
|
-
|
|
49315
|
-
|
|
49357
|
+
* @author xyl
|
|
49358
|
+
* @param rootPath 根节点路径
|
|
49359
|
+
* @param rootNodes 根节点数组
|
|
49360
|
+
* @param pNode 父节点
|
|
49361
|
+
* @param nodeType 节点类型
|
|
49362
|
+
* @description rootPath未例 main\表示主文档节点 header\0 表示首页页眉 header\1 表示次页页眉 header\3 表示第三页页眉
|
|
49363
|
+
*/
|
|
49316
49364
|
function BaseNode(hoEditorFactoryID, rootNodes, pNode, nodeType) {
|
|
49317
49365
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, BaseNode);
|
|
49318
49366
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_parentNode", void 0);
|
|
49319
|
-
//父节点
|
|
49367
|
+
//父节点
|
|
49320
49368
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_nodeType", void 0);
|
|
49321
|
-
//节点类型
|
|
49369
|
+
//节点类型
|
|
49322
49370
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, "_drawNodes", void 0);
|
|
49323
|
-
//绘制对象数组
|
|
49371
|
+
//绘制对象数组
|
|
49324
49372
|
// protected rootNodes: BaseNode[]; //所在根节点数组
|
|
49325
49373
|
(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);
|
|
49326
49374
|
//根节点路径
|
|
@@ -49342,7 +49390,7 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49342
49390
|
/**
|
|
49343
49391
|
*@author xyl
|
|
49344
49392
|
*@returns 返回父节点列表
|
|
49345
|
-
|
|
49393
|
+
*/
|
|
49346
49394
|
}, {
|
|
49347
49395
|
key: "getParentNodes",
|
|
49348
49396
|
value: function getParentNodes() {
|
|
@@ -49354,13 +49402,13 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49354
49402
|
}
|
|
49355
49403
|
// /**
|
|
49356
49404
|
// *@author xyl
|
|
49357
|
-
// *@returns 返回当前节点的层级
|
|
49358
|
-
// */
|
|
49405
|
+
// *@returns 返回当前节点的层级
|
|
49406
|
+
// */
|
|
49359
49407
|
// public getNodeLevel(): number{
|
|
49360
49408
|
// let iret=-1;
|
|
49361
49409
|
// let node: BaseNode ;
|
|
49362
49410
|
// let pnode: BaseNode|null=this._parentNode;
|
|
49363
|
-
// do{
|
|
49411
|
+
// do{
|
|
49364
49412
|
// iret=iret+1;
|
|
49365
49413
|
// if (pnode){
|
|
49366
49414
|
// node=pnode as BaseNode;
|
|
@@ -49371,9 +49419,9 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49371
49419
|
// return iret;
|
|
49372
49420
|
// }
|
|
49373
49421
|
/**
|
|
49374
|
-
|
|
49375
|
-
|
|
49376
|
-
|
|
49422
|
+
*@author xyl
|
|
49423
|
+
*@returns 根据节点路径,得到一个位置值 比较节点顺序用
|
|
49424
|
+
*/
|
|
49377
49425
|
}, {
|
|
49378
49426
|
key: "getNodePath",
|
|
49379
49427
|
value: function getNodePath() {
|
|
@@ -49394,9 +49442,9 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49394
49442
|
return this.rootPath + '/' + strRet;
|
|
49395
49443
|
}
|
|
49396
49444
|
/**
|
|
49397
|
-
|
|
49398
|
-
|
|
49399
|
-
|
|
49445
|
+
*@author xyl
|
|
49446
|
+
*@returns 返回文档中的第一层节点
|
|
49447
|
+
*/
|
|
49400
49448
|
}, {
|
|
49401
49449
|
key: "getRootNode",
|
|
49402
49450
|
value: function getRootNode() {
|
|
@@ -49411,9 +49459,9 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49411
49459
|
return node;
|
|
49412
49460
|
}
|
|
49413
49461
|
/**
|
|
49414
|
-
|
|
49415
|
-
|
|
49416
|
-
|
|
49462
|
+
*@author xyl
|
|
49463
|
+
*@returns 检查当前节点是否是复合节点
|
|
49464
|
+
*/
|
|
49417
49465
|
}, {
|
|
49418
49466
|
key: "isCombineNode",
|
|
49419
49467
|
value: function isCombineNode() {
|
|
@@ -49494,7 +49542,7 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49494
49542
|
//fixme 此处返回-1时会造成死循环,需要查找原因
|
|
49495
49543
|
if (hoEditorFactory.isThrowError) {
|
|
49496
49544
|
//throw new Error("此处返回0时会造成死循环,需要查找原因")
|
|
49497
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z.warn(
|
|
49545
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z.warn('经检测,病历元素“' + parentNode.name + '”的模板格式有问题,可能会导致死循环,请联系工程师进行处理(1)。');
|
|
49498
49546
|
return null;
|
|
49499
49547
|
}
|
|
49500
49548
|
}
|
|
@@ -49511,9 +49559,9 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49511
49559
|
return null;
|
|
49512
49560
|
}
|
|
49513
49561
|
/**
|
|
49514
|
-
|
|
49515
|
-
|
|
49516
|
-
|
|
49562
|
+
*@author xyl
|
|
49563
|
+
*@returns 获取前一个兄弟节点,用于递归树节点
|
|
49564
|
+
*/
|
|
49517
49565
|
}, {
|
|
49518
49566
|
key: "prevSibling",
|
|
49519
49567
|
value: function prevSibling() {
|
|
@@ -49547,9 +49595,9 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49547
49595
|
return null;
|
|
49548
49596
|
}
|
|
49549
49597
|
/**
|
|
49550
|
-
|
|
49551
|
-
|
|
49552
|
-
|
|
49598
|
+
*@author xyl
|
|
49599
|
+
*@returns 获取下一个紧邻的子节点
|
|
49600
|
+
*/
|
|
49553
49601
|
}, {
|
|
49554
49602
|
key: "nextLeaf",
|
|
49555
49603
|
value: function nextLeaf() {
|
|
@@ -49593,7 +49641,7 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49593
49641
|
//fixme 此处返回-1时会造成死循环,需要查找原因
|
|
49594
49642
|
if (hoEditorFactory.isThrowError) {
|
|
49595
49643
|
//throw new Error("此处返回0时会造成死循环,需要查找原因")
|
|
49596
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z.warn(
|
|
49644
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z.warn('经检测,病历元素“' + parentNode.name + '”的模板格式有问题,可能会导致死循环,请联系工程师进行处理(2)。');
|
|
49597
49645
|
return null;
|
|
49598
49646
|
}
|
|
49599
49647
|
}
|
|
@@ -49602,7 +49650,7 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49602
49650
|
//fixme 此处返回-1时会造成死循环,需要查找原因
|
|
49603
49651
|
if (hoEditorFactory.isThrowError) {
|
|
49604
49652
|
//throw new Error("此处返回-1时会造成死循环,需要查找原因(1)")
|
|
49605
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z.warn(
|
|
49653
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z.warn('经检测,该病历的模板格式有问题,可能会导致死循环,请联系工程师进行处理(1)。');
|
|
49606
49654
|
return null;
|
|
49607
49655
|
}
|
|
49608
49656
|
}
|
|
@@ -49613,7 +49661,7 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49613
49661
|
//fixme 此处返回-1时会造成死循环,需要查找原因
|
|
49614
49662
|
if (hoEditorFactory.isThrowError) {
|
|
49615
49663
|
//throw new Error("此处返回-1时会造成死循环,需要查找原因(2)")
|
|
49616
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z.warn(
|
|
49664
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_15__/* ["default"] */ .Z.warn('经检测,该病历的模板格式有问题,可能会导致死循环,请联系工程师进行处理(2)。');
|
|
49617
49665
|
return null;
|
|
49618
49666
|
}
|
|
49619
49667
|
}
|
|
@@ -49643,9 +49691,9 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49643
49691
|
return null;
|
|
49644
49692
|
}
|
|
49645
49693
|
/**
|
|
49646
|
-
|
|
49647
|
-
|
|
49648
|
-
|
|
49694
|
+
*@author xyl
|
|
49695
|
+
*@returns 获取前一个紧邻的子节点
|
|
49696
|
+
*/
|
|
49649
49697
|
}, {
|
|
49650
49698
|
key: "previousLeaf",
|
|
49651
49699
|
value: function previousLeaf() {
|
|
@@ -49729,7 +49777,7 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49729
49777
|
var hoeditfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_14__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
49730
49778
|
var roots = hoeditfactory.docTree.getPathRoots(this._rootPath);
|
|
49731
49779
|
if (!roots) {
|
|
49732
|
-
throw new Error(
|
|
49780
|
+
throw new Error('无法取到指定路径的根' + this._rootPath);
|
|
49733
49781
|
}
|
|
49734
49782
|
return roots;
|
|
49735
49783
|
// return this.rootNodes;
|
|
@@ -49824,9 +49872,9 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49824
49872
|
this._drawNodes.splice(startIndex, endIndex - startIndex + 1);
|
|
49825
49873
|
}
|
|
49826
49874
|
/**
|
|
49827
|
-
|
|
49828
|
-
|
|
49829
|
-
|
|
49875
|
+
*@author xyl
|
|
49876
|
+
*@returns 获取子节点长度,由于文本节点需要特殊处理(返回字符串长度),故改成方法,
|
|
49877
|
+
*/
|
|
49830
49878
|
}, {
|
|
49831
49879
|
key: "getLength",
|
|
49832
49880
|
value: function getLength() {
|
|
@@ -49835,11 +49883,11 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49835
49883
|
// /**
|
|
49836
49884
|
// *@author xyl
|
|
49837
49885
|
// *@returns 根据索引查找绘制节点,二分查找算法,以优化查找速度
|
|
49838
|
-
// */
|
|
49886
|
+
// */
|
|
49839
49887
|
// public findDrawNode(index: number): DrawContainer |null {
|
|
49840
49888
|
// //选取查找区间
|
|
49841
49889
|
// let low = 0;
|
|
49842
|
-
// let high = this.drawNodes.length - 1;
|
|
49890
|
+
// let high = this.drawNodes.length - 1;
|
|
49843
49891
|
// let mid: number;
|
|
49844
49892
|
// let curItemIndex = 0;
|
|
49845
49893
|
// let midItem: createjs.DisplayObject;
|
|
@@ -49869,11 +49917,11 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49869
49917
|
}
|
|
49870
49918
|
}
|
|
49871
49919
|
/**
|
|
49872
|
-
|
|
49873
|
-
|
|
49874
|
-
|
|
49875
|
-
|
|
49876
|
-
|
|
49920
|
+
*@author xyl
|
|
49921
|
+
*@param arange 选择范围
|
|
49922
|
+
*@returns 如当前被选中 ,返回当前选中的子节点索引范围
|
|
49923
|
+
*@description 检查当前选择范围是否包含
|
|
49924
|
+
*/
|
|
49877
49925
|
}, {
|
|
49878
49926
|
key: "getIndexsByRange",
|
|
49879
49927
|
value: function getIndexsByRange(arange) {
|
|
@@ -49896,10 +49944,10 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49896
49944
|
return new ChildIndexRange(start, end);
|
|
49897
49945
|
}
|
|
49898
49946
|
/**
|
|
49899
|
-
|
|
49900
|
-
|
|
49901
|
-
|
|
49902
|
-
|
|
49947
|
+
*@author xyl
|
|
49948
|
+
*@param arange
|
|
49949
|
+
*@returns 如当前被选中 ,返回当前选中的子节点索引范围
|
|
49950
|
+
*/
|
|
49903
49951
|
}, {
|
|
49904
49952
|
key: "isTotalSelected",
|
|
49905
49953
|
value: function isTotalSelected(range, bNormalized) {
|
|
@@ -50046,7 +50094,7 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
50046
50094
|
* @returns 返回节点内容
|
|
50047
50095
|
*/
|
|
50048
50096
|
function toString() {
|
|
50049
|
-
return
|
|
50097
|
+
return '';
|
|
50050
50098
|
}
|
|
50051
50099
|
/**
|
|
50052
50100
|
*
|
|
@@ -50055,7 +50103,7 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
50055
50103
|
}, {
|
|
50056
50104
|
key: "getTagNameCn",
|
|
50057
50105
|
value: function getTagNameCn() {
|
|
50058
|
-
return
|
|
50106
|
+
return '基础节点';
|
|
50059
50107
|
}
|
|
50060
50108
|
}], [{
|
|
50061
50109
|
key: "transType",
|
|
@@ -51675,12 +51723,11 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
51675
51723
|
this.node2DrawNode();
|
|
51676
51724
|
changeEvent.afterChangePath = ePath;
|
|
51677
51725
|
hoEditorFactory.docTree.change(changeEvent);
|
|
51678
|
-
if (hoEditorFactory.drawTree.paintStatus !==
|
|
51679
|
-
|
|
51680
|
-
|
|
51681
|
-
|
|
51682
|
-
}
|
|
51683
|
-
;
|
|
51726
|
+
// if (hoEditorFactory.drawTree.paintStatus !== PaintState.psPrint) {
|
|
51727
|
+
// hoEditorFactory.contentIsModify.isModify = true;
|
|
51728
|
+
// hoEditorFactory.cachedModify = false;
|
|
51729
|
+
// hoEditorFactory.hoLocalStorage.autoSaveLocalStorage();
|
|
51730
|
+
// };
|
|
51684
51731
|
}
|
|
51685
51732
|
}, {
|
|
51686
51733
|
key: "getDateTimeText",
|
|
@@ -53041,7 +53088,7 @@ var FetalHeartMapNode = /*#__PURE__*/function (_MedicalExpressionNod) {
|
|
|
53041
53088
|
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
53042
53089
|
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(57658);
|
|
53043
53090
|
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
53044
|
-
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
|
|
53091
|
+
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(96610);
|
|
53045
53092
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(74089);
|
|
53046
53093
|
/* harmony import */ var _plugins_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(62783);
|
|
53047
53094
|
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(62358);
|
|
@@ -54597,7 +54644,7 @@ var LightLocationMapNode = /*#__PURE__*/function (_MedicalExpressionNod) {
|
|
|
54597
54644
|
/* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(19601);
|
|
54598
54645
|
/* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_14__);
|
|
54599
54646
|
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(62358);
|
|
54600
|
-
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
|
|
54647
|
+
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(96610);
|
|
54601
54648
|
/* harmony import */ var _editor_draw_drawNode_DrawMarkNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(57732);
|
|
54602
54649
|
/* harmony import */ var _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(29899);
|
|
54603
54650
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(74089);
|
|
@@ -60281,7 +60328,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
60281
60328
|
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
60282
60329
|
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(57658);
|
|
60283
60330
|
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
60284
|
-
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
|
|
60331
|
+
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(96610);
|
|
60285
60332
|
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(62358);
|
|
60286
60333
|
/* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(91105);
|
|
60287
60334
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(74089);
|
|
@@ -67975,10 +68022,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67975
68022
|
this._childNodes2.push(this.StartMarkNode);
|
|
67976
68023
|
if (this.labelText.length != 0) {
|
|
67977
68024
|
this._childNodes2.push(new MarkNode/* MarkNode */.j(this._hoEditorFactoryID, this.rootNodes, this, BaseNode/* NodeType */.Jq.ntText, this.labelText, index, MarkNode/* MarkNodeType */.q.mtContent));
|
|
67978
|
-
// this._labelNode = new MarkNode(this._rootNodes, this, NodeType.ntText, this.labelText, 0);
|
|
67979
|
-
// this._childNodes2.push(this._labelNode);
|
|
67980
68025
|
}
|
|
67981
|
-
|
|
67982
68026
|
this._childNodes2.push(this.EndMarkNode);
|
|
67983
68027
|
this._childNodes = (0,toConsumableArray/* default */.Z)(this._childNodes2);
|
|
67984
68028
|
if (this.text != '') {
|
|
@@ -69074,7 +69118,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
69074
69118
|
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(62358);
|
|
69075
69119
|
/* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(51760);
|
|
69076
69120
|
/* harmony import */ var _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(96635);
|
|
69077
|
-
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(
|
|
69121
|
+
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(96610);
|
|
69078
69122
|
/* harmony import */ var _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(29899);
|
|
69079
69123
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(74089);
|
|
69080
69124
|
/* harmony import */ var _editor_utils_UnitConvert__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(91404);
|
|
@@ -69919,8 +69963,8 @@ var DrawContainer = __webpack_require__(47535);
|
|
|
69919
69963
|
var DrawCombineNode = __webpack_require__(66114);
|
|
69920
69964
|
// EXTERNAL MODULE: ./src/editor/dom/domNode/Paragraph.ts
|
|
69921
69965
|
var Paragraph = __webpack_require__(53474);
|
|
69922
|
-
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawTextNode.ts +
|
|
69923
|
-
var DrawTextNode = __webpack_require__(
|
|
69966
|
+
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawTextNode.ts + 2 modules
|
|
69967
|
+
var DrawTextNode = __webpack_require__(96610);
|
|
69924
69968
|
;// CONCATENATED MODULE: ./src/editor/events/DrawChangeEvent.ts
|
|
69925
69969
|
|
|
69926
69970
|
|
|
@@ -81395,7 +81439,7 @@ var DrawTableFormular = /*#__PURE__*/function (_DrawSimpleNode) {
|
|
|
81395
81439
|
|
|
81396
81440
|
/***/ }),
|
|
81397
81441
|
|
|
81398
|
-
/***/
|
|
81442
|
+
/***/ 96610:
|
|
81399
81443
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
81400
81444
|
|
|
81401
81445
|
"use strict";
|
|
@@ -81831,6 +81875,200 @@ var TextInputFieldNode = __webpack_require__(65043);
|
|
|
81831
81875
|
var DrawSimpleText = __webpack_require__(57590);
|
|
81832
81876
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/GestationNode.ts
|
|
81833
81877
|
var GestationNode = __webpack_require__(73632);
|
|
81878
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
81879
|
+
var es_object_to_string = __webpack_require__(41539);
|
|
81880
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
|
81881
|
+
var es_regexp_to_string = __webpack_require__(39714);
|
|
81882
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
81883
|
+
var es_array_push = __webpack_require__(57658);
|
|
81884
|
+
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
81885
|
+
var util = __webpack_require__(62783);
|
|
81886
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/BaseNode.ts
|
|
81887
|
+
var BaseNode = __webpack_require__(62358);
|
|
81888
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ControlNode.ts
|
|
81889
|
+
var ControlNode = __webpack_require__(91105);
|
|
81890
|
+
;// CONCATENATED MODULE: ./src/editor/dom/treeNode/TextBorderNode.ts
|
|
81891
|
+
|
|
81892
|
+
|
|
81893
|
+
|
|
81894
|
+
|
|
81895
|
+
|
|
81896
|
+
|
|
81897
|
+
|
|
81898
|
+
|
|
81899
|
+
|
|
81900
|
+
|
|
81901
|
+
|
|
81902
|
+
|
|
81903
|
+
|
|
81904
|
+
|
|
81905
|
+
|
|
81906
|
+
/*
|
|
81907
|
+
* @Author: liyanan 2441631434@qq.com
|
|
81908
|
+
* @Date: 2022-05-11 17:07:13
|
|
81909
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
81910
|
+
* @LastEditTime: 2022-05-12 08:30:21
|
|
81911
|
+
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\GestationNode.ts
|
|
81912
|
+
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
81913
|
+
*/
|
|
81914
|
+
var TextBorderNode = /*#__PURE__*/function (_ControlNode) {
|
|
81915
|
+
(0,inherits/* default */.Z)(TextBorderNode, _ControlNode);
|
|
81916
|
+
var _super = (0,createSuper/* default */.Z)(TextBorderNode);
|
|
81917
|
+
//用来计算的日期
|
|
81918
|
+
function TextBorderNode(hoEditorFactoryID, rootNodes, pNode, nodeType, lastMenstruationDate, usedDate, styleIndex) {
|
|
81919
|
+
var _this;
|
|
81920
|
+
(0,classCallCheck/* default */.Z)(this, TextBorderNode);
|
|
81921
|
+
_this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
|
|
81922
|
+
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_lastMenstruationDate", "");
|
|
81923
|
+
//末次月经日期
|
|
81924
|
+
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_usedDate", "");
|
|
81925
|
+
_this._lastMenstruationDate = lastMenstruationDate;
|
|
81926
|
+
_this._usedDate = usedDate;
|
|
81927
|
+
_this._styleIndex = styleIndex;
|
|
81928
|
+
_this._text = _this.clacGestation();
|
|
81929
|
+
_this.node2DrawNodeRange(0, 0);
|
|
81930
|
+
return _this;
|
|
81931
|
+
}
|
|
81932
|
+
(0,createClass/* default */.Z)(TextBorderNode, [{
|
|
81933
|
+
key: "lastMenstruationDate",
|
|
81934
|
+
get: function get() {
|
|
81935
|
+
return this._lastMenstruationDate;
|
|
81936
|
+
},
|
|
81937
|
+
set: function set(val) {
|
|
81938
|
+
if (this._lastMenstruationDate !== val) {
|
|
81939
|
+
this._lastMenstruationDate = val;
|
|
81940
|
+
}
|
|
81941
|
+
}
|
|
81942
|
+
}, {
|
|
81943
|
+
key: "usedDate",
|
|
81944
|
+
get: function get() {
|
|
81945
|
+
return this._usedDate;
|
|
81946
|
+
},
|
|
81947
|
+
set: function set(val) {
|
|
81948
|
+
if (this._usedDate !== val) {
|
|
81949
|
+
this._usedDate = val;
|
|
81950
|
+
}
|
|
81951
|
+
}
|
|
81952
|
+
}, {
|
|
81953
|
+
key: "styleIndex",
|
|
81954
|
+
get: function get() {
|
|
81955
|
+
return this._styleIndex;
|
|
81956
|
+
},
|
|
81957
|
+
set: function set(val) {
|
|
81958
|
+
if (this._styleIndex !== Number(val)) {
|
|
81959
|
+
this._styleIndex = Number(val);
|
|
81960
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
81961
|
+
if (!hoEditorFactory.docTree.isSaveValid) {
|
|
81962
|
+
this.node2DrawNode();
|
|
81963
|
+
}
|
|
81964
|
+
}
|
|
81965
|
+
}
|
|
81966
|
+
}, {
|
|
81967
|
+
key: "clacGestation",
|
|
81968
|
+
value: function clacGestation() {
|
|
81969
|
+
var strRet = "";
|
|
81970
|
+
if ((0,util/* isDate */.J_)(this.lastMenstruationDate) && (0,util/* isDate */.J_)(this.usedDate)) {
|
|
81971
|
+
var sDate = new Date(this.lastMenstruationDate);
|
|
81972
|
+
var sTime = sDate.getTime();
|
|
81973
|
+
var eDate = new Date(this.usedDate);
|
|
81974
|
+
var eTime = eDate.getTime();
|
|
81975
|
+
var subTime = ((eTime - sTime + 1) / (1000 * 3600 * 24 * 7)).toString();
|
|
81976
|
+
var weekData = subTime.split('.');
|
|
81977
|
+
var week = Number(weekData[0]);
|
|
81978
|
+
var days = 0;
|
|
81979
|
+
if (weekData.length > 1) {
|
|
81980
|
+
days = parseInt((Number("0." + weekData[1]) * 7).toString());
|
|
81981
|
+
}
|
|
81982
|
+
strRet = week.toString() + "周+" + days.toString() + "天";
|
|
81983
|
+
}
|
|
81984
|
+
return strRet;
|
|
81985
|
+
}
|
|
81986
|
+
}, {
|
|
81987
|
+
key: "refreshDrawStyle",
|
|
81988
|
+
value: function refreshDrawStyle() {
|
|
81989
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
81990
|
+
var textStyle = hoEditorFactory.docTree.styles[this._styleIndex];
|
|
81991
|
+
var cbStyle;
|
|
81992
|
+
if (textStyle) {
|
|
81993
|
+
cbStyle = textStyle.combineStyle;
|
|
81994
|
+
} else {
|
|
81995
|
+
cbStyle = hoEditorFactory.docTree.styles[0].combineStyle;
|
|
81996
|
+
this.styleIndex = 0;
|
|
81997
|
+
}
|
|
81998
|
+
this.dStyleKey = cbStyle.getStyleKey();
|
|
81999
|
+
this.dColor = cbStyle.color;
|
|
82000
|
+
this.dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
|
|
82001
|
+
this.dCombineStyle = cbStyle;
|
|
82002
|
+
}
|
|
82003
|
+
//根据可放置的宽度,将普通组件转换成绘制组件
|
|
82004
|
+
}, {
|
|
82005
|
+
key: "node2DrawNodeRange",
|
|
82006
|
+
value: function node2DrawNodeRange(startIndex, endIndex) {
|
|
82007
|
+
this.refreshDrawStyle();
|
|
82008
|
+
var dNode = new DrawTextNode(this._hoEditorFactoryID, this._rootPath, this, 0);
|
|
82009
|
+
this._drawNodes.push(dNode);
|
|
82010
|
+
}
|
|
82011
|
+
}, {
|
|
82012
|
+
key: "node2DrawNode",
|
|
82013
|
+
value: function node2DrawNode() {
|
|
82014
|
+
this.clearDrawNodes(0, 0);
|
|
82015
|
+
this.node2DrawNodeRange(0, 0);
|
|
82016
|
+
}
|
|
82017
|
+
/**
|
|
82018
|
+
* @author xyl
|
|
82019
|
+
* @param dRoots 绘制根数组
|
|
82020
|
+
* @param paragraphNode 对应的段落
|
|
82021
|
+
* @param start 当前起始位置,绘制时不应含入
|
|
82022
|
+
* @param endIndex 结束位置 ,包含入
|
|
82023
|
+
*/
|
|
82024
|
+
//根据可放置的宽度,将普通组件转换成绘制组件
|
|
82025
|
+
}, {
|
|
82026
|
+
key: "placeDNode2DrawLine",
|
|
82027
|
+
value: function placeDNode2DrawLine(droots, paragraphNode, dline, start, endIndex) {
|
|
82028
|
+
var startIndex = start;
|
|
82029
|
+
if (startIndex >= 1) {
|
|
82030
|
+
return dline;
|
|
82031
|
+
}
|
|
82032
|
+
dline.addChild(this._drawNodes[0]);
|
|
82033
|
+
dline.drawItems.push(this._drawNodes[0]);
|
|
82034
|
+
dline.fitLines();
|
|
82035
|
+
return dline.paragraphNode.getLastDrawline();
|
|
82036
|
+
}
|
|
82037
|
+
}, {
|
|
82038
|
+
key: "hasChildPath",
|
|
82039
|
+
value: function hasChildPath() {
|
|
82040
|
+
return false;
|
|
82041
|
+
}
|
|
82042
|
+
}, {
|
|
82043
|
+
key: "node2Json",
|
|
82044
|
+
value: function node2Json(range, isCopy) {
|
|
82045
|
+
var retObj = {
|
|
82046
|
+
nodeType: BaseNode/* NodeType */.Jq[this.nodeType],
|
|
82047
|
+
lastMenstruationDate: this.lastMenstruationDate,
|
|
82048
|
+
usedDate: this.usedDate,
|
|
82049
|
+
styleIndex: this.styleIndex
|
|
82050
|
+
};
|
|
82051
|
+
if (isCopy) {
|
|
82052
|
+
return retObj;
|
|
82053
|
+
}
|
|
82054
|
+
return {
|
|
82055
|
+
"GestationNode": retObj
|
|
82056
|
+
};
|
|
82057
|
+
}
|
|
82058
|
+
}, {
|
|
82059
|
+
key: "getTagNameCn",
|
|
82060
|
+
value: function getTagNameCn() {
|
|
82061
|
+
return "孕周";
|
|
82062
|
+
}
|
|
82063
|
+
}], [{
|
|
82064
|
+
key: "json2Node",
|
|
82065
|
+
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode) {
|
|
82066
|
+
var styleIndex = Number(json.styleIndex);
|
|
82067
|
+
return new TextBorderNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, BaseNode/* NodeType */.Jq.ntGestation, json.lastMenstruationDate, json.usedDate, styleIndex);
|
|
82068
|
+
}
|
|
82069
|
+
}]);
|
|
82070
|
+
return TextBorderNode;
|
|
82071
|
+
}(ControlNode/* ControlNode */.w);
|
|
81834
82072
|
;// CONCATENATED MODULE: ./src/editor/draw/drawNode/DrawTextNode.ts
|
|
81835
82073
|
|
|
81836
82074
|
|
|
@@ -81858,6 +82096,7 @@ var GestationNode = __webpack_require__(73632);
|
|
|
81858
82096
|
|
|
81859
82097
|
|
|
81860
82098
|
|
|
82099
|
+
|
|
81861
82100
|
var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
81862
82101
|
(0,inherits/* default */.Z)(DrawTextNode, _DrawCombineNode);
|
|
81863
82102
|
var _super = (0,createSuper/* default */.Z)(DrawTextNode);
|
|
@@ -81887,7 +82126,7 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
81887
82126
|
_this._textNode = node;
|
|
81888
82127
|
_this._dTextShape = new createjs.Shape();
|
|
81889
82128
|
// this.redraw();
|
|
81890
|
-
if (node instanceof SpecialCharsNode/* SpecialCharsNode */.y || node instanceof GestationNode/* GestationNode */.G) {
|
|
82129
|
+
if (node instanceof SpecialCharsNode/* SpecialCharsNode */.y || node instanceof GestationNode/* GestationNode */.G || node instanceof TextBorderNode) {
|
|
81891
82130
|
_this._text = node.text;
|
|
81892
82131
|
if (endIndex) _this._endIndex = endIndex;else _this._endIndex = _this._text.length - 1;
|
|
81893
82132
|
} else {
|
|
@@ -82364,17 +82603,15 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
82364
82603
|
if (!this._bd) this._bd = new createjs.Shape();
|
|
82365
82604
|
this._dWidth = this._dWidth + 20;
|
|
82366
82605
|
this.dWidth = this._dWidth;
|
|
82367
|
-
this.setBounds(0, -this.dHeight -
|
|
82368
|
-
|
|
82369
|
-
// console.log(this._textNode.dCombineStyle);
|
|
82370
|
-
// console.log(this._text);
|
|
82606
|
+
this.setBounds(0, -this.dHeight - 4, this._dWidth * 4, this.dHeight * 2);
|
|
82607
|
+
this._textNode.dCombineStyle.chineseWidth = this._dWidth;
|
|
82371
82608
|
this._bd.graphics.clear();
|
|
82372
|
-
this._bd.graphics.beginStroke(this._textNode.dCombineStyle.color).drawRect(
|
|
82609
|
+
this._bd.graphics.beginStroke(this._textNode.dCombineStyle.color).drawRect(0,
|
|
82373
82610
|
//x
|
|
82374
|
-
-this.dHeight -
|
|
82611
|
+
-this.dHeight - 4,
|
|
82375
82612
|
//y
|
|
82376
|
-
this.
|
|
82377
|
-
this._dText.x =
|
|
82613
|
+
this._dWidth, this.dHeight * 2);
|
|
82614
|
+
this._dText.x = 10;
|
|
82378
82615
|
this._dText.y = 0;
|
|
82379
82616
|
this.addChild(this._bd);
|
|
82380
82617
|
}
|
|
@@ -84517,8 +84754,8 @@ var DrawPageCell = __webpack_require__(59105);
|
|
|
84517
84754
|
var PrintStatus = __webpack_require__(82215);
|
|
84518
84755
|
// EXTERNAL MODULE: ./src/editor/draw/drawArea/DrawPageMainDoc.ts
|
|
84519
84756
|
var DrawPageMainDoc = __webpack_require__(77441);
|
|
84520
|
-
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawTextNode.ts +
|
|
84521
|
-
var DrawTextNode = __webpack_require__(
|
|
84757
|
+
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawTextNode.ts + 2 modules
|
|
84758
|
+
var DrawTextNode = __webpack_require__(96610);
|
|
84522
84759
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TableFormula.ts
|
|
84523
84760
|
var TableFormula = __webpack_require__(90832);
|
|
84524
84761
|
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawSignNode.ts
|
|
@@ -90091,6 +90328,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
90091
90328
|
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(51760);
|
|
90092
90329
|
/* harmony import */ var _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(92501);
|
|
90093
90330
|
/* harmony import */ var _dom_TableProperty__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(79546);
|
|
90331
|
+
/* harmony import */ var _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(24701);
|
|
90094
90332
|
|
|
90095
90333
|
|
|
90096
90334
|
|
|
@@ -90131,6 +90369,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
90131
90369
|
|
|
90132
90370
|
|
|
90133
90371
|
|
|
90372
|
+
|
|
90134
90373
|
var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
90135
90374
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(NodeInsertUndoUnit, _UndoInfo);
|
|
90136
90375
|
var _super = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(NodeInsertUndoUnit);
|
|
@@ -90178,27 +90417,33 @@ var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
90178
90417
|
while (1) switch (_context.prev = _context.next) {
|
|
90179
90418
|
case 0:
|
|
90180
90419
|
changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_16__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_15__/* .DocAction */ .gk.daUndoInsert, this.strBeforePath, "");
|
|
90420
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_26__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
90181
90421
|
if (!(this.node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_27__/* .MarkNode */ .j && this.node.MarkNodeType === 1)) {
|
|
90182
|
-
_context.next =
|
|
90422
|
+
_context.next = 6;
|
|
90183
90423
|
break;
|
|
90184
90424
|
}
|
|
90185
90425
|
return _context.abrupt("return");
|
|
90186
|
-
case
|
|
90187
|
-
|
|
90426
|
+
case 6:
|
|
90427
|
+
if (!(this.node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_32__/* .SignNode */ .N && hoEditorFactory.drawTree.paintStatus != _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_29__/* .PaintState */ .Dh.psDesign)) {
|
|
90428
|
+
_context.next = 8;
|
|
90429
|
+
break;
|
|
90430
|
+
}
|
|
90431
|
+
return _context.abrupt("return");
|
|
90432
|
+
case 8:
|
|
90188
90433
|
changeEvent.oldEndPath = hoEditorFactory.docTree.getNodeLastPath(this.node);
|
|
90189
90434
|
changeEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_25__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(this.strBeforePath, changeEvent.oldEndPath);
|
|
90190
90435
|
ret = hoEditorFactory.docTree.deleteNode(this.node, "update");
|
|
90191
90436
|
if (ret) {
|
|
90192
|
-
_context.next =
|
|
90437
|
+
_context.next = 13;
|
|
90193
90438
|
break;
|
|
90194
90439
|
}
|
|
90195
90440
|
throw new Error('删除失败');
|
|
90196
|
-
case
|
|
90441
|
+
case 13:
|
|
90197
90442
|
changeEvent.afterChangePath = this.strBeforePath;
|
|
90198
90443
|
changeEvent.repaintImmediate = this.repaintImmediate;
|
|
90199
|
-
_context.next =
|
|
90444
|
+
_context.next = 17;
|
|
90200
90445
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
90201
|
-
case
|
|
90446
|
+
case 17:
|
|
90202
90447
|
hoEditorFactory.docTree.curDomRange.setSamePath(this.strBeforePath);
|
|
90203
90448
|
while (!this._undo.atBottom()) {
|
|
90204
90449
|
this._undo.undo();
|
|
@@ -90208,7 +90453,7 @@ var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
90208
90453
|
hoEditorFactory.docTree.curDomRange.setSamePath(this.strBeforePath);
|
|
90209
90454
|
hoEditorFactory.drawTree.moveCaretToPath(this.strBeforePath);
|
|
90210
90455
|
this.ParentRepaint();
|
|
90211
|
-
case
|
|
90456
|
+
case 24:
|
|
90212
90457
|
case "end":
|
|
90213
90458
|
return _context.stop();
|
|
90214
90459
|
}
|
|
@@ -207170,8 +207415,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
207170
207415
|
var es_number_constructor = __webpack_require__(9653);
|
|
207171
207416
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
207172
207417
|
var es_json_stringify = __webpack_require__(38862);
|
|
207173
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
207174
|
-
var
|
|
207418
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=90411248&
|
|
207419
|
+
var HoDocvue_type_template_id_90411248_render = function render() {
|
|
207175
207420
|
var _vm = this,
|
|
207176
207421
|
_c = _vm._self._c;
|
|
207177
207422
|
return _c('div', {
|
|
@@ -207372,7 +207617,7 @@ var HoDocvue_type_template_id_4751bfc2_render = function render() {
|
|
|
207372
207617
|
}
|
|
207373
207618
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
207374
207619
|
};
|
|
207375
|
-
var
|
|
207620
|
+
var HoDocvue_type_template_id_90411248_staticRenderFns = [];
|
|
207376
207621
|
|
|
207377
207622
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
207378
207623
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -210363,7 +210608,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
210363
210608
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
210364
210609
|
var ParagraphNode = __webpack_require__(67945);
|
|
210365
210610
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
210366
|
-
/* harmony default export */ var version = ('3.1.
|
|
210611
|
+
/* harmony default export */ var version = ('3.1.146');
|
|
210367
210612
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
210368
210613
|
var PoperTipText = __webpack_require__(84531);
|
|
210369
210614
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -210728,9 +210973,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
210728
210973
|
(_hoParagrapghTipEleme = hoParagrapghTipElementNode.parentNode) === null || _hoParagrapghTipEleme === void 0 ? void 0 : _hoParagrapghTipEleme.removeChild(hoParagrapghTipElementNode);
|
|
210729
210974
|
}
|
|
210730
210975
|
var node = e.node;
|
|
210976
|
+
var paintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
210731
210977
|
this.selectMarkStyle.display = 'none';
|
|
210732
210978
|
this.poperClose();
|
|
210733
|
-
if (
|
|
210979
|
+
if (paintStatus == DrawTree/* PaintState */.Dh.psEdit || paintStatus == DrawTree/* PaintState */.Dh.psTrace) {
|
|
210734
210980
|
if (this.isCanEdit()) return;
|
|
210735
210981
|
}
|
|
210736
210982
|
if (node && node !== null) {
|
|
@@ -210745,7 +210991,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
210745
210991
|
this.selectMarkStyle = {
|
|
210746
210992
|
display: 'none'
|
|
210747
210993
|
};
|
|
210748
|
-
if (
|
|
210994
|
+
if (paintStatus === DrawTree/* PaintState */.Dh.psReadOnly) {
|
|
210749
210995
|
return false;
|
|
210750
210996
|
}
|
|
210751
210997
|
this.textStyles.changeCount++;
|
|
@@ -210756,7 +211002,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
210756
211002
|
isInTable = _domRange$inSameTable2[0],
|
|
210757
211003
|
tableNode = _domRange$inSameTable2[1];
|
|
210758
211004
|
this.nextCellButton = false;
|
|
210759
|
-
if (isInTable) {
|
|
211005
|
+
if (isInTable && (paintStatus == DrawTree/* PaintState */.Dh.psDesign || paintStatus == DrawTree/* PaintState */.Dh.psEdit || paintStatus == DrawTree/* PaintState */.Dh.psTrace)) {
|
|
210760
211006
|
if (!this.cellButton) {
|
|
210761
211007
|
this.createAddCellButton(node, pageIndex);
|
|
210762
211008
|
}
|
|
@@ -210764,7 +211010,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
210764
211010
|
} else {
|
|
210765
211011
|
this.cellButton = false;
|
|
210766
211012
|
}
|
|
210767
|
-
if (
|
|
211013
|
+
if (paintStatus == DrawTree/* PaintState */.Dh.psEdit || paintStatus == DrawTree/* PaintState */.Dh.psTrace) {
|
|
210768
211014
|
if (node.nodeType == 18) {
|
|
210769
211015
|
// 跳转元素
|
|
210770
211016
|
this.$emit('leftclick', {
|
|
@@ -211168,6 +211414,12 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
211168
211414
|
},
|
|
211169
211415
|
addNextCellRow: function addNextCellRow() {
|
|
211170
211416
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorProvider.activeDocId);
|
|
211417
|
+
var paintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
211418
|
+
if (paintStatus == DrawTree/* PaintState */.Dh.psReadOnly || paintStatus == DrawTree/* PaintState */.Dh.psPreview || paintStatus == DrawTree/* PaintState */.Dh.psReview || paintStatus == DrawTree/* PaintState */.Dh.psPrint) {
|
|
211419
|
+
this.cellButton = false;
|
|
211420
|
+
this.nextCellButton = false;
|
|
211421
|
+
return;
|
|
211422
|
+
}
|
|
211171
211423
|
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
211172
211424
|
var node = hoEditorFactory.docTree.findNodePositionByPath(curDomRange.startPath);
|
|
211173
211425
|
var table = null;
|
|
@@ -211395,10 +211647,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
211395
211647
|
});
|
|
211396
211648
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
211397
211649
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
211398
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
211650
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=90411248&prod&lang=less&
|
|
211399
211651
|
// extracted by mini-css-extract-plugin
|
|
211400
211652
|
|
|
211401
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
211653
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=90411248&prod&lang=less&
|
|
211402
211654
|
|
|
211403
211655
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
211404
211656
|
|
|
@@ -211411,8 +211663,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
211411
211663
|
|
|
211412
211664
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
211413
211665
|
components_HoDocvue_type_script_lang_js_,
|
|
211414
|
-
|
|
211415
|
-
|
|
211666
|
+
HoDocvue_type_template_id_90411248_render,
|
|
211667
|
+
HoDocvue_type_template_id_90411248_staticRenderFns,
|
|
211416
211668
|
false,
|
|
211417
211669
|
null,
|
|
211418
211670
|
null,
|
|
@@ -215422,7 +215674,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
215422
215674
|
key: "replaceNodesName",
|
|
215423
215675
|
value: function replaceNodesName(xml) {
|
|
215424
215676
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
215425
|
-
var reg = new RegExp(/\<\*([A-z]*)\>\/|TextNode|ParagraphNode|TableNode|ImageNode|BarcodeNode|QrcodeNode|DateTimeNode|DownListNode|RadioAndCheckBoxNode|TextInputFieldNode|SpecialCharsNode|MarkNode|PageCountNode|PageNumNode|CellNode|SeparateCharNode|LabelNode|SignNode|GestationNode|RareCharNode|JumpButtonNode|PopQScoreNode/g);
|
|
215677
|
+
var reg = new RegExp(/\<\*([A-z]*)\>\/|TextNode|ParagraphNode|TableNode|ImageNode|BarcodeNode|QrcodeNode|DateTimeNode|DownListNode|RadioAndCheckBoxNode|TextInputFieldNode|SpecialCharsNode|MarkNode|PageCountNode|PageNumNode|CellNode|SeparateCharNode|LabelNode|SignNode|GestationNode|TextBorderNode|RareCharNode|JumpButtonNode|PopQScoreNode/g);
|
|
215426
215678
|
xml = xml.replace(reg, "node");
|
|
215427
215679
|
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<TableFormula>', "<node>");
|
|
215428
215680
|
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</TableFormula>', "</node>");
|
|
@@ -224201,8 +224453,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
224201
224453
|
if (node instanceof SignNode/* SignNode */.N && node !== null && node !== void 0 && node.drawNodes[0]) {
|
|
224202
224454
|
var drawNode = node === null || node === void 0 ? void 0 : node.drawNodes[0];
|
|
224203
224455
|
result = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, result), {}, {
|
|
224204
|
-
|
|
224205
|
-
|
|
224456
|
+
ptRight: hoEditorFactory.unitConvert.pxToPt(caret.stageX + drawNode.dWidth),
|
|
224457
|
+
ptLeft: result.ptX
|
|
224206
224458
|
});
|
|
224207
224459
|
if (node.number == 0) {
|
|
224208
224460
|
result.ptTop = result.ptY;
|