hoeditor-web 3.0.26 → 3.0.28
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 -1
- package/lib/hoeditor.umd.js +437 -308
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -29357,16 +29357,16 @@ _ctx.prototype.__createElement = function (elementName, properties, resetFill) {
|
|
|
29357
29357
|
element.setAttribute("font-family", "SimSun");
|
|
29358
29358
|
element.setAttribute("fill", "#000000");
|
|
29359
29359
|
element.setAttribute("stroke", "#000000");
|
|
29360
|
-
element.setAttribute("stroke-width", "1");
|
|
29361
|
-
element.setAttribute("font-weight", "
|
|
29360
|
+
// element.setAttribute("stroke-width", "1");
|
|
29361
|
+
element.setAttribute("font-weight", "100");
|
|
29362
29362
|
} else if (properties["font-family"] !== "Times New Roman") {
|
|
29363
29363
|
// 非宋体 黑体, Times New Roman默认转换成普通宋体
|
|
29364
29364
|
element.setAttribute("font-family", "SimSun");
|
|
29365
29365
|
}
|
|
29366
29366
|
if (properties["font-weight"] === "bold") {
|
|
29367
29367
|
element.setAttribute("stroke", "#000");
|
|
29368
|
-
element.setAttribute("stroke-width", "1");
|
|
29369
|
-
element.setAttribute("font-weight", "
|
|
29368
|
+
// element.setAttribute("stroke-width", "1");
|
|
29369
|
+
element.setAttribute("font-weight", "100");
|
|
29370
29370
|
}
|
|
29371
29371
|
}
|
|
29372
29372
|
return element;
|
|
@@ -49619,6 +49619,9 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
49619
49619
|
if (convertNode.text !== "" && convertNode.text !== '' && convertNode.text !== '' && convertNode.text !== '' && convertNode.text !== '' && convertNode.text !== '') {
|
|
49620
49620
|
cellNode.addChild(convertNode);
|
|
49621
49621
|
}
|
|
49622
|
+
if (convertNode.errorIndex != undefined) {
|
|
49623
|
+
hoEditorFactory.structureConvert._errTextNodes.push(convertNode);
|
|
49624
|
+
}
|
|
49622
49625
|
} else {
|
|
49623
49626
|
if (isClearSign) {
|
|
49624
49627
|
if (convertNode instanceof _SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N) {
|
|
@@ -51808,13 +51811,13 @@ var DrawImageNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51808
51811
|
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_drawResize", void 0);
|
|
51809
51812
|
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_id", void 0);
|
|
51810
51813
|
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_bitMap", void 0);
|
|
51814
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(hoeditfactoryID);
|
|
51815
|
+
var bounds = hoEditorFactory.vueController.getMainBounds(dWidth, dHeight);
|
|
51816
|
+
_this.dWidth = bounds.imageWidth;
|
|
51817
|
+
_this.dHeight = bounds.imageHeight;
|
|
51811
51818
|
_this._imagePath = imagePath;
|
|
51812
51819
|
_this._markImagePath = markImagePath;
|
|
51813
|
-
_this.
|
|
51814
|
-
_this.dHeight = dHeight;
|
|
51815
|
-
//this._scaleX = scaleX;
|
|
51816
|
-
//this._scaleY = scaleY;
|
|
51817
|
-
_this._imageY = -dHeight;
|
|
51820
|
+
_this._imageY = -_this.dHeight;
|
|
51818
51821
|
_this.insertImage();
|
|
51819
51822
|
_this._drawResize = new DrawResize/* DrawResize */.r(hoeditfactoryID, _this.node, (0,assertThisInitialized/* default */.Z)(_this), _this._imageY);
|
|
51820
51823
|
return _this;
|
|
@@ -51844,11 +51847,11 @@ var DrawImageNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51844
51847
|
// let markImageBitmap!: createjs.Bitmap;
|
|
51845
51848
|
image.src = this.imagePath;
|
|
51846
51849
|
this._bitMap = new createjs.Bitmap(image);
|
|
51850
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(drawNode.node.hoEditorFactoryID);
|
|
51847
51851
|
this._bitMap.y = this._imageY;
|
|
51848
51852
|
this._bitMap.x = 0;
|
|
51849
51853
|
this._bitMap.name = this.node.id;
|
|
51850
51854
|
this._bitMap.setBounds(0, 0, drawNode.dWidth, drawNode.dHeight);
|
|
51851
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(drawNode.node.hoEditorFactoryID);
|
|
51852
51855
|
hoEditorFactory.loadImageCount++;
|
|
51853
51856
|
this.addChild(this._bitMap);
|
|
51854
51857
|
image.onload = function () {
|
|
@@ -61659,7 +61662,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
61659
61662
|
/*
|
|
61660
61663
|
* @Author: your name
|
|
61661
61664
|
* @Date: 2020-11-03 15:17:54
|
|
61662
|
-
* @LastEditTime: 2023-02-
|
|
61665
|
+
* @LastEditTime: 2023-02-24 09:49:19
|
|
61663
61666
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
61664
61667
|
* @Description: In User Settings Edit
|
|
61665
61668
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -63568,6 +63571,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
63568
63571
|
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
|
|
63569
63572
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
|
|
63570
63573
|
var eachCount = 0;
|
|
63574
|
+
var isErrorValid = false;
|
|
63571
63575
|
delete json.nodeType;
|
|
63572
63576
|
this.transType(json);
|
|
63573
63577
|
if (isPaste) {
|
|
@@ -63612,6 +63616,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
63612
63616
|
if (node.text !== '' && node.text !== '' && node.text !== '' && node.text !== '' && node.text !== '' && node.text !== '') {
|
|
63613
63617
|
nodes.push(node);
|
|
63614
63618
|
}
|
|
63619
|
+
if (node.errorIndex != undefined) {
|
|
63620
|
+
hoEditorFactory.structureConvert._errTextNodes.push(node);
|
|
63621
|
+
isErrorValid = true;
|
|
63622
|
+
}
|
|
63615
63623
|
} else {
|
|
63616
63624
|
if (isClearSign) {
|
|
63617
63625
|
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_52__/* .SignNode */ .N) {
|
|
@@ -63647,6 +63655,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
63647
63655
|
if (_node2.text !== '' && _node2.text !== '' && _node2.text !== '' && _node2.text !== '' && _node2.text !== '' && _node2.text !== '') {
|
|
63648
63656
|
nodes.push(_node2);
|
|
63649
63657
|
}
|
|
63658
|
+
if (_node2.errorIndex != undefined) {
|
|
63659
|
+
hoEditorFactory.structureConvert._errTextNodes.push(_node2);
|
|
63660
|
+
isErrorValid = true;
|
|
63661
|
+
}
|
|
63650
63662
|
} else {
|
|
63651
63663
|
//nodes.push(node);
|
|
63652
63664
|
if (isClearSign) {
|
|
@@ -63726,7 +63738,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
63726
63738
|
childFields.push(childNode);
|
|
63727
63739
|
}
|
|
63728
63740
|
}
|
|
63729
|
-
if (childFields.length === 0) {
|
|
63741
|
+
if (childFields.length === 0 && !isErrorValid) {
|
|
63730
63742
|
//不嵌套 用text
|
|
63731
63743
|
var fieldText = temp.getFieldText();
|
|
63732
63744
|
if (temp.text !== fieldText && (temp.inputFieldType == 0 || temp.inputFieldType == 1 && temp.readType == 1)) {
|
|
@@ -64073,7 +64085,7 @@ var TextNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
64073
64085
|
// private drawItems: DrawNode[];
|
|
64074
64086
|
function TextNode(hoEditorFactoryID, rootNodes, pNode, nodeType,
|
|
64075
64087
|
//paragraph: Paragraph,
|
|
64076
|
-
text, styleIndex) {
|
|
64088
|
+
text, styleIndex, errorIndex) {
|
|
64077
64089
|
var _this;
|
|
64078
64090
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, TextNode);
|
|
64079
64091
|
_this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
|
|
@@ -64083,8 +64095,12 @@ var TextNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
64083
64095
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_28__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_dColor", void 0);
|
|
64084
64096
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_28__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_dHeight", void 0);
|
|
64085
64097
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_28__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_dCombineStyle", void 0);
|
|
64098
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_28__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_errorIndex", void 0);
|
|
64086
64099
|
_this._text = text;
|
|
64087
64100
|
_this._styleIndex = styleIndex;
|
|
64101
|
+
if (errorIndex != undefined) {
|
|
64102
|
+
_this._errorIndex = errorIndex;
|
|
64103
|
+
}
|
|
64088
64104
|
_this.node2DrawNodeRange(0, text.length - 1);
|
|
64089
64105
|
// this.drawItems=new Array<DrawNode>();
|
|
64090
64106
|
return _this;
|
|
@@ -64118,6 +64134,11 @@ var TextNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
64118
64134
|
get: function get() {
|
|
64119
64135
|
return this._dCombineStyle;
|
|
64120
64136
|
}
|
|
64137
|
+
}, {
|
|
64138
|
+
key: "errorIndex",
|
|
64139
|
+
get: function get() {
|
|
64140
|
+
return this._errorIndex;
|
|
64141
|
+
}
|
|
64121
64142
|
}, {
|
|
64122
64143
|
key: "insertText",
|
|
64123
64144
|
value: function insertText(atext, index) {
|
|
@@ -64699,7 +64720,7 @@ var TextNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
64699
64720
|
styleIndex = hoEditorFactory.docTree.styleCompare(textStyle);
|
|
64700
64721
|
}
|
|
64701
64722
|
json.text = json.text.replace("<上标>", "").replace("</上标>", "").replace("<下标>", "").replace("</下标>", "");
|
|
64702
|
-
return new TextNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_19__/* .NodeType.ntText */ .Jq.ntText, json.text, styleIndex);
|
|
64723
|
+
return new TextNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_19__/* .NodeType.ntText */ .Jq.ntText, json.text, styleIndex, json.errorIndex ? Number(json.errorIndex) : undefined);
|
|
64703
64724
|
}
|
|
64704
64725
|
}]);
|
|
64705
64726
|
return TextNode;
|
|
@@ -67614,10 +67635,10 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
67614
67635
|
if (child.name === comment.id) {
|
|
67615
67636
|
child.alpha = 1;
|
|
67616
67637
|
}
|
|
67617
|
-
if (child instanceof createjs.Container && comment.id === child.name) {
|
|
67638
|
+
if (child instanceof createjs.Container && comment.id === child.name && hoEditorFactory.drawTree.activePage) {
|
|
67618
67639
|
_components_common_comment__WEBPACK_IMPORTED_MODULE_22__/* .$Comment.open */ .D.open({
|
|
67619
67640
|
x: child.x,
|
|
67620
|
-
y: child.y + hoEditorFactory.
|
|
67641
|
+
y: child.y + hoEditorFactory.drawTree.activePage.drawMainDoc.y,
|
|
67621
67642
|
width: 0,
|
|
67622
67643
|
height: 0,
|
|
67623
67644
|
pageIndex: hoEditorFactory.drawTree.caret.pageIndex
|
|
@@ -76813,7 +76834,7 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
76813
76834
|
if (this.node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
76814
76835
|
var parentNode = this.node.parentNode;
|
|
76815
76836
|
if (parentNode.inputFieldType === 0) {
|
|
76816
|
-
if (backColor === hoEditorFactory.pageProperty.backColor) {
|
|
76837
|
+
if (backColor === hoEditorFactory.pageProperty.backColor || backColor == "#FFFFFF" && !parentNode.enableGlobalColor) {
|
|
76817
76838
|
backColor = hoEditorFactory.option.getColorByLevel(10);
|
|
76818
76839
|
}
|
|
76819
76840
|
} else {
|
|
@@ -78801,6 +78822,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
78801
78822
|
(0,defineProperty/* default */.Z)(this, "_curOnSelectedComment", void 0);
|
|
78802
78823
|
(0,defineProperty/* default */.Z)(this, "_pageNumNodes", void 0);
|
|
78803
78824
|
(0,defineProperty/* default */.Z)(this, "_pageCountNodes", void 0);
|
|
78825
|
+
(0,defineProperty/* default */.Z)(this, "_errorsMap", void 0);
|
|
78804
78826
|
(0,defineProperty/* default */.Z)(this, "_formularNodes", void 0);
|
|
78805
78827
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
78806
78828
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
@@ -78829,6 +78851,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
78829
78851
|
this._pageNumNodes = new Map();
|
|
78830
78852
|
this._pageCountNodes = new Map();
|
|
78831
78853
|
this._formularNodes = new Map();
|
|
78854
|
+
this._errorsMap = new Map();
|
|
78832
78855
|
// this._drawPageMarks = new Array<DrawPageMarkNode>();
|
|
78833
78856
|
// this._nodeMouseOverHandler = new Array<NodeMouseOverHandler>();
|
|
78834
78857
|
// this._nodeMouseOutHandler = new Array<NodeMouseOutHandler>();
|
|
@@ -78852,6 +78875,8 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
78852
78875
|
//所有drawArea里面的批注 不用来显示 只用来做判断
|
|
78853
78876
|
//当前处于选中状态的批注
|
|
78854
78877
|
|
|
78878
|
+
//错别字提示
|
|
78879
|
+
|
|
78855
78880
|
// private _drawPageMarks: Array<DrawPageMarkNode>;
|
|
78856
78881
|
// get drawPageMarks() {
|
|
78857
78882
|
// return this._drawPageMarks;
|
|
@@ -78938,6 +78963,16 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
78938
78963
|
this._commentsMap = value;
|
|
78939
78964
|
}
|
|
78940
78965
|
}
|
|
78966
|
+
}, {
|
|
78967
|
+
key: "errorsMap",
|
|
78968
|
+
get: function get() {
|
|
78969
|
+
return this._errorsMap;
|
|
78970
|
+
},
|
|
78971
|
+
set: function set(value) {
|
|
78972
|
+
if (this._errorsMap !== value) {
|
|
78973
|
+
this._errorsMap = value;
|
|
78974
|
+
}
|
|
78975
|
+
}
|
|
78941
78976
|
}, {
|
|
78942
78977
|
key: "curOnSelectedComment",
|
|
78943
78978
|
get: function get() {
|
|
@@ -82546,6 +82581,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
82546
82581
|
this._curOnSelectedComment = null;
|
|
82547
82582
|
this._pageNumNodes = new Map();
|
|
82548
82583
|
this._pageCountNodes = new Map();
|
|
82584
|
+
this._errorsMap = new Map();
|
|
82549
82585
|
// this._drawPageMarks = [];
|
|
82550
82586
|
// const drawObjet = this.getDNodeByPath("main/0");
|
|
82551
82587
|
// if (drawObjet instanceof DrawTable) {
|
|
@@ -89403,7 +89439,7 @@ var createPrintHTMLStyle = function createPrintHTMLStyle(pageSize, orientation)
|
|
|
89403
89439
|
var printStyle = document.createElement('style');
|
|
89404
89440
|
// css打印设置 size中 纸张尺寸暂时无法生效 打印方向生效
|
|
89405
89441
|
printStyle.type = 'text/css';
|
|
89406
|
-
printStyle.innerHTML = "\n @media print {\n @page {\n margin: 0;\n border: 0 solid transparent;\n size: ".concat(pageSize, " ").concat(orientation === 'l' ? 'landscape' : 'portrait', ";\n }\n\n body, html {\n padding: 0;\n margin: 0;\n background: #fff;\n }\n svg {\n display: block;\n margin: 0 auto;\n border: 0;\n }\n }\n body, html {\n margin: 0;\n background: #eee;\n text-align: center;\n }\n .ho-print-svg-list {\n margin: 0 auto;\n }\n .ho-print-svg-box {\n margin: 0 auto;\n position: relative;\n }\n svg {\n display: block;\n margin: 20px auto;\n border: 0;\n }\n svg:first-child {\n margin-top: 0\n }\n svg:last-child {\n margin-bottom: 0\n }\n ");
|
|
89442
|
+
printStyle.innerHTML = "\n @media print {\n @page {\n margin: 0;\n border: 0 solid transparent;\n size: ".concat(pageSize, " ").concat(orientation === 'l' ? 'landscape' : 'portrait', ";\n }\n\n body, html {\n padding: 0;\n margin: 0;\n background: #fff;\n }\n svg {\n display: block;\n margin: 0 auto;\n border: 0;\n background: #FFF;\n }\n }\n body, html {\n margin: 0;\n background: #eee;\n text-align: center;\n }\n .ho-print-svg-list {\n margin: 0 auto;\n }\n .ho-print-svg-box {\n margin: 0 auto;\n position: relative;\n }\n svg {\n display: block;\n margin: 20px auto;\n border: 0;\n background: #FFF;\n }\n svg:first-child {\n margin-top: 0\n }\n svg:last-child {\n margin-bottom: 0\n }\n ");
|
|
89407
89443
|
return printStyle;
|
|
89408
89444
|
};
|
|
89409
89445
|
/**
|
|
@@ -256446,8 +256482,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
256446
256482
|
var es_number_constructor = __webpack_require__(9653);
|
|
256447
256483
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
256448
256484
|
var es_json_stringify = __webpack_require__(38862);
|
|
256449
|
-
;// 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=
|
|
256450
|
-
var
|
|
256485
|
+
;// 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=ce9bcdc6&
|
|
256486
|
+
var HoDocvue_type_template_id_ce9bcdc6_render = function render() {
|
|
256451
256487
|
var _vm = this,
|
|
256452
256488
|
_c = _vm._self._c;
|
|
256453
256489
|
return _c('div', {
|
|
@@ -256593,7 +256629,7 @@ var HoDocvue_type_template_id_47dcd5c8_render = function render() {
|
|
|
256593
256629
|
}
|
|
256594
256630
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
256595
256631
|
};
|
|
256596
|
-
var
|
|
256632
|
+
var HoDocvue_type_template_id_ce9bcdc6_staticRenderFns = [];
|
|
256597
256633
|
|
|
256598
256634
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
256599
256635
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -256603,8 +256639,8 @@ var es_string_includes = __webpack_require__(32023);
|
|
|
256603
256639
|
var es_array_sort = __webpack_require__(2707);
|
|
256604
256640
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
256605
256641
|
var es_string_replace = __webpack_require__(15306);
|
|
256606
|
-
;// 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/HoPage.vue?vue&type=template&id=
|
|
256607
|
-
var
|
|
256642
|
+
;// 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/HoPage.vue?vue&type=template&id=5ed62e92&scoped=true&
|
|
256643
|
+
var HoPagevue_type_template_id_5ed62e92_scoped_true_render = function render() {
|
|
256608
256644
|
var _vm = this,
|
|
256609
256645
|
_c = _vm._self._c;
|
|
256610
256646
|
return _c('div', {
|
|
@@ -256668,7 +256704,7 @@ var HoPagevue_type_template_id_188fb5b4_scoped_true_render = function render() {
|
|
|
256668
256704
|
}], null, true)
|
|
256669
256705
|
}) : _vm._e()], 2);
|
|
256670
256706
|
};
|
|
256671
|
-
var
|
|
256707
|
+
var HoPagevue_type_template_id_5ed62e92_scoped_true_staticRenderFns = [];
|
|
256672
256708
|
|
|
256673
256709
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js
|
|
256674
256710
|
var regeneratorRuntime = __webpack_require__(80543);
|
|
@@ -257594,270 +257630,6 @@ var DrawDomLevel = /*#__PURE__*/function () {
|
|
|
257594
257630
|
}]);
|
|
257595
257631
|
return DrawDomLevel;
|
|
257596
257632
|
}();
|
|
257597
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
|
|
257598
|
-
var es_array_slice = __webpack_require__(47042);
|
|
257599
|
-
// EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
|
|
257600
|
-
var MarkNode = __webpack_require__(57727);
|
|
257601
|
-
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TextNode.ts
|
|
257602
|
-
var TextNode = __webpack_require__(27198);
|
|
257603
|
-
// EXTERNAL MODULE: ./src/editor/events/NodeClickEvent.ts
|
|
257604
|
-
var NodeClickEvent = __webpack_require__(84561);
|
|
257605
|
-
;// CONCATENATED MODULE: ./src/editor/events/NodeMouseMoveEvent.ts
|
|
257606
|
-
|
|
257607
|
-
|
|
257608
|
-
|
|
257609
|
-
|
|
257610
|
-
|
|
257611
|
-
|
|
257612
|
-
|
|
257613
|
-
|
|
257614
|
-
|
|
257615
|
-
|
|
257616
|
-
|
|
257617
|
-
|
|
257618
|
-
|
|
257619
|
-
|
|
257620
|
-
|
|
257621
|
-
|
|
257622
|
-
|
|
257623
|
-
|
|
257624
|
-
|
|
257625
|
-
|
|
257626
|
-
var DmouseEventType;
|
|
257627
|
-
(function (DmouseEventType) {
|
|
257628
|
-
DmouseEventType[DmouseEventType["detOver"] = 0] = "detOver";
|
|
257629
|
-
DmouseEventType[DmouseEventType["detOut"] = 1] = "detOut";
|
|
257630
|
-
DmouseEventType[DmouseEventType["detClick"] = 2] = "detClick";
|
|
257631
|
-
DmouseEventType[DmouseEventType["detDblclick"] = 3] = "detDblclick";
|
|
257632
|
-
})(DmouseEventType || (DmouseEventType = {}));
|
|
257633
|
-
var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
257634
|
-
// private _name!: string;
|
|
257635
|
-
|
|
257636
|
-
function NodeMouseMoveEvent(hoEditorFactoryID) {
|
|
257637
|
-
(0,esm_classCallCheck/* default */.Z)(this, NodeMouseMoveEvent);
|
|
257638
|
-
(0,esm_defineProperty/* default */.Z)(this, "_pageIndex", void 0);
|
|
257639
|
-
(0,esm_defineProperty/* default */.Z)(this, "_moveType", void 0);
|
|
257640
|
-
(0,esm_defineProperty/* default */.Z)(this, "_hoEditorFactoryID", void 0);
|
|
257641
|
-
(0,esm_defineProperty/* default */.Z)(this, "_position", void 0);
|
|
257642
|
-
(0,esm_defineProperty/* default */.Z)(this, "_poperTipPos", void 0);
|
|
257643
|
-
(0,esm_defineProperty/* default */.Z)(this, "_tipText", void 0);
|
|
257644
|
-
(0,esm_defineProperty/* default */.Z)(this, "_id", void 0);
|
|
257645
|
-
(0,esm_defineProperty/* default */.Z)(this, "_deleterIndex", void 0);
|
|
257646
|
-
(0,esm_defineProperty/* default */.Z)(this, "_creatorIndex", void 0);
|
|
257647
|
-
(0,esm_defineProperty/* default */.Z)(this, "_isUseTipText", void 0);
|
|
257648
|
-
this._pageIndex = 0;
|
|
257649
|
-
this._moveType = DmouseEventType.detOut;
|
|
257650
|
-
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
257651
|
-
this._tipText = [];
|
|
257652
|
-
this._id = [];
|
|
257653
|
-
}
|
|
257654
|
-
(0,esm_createClass/* default */.Z)(NodeMouseMoveEvent, [{
|
|
257655
|
-
key: "pageIndex",
|
|
257656
|
-
get: function get() {
|
|
257657
|
-
return this._pageIndex;
|
|
257658
|
-
}
|
|
257659
|
-
}, {
|
|
257660
|
-
key: "moveType",
|
|
257661
|
-
get: function get() {
|
|
257662
|
-
return this._moveType;
|
|
257663
|
-
}
|
|
257664
|
-
}, {
|
|
257665
|
-
key: "id",
|
|
257666
|
-
get: function get() {
|
|
257667
|
-
return this._id;
|
|
257668
|
-
}
|
|
257669
|
-
}, {
|
|
257670
|
-
key: "tipText",
|
|
257671
|
-
get: function get() {
|
|
257672
|
-
return this._tipText;
|
|
257673
|
-
}
|
|
257674
|
-
}, {
|
|
257675
|
-
key: "position",
|
|
257676
|
-
get: function get() {
|
|
257677
|
-
return this._position;
|
|
257678
|
-
}
|
|
257679
|
-
}, {
|
|
257680
|
-
key: "deleterIndex",
|
|
257681
|
-
get: function get() {
|
|
257682
|
-
return this._deleterIndex;
|
|
257683
|
-
}
|
|
257684
|
-
}, {
|
|
257685
|
-
key: "poperTipPos",
|
|
257686
|
-
get: function get() {
|
|
257687
|
-
return this._poperTipPos;
|
|
257688
|
-
},
|
|
257689
|
-
set: function set(value) {
|
|
257690
|
-
if (this._poperTipPos !== value) {
|
|
257691
|
-
this._poperTipPos = value;
|
|
257692
|
-
}
|
|
257693
|
-
}
|
|
257694
|
-
}, {
|
|
257695
|
-
key: "isUseTipText",
|
|
257696
|
-
get: function get() {
|
|
257697
|
-
return this._isUseTipText;
|
|
257698
|
-
},
|
|
257699
|
-
set: function set(value) {
|
|
257700
|
-
if (this._isUseTipText !== value) {
|
|
257701
|
-
this._isUseTipText = value;
|
|
257702
|
-
}
|
|
257703
|
-
}
|
|
257704
|
-
/**
|
|
257705
|
-
* @param node moveNode
|
|
257706
|
-
* @param moveType
|
|
257707
|
-
*/
|
|
257708
|
-
}, {
|
|
257709
|
-
key: "setNode",
|
|
257710
|
-
value: function setNode(node, moveType) {
|
|
257711
|
-
this._creatorIndex = -1;
|
|
257712
|
-
this._deleterIndex = -1;
|
|
257713
|
-
this._tipText = [];
|
|
257714
|
-
this._id = [];
|
|
257715
|
-
// if(moveType === DmouseEventType.detOut) {
|
|
257716
|
-
// return;
|
|
257717
|
-
// }
|
|
257718
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
257719
|
-
if (node instanceof TextNode/* TextNode */.R) {
|
|
257720
|
-
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawTree.paintStatus === DrawTree/* PaintState.psReview */.Dh.psReview) {
|
|
257721
|
-
this._creatorIndex = hoEditorFactory.docTree.styles[node.styleIndex].creatorIndex;
|
|
257722
|
-
this._deleterIndex = hoEditorFactory.docTree.styles[node.styleIndex].deleterIndex;
|
|
257723
|
-
// if(moveType === DmouseEventType.detOver) {
|
|
257724
|
-
// console.log(this._creatorIndex, this._deleterIndex);
|
|
257725
|
-
// console.log(HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.userHistories);
|
|
257726
|
-
// }
|
|
257727
|
-
if (this._creatorIndex !== undefined && this._creatorIndex >= 0) {
|
|
257728
|
-
var userHistories = hoEditorFactory.docTree.userHistories[this._creatorIndex];
|
|
257729
|
-
this._moveType = moveType;
|
|
257730
|
-
this._tipText.push("".concat(userHistories.editDate, " ").concat(userHistories.name, "\u521B\u5EFA"));
|
|
257731
|
-
this._id.push(userHistories.id);
|
|
257732
|
-
this.computedPosition(node.drawNodes[0]);
|
|
257733
|
-
}
|
|
257734
|
-
if (this._deleterIndex !== undefined && this._deleterIndex >= 0) {
|
|
257735
|
-
var _userHistories = hoEditorFactory.docTree.userHistories[this._deleterIndex];
|
|
257736
|
-
this._moveType = moveType;
|
|
257737
|
-
this._tipText.push("".concat(_userHistories.editDate, " ").concat(_userHistories.name, "\u5220\u9664"));
|
|
257738
|
-
this._id.push(_userHistories.id);
|
|
257739
|
-
this.computedPosition(node.drawNodes[0]);
|
|
257740
|
-
}
|
|
257741
|
-
} else {
|
|
257742
|
-
if (this._isUseTipText && this._deleterIndex !== 0 && node.parentNode && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && (hoEditorFactory.drawTree.paintStatus === 0 || hoEditorFactory.drawTree.paintStatus === 1 || hoEditorFactory.drawTree.paintStatus === 4)) {
|
|
257743
|
-
this._moveType = moveType;
|
|
257744
|
-
if (node.parentNode.tipText) {
|
|
257745
|
-
var text = JSON.stringify(node.parentNode.tipText);
|
|
257746
|
-
text = text.slice(1, text.length - 1);
|
|
257747
|
-
var arr = text.split("\\n").filter(function (v) {
|
|
257748
|
-
return v;
|
|
257749
|
-
});
|
|
257750
|
-
this._tipText = arr;
|
|
257751
|
-
} else {
|
|
257752
|
-
this._tipText.push('');
|
|
257753
|
-
}
|
|
257754
|
-
this._id.push(node.parentNode.id);
|
|
257755
|
-
this.computedPosition(node.drawNodes[0]);
|
|
257756
|
-
}
|
|
257757
|
-
}
|
|
257758
|
-
} else if (node instanceof MarkNode/* MarkNode */.j) {
|
|
257759
|
-
if (this._isUseTipText && this._deleterIndex !== 0 && node.parentNode && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && (hoEditorFactory.drawTree.paintStatus === 0 || hoEditorFactory.drawTree.paintStatus === 1 || hoEditorFactory.drawTree.paintStatus === 4)) {
|
|
257760
|
-
this._moveType = moveType;
|
|
257761
|
-
if (node.parentNode.tipText) {
|
|
257762
|
-
var _text = JSON.stringify(node.parentNode.tipText);
|
|
257763
|
-
_text = _text.slice(1, _text.length - 1);
|
|
257764
|
-
var _arr = _text.split("\\n").filter(function (v) {
|
|
257765
|
-
return v;
|
|
257766
|
-
});
|
|
257767
|
-
this._tipText = _arr;
|
|
257768
|
-
} else {
|
|
257769
|
-
this._tipText.push('');
|
|
257770
|
-
}
|
|
257771
|
-
this._id.push(node.parentNode.id);
|
|
257772
|
-
this.computedPosition(node.drawNodes[0]);
|
|
257773
|
-
}
|
|
257774
|
-
} else {
|
|
257775
|
-
if (this._isUseTipText && (hoEditorFactory.drawTree.paintStatus === 0 || hoEditorFactory.drawTree.paintStatus === 1 || hoEditorFactory.drawTree.paintStatus === 4)) {
|
|
257776
|
-
if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
257777
|
-
this._moveType = moveType;
|
|
257778
|
-
if (node.tipText) {
|
|
257779
|
-
var _text2 = JSON.stringify(node.tipText);
|
|
257780
|
-
_text2 = _text2.slice(1, _text2.length - 1);
|
|
257781
|
-
var _arr2 = _text2.split("\\n").filter(function (v) {
|
|
257782
|
-
return v;
|
|
257783
|
-
});
|
|
257784
|
-
this._tipText = _arr2;
|
|
257785
|
-
} else {
|
|
257786
|
-
this._tipText.push('');
|
|
257787
|
-
}
|
|
257788
|
-
this._id.push(node.id);
|
|
257789
|
-
this.computedPosition(node.drawNodes[0]);
|
|
257790
|
-
}
|
|
257791
|
-
}
|
|
257792
|
-
}
|
|
257793
|
-
}
|
|
257794
|
-
}, {
|
|
257795
|
-
key: "NodeClick",
|
|
257796
|
-
value: function NodeClick(node, moveType) {
|
|
257797
|
-
var _this = this;
|
|
257798
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
257799
|
-
if (node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh && moveType === DmouseEventType.detClick) {
|
|
257800
|
-
var drawLine = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]);
|
|
257801
|
-
var nodeClickEvent = new NodeClickEvent/* NodeClickEvent */.W(node, "click");
|
|
257802
|
-
hoEditorFactory.docTree.nodeClick(nodeClickEvent);
|
|
257803
|
-
node.drawNodes[0].parent = drawLine;
|
|
257804
|
-
}
|
|
257805
|
-
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psDesign */.Dh.psDesign) {
|
|
257806
|
-
var paragraphNode = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]).paragraphNode;
|
|
257807
|
-
if (paragraphNode && paragraphNode.customProperty) {
|
|
257808
|
-
var customProperty = paragraphNode.customProperty;
|
|
257809
|
-
var paragraphTip = ['男', '女'].includes(customProperty.sex) || customProperty.age && customProperty.age.select == '隐藏';
|
|
257810
|
-
var arr = [];
|
|
257811
|
-
if (paragraphTip) {
|
|
257812
|
-
if (['男', '女'].includes(customProperty.sex)) {
|
|
257813
|
-
arr.push("\u60A3\u8005\u4E3A<span style=\"color:#f00\"> ".concat(customProperty.sex, " </span>\u6027\u65F6\uFF0C\u9690\u85CF\u5F53\u524D\u6BB5\u843D"));
|
|
257814
|
-
}
|
|
257815
|
-
if (customProperty.age && customProperty.age.select == '隐藏') {
|
|
257816
|
-
arr.push("\u60A3\u8005\u5E74\u9F84\u5728<span style=\"color:#f00\"> ".concat(customProperty.age.minAge, " </span>\u5C81\u5230<span style=\"color:#f00\"> ").concat(customProperty.age.maxAge, " </span>\u4E4B\u95F4\u65F6\uFF0C\u9690\u85CF\u5F53\u524D\u6BB5\u843D"));
|
|
257817
|
-
}
|
|
257818
|
-
if (arr.length > 0) {
|
|
257819
|
-
setTimeout(function () {
|
|
257820
|
-
_this.createParagraphTipHTML(hoEditorFactory.drawTree.caret, arr);
|
|
257821
|
-
}, 0);
|
|
257822
|
-
}
|
|
257823
|
-
}
|
|
257824
|
-
}
|
|
257825
|
-
}
|
|
257826
|
-
}
|
|
257827
|
-
}, {
|
|
257828
|
-
key: "createParagraphTipHTML",
|
|
257829
|
-
value: function createParagraphTipHTML(caret, text) {
|
|
257830
|
-
var _caret$cursor$parentN;
|
|
257831
|
-
var tipdiv = document.createElement('div');
|
|
257832
|
-
tipdiv.id = "ho_paragrapgh_tip";
|
|
257833
|
-
tipdiv.style.left = caret.X + "px";
|
|
257834
|
-
tipdiv.style.top = caret.Y + caret.height + "px";
|
|
257835
|
-
tipdiv.innerHTML = text.join("<br />");
|
|
257836
|
-
(_caret$cursor$parentN = caret.cursor.parentNode) === null || _caret$cursor$parentN === void 0 ? void 0 : _caret$cursor$parentN.appendChild(tipdiv);
|
|
257837
|
-
}
|
|
257838
|
-
/**
|
|
257839
|
-
* @param node moveNode
|
|
257840
|
-
*/
|
|
257841
|
-
}, {
|
|
257842
|
-
key: "computedPosition",
|
|
257843
|
-
value: function computedPosition(nodePos) {
|
|
257844
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
257845
|
-
var drawLine = hoEditorFactory.drawTree.getDrawLineByDNode(nodePos);
|
|
257846
|
-
if (drawLine) {
|
|
257847
|
-
var docPos = drawLine.localToGlobal(nodePos.x, nodePos.y === 0 ? drawLine.dHeight : nodePos.y);
|
|
257848
|
-
this._pageIndex = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawTree.activePage.pageIndex;
|
|
257849
|
-
this._poperTipPos.width = nodePos.dWidth ? nodePos.dWidth : 0; // // 目标元素 width
|
|
257850
|
-
this._poperTipPos.height = drawLine.dHeight; // 目标元素所在行的 height
|
|
257851
|
-
this._poperTipPos.pageIndex = this._pageIndex; // 目标元素所在页
|
|
257852
|
-
this._poperTipPos.moveType = this._moveType;
|
|
257853
|
-
this._poperTipPos.y = docPos.y / DrawConfig/* DrawConfig.instance */.f.instance().scaleXY + 5; // 目标元素所在行的 y
|
|
257854
|
-
this._poperTipPos.x = docPos.x / DrawConfig/* DrawConfig.instance */.f.instance().scaleXY; // 目标元素所在行的 x
|
|
257855
|
-
}
|
|
257856
|
-
}
|
|
257857
|
-
}]);
|
|
257858
|
-
return NodeMouseMoveEvent;
|
|
257859
|
-
}();
|
|
257860
|
-
(0,esm_defineProperty/* default */.Z)(NodeMouseMoveEvent, "eventName", "nodeMouseMove");
|
|
257861
257633
|
;// 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/HoHeadFoot.vue?vue&type=template&id=d3353ee6&
|
|
257862
257634
|
var HoHeadFootvue_type_template_id_d3353ee6_render = function render() {
|
|
257863
257635
|
var _vm = this,
|
|
@@ -258093,7 +257865,6 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
|
|
|
258093
257865
|
|
|
258094
257866
|
|
|
258095
257867
|
|
|
258096
|
-
|
|
258097
257868
|
/* harmony default export */ var HoPagevue_type_script_lang_js_ = ({
|
|
258098
257869
|
name: 'HoPage',
|
|
258099
257870
|
components: {
|
|
@@ -258213,10 +257984,10 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
|
|
|
258213
257984
|
});
|
|
258214
257985
|
;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=script&lang=js&
|
|
258215
257986
|
/* harmony default export */ var components_HoPagevue_type_script_lang_js_ = (HoPagevue_type_script_lang_js_);
|
|
258216
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoPage.vue?vue&type=style&index=0&id=
|
|
257987
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoPage.vue?vue&type=style&index=0&id=5ed62e92&prod&scoped=true&lang=css&
|
|
258217
257988
|
// extracted by mini-css-extract-plugin
|
|
258218
257989
|
|
|
258219
|
-
;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=style&index=0&id=
|
|
257990
|
+
;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=style&index=0&id=5ed62e92&prod&scoped=true&lang=css&
|
|
258220
257991
|
|
|
258221
257992
|
;// CONCATENATED MODULE: ./src/components/HoPage.vue
|
|
258222
257993
|
|
|
@@ -258229,11 +258000,11 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
|
|
|
258229
258000
|
|
|
258230
258001
|
var HoPage_component = (0,componentNormalizer/* default */.Z)(
|
|
258231
258002
|
components_HoPagevue_type_script_lang_js_,
|
|
258232
|
-
|
|
258233
|
-
|
|
258003
|
+
HoPagevue_type_template_id_5ed62e92_scoped_true_render,
|
|
258004
|
+
HoPagevue_type_template_id_5ed62e92_scoped_true_staticRenderFns,
|
|
258234
258005
|
false,
|
|
258235
258006
|
null,
|
|
258236
|
-
"
|
|
258007
|
+
"5ed62e92",
|
|
258237
258008
|
null
|
|
258238
258009
|
|
|
258239
258010
|
)
|
|
@@ -260112,10 +259883,14 @@ if (typeof window.IntersectionObserver === 'function') {
|
|
|
260112
259883
|
/* harmony default export */ var intersection_observer_polyfill = (intersection_observer_polyfill_IntersectionObserver);
|
|
260113
259884
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/SignNode.ts
|
|
260114
259885
|
var SignNode = __webpack_require__(24701);
|
|
259886
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TextNode.ts
|
|
259887
|
+
var TextNode = __webpack_require__(27198);
|
|
260115
259888
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
260116
259889
|
var ParagraphNode = __webpack_require__(67945);
|
|
259890
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
|
|
259891
|
+
var MarkNode = __webpack_require__(57727);
|
|
260117
259892
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
260118
|
-
/* harmony default export */ var version = ('3.0.
|
|
259893
|
+
/* harmony default export */ var version = ('3.0.28');
|
|
260119
259894
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
260120
259895
|
var PoperTipText = __webpack_require__(15845);
|
|
260121
259896
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -260163,7 +259938,6 @@ var ImageNode = __webpack_require__(97186);
|
|
|
260163
259938
|
|
|
260164
259939
|
|
|
260165
259940
|
|
|
260166
|
-
|
|
260167
259941
|
|
|
260168
259942
|
|
|
260169
259943
|
var defaultWidth = Math.floor(793 * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY) % 2 === 1 ? Math.floor(793 * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY) + 1 : Math.floor(793 * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY);
|
|
@@ -260791,10 +260565,10 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
260791
260565
|
});
|
|
260792
260566
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
260793
260567
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
260794
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
260568
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=ce9bcdc6&prod&lang=scss&
|
|
260795
260569
|
// extracted by mini-css-extract-plugin
|
|
260796
260570
|
|
|
260797
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
260571
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=ce9bcdc6&prod&lang=scss&
|
|
260798
260572
|
|
|
260799
260573
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
260800
260574
|
|
|
@@ -260807,8 +260581,8 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
260807
260581
|
|
|
260808
260582
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
260809
260583
|
components_HoDocvue_type_script_lang_js_,
|
|
260810
|
-
|
|
260811
|
-
|
|
260584
|
+
HoDocvue_type_template_id_ce9bcdc6_render,
|
|
260585
|
+
HoDocvue_type_template_id_ce9bcdc6_staticRenderFns,
|
|
260812
260586
|
false,
|
|
260813
260587
|
null,
|
|
260814
260588
|
null,
|
|
@@ -262074,6 +261848,276 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
262074
261848
|
}]);
|
|
262075
261849
|
return DrawPageTree;
|
|
262076
261850
|
}();
|
|
261851
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
|
|
261852
|
+
var es_array_slice = __webpack_require__(47042);
|
|
261853
|
+
// EXTERNAL MODULE: ./src/editor/events/NodeClickEvent.ts
|
|
261854
|
+
var NodeClickEvent = __webpack_require__(84561);
|
|
261855
|
+
;// CONCATENATED MODULE: ./src/editor/events/NodeMouseMoveEvent.ts
|
|
261856
|
+
|
|
261857
|
+
|
|
261858
|
+
|
|
261859
|
+
|
|
261860
|
+
|
|
261861
|
+
|
|
261862
|
+
|
|
261863
|
+
|
|
261864
|
+
|
|
261865
|
+
|
|
261866
|
+
|
|
261867
|
+
|
|
261868
|
+
|
|
261869
|
+
|
|
261870
|
+
|
|
261871
|
+
|
|
261872
|
+
|
|
261873
|
+
|
|
261874
|
+
|
|
261875
|
+
|
|
261876
|
+
var DmouseEventType;
|
|
261877
|
+
(function (DmouseEventType) {
|
|
261878
|
+
DmouseEventType[DmouseEventType["detOver"] = 0] = "detOver";
|
|
261879
|
+
DmouseEventType[DmouseEventType["detOut"] = 1] = "detOut";
|
|
261880
|
+
DmouseEventType[DmouseEventType["detClick"] = 2] = "detClick";
|
|
261881
|
+
DmouseEventType[DmouseEventType["detDblclick"] = 3] = "detDblclick";
|
|
261882
|
+
})(DmouseEventType || (DmouseEventType = {}));
|
|
261883
|
+
var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
261884
|
+
// private _name!: string;
|
|
261885
|
+
|
|
261886
|
+
function NodeMouseMoveEvent(hoEditorFactoryID) {
|
|
261887
|
+
(0,esm_classCallCheck/* default */.Z)(this, NodeMouseMoveEvent);
|
|
261888
|
+
(0,esm_defineProperty/* default */.Z)(this, "_pageIndex", void 0);
|
|
261889
|
+
(0,esm_defineProperty/* default */.Z)(this, "_moveType", void 0);
|
|
261890
|
+
(0,esm_defineProperty/* default */.Z)(this, "_hoEditorFactoryID", void 0);
|
|
261891
|
+
(0,esm_defineProperty/* default */.Z)(this, "_position", void 0);
|
|
261892
|
+
(0,esm_defineProperty/* default */.Z)(this, "_poperTipPos", void 0);
|
|
261893
|
+
(0,esm_defineProperty/* default */.Z)(this, "_tipText", void 0);
|
|
261894
|
+
(0,esm_defineProperty/* default */.Z)(this, "_id", void 0);
|
|
261895
|
+
(0,esm_defineProperty/* default */.Z)(this, "_deleterIndex", void 0);
|
|
261896
|
+
(0,esm_defineProperty/* default */.Z)(this, "_creatorIndex", void 0);
|
|
261897
|
+
(0,esm_defineProperty/* default */.Z)(this, "_isUseTipText", void 0);
|
|
261898
|
+
this._pageIndex = 0;
|
|
261899
|
+
this._moveType = DmouseEventType.detOut;
|
|
261900
|
+
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
261901
|
+
this._tipText = [];
|
|
261902
|
+
this._id = [];
|
|
261903
|
+
}
|
|
261904
|
+
(0,esm_createClass/* default */.Z)(NodeMouseMoveEvent, [{
|
|
261905
|
+
key: "pageIndex",
|
|
261906
|
+
get: function get() {
|
|
261907
|
+
return this._pageIndex;
|
|
261908
|
+
}
|
|
261909
|
+
}, {
|
|
261910
|
+
key: "moveType",
|
|
261911
|
+
get: function get() {
|
|
261912
|
+
return this._moveType;
|
|
261913
|
+
}
|
|
261914
|
+
}, {
|
|
261915
|
+
key: "id",
|
|
261916
|
+
get: function get() {
|
|
261917
|
+
return this._id;
|
|
261918
|
+
}
|
|
261919
|
+
}, {
|
|
261920
|
+
key: "tipText",
|
|
261921
|
+
get: function get() {
|
|
261922
|
+
return this._tipText;
|
|
261923
|
+
}
|
|
261924
|
+
}, {
|
|
261925
|
+
key: "position",
|
|
261926
|
+
get: function get() {
|
|
261927
|
+
return this._position;
|
|
261928
|
+
}
|
|
261929
|
+
}, {
|
|
261930
|
+
key: "deleterIndex",
|
|
261931
|
+
get: function get() {
|
|
261932
|
+
return this._deleterIndex;
|
|
261933
|
+
}
|
|
261934
|
+
}, {
|
|
261935
|
+
key: "poperTipPos",
|
|
261936
|
+
get: function get() {
|
|
261937
|
+
return this._poperTipPos;
|
|
261938
|
+
},
|
|
261939
|
+
set: function set(value) {
|
|
261940
|
+
if (this._poperTipPos !== value) {
|
|
261941
|
+
this._poperTipPos = value;
|
|
261942
|
+
}
|
|
261943
|
+
}
|
|
261944
|
+
}, {
|
|
261945
|
+
key: "isUseTipText",
|
|
261946
|
+
get: function get() {
|
|
261947
|
+
return this._isUseTipText;
|
|
261948
|
+
},
|
|
261949
|
+
set: function set(value) {
|
|
261950
|
+
if (this._isUseTipText !== value) {
|
|
261951
|
+
this._isUseTipText = value;
|
|
261952
|
+
}
|
|
261953
|
+
}
|
|
261954
|
+
/**
|
|
261955
|
+
* @param node moveNode
|
|
261956
|
+
* @param moveType
|
|
261957
|
+
*/
|
|
261958
|
+
}, {
|
|
261959
|
+
key: "setNode",
|
|
261960
|
+
value: function setNode(node, moveType) {
|
|
261961
|
+
this._creatorIndex = -1;
|
|
261962
|
+
this._deleterIndex = -1;
|
|
261963
|
+
this._tipText = [];
|
|
261964
|
+
this._id = [];
|
|
261965
|
+
// if(moveType === DmouseEventType.detOut) {
|
|
261966
|
+
// return;
|
|
261967
|
+
// }
|
|
261968
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
261969
|
+
if (node instanceof TextNode/* TextNode */.R) {
|
|
261970
|
+
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawTree.paintStatus === DrawTree/* PaintState.psReview */.Dh.psReview) {
|
|
261971
|
+
this._creatorIndex = hoEditorFactory.docTree.styles[node.styleIndex].creatorIndex;
|
|
261972
|
+
this._deleterIndex = hoEditorFactory.docTree.styles[node.styleIndex].deleterIndex;
|
|
261973
|
+
// if(moveType === DmouseEventType.detOver) {
|
|
261974
|
+
// console.log(this._creatorIndex, this._deleterIndex);
|
|
261975
|
+
// console.log(HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.userHistories);
|
|
261976
|
+
// }
|
|
261977
|
+
if (this._creatorIndex !== undefined && this._creatorIndex >= 0) {
|
|
261978
|
+
var userHistories = hoEditorFactory.docTree.userHistories[this._creatorIndex];
|
|
261979
|
+
this._moveType = moveType;
|
|
261980
|
+
this._tipText.push("".concat(userHistories.editDate, " ").concat(userHistories.name, "\u521B\u5EFA"));
|
|
261981
|
+
this._id.push(userHistories.id);
|
|
261982
|
+
this.computedPosition(node.drawNodes[0]);
|
|
261983
|
+
}
|
|
261984
|
+
if (this._deleterIndex !== undefined && this._deleterIndex >= 0) {
|
|
261985
|
+
var _userHistories = hoEditorFactory.docTree.userHistories[this._deleterIndex];
|
|
261986
|
+
this._moveType = moveType;
|
|
261987
|
+
this._tipText.push("".concat(_userHistories.editDate, " ").concat(_userHistories.name, "\u5220\u9664"));
|
|
261988
|
+
this._id.push(_userHistories.id);
|
|
261989
|
+
this.computedPosition(node.drawNodes[0]);
|
|
261990
|
+
}
|
|
261991
|
+
} else {
|
|
261992
|
+
if (this._isUseTipText && this._deleterIndex !== 0 && node.parentNode && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && (hoEditorFactory.drawTree.paintStatus === 0 || hoEditorFactory.drawTree.paintStatus === 1 || hoEditorFactory.drawTree.paintStatus === 4)) {
|
|
261993
|
+
this._moveType = moveType;
|
|
261994
|
+
if (node.parentNode.tipText) {
|
|
261995
|
+
var text = JSON.stringify(node.parentNode.tipText);
|
|
261996
|
+
text = text.slice(1, text.length - 1);
|
|
261997
|
+
var arr = text.split("\\n").filter(function (v) {
|
|
261998
|
+
return v;
|
|
261999
|
+
});
|
|
262000
|
+
this._tipText = arr;
|
|
262001
|
+
} else {
|
|
262002
|
+
this._tipText.push('');
|
|
262003
|
+
}
|
|
262004
|
+
this._id.push(node.parentNode.id);
|
|
262005
|
+
this.computedPosition(node.drawNodes[0]);
|
|
262006
|
+
}
|
|
262007
|
+
}
|
|
262008
|
+
} else if (node instanceof MarkNode/* MarkNode */.j) {
|
|
262009
|
+
if (this._isUseTipText && this._deleterIndex !== 0 && node.parentNode && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && (hoEditorFactory.drawTree.paintStatus === 0 || hoEditorFactory.drawTree.paintStatus === 1 || hoEditorFactory.drawTree.paintStatus === 4)) {
|
|
262010
|
+
this._moveType = moveType;
|
|
262011
|
+
if (node.parentNode.tipText) {
|
|
262012
|
+
var _text = JSON.stringify(node.parentNode.tipText);
|
|
262013
|
+
_text = _text.slice(1, _text.length - 1);
|
|
262014
|
+
var _arr = _text.split("\\n").filter(function (v) {
|
|
262015
|
+
return v;
|
|
262016
|
+
});
|
|
262017
|
+
this._tipText = _arr;
|
|
262018
|
+
} else {
|
|
262019
|
+
this._tipText.push('');
|
|
262020
|
+
}
|
|
262021
|
+
this._id.push(node.parentNode.id);
|
|
262022
|
+
this.computedPosition(node.drawNodes[0]);
|
|
262023
|
+
}
|
|
262024
|
+
} else {
|
|
262025
|
+
if (this._isUseTipText && (hoEditorFactory.drawTree.paintStatus === 0 || hoEditorFactory.drawTree.paintStatus === 1 || hoEditorFactory.drawTree.paintStatus === 4)) {
|
|
262026
|
+
if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
262027
|
+
this._moveType = moveType;
|
|
262028
|
+
if (node.tipText) {
|
|
262029
|
+
var _text2 = JSON.stringify(node.tipText);
|
|
262030
|
+
_text2 = _text2.slice(1, _text2.length - 1);
|
|
262031
|
+
var _arr2 = _text2.split("\\n").filter(function (v) {
|
|
262032
|
+
return v;
|
|
262033
|
+
});
|
|
262034
|
+
this._tipText = _arr2;
|
|
262035
|
+
} else {
|
|
262036
|
+
this._tipText.push('');
|
|
262037
|
+
}
|
|
262038
|
+
this._id.push(node.id);
|
|
262039
|
+
this.computedPosition(node.drawNodes[0]);
|
|
262040
|
+
}
|
|
262041
|
+
}
|
|
262042
|
+
}
|
|
262043
|
+
}
|
|
262044
|
+
}, {
|
|
262045
|
+
key: "NodeClick",
|
|
262046
|
+
value: function NodeClick(node, moveType) {
|
|
262047
|
+
var _this = this;
|
|
262048
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
262049
|
+
if (node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh && moveType === DmouseEventType.detClick) {
|
|
262050
|
+
var drawLine = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]);
|
|
262051
|
+
var nodeClickEvent = new NodeClickEvent/* NodeClickEvent */.W(node, "click");
|
|
262052
|
+
hoEditorFactory.docTree.nodeClick(nodeClickEvent);
|
|
262053
|
+
node.drawNodes[0].parent = drawLine;
|
|
262054
|
+
}
|
|
262055
|
+
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psDesign */.Dh.psDesign) {
|
|
262056
|
+
var paragraphNode = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]).paragraphNode;
|
|
262057
|
+
if (paragraphNode && paragraphNode.customProperty) {
|
|
262058
|
+
var customProperty = paragraphNode.customProperty;
|
|
262059
|
+
var paragraphTip = ['男', '女'].includes(customProperty.sex) || customProperty.age && customProperty.age.select == '隐藏';
|
|
262060
|
+
var arr = [];
|
|
262061
|
+
if (paragraphTip) {
|
|
262062
|
+
if (['男', '女'].includes(customProperty.sex)) {
|
|
262063
|
+
arr.push("\u60A3\u8005\u4E3A<span style=\"color:#f00\"> ".concat(customProperty.sex, " </span>\u6027\u65F6\uFF0C\u9690\u85CF\u5F53\u524D\u6BB5\u843D"));
|
|
262064
|
+
}
|
|
262065
|
+
if (customProperty.age && customProperty.age.select == '隐藏') {
|
|
262066
|
+
arr.push("\u60A3\u8005\u5E74\u9F84\u5728<span style=\"color:#f00\"> ".concat(customProperty.age.minAge, " </span>\u5C81\u5230<span style=\"color:#f00\"> ").concat(customProperty.age.maxAge, " </span>\u4E4B\u95F4\u65F6\uFF0C\u9690\u85CF\u5F53\u524D\u6BB5\u843D"));
|
|
262067
|
+
}
|
|
262068
|
+
if (arr.length > 0) {
|
|
262069
|
+
setTimeout(function () {
|
|
262070
|
+
_this.createParagraphTipHTML(hoEditorFactory.drawTree.caret, arr);
|
|
262071
|
+
}, 0);
|
|
262072
|
+
}
|
|
262073
|
+
}
|
|
262074
|
+
}
|
|
262075
|
+
}
|
|
262076
|
+
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psDesign */.Dh.psDesign || hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psEdit */.Dh.psEdit) {
|
|
262077
|
+
if (node.errorIndex !== undefined) {
|
|
262078
|
+
var text = hoEditorFactory.drawTree.errorsMap.get(node.errorIndex);
|
|
262079
|
+
if (Array.isArray(text) && text.length > 0) {
|
|
262080
|
+
setTimeout(function () {
|
|
262081
|
+
_this.createParagraphTipHTML(hoEditorFactory.drawTree.caret, text);
|
|
262082
|
+
}, 0);
|
|
262083
|
+
}
|
|
262084
|
+
}
|
|
262085
|
+
}
|
|
262086
|
+
}
|
|
262087
|
+
}, {
|
|
262088
|
+
key: "createParagraphTipHTML",
|
|
262089
|
+
value: function createParagraphTipHTML(caret, text) {
|
|
262090
|
+
var _caret$cursor$parentN;
|
|
262091
|
+
var tipdiv = document.createElement('div');
|
|
262092
|
+
tipdiv.id = "ho_paragrapgh_tip";
|
|
262093
|
+
tipdiv.style.left = caret.X + "px";
|
|
262094
|
+
tipdiv.style.top = caret.Y + caret.height + "px";
|
|
262095
|
+
tipdiv.innerHTML = text.join("<br />");
|
|
262096
|
+
(_caret$cursor$parentN = caret.cursor.parentNode) === null || _caret$cursor$parentN === void 0 ? void 0 : _caret$cursor$parentN.appendChild(tipdiv);
|
|
262097
|
+
}
|
|
262098
|
+
/**
|
|
262099
|
+
* @param node moveNode
|
|
262100
|
+
*/
|
|
262101
|
+
}, {
|
|
262102
|
+
key: "computedPosition",
|
|
262103
|
+
value: function computedPosition(nodePos) {
|
|
262104
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
262105
|
+
var drawLine = hoEditorFactory.drawTree.getDrawLineByDNode(nodePos);
|
|
262106
|
+
if (drawLine) {
|
|
262107
|
+
var docPos = drawLine.localToGlobal(nodePos.x, nodePos.y === 0 ? drawLine.dHeight : nodePos.y);
|
|
262108
|
+
this._pageIndex = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawTree.activePage.pageIndex;
|
|
262109
|
+
this._poperTipPos.width = nodePos.dWidth ? nodePos.dWidth : 0; // // 目标元素 width
|
|
262110
|
+
this._poperTipPos.height = drawLine.dHeight; // 目标元素所在行的 height
|
|
262111
|
+
this._poperTipPos.pageIndex = this._pageIndex; // 目标元素所在页
|
|
262112
|
+
this._poperTipPos.moveType = this._moveType;
|
|
262113
|
+
this._poperTipPos.y = docPos.y / DrawConfig/* DrawConfig.instance */.f.instance().scaleXY + 5; // 目标元素所在行的 y
|
|
262114
|
+
this._poperTipPos.x = docPos.x / DrawConfig/* DrawConfig.instance */.f.instance().scaleXY; // 目标元素所在行的 x
|
|
262115
|
+
}
|
|
262116
|
+
}
|
|
262117
|
+
}]);
|
|
262118
|
+
return NodeMouseMoveEvent;
|
|
262119
|
+
}();
|
|
262120
|
+
(0,esm_defineProperty/* default */.Z)(NodeMouseMoveEvent, "eventName", "nodeMouseMove");
|
|
262077
262121
|
// EXTERNAL MODULE: ./src/editor/runTimeInfo/UserInfo.ts
|
|
262078
262122
|
var UserInfo = __webpack_require__(14871);
|
|
262079
262123
|
;// CONCATENATED MODULE: ./src/editor/runTimeInfo/Option.ts
|
|
@@ -263284,6 +263328,8 @@ var PageCountNode = __webpack_require__(66034);
|
|
|
263284
263328
|
var PageNumNode = __webpack_require__(10719);
|
|
263285
263329
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ControlNode.ts
|
|
263286
263330
|
var ControlNode = __webpack_require__(91105);
|
|
263331
|
+
// EXTERNAL MODULE: ./src/editor/draw/SelectRange.ts
|
|
263332
|
+
var SelectRange = __webpack_require__(53901);
|
|
263287
263333
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TableFormula.ts
|
|
263288
263334
|
var TableFormula = __webpack_require__(90832);
|
|
263289
263335
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.search.js
|
|
@@ -263363,6 +263409,8 @@ var SeparateCharNode = __webpack_require__(39385);
|
|
|
263363
263409
|
var LabelNode = __webpack_require__(95089);
|
|
263364
263410
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/GestationNode.ts
|
|
263365
263411
|
var GestationNode = __webpack_require__(73632);
|
|
263412
|
+
// EXTERNAL MODULE: ./src/editor/draw/StagePosition.ts
|
|
263413
|
+
var StagePosition = __webpack_require__(63074);
|
|
263366
263414
|
;// CONCATENATED MODULE: ./src/editor/utils/StructureConvert.ts
|
|
263367
263415
|
|
|
263368
263416
|
|
|
@@ -263443,6 +263491,9 @@ var GestationNode = __webpack_require__(73632);
|
|
|
263443
263491
|
|
|
263444
263492
|
|
|
263445
263493
|
|
|
263494
|
+
|
|
263495
|
+
|
|
263496
|
+
|
|
263446
263497
|
|
|
263447
263498
|
|
|
263448
263499
|
|
|
@@ -263463,12 +263514,16 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
263463
263514
|
(0,esm_classCallCheck/* default */.Z)(this, StructureConvert);
|
|
263464
263515
|
(0,esm_defineProperty/* default */.Z)(this, "_hoEditorFactoryID", void 0);
|
|
263465
263516
|
(0,esm_defineProperty/* default */.Z)(this, "_comments", []);
|
|
263517
|
+
(0,esm_defineProperty/* default */.Z)(this, "_errors", []);
|
|
263466
263518
|
(0,esm_defineProperty/* default */.Z)(this, "_markNodes", []);
|
|
263519
|
+
(0,esm_defineProperty/* default */.Z)(this, "_errTextNodes", []);
|
|
263467
263520
|
(0,esm_defineProperty/* default */.Z)(this, "_superiorSign", []);
|
|
263468
263521
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
263469
263522
|
this._comments = [];
|
|
263470
263523
|
this._markNodes = [];
|
|
263471
263524
|
this._superiorSign = [];
|
|
263525
|
+
this._errors = [];
|
|
263526
|
+
this._errTextNodes = [];
|
|
263472
263527
|
}
|
|
263473
263528
|
(0,esm_createClass/* default */.Z)(StructureConvert, [{
|
|
263474
263529
|
key: "nodes2Html",
|
|
@@ -264315,7 +264370,8 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
264315
264370
|
styles: root.styles,
|
|
264316
264371
|
main: root.main.node,
|
|
264317
264372
|
header: headerDocTree,
|
|
264318
|
-
footer: footerDocTree
|
|
264373
|
+
footer: footerDocTree,
|
|
264374
|
+
errors: root.errors
|
|
264319
264375
|
};
|
|
264320
264376
|
}
|
|
264321
264377
|
return null;
|
|
@@ -264800,6 +264856,11 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
264800
264856
|
var comments = xx.comments;
|
|
264801
264857
|
this._comments = comments.comment;
|
|
264802
264858
|
}
|
|
264859
|
+
this._errors = [];
|
|
264860
|
+
var errors = xx.errors;
|
|
264861
|
+
if (errors) {
|
|
264862
|
+
this._errors = errors.error;
|
|
264863
|
+
}
|
|
264803
264864
|
// console.time("histories");
|
|
264804
264865
|
hoEditorFactory.docTree.userHistories = [];
|
|
264805
264866
|
var histories = xx.userHistories;
|
|
@@ -265178,6 +265239,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
265178
265239
|
value: function openFile(file, callback, test) {
|
|
265179
265240
|
var _this3 = this;
|
|
265180
265241
|
this._superiorSign = [];
|
|
265242
|
+
this._errTextNodes = [];
|
|
265181
265243
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
265182
265244
|
var reader = new FileReader();
|
|
265183
265245
|
// 读取文件
|
|
@@ -265231,6 +265293,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
265231
265293
|
key: "openXml",
|
|
265232
265294
|
value: function openXml(xml, callback, isDelBlockLine, isClearSign) {
|
|
265233
265295
|
var _this4 = this;
|
|
265296
|
+
this._errTextNodes = [];
|
|
265234
265297
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
265235
265298
|
this._superiorSign = [];
|
|
265236
265299
|
hoEditorFactory.isThrowError = false;
|
|
@@ -265288,10 +265351,16 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
265288
265351
|
if (aNode instanceof TableNode/* TableNode */.Fh) {
|
|
265289
265352
|
var nextNode = array[j + 1];
|
|
265290
265353
|
nodePath = hoEditorFactory.docTree.getNodeLastPath(prevNode);
|
|
265291
|
-
|
|
265354
|
+
var aparaNode = new ParagraphNode/* ParagraphNode */.C(_this5._hoEditorFactoryID, aNode.rootNodes, null, 0);
|
|
265355
|
+
if (nextNode instanceof ParagraphNode/* ParagraphNode */.C && nextNode.printAsSinglePage) {
|
|
265356
|
+
hoEditorFactory.docTree.insertNodeAfterPath(nodePath, aparaNode);
|
|
265357
|
+
prevNode = aparaNode;
|
|
265358
|
+
} else {
|
|
265359
|
+
hoEditorFactory.docTree.insertNodeAfterPath(nodePath, nextNode);
|
|
265360
|
+
prevNode = nextNode;
|
|
265361
|
+
j = j + 1;
|
|
265362
|
+
}
|
|
265292
265363
|
hoEditorFactory.docTree.insertNodeAfterPath(nodePath, aNode);
|
|
265293
|
-
j = j + 1;
|
|
265294
|
-
prevNode = nextNode;
|
|
265295
265364
|
} else {
|
|
265296
265365
|
nodePath = hoEditorFactory.docTree.getNodeLastPath(prevNode);
|
|
265297
265366
|
hoEditorFactory.docTree.insertNodeAfterPath(nodePath, aNode);
|
|
@@ -265304,6 +265373,9 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
265304
265373
|
if (aNode instanceof SignNode/* SignNode */.N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(aNode.customProperty.bce01)) {
|
|
265305
265374
|
_this5._superiorSign[0] = aNode;
|
|
265306
265375
|
}
|
|
265376
|
+
if (aNode instanceof TextNode/* TextNode */.R && aNode.errorIndex != undefined) {
|
|
265377
|
+
_this5._errTextNodes.push(aNode);
|
|
265378
|
+
}
|
|
265307
265379
|
}
|
|
265308
265380
|
};
|
|
265309
265381
|
// console.time("openJson2Doc--headersArray");
|
|
@@ -265487,6 +265559,67 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
265487
265559
|
// );
|
|
265488
265560
|
// }
|
|
265489
265561
|
}
|
|
265562
|
+
//错别字检测
|
|
265563
|
+
var errors = [];
|
|
265564
|
+
if (this._errors.length === undefined) {
|
|
265565
|
+
errors = Array(this._errors);
|
|
265566
|
+
} else {
|
|
265567
|
+
errors = this._errors;
|
|
265568
|
+
}
|
|
265569
|
+
if (errors.length > 0) {
|
|
265570
|
+
for (var m = 0; m < errors.length; m++) {
|
|
265571
|
+
var tips = [];
|
|
265572
|
+
var error = errors[m];
|
|
265573
|
+
var datas = error.data;
|
|
265574
|
+
if (datas.length == undefined) {
|
|
265575
|
+
datas = Array(datas);
|
|
265576
|
+
}
|
|
265577
|
+
for (var d = 0; d < datas.length; d++) {
|
|
265578
|
+
var data = datas[d];
|
|
265579
|
+
tips.push("错误:" + data.wrong + ",正确:" + data.correct);
|
|
265580
|
+
}
|
|
265581
|
+
hoEditorFactory.drawTree.errorsMap.set(m, tips);
|
|
265582
|
+
}
|
|
265583
|
+
var selectRangeArr = [];
|
|
265584
|
+
for (var n = 0; n < this._errTextNodes.length; n++) {
|
|
265585
|
+
var node = this._errTextNodes[n];
|
|
265586
|
+
var errIndex = this._errTextNodes[n].errorIndex;
|
|
265587
|
+
var _error = errors[errIndex];
|
|
265588
|
+
var datass = _error.data;
|
|
265589
|
+
if (datass.length == undefined) {
|
|
265590
|
+
datass = Array(datass);
|
|
265591
|
+
}
|
|
265592
|
+
for (var _t = 0; _t < datass.length; _t++) {
|
|
265593
|
+
var adata = datass[_t];
|
|
265594
|
+
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
265595
|
+
var eindexArr = ePath.split("/");
|
|
265596
|
+
var eindex = eindexArr[eindexArr.length - 1];
|
|
265597
|
+
if (Number(adata.start) < 0 || Number(adata.start) > Number(eindex)) {
|
|
265598
|
+
message/* default.warn */.Z.warn("文本节点(" + node.text + ')的起始位置有误:' + adata.start + "。(索引" + errIndex.toString() + ")");
|
|
265599
|
+
return;
|
|
265600
|
+
}
|
|
265601
|
+
if (Number(adata.end) < 0 || Number(adata.end) > Number(eindex)) {
|
|
265602
|
+
message/* default.warn */.Z.warn("文本节点(" + node.text + ')的结束位置有误:' + adata.end + "。(索引" + errIndex.toString() + ")");
|
|
265603
|
+
return;
|
|
265604
|
+
}
|
|
265605
|
+
var sPath = hoEditorFactory.docTree.getNodeFirstPath(node);
|
|
265606
|
+
var pathArr = sPath.split("/");
|
|
265607
|
+
pathArr[pathArr.length - 1] = adata.start;
|
|
265608
|
+
var rsPath = pathArr.join("/");
|
|
265609
|
+
pathArr[pathArr.length - 1] = adata.end;
|
|
265610
|
+
var rePath = pathArr.join("/");
|
|
265611
|
+
var pStartPoint = StagePosition/* StagePosition.getStagePosByPath */.M.getStagePosByPath(this._hoEditorFactoryID, rsPath);
|
|
265612
|
+
var pEndPoint = StagePosition/* StagePosition.getStagePosByPath */.M.getStagePosByPath(this._hoEditorFactoryID, rePath);
|
|
265613
|
+
var selectRange = new SelectRange/* SelectRange */.E(this._hoEditorFactoryID);
|
|
265614
|
+
selectRange.spStart = pStartPoint;
|
|
265615
|
+
selectRange.spEnd = pEndPoint;
|
|
265616
|
+
selectRangeArr.push(selectRange);
|
|
265617
|
+
}
|
|
265618
|
+
}
|
|
265619
|
+
if (selectRangeArr.length > 0) {
|
|
265620
|
+
hoEditorFactory.drawTree.drawMultiCustomRange(selectRangeArr, true, true);
|
|
265621
|
+
}
|
|
265622
|
+
}
|
|
265490
265623
|
//模板加载完成后 开始加载数据集
|
|
265491
265624
|
// if (test) {
|
|
265492
265625
|
// const data =hoEditorFactory.testDataSet.getTestJsonData();
|
|
@@ -266691,8 +266824,6 @@ var web_url_search_params = __webpack_require__(41637);
|
|
|
266691
266824
|
var NodeChangingEvent = __webpack_require__(10574);
|
|
266692
266825
|
// EXTERNAL MODULE: ./src/plugins/pretty-data.js
|
|
266693
266826
|
var pretty_data = __webpack_require__(49049);
|
|
266694
|
-
// EXTERNAL MODULE: ./src/editor/draw/SelectRange.ts
|
|
266695
|
-
var SelectRange = __webpack_require__(53901);
|
|
266696
266827
|
// EXTERNAL MODULE: ./src/plugins/type.ts
|
|
266697
266828
|
var type = __webpack_require__(41542);
|
|
266698
266829
|
// EXTERNAL MODULE: ./src/editor/undoRedo/NodeDeleteUndoUnit.ts
|
|
@@ -266703,8 +266834,6 @@ var NodesDeleteUndoUnit = __webpack_require__(71144);
|
|
|
266703
266834
|
var NodeInsertUndoUnit = __webpack_require__(64465);
|
|
266704
266835
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/MedicalExpressionNode.ts
|
|
266705
266836
|
var MedicalExpressionNode = __webpack_require__(80177);
|
|
266706
|
-
// EXTERNAL MODULE: ./src/editor/draw/StagePosition.ts
|
|
266707
|
-
var StagePosition = __webpack_require__(63074);
|
|
266708
266837
|
// EXTERNAL MODULE: ./src/commonParamList.ts
|
|
266709
266838
|
var commonParamList = __webpack_require__(30794);
|
|
266710
266839
|
;// CONCATENATED MODULE: ./src/editor/VueController.ts
|