hoeditor-web 2.0.109-rc.1 → 2.0.110
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.common.js +221 -238
- package/lib/hoeditor.css +2 -7
- package/lib/hoeditor.umd.js +221 -238
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -26082,8 +26082,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
26082
26082
|
var firstPath = parentNode.StartMarkNode.getNodePath();
|
|
26083
26083
|
var lastPath = parentNode.EndMarkNode.getNodePath();
|
|
26084
26084
|
|
|
26085
|
-
if (curRange.isEmpty
|
|
26085
|
+
if (curRange.isEmpty) {
|
|
26086
26086
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
|
|
26087
|
+
curRange.startPath = firstPath;
|
|
26087
26088
|
curRange.endPath = ePath;
|
|
26088
26089
|
}
|
|
26089
26090
|
|
|
@@ -52064,7 +52065,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
52064
52065
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(99640);
|
|
52065
52066
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(28214);
|
|
52066
52067
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(35671);
|
|
52067
|
-
/* harmony import */ var
|
|
52068
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(22342);
|
|
52068
52069
|
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(68309);
|
|
52069
52070
|
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
52070
52071
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(41539);
|
|
@@ -52085,47 +52086,50 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
52085
52086
|
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_18__);
|
|
52086
52087
|
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(32023);
|
|
52087
52088
|
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_19__);
|
|
52088
|
-
/* harmony import */ var
|
|
52089
|
-
/* harmony import */ var
|
|
52090
|
-
/* harmony import */ var
|
|
52091
|
-
/* harmony import */ var
|
|
52092
|
-
/* harmony import */ var
|
|
52093
|
-
/* harmony import */ var
|
|
52094
|
-
/* harmony import */ var
|
|
52095
|
-
/* harmony import */ var
|
|
52096
|
-
/* harmony import */ var
|
|
52097
|
-
/* harmony import */ var
|
|
52098
|
-
/* harmony import */ var
|
|
52099
|
-
/* harmony import */ var
|
|
52100
|
-
/* harmony import */ var
|
|
52101
|
-
/* harmony import */ var
|
|
52102
|
-
/* harmony import */ var
|
|
52103
|
-
/* harmony import */ var
|
|
52104
|
-
/* harmony import */ var
|
|
52105
|
-
/* harmony import */ var
|
|
52106
|
-
/* harmony import */ var
|
|
52107
|
-
/* harmony import */ var
|
|
52108
|
-
/* harmony import */ var
|
|
52109
|
-
/* harmony import */ var
|
|
52110
|
-
/* harmony import */ var
|
|
52111
|
-
/* harmony import */ var
|
|
52112
|
-
/* harmony import */ var
|
|
52113
|
-
/* harmony import */ var
|
|
52114
|
-
/* harmony import */ var
|
|
52115
|
-
/* harmony import */ var
|
|
52116
|
-
/* harmony import */ var
|
|
52117
|
-
/* harmony import */ var
|
|
52118
|
-
/* harmony import */ var
|
|
52119
|
-
/* harmony import */ var
|
|
52120
|
-
/* harmony import */ var
|
|
52121
|
-
/* harmony import */ var
|
|
52122
|
-
/* harmony import */ var
|
|
52123
|
-
/* harmony import */ var
|
|
52124
|
-
/* harmony import */ var
|
|
52125
|
-
/* harmony import */ var
|
|
52126
|
-
/* harmony import */ var
|
|
52127
|
-
/* harmony import */ var
|
|
52128
|
-
/* harmony import */ var
|
|
52089
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(39714);
|
|
52090
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_20__);
|
|
52091
|
+
/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(69600);
|
|
52092
|
+
/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_21__);
|
|
52093
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(40561);
|
|
52094
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_22__);
|
|
52095
|
+
/* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(19601);
|
|
52096
|
+
/* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_23__);
|
|
52097
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(92222);
|
|
52098
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_24__);
|
|
52099
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(9653);
|
|
52100
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_25__);
|
|
52101
|
+
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(21703);
|
|
52102
|
+
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_26__);
|
|
52103
|
+
/* harmony import */ var _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(94407);
|
|
52104
|
+
/* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(24093);
|
|
52105
|
+
/* harmony import */ var _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(1470);
|
|
52106
|
+
/* harmony import */ var _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(94290);
|
|
52107
|
+
/* harmony import */ var _editor_events_Exception__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(88702);
|
|
52108
|
+
/* harmony import */ var _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(34534);
|
|
52109
|
+
/* harmony import */ var _editor_undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(12019);
|
|
52110
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(41005);
|
|
52111
|
+
/* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(23375);
|
|
52112
|
+
/* harmony import */ var _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(74163);
|
|
52113
|
+
/* harmony import */ var _DomRange__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(66828);
|
|
52114
|
+
/* harmony import */ var _NodePosition__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(2242);
|
|
52115
|
+
/* harmony import */ var _BaseCombineNode__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(8);
|
|
52116
|
+
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(50369);
|
|
52117
|
+
/* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(8395);
|
|
52118
|
+
/* harmony import */ var _DateTimeNode__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(36395);
|
|
52119
|
+
/* harmony import */ var _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(50161);
|
|
52120
|
+
/* harmony import */ var _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(84844);
|
|
52121
|
+
/* harmony import */ var _MarkNode__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(15868);
|
|
52122
|
+
/* harmony import */ var _MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(8623);
|
|
52123
|
+
/* harmony import */ var _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(97724);
|
|
52124
|
+
/* harmony import */ var _ParagraphNode__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(14208);
|
|
52125
|
+
/* harmony import */ var _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(85028);
|
|
52126
|
+
/* harmony import */ var _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(91715);
|
|
52127
|
+
/* harmony import */ var _PupilMapNode__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(43010);
|
|
52128
|
+
/* harmony import */ var _SignNode__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(34450);
|
|
52129
|
+
/* harmony import */ var _TableFormula__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(39869);
|
|
52130
|
+
/* harmony import */ var _TableNode__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(95883);
|
|
52131
|
+
/* harmony import */ var _TextNode__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(91538);
|
|
52132
|
+
|
|
52129
52133
|
|
|
52130
52134
|
|
|
52131
52135
|
|
|
@@ -52157,7 +52161,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
52157
52161
|
/*
|
|
52158
52162
|
* @Author: your name
|
|
52159
52163
|
* @Date: 2020-11-03 15:17:54
|
|
52160
|
-
* @LastEditTime: 2022-10-14
|
|
52164
|
+
* @LastEditTime: 2022-10-14 17:24:29
|
|
52161
52165
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
52162
52166
|
* @Description: In User Settings Edit
|
|
52163
52167
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -52247,7 +52251,7 @@ var DownListProperty = /*#__PURE__*/function () {
|
|
|
52247
52251
|
DownListProperty.setDefaultImportStyle(this);
|
|
52248
52252
|
}
|
|
52249
52253
|
|
|
52250
|
-
(0,
|
|
52254
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_56__/* ["default"] */ .Z)(DownListProperty, [{
|
|
52251
52255
|
key: "allowMultiSelected",
|
|
52252
52256
|
get: function get() {
|
|
52253
52257
|
return this._allowMultiSelected;
|
|
@@ -52342,7 +52346,7 @@ var DataVerifyFormat = /*#__PURE__*/function () {
|
|
|
52342
52346
|
DataVerifyFormat.setDefaultDataVerifyFormat(this);
|
|
52343
52347
|
}
|
|
52344
52348
|
|
|
52345
|
-
(0,
|
|
52349
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_56__/* ["default"] */ .Z)(DataVerifyFormat, [{
|
|
52346
52350
|
key: "mustInputValue",
|
|
52347
52351
|
get: function get() {
|
|
52348
52352
|
return this._mustInputValue;
|
|
@@ -52450,7 +52454,7 @@ var BandDataSource = /*#__PURE__*/function () {
|
|
|
52450
52454
|
BandDataSource.setDefaultBandDataSource(this);
|
|
52451
52455
|
}
|
|
52452
52456
|
|
|
52453
|
-
(0,
|
|
52457
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_56__/* ["default"] */ .Z)(BandDataSource, [{
|
|
52454
52458
|
key: "dataSourceEnabled",
|
|
52455
52459
|
get: function get() {
|
|
52456
52460
|
return this._dataSourceEnabled;
|
|
@@ -52655,7 +52659,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
52655
52659
|
}
|
|
52656
52660
|
|
|
52657
52661
|
if (!_this._dataId) {
|
|
52658
|
-
_this._dataId =
|
|
52662
|
+
_this._dataId = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID('Field');
|
|
52659
52663
|
} // const serialID = valuesObj["serialID"];
|
|
52660
52664
|
// let name = "";
|
|
52661
52665
|
// let readOnlyStatus = ReadOnlyStatus.false;
|
|
@@ -52726,7 +52730,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
52726
52730
|
*/
|
|
52727
52731
|
|
|
52728
52732
|
|
|
52729
|
-
(0,
|
|
52733
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_56__/* ["default"] */ .Z)(TextInputFieldNode, [{
|
|
52730
52734
|
key: "alignWithBlocked",
|
|
52731
52735
|
get: function get() {
|
|
52732
52736
|
return this._alignWithBlocked;
|
|
@@ -52771,8 +52775,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
52771
52775
|
}, {
|
|
52772
52776
|
key: "mouseEvent",
|
|
52773
52777
|
value: function mouseEvent(event) {
|
|
52774
|
-
if (event.type ==
|
|
52775
|
-
if (event.type ==
|
|
52778
|
+
if (event.type == _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_30__/* .DmouseEventType.detOver */ .p.detOver) this.activity(true);
|
|
52779
|
+
if (event.type == _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_30__/* .DmouseEventType.detOut */ .p.detOut) this.activity(false);
|
|
52776
52780
|
} // public activity(active: boolean) {
|
|
52777
52781
|
// if (active) {
|
|
52778
52782
|
// if (this.StartMarkNode.alpha != 1) {
|
|
@@ -53082,7 +53086,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53082
53086
|
value: function update(mode) {
|
|
53083
53087
|
var _this2 = this;
|
|
53084
53088
|
|
|
53085
|
-
var hoEditorFactory =
|
|
53089
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
53086
53090
|
/**
|
|
53087
53091
|
* 内容为空,显示一个点位符
|
|
53088
53092
|
*/
|
|
@@ -53108,9 +53112,9 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53108
53112
|
case 0:
|
|
53109
53113
|
//由于在表格在放置输入域后会在绘制时触发输入域重绘,此时表格还未放置于舞台,造成报错,故暂时禁用此函数
|
|
53110
53114
|
//熊跃龙 2021-03-19
|
|
53111
|
-
changeEvent = new
|
|
53115
|
+
changeEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_32__/* .NodeChangeEvent */ .G(_this2.hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_35__/* .DocAction.daModifyStyle */ .gk.daModifyStyle, path1 || startPath, path2 || endPath);
|
|
53112
53116
|
changeEvent.oldEndPath = path2 || endPath;
|
|
53113
|
-
changeEvent.oldDrawLines = new
|
|
53117
|
+
changeEvent.oldDrawLines = new _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_29__/* .SelectRange */ .E(_this2.hoEditorFactoryID).getRangeDrawLines(path1 || startPath, path2 || endPath, true);
|
|
53114
53118
|
_context.next = 5;
|
|
53115
53119
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
53116
53120
|
|
|
@@ -53134,11 +53138,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53134
53138
|
|
|
53135
53139
|
if (mode == 0) {
|
|
53136
53140
|
var prev = first.previousLeaf();
|
|
53137
|
-
if (!prev) throw
|
|
53141
|
+
if (!prev) throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_31__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
53138
53142
|
refresh(hoEditorFactory.docTree.getNodeLastPath(prev), hoEditorFactory.docTree.getNodeLastPath(last));
|
|
53139
53143
|
setTimeout(function () {
|
|
53140
53144
|
prev = first.previousLeaf();
|
|
53141
|
-
if (!prev) throw
|
|
53145
|
+
if (!prev) throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_31__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
53142
53146
|
refresh(hoEditorFactory.docTree.getNodeLastPath(prev), hoEditorFactory.docTree.getNodeLastPath(last));
|
|
53143
53147
|
}, 200);
|
|
53144
53148
|
return; //执行完后自行退出
|
|
@@ -53181,7 +53185,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53181
53185
|
|
|
53182
53186
|
if (this.StartMarkNode.drawNodes.length > 0 && this.EndMarkNode.drawNodes.length > 0) {
|
|
53183
53187
|
//不空,还原
|
|
53184
|
-
var bInSameLine =
|
|
53188
|
+
var bInSameLine = _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_27__/* .DrawLine.inSameLine */ .a.inSameLine(this.StartMarkNode.drawNodes[0], this.EndMarkNode.drawNodes[0]);
|
|
53185
53189
|
|
|
53186
53190
|
if (fixWidthPix == 0 || !bInSameLine || usedWidth >= maxEmptWidth) {
|
|
53187
53191
|
if (this.isEmpty()) lastWidth = 0;else lastWidth = 0;
|
|
@@ -53195,7 +53199,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53195
53199
|
var _prev = last.previousLeaf();
|
|
53196
53200
|
|
|
53197
53201
|
if (!_prev) {
|
|
53198
|
-
throw
|
|
53202
|
+
throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_31__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
53199
53203
|
}
|
|
53200
53204
|
|
|
53201
53205
|
startPath = hoEditorFactory.docTree.getNodeLastPath(_prev);
|
|
@@ -53228,8 +53232,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53228
53232
|
var loopChildNodes = function loopChildNodes(node) {
|
|
53229
53233
|
var nodes = node.childNodes.slice(1);
|
|
53230
53234
|
nodes.forEach(function (childNode) {
|
|
53231
|
-
if (childNode instanceof
|
|
53232
|
-
var hoEditorFactory =
|
|
53235
|
+
if (childNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_55__/* .TextNode */ .R) {
|
|
53236
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(_this3.hoEditorFactoryID);
|
|
53233
53237
|
var textStyle = hoEditorFactory.docTree.styles[childNode.styleIndex];
|
|
53234
53238
|
|
|
53235
53239
|
if (!textStyle) {
|
|
@@ -53246,27 +53250,27 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53246
53250
|
text += childNode.text;
|
|
53247
53251
|
}
|
|
53248
53252
|
}
|
|
53249
|
-
} else if (childNode instanceof
|
|
53250
|
-
if (childNode instanceof
|
|
53253
|
+
} else if (childNode instanceof _ControlNode__WEBPACK_IMPORTED_MODULE_41__/* .ControlNode */ .w) {
|
|
53254
|
+
if (childNode instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_42__/* .DateTimeNode */ .Z && (isClearValue || childNode.text == childNode.name)) {
|
|
53251
53255
|
text += '';
|
|
53252
53256
|
} else {
|
|
53253
53257
|
text += childNode.text;
|
|
53254
53258
|
}
|
|
53255
|
-
} else if (childNode instanceof
|
|
53259
|
+
} else if (childNode instanceof _BaseCombineNode__WEBPACK_IMPORTED_MODULE_39__/* .BaseCombineNode */ .V) {
|
|
53256
53260
|
loopChildNodes(childNode);
|
|
53257
|
-
} else if (childNode instanceof
|
|
53261
|
+
} else if (childNode instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_48__/* .ParagraphNode */ .C) {
|
|
53258
53262
|
text += '\n';
|
|
53259
|
-
} else if (childNode instanceof
|
|
53263
|
+
} else if (childNode instanceof _MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_46__/* .MedicalExpressionNode */ .H) {
|
|
53260
53264
|
var expressJson = JSON.parse('{}');
|
|
53261
53265
|
text += '<MedicalExpress>';
|
|
53262
53266
|
|
|
53263
|
-
if (childNode instanceof
|
|
53267
|
+
if (childNode instanceof _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_47__/* .MenstrualHistoryNode */ .n) {
|
|
53264
53268
|
expressJson.expressStyle = childNode.expressStyle;
|
|
53265
53269
|
expressJson.menseDays = childNode.menseDays;
|
|
53266
53270
|
expressJson.cycleDays = childNode.cycleDays;
|
|
53267
53271
|
expressJson.menarcheAge = childNode.menarcheAge;
|
|
53268
53272
|
expressJson.menoPauseAge = childNode.menoPauseAge;
|
|
53269
|
-
} else if (childNode instanceof
|
|
53273
|
+
} else if (childNode instanceof _PupilMapNode__WEBPACK_IMPORTED_MODULE_51__/* .PupilMapNode */ .v || childNode instanceof _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_44__/* .LightLocationMapNode */ .D || childNode instanceof _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_43__/* .FetalHeartMapNode */ .t) {
|
|
53270
53274
|
expressJson.value1 = childNode.value1;
|
|
53271
53275
|
expressJson.value2 = childNode.value2;
|
|
53272
53276
|
expressJson.value3 = childNode.value3;
|
|
@@ -53274,10 +53278,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53274
53278
|
expressJson.value5 = childNode.value5;
|
|
53275
53279
|
expressJson.value6 = childNode.value6;
|
|
53276
53280
|
|
|
53277
|
-
if (childNode instanceof
|
|
53281
|
+
if (childNode instanceof _PupilMapNode__WEBPACK_IMPORTED_MODULE_51__/* .PupilMapNode */ .v) {
|
|
53278
53282
|
expressJson.expressStyle = 'PupilMapNode';
|
|
53279
53283
|
expressJson.value7 = childNode.value7;
|
|
53280
|
-
} else if (childNode instanceof
|
|
53284
|
+
} else if (childNode instanceof _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_44__/* .LightLocationMapNode */ .D) {
|
|
53281
53285
|
expressJson.expressStyle = 'LightLocationMapNode';
|
|
53282
53286
|
expressJson.value7 = childNode.value7;
|
|
53283
53287
|
expressJson.value8 = childNode.value8;
|
|
@@ -53285,12 +53289,12 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53285
53289
|
} else {
|
|
53286
53290
|
expressJson.expressStyle = 'FetalHeartMapNode';
|
|
53287
53291
|
}
|
|
53288
|
-
} else if (childNode instanceof
|
|
53289
|
-
if (childNode instanceof
|
|
53292
|
+
} else if (childNode instanceof _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_49__/* .PermanentTeethMapNode */ .f || childNode instanceof _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_50__/* .PrimaryTeethMapNode */ .x) {
|
|
53293
|
+
if (childNode instanceof _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_49__/* .PermanentTeethMapNode */ .f) {
|
|
53290
53294
|
expressJson.expressStyle = 'PermanentTeethMapNode';
|
|
53291
53295
|
}
|
|
53292
53296
|
|
|
53293
|
-
if (childNode instanceof
|
|
53297
|
+
if (childNode instanceof _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_50__/* .PrimaryTeethMapNode */ .x) {
|
|
53294
53298
|
expressJson.expressStyle = 'PrimaryTeethMapNode';
|
|
53295
53299
|
}
|
|
53296
53300
|
|
|
@@ -53322,12 +53326,9 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53322
53326
|
for (var i = 0; i < listItems.length; i++) {
|
|
53323
53327
|
var listItem = listItems[i];
|
|
53324
53328
|
|
|
53325
|
-
if (keyValue.includes(listItem.id)) {
|
|
53329
|
+
if (keyValue.includes(listItem.id.toString())) {
|
|
53326
53330
|
var index = listItem.text.indexOf('<元素>');
|
|
53327
53331
|
text += index === -1 ? listItem.text : listItem.text.substring(0, index);
|
|
53328
|
-
}
|
|
53329
|
-
|
|
53330
|
-
if (keyValue.includes(listItem.id)) {
|
|
53331
53332
|
String(listItem.value) && value.push(listItem.value);
|
|
53332
53333
|
}
|
|
53333
53334
|
}
|
|
@@ -53360,7 +53361,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53360
53361
|
this.keyValue = keyValue;
|
|
53361
53362
|
}
|
|
53362
53363
|
|
|
53363
|
-
if (!(value === '' && this.childNodes[1] instanceof
|
|
53364
|
+
if (!(value === '' && this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j)) {
|
|
53364
53365
|
_context2.next = 4;
|
|
53365
53366
|
break;
|
|
53366
53367
|
}
|
|
@@ -53370,13 +53371,13 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53370
53371
|
case 4:
|
|
53371
53372
|
oldValue = this._canModifyContent.valueOf();
|
|
53372
53373
|
this._canModifyContent = true;
|
|
53373
|
-
hoEditorFactory =
|
|
53374
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
53374
53375
|
startPath = this.StartMarkNode.getNodePath();
|
|
53375
53376
|
endPath = hoEditorFactory.docTree.getNodeLastPath(this.childNodes[this.childNodes.length - 2]);
|
|
53376
|
-
aRange = new
|
|
53377
|
+
aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_37__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
53377
53378
|
|
|
53378
|
-
if (!(this.childNodes[1] instanceof
|
|
53379
|
-
anodes =
|
|
53379
|
+
if (!(this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j) && this.inputFieldType === 0) {
|
|
53380
|
+
anodes = _DomRange__WEBPACK_IMPORTED_MODULE_37__/* .DomRange.getSelectDomNodesForDelete */ .a.getSelectDomNodesForDelete(this.hoEditorFactoryID, startPath, endPath);
|
|
53380
53381
|
|
|
53381
53382
|
for (i = 0; i < anodes.length; i++) {
|
|
53382
53383
|
anode = anodes[i];
|
|
@@ -53394,9 +53395,9 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53394
53395
|
break;
|
|
53395
53396
|
}
|
|
53396
53397
|
|
|
53397
|
-
markNode = new
|
|
53398
|
+
markNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntText */ .Jq.ntText, this.labelText, hoEditorFactory.docTree.curStyleIndex, _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNodeType.mtContent */ .q.mtContent);
|
|
53398
53399
|
hoEditorFactory.undoService.begin();
|
|
53399
|
-
hoEditorFactory.undoService.add(new
|
|
53400
|
+
hoEditorFactory.undoService.add(new _editor_undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, markNode));
|
|
53400
53401
|
hoEditorFactory.undoService.commit();
|
|
53401
53402
|
|
|
53402
53403
|
if (this._childNodes2.length === 3) {
|
|
@@ -53462,7 +53463,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53462
53463
|
value: function node2DrawNodeRange(startIndex, endIndex) {
|
|
53463
53464
|
this.childNodes.length = 0;
|
|
53464
53465
|
this._childNodes2.length = 0;
|
|
53465
|
-
var hoEditorFactory =
|
|
53466
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
53466
53467
|
var curStyleIndex = hoEditorFactory.docTree.curStyleIndex;
|
|
53467
53468
|
var cbStyle = hoEditorFactory.docTree.styles[curStyleIndex].combineStyle;
|
|
53468
53469
|
var dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
|
|
@@ -53473,19 +53474,19 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53473
53474
|
// index = astyle.changeStyleString("fontBackColor", "transparent");
|
|
53474
53475
|
// }
|
|
53475
53476
|
|
|
53476
|
-
this.StartMarkNode = new
|
|
53477
|
+
this.StartMarkNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntMark */ .Jq.ntMark, '|', index, _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNodeType.mtStart */ .q.mtStart);
|
|
53477
53478
|
this.StartMarkNode.isReadOnly = true;
|
|
53478
|
-
this.StartMarkNode.MarkNodeType =
|
|
53479
|
-
this.EndMarkNode = new
|
|
53479
|
+
this.StartMarkNode.MarkNodeType = _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNodeType.mtStart */ .q.mtStart;
|
|
53480
|
+
this.EndMarkNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntMark */ .Jq.ntMark, ']', index, _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNodeType.mtEnd */ .q.mtEnd);
|
|
53480
53481
|
this.EndMarkNode.isReadOnly = true;
|
|
53481
|
-
this.EndMarkNode.MarkNodeType =
|
|
53482
|
+
this.EndMarkNode.MarkNodeType = _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNodeType.mtEnd */ .q.mtEnd;
|
|
53482
53483
|
this.StartMarkNode.pair = this.EndMarkNode;
|
|
53483
53484
|
this.EndMarkNode.pair = this.StartMarkNode;
|
|
53484
53485
|
|
|
53485
53486
|
this._childNodes2.push(this.StartMarkNode);
|
|
53486
53487
|
|
|
53487
53488
|
if (this.labelText.length != 0) {
|
|
53488
|
-
this._childNodes2.push(new
|
|
53489
|
+
this._childNodes2.push(new _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntText */ .Jq.ntText, this.labelText, index, _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNodeType.mtContent */ .q.mtContent)); // this._labelNode = new MarkNode(this._rootNodes, this, NodeType.ntText, this.labelText, 0);
|
|
53489
53490
|
// this._childNodes2.push(this._labelNode);
|
|
53490
53491
|
|
|
53491
53492
|
}
|
|
@@ -53499,7 +53500,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53499
53500
|
this.childNodes.splice(1, 1);
|
|
53500
53501
|
}
|
|
53501
53502
|
|
|
53502
|
-
this._childNodes.splice(1, 0, new
|
|
53503
|
+
this._childNodes.splice(1, 0, new _TextNode__WEBPACK_IMPORTED_MODULE_55__/* .TextNode */ .R(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntText */ .Jq.ntText, this.text, index));
|
|
53503
53504
|
}
|
|
53504
53505
|
}
|
|
53505
53506
|
}, {
|
|
@@ -53535,16 +53536,16 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53535
53536
|
return dline;
|
|
53536
53537
|
}
|
|
53537
53538
|
|
|
53538
|
-
var hoEditorFactory =
|
|
53539
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
53539
53540
|
var endnode = hoEditorFactory.docTree.findNodePositionByPath(endPath).node;
|
|
53540
53541
|
var isEnd = false;
|
|
53541
53542
|
|
|
53542
53543
|
for (var index = 0; index < this.childNodes.length; index++) {
|
|
53543
53544
|
var value = this.childNodes[index];
|
|
53544
53545
|
|
|
53545
|
-
if (value instanceof
|
|
53546
|
+
if (value instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_48__/* .ParagraphNode */ .C) {
|
|
53546
53547
|
if (aline.paragraphNode !== value) {
|
|
53547
|
-
if (aline instanceof
|
|
53548
|
+
if (aline instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_27__/* .DrawLine */ .a) {
|
|
53548
53549
|
aline.fitLines();
|
|
53549
53550
|
aline.updateLineStyle();
|
|
53550
53551
|
}
|
|
@@ -53559,7 +53560,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53559
53560
|
|
|
53560
53561
|
paraNode = value;
|
|
53561
53562
|
aline = paraNode.drawlines[0];
|
|
53562
|
-
} else if (value instanceof
|
|
53563
|
+
} else if (value instanceof _TableNode__WEBPACK_IMPORTED_MODULE_54__/* .TableNode */ .Fh) {
|
|
53563
53564
|
value.placeDNodeAfterDrawLine(paraNode, aline, endPath);
|
|
53564
53565
|
aline = value.drawTable;
|
|
53565
53566
|
} else {
|
|
@@ -53572,7 +53573,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53572
53573
|
}
|
|
53573
53574
|
|
|
53574
53575
|
var nodePath = hoEditorFactory.docTree.getNodeLastPath(value);
|
|
53575
|
-
var cresult =
|
|
53576
|
+
var cresult = _NodePosition__WEBPACK_IMPORTED_MODULE_38__/* .NodePosition.treePathCompare */ .F.treePathCompare(endPath, nodePath);
|
|
53576
53577
|
|
|
53577
53578
|
if (cresult <= 0) {
|
|
53578
53579
|
break;
|
|
@@ -53582,7 +53583,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53582
53583
|
aline.fitLines();
|
|
53583
53584
|
aline.updateLineStyle();
|
|
53584
53585
|
|
|
53585
|
-
if (dline === aline && aline instanceof
|
|
53586
|
+
if (dline === aline && aline instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_27__/* .DrawLine */ .a) {
|
|
53586
53587
|
this._text = this.getFieldText();
|
|
53587
53588
|
var fixWidthPix = hoEditorFactory.unitConvert.mmConversionPx(this.fixedWidth * 10, true);
|
|
53588
53589
|
var restWidth = aline.dWidth - aline.paragraphNode.combineParagraph.leftMarginPixes - aline.paragraphNode.combineParagraph.rightMarginPixes - this.StartMarkNode.drawNodes[0].x; //const maxEmptWidth = Math.min(aline.calcRestWidth(), fixWidthPix);
|
|
@@ -53632,9 +53633,9 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53632
53633
|
}, {
|
|
53633
53634
|
key: "getReadyToEdit",
|
|
53634
53635
|
value: function getReadyToEdit(callback) {
|
|
53635
|
-
var hoEditorFactory =
|
|
53636
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this.hoEditorFactoryID);
|
|
53636
53637
|
|
|
53637
|
-
if (!this.canModifyContent && hoEditorFactory.drawTree.paintStatus !==
|
|
53638
|
+
if (!this.canModifyContent && hoEditorFactory.drawTree.paintStatus !== _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psDesign */ .Dh.psDesign) {
|
|
53638
53639
|
return [false, ''];
|
|
53639
53640
|
}
|
|
53640
53641
|
|
|
@@ -53642,8 +53643,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53642
53643
|
|
|
53643
53644
|
if (label) {
|
|
53644
53645
|
var prev = label.previousLeaf();
|
|
53645
|
-
if (!prev) throw
|
|
53646
|
-
var path =
|
|
53646
|
+
if (!prev) throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_31__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
53647
|
+
var path = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(prev);
|
|
53647
53648
|
if (callback) callback(label);
|
|
53648
53649
|
return [true, path];
|
|
53649
53650
|
}
|
|
@@ -53669,16 +53670,16 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53669
53670
|
value: function getActualWidth() {
|
|
53670
53671
|
var w = 0;
|
|
53671
53672
|
this.childNodes.forEach(function (value) {
|
|
53672
|
-
if (!(value instanceof
|
|
53673
|
+
if (!(value instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_48__/* .ParagraphNode */ .C)) w += value.getActualWidth();
|
|
53673
53674
|
});
|
|
53674
53675
|
return w;
|
|
53675
53676
|
}
|
|
53676
53677
|
}, {
|
|
53677
53678
|
key: "delete",
|
|
53678
53679
|
value: function _delete(operType) {
|
|
53679
|
-
var hoEditorFactory =
|
|
53680
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this.hoEditorFactoryID);
|
|
53680
53681
|
|
|
53681
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
53682
|
+
if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psDesign */ .Dh.psDesign || this.isAllowDelete) {
|
|
53682
53683
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(TextInputFieldNode.prototype), "delete", this).call(this);
|
|
53683
53684
|
} else {
|
|
53684
53685
|
if (operType !== 'update') {
|
|
@@ -53712,7 +53713,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53712
53713
|
return false;
|
|
53713
53714
|
} else {
|
|
53714
53715
|
for (var i = 0; i++; i < this.childNodes.length) {
|
|
53715
|
-
if (this.childNodes[i] instanceof
|
|
53716
|
+
if (this.childNodes[i] instanceof _BaseCombineNode__WEBPACK_IMPORTED_MODULE_39__/* .BaseCombineNode */ .V) {
|
|
53716
53717
|
if (this.childNodes[i].removeChild(node)) return true;
|
|
53717
53718
|
}
|
|
53718
53719
|
}
|
|
@@ -53732,10 +53733,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53732
53733
|
return true;
|
|
53733
53734
|
}
|
|
53734
53735
|
|
|
53735
|
-
if (this.childNodes.length == 3 && this.childNodes[1] instanceof
|
|
53736
|
+
if (this.childNodes.length == 3 && this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j) {
|
|
53736
53737
|
var markNode = this.childNodes[1];
|
|
53737
53738
|
|
|
53738
|
-
if (markNode.MarkNodeType ===
|
|
53739
|
+
if (markNode.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNodeType.mtContent */ .q.mtContent) {
|
|
53739
53740
|
return true;
|
|
53740
53741
|
} else return false;
|
|
53741
53742
|
}
|
|
@@ -53771,7 +53772,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53771
53772
|
|
|
53772
53773
|
for (var i = 1; i < ilen; i++) {
|
|
53773
53774
|
textInputFieldNode.insertText(arr[i].text, textInputFieldNode.text.length);
|
|
53774
|
-
|
|
53775
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.deleteNode(arr[i]);
|
|
53775
53776
|
}
|
|
53776
53777
|
|
|
53777
53778
|
return textInputFieldNode;
|
|
@@ -53792,10 +53793,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53792
53793
|
for (var i = 0; i < this.childNodes.length; i++) {
|
|
53793
53794
|
var node = this.childNodes[i];
|
|
53794
53795
|
|
|
53795
|
-
if (!(node instanceof
|
|
53796
|
-
if (node instanceof
|
|
53796
|
+
if (!(node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j && node.text.substr(0, 1) !== 'C')) {
|
|
53797
|
+
if (node instanceof _TableNode__WEBPACK_IMPORTED_MODULE_54__/* .TableNode */ .Fh || node instanceof TextInputFieldNode) {
|
|
53797
53798
|
childArray.push(node.node2Json(undefined, isCopy, type, clearSign));
|
|
53798
|
-
} else if (node instanceof
|
|
53799
|
+
} else if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_52__/* .SignNode */ .N) {
|
|
53799
53800
|
if (clearSign) {
|
|
53800
53801
|
if (node.isTemplate) {
|
|
53801
53802
|
childArray.push(node.node2Json(undefined, isCopy, undefined, clearSign));
|
|
@@ -53804,11 +53805,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53804
53805
|
childArray.push(node.node2Json(undefined, isCopy));
|
|
53805
53806
|
}
|
|
53806
53807
|
} else {
|
|
53807
|
-
if (node instanceof
|
|
53808
|
+
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_55__/* .TextNode */ .R) {
|
|
53808
53809
|
if (node.text !== '') {
|
|
53809
53810
|
childArray.push(node.node2Json(undefined, isCopy));
|
|
53810
53811
|
}
|
|
53811
|
-
} else if (node instanceof
|
|
53812
|
+
} else if (node instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_42__/* .DateTimeNode */ .Z) {
|
|
53812
53813
|
childArray.push(node.node2Json(undefined, isCopy, undefined, clearSign));
|
|
53813
53814
|
} else {
|
|
53814
53815
|
childArray.push(node.node2Json(undefined, isCopy));
|
|
@@ -53865,7 +53866,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53865
53866
|
}
|
|
53866
53867
|
|
|
53867
53868
|
if (canCopy) {
|
|
53868
|
-
if (!(_node instanceof
|
|
53869
|
+
if (!(_node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j && _node.text.substr(0, 1) === 'C')) {
|
|
53869
53870
|
childArray.push(_node.node2Json(rec, isCopy));
|
|
53870
53871
|
}
|
|
53871
53872
|
}
|
|
@@ -53993,7 +53994,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53993
53994
|
}, {
|
|
53994
53995
|
key: "getLeftWidth",
|
|
53995
53996
|
value: function getLeftWidth() {
|
|
53996
|
-
var hoEditorFactory =
|
|
53997
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
53997
53998
|
|
|
53998
53999
|
if (this.alignWithBlocked && this.StartMarkNode && this.StartMarkNode.drawNodes.length > 0) {
|
|
53999
54000
|
var dNode = this.StartMarkNode.drawNodes[0];
|
|
@@ -54059,7 +54060,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54059
54060
|
}], [{
|
|
54060
54061
|
key: "json2Node",
|
|
54061
54062
|
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
|
|
54062
|
-
var hoEditorFactory =
|
|
54063
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
|
|
54063
54064
|
var eachCount = 0;
|
|
54064
54065
|
delete json.nodeType;
|
|
54065
54066
|
this.transType(json);
|
|
@@ -54081,44 +54082,34 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54081
54082
|
json.isSynchro = !json.isSynchro ? false : json.isSynchro;
|
|
54082
54083
|
json.readType = json.readType ? Number(json.readType) : -1; // json.isMultiLinesDisplay = !json.isMultiLinesDisplay ? false : json.isMultiLinesDisplay;
|
|
54083
54084
|
|
|
54084
|
-
var temp = new TextInputFieldNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null,
|
|
54085
|
+
var temp = new TextInputFieldNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntField */ .Jq.ntField, json); // this.insertChild
|
|
54085
54086
|
|
|
54086
54087
|
if (json.childNodes) {
|
|
54087
54088
|
var nodes = new Array();
|
|
54088
54089
|
|
|
54089
54090
|
var getChildNodes = function getChildNodes(item) {
|
|
54090
|
-
eachCount++;
|
|
54091
|
-
|
|
54092
|
-
|
|
54093
|
-
|
|
54094
|
-
}
|
|
54095
|
-
|
|
54096
|
-
;
|
|
54097
|
-
|
|
54091
|
+
// eachCount++;
|
|
54092
|
+
// if(json.name === '1-1') {
|
|
54093
|
+
// console.time(`1-1---${eachCount}`);
|
|
54094
|
+
// };
|
|
54098
54095
|
if (Array.isArray(item)) {
|
|
54099
54096
|
//数组
|
|
54100
54097
|
for (var i = 0; i < item.length; i++) {
|
|
54101
|
-
if
|
|
54102
|
-
|
|
54103
|
-
}
|
|
54104
|
-
|
|
54105
|
-
;
|
|
54106
|
-
|
|
54107
|
-
|
|
54108
|
-
if (json.name === '1-1' && item[i].name) {
|
|
54109
|
-
console.timeEnd("----".concat(i, "----1-1----").concat(item[i].name));
|
|
54110
|
-
}
|
|
54111
|
-
|
|
54112
|
-
;
|
|
54098
|
+
// if(json.name === '1-1' && item[i].name) {
|
|
54099
|
+
// console.time(`----${i}----1-1----${item[i].name}`);
|
|
54100
|
+
// };
|
|
54101
|
+
var node = hoEditorFactory.structureConvert.convertNode(item[i], rootNodes, temp, undefined, undefined, isClearSign); // if(json.name === '1-1' && item[i].name) {
|
|
54102
|
+
// console.timeEnd(`----${i}----1-1----${item[i].name}`);
|
|
54103
|
+
// };
|
|
54113
54104
|
|
|
54114
54105
|
if (node) {
|
|
54115
|
-
if (node instanceof
|
|
54106
|
+
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_55__/* .TextNode */ .R) {
|
|
54116
54107
|
if (node.text !== '') {
|
|
54117
54108
|
nodes.push(node);
|
|
54118
54109
|
}
|
|
54119
54110
|
} else {
|
|
54120
54111
|
if (isClearSign) {
|
|
54121
|
-
if (node instanceof
|
|
54112
|
+
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_52__/* .SignNode */ .N) {
|
|
54122
54113
|
if (node.isTemplate && !(node.number == 0 && node.type == 0 && node.name == '')) {
|
|
54123
54114
|
nodes.push(node);
|
|
54124
54115
|
}
|
|
@@ -54126,7 +54117,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54126
54117
|
nodes.push(node);
|
|
54127
54118
|
}
|
|
54128
54119
|
} else {
|
|
54129
|
-
if (node instanceof
|
|
54120
|
+
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_52__/* .SignNode */ .N) {
|
|
54130
54121
|
if (!(node.number == 0 && node.type == 0 && node.name == '')) {
|
|
54131
54122
|
nodes.push(node);
|
|
54132
54123
|
}
|
|
@@ -54137,11 +54128,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54137
54128
|
}
|
|
54138
54129
|
}
|
|
54139
54130
|
|
|
54140
|
-
if (node instanceof
|
|
54131
|
+
if (node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j && node.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNodeType.mtEnd */ .q.mtEnd && node.text.substring(0, 1) === 'C') {
|
|
54141
54132
|
hoEditorFactory.structureConvert._markNodes.push(node);
|
|
54142
54133
|
}
|
|
54143
54134
|
|
|
54144
|
-
if (node instanceof
|
|
54135
|
+
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_52__/* .SignNode */ .N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(node.customProperty.bce01)) {
|
|
54145
54136
|
hoEditorFactory.structureConvert._superiorSign[0] = node;
|
|
54146
54137
|
}
|
|
54147
54138
|
}
|
|
@@ -54150,14 +54141,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54150
54141
|
var _node2 = hoEditorFactory.structureConvert.convertNode(item, rootNodes, temp, undefined, undefined, isClearSign);
|
|
54151
54142
|
|
|
54152
54143
|
if (_node2) {
|
|
54153
|
-
if (_node2 instanceof
|
|
54144
|
+
if (_node2 instanceof _TextNode__WEBPACK_IMPORTED_MODULE_55__/* .TextNode */ .R) {
|
|
54154
54145
|
if (_node2.text !== '') {
|
|
54155
54146
|
nodes.push(_node2);
|
|
54156
54147
|
}
|
|
54157
54148
|
} else {
|
|
54158
54149
|
//nodes.push(node);
|
|
54159
54150
|
if (isClearSign) {
|
|
54160
|
-
if (_node2 instanceof
|
|
54151
|
+
if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_52__/* .SignNode */ .N) {
|
|
54161
54152
|
if (_node2.isTemplate && !(_node2.number == 0 && _node2.type == 0 && _node2.name == '')) {
|
|
54162
54153
|
nodes.push(_node2);
|
|
54163
54154
|
}
|
|
@@ -54165,7 +54156,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54165
54156
|
nodes.push(_node2);
|
|
54166
54157
|
}
|
|
54167
54158
|
} else {
|
|
54168
|
-
if (_node2 instanceof
|
|
54159
|
+
if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_52__/* .SignNode */ .N) {
|
|
54169
54160
|
if (!(_node2.number == 0 && _node2.type == 0 && _node2.name == '')) {
|
|
54170
54161
|
nodes.push(_node2);
|
|
54171
54162
|
}
|
|
@@ -54176,19 +54167,17 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54176
54167
|
}
|
|
54177
54168
|
}
|
|
54178
54169
|
|
|
54179
|
-
if (_node2 instanceof
|
|
54170
|
+
if (_node2 instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j && _node2.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNodeType.mtEnd */ .q.mtEnd && _node2.text.substring(0, 1) === 'C') {
|
|
54180
54171
|
hoEditorFactory.structureConvert._markNodes.push(_node2);
|
|
54181
54172
|
}
|
|
54182
54173
|
|
|
54183
|
-
if (_node2 instanceof
|
|
54174
|
+
if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_52__/* .SignNode */ .N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(_node2.customProperty.bce01)) {
|
|
54184
54175
|
hoEditorFactory.structureConvert._superiorSign[0] = _node2;
|
|
54185
54176
|
}
|
|
54186
|
-
}
|
|
54177
|
+
} // if(json.name === '1-1') console.timeEnd(`1-1---${eachCount}`);
|
|
54187
54178
|
|
|
54188
|
-
|
|
54189
|
-
};
|
|
54179
|
+
}; // if(json.name === '1-1') console.time("1-1--0");
|
|
54190
54180
|
|
|
54191
|
-
if (json.name === '1-1') console.time("1-1--0");
|
|
54192
54181
|
|
|
54193
54182
|
if (isPaste) {
|
|
54194
54183
|
if (json.childNodes.item) {
|
|
@@ -54198,19 +54187,18 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54198
54187
|
}
|
|
54199
54188
|
} else if (json.childNodes.node) {
|
|
54200
54189
|
getChildNodes(json.childNodes.node);
|
|
54201
|
-
}
|
|
54190
|
+
} // if(json.name === '1-1') console.timeEnd("1-1--0");
|
|
54202
54191
|
|
|
54203
|
-
if (json.name === '1-1') console.timeEnd("1-1--0");
|
|
54204
54192
|
|
|
54205
54193
|
if (nodes.length > 0) {
|
|
54206
|
-
if (nodes[0] instanceof
|
|
54194
|
+
if (nodes[0] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j) {
|
|
54207
54195
|
var _temp$childNodes;
|
|
54208
54196
|
|
|
54209
54197
|
temp.childNodes.length = 0;
|
|
54210
54198
|
|
|
54211
54199
|
(_temp$childNodes = temp.childNodes).splice.apply(_temp$childNodes, [0, 0].concat(nodes));
|
|
54212
54200
|
|
|
54213
|
-
if (temp.childNodes.length === 3 && temp.childNodes[1] instanceof
|
|
54201
|
+
if (temp.childNodes.length === 3 && temp.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j) {
|
|
54214
54202
|
temp._childNodes2.splice(1, 1);
|
|
54215
54203
|
|
|
54216
54204
|
temp._childNodes2.splice(1, 0, temp.childNodes[1]);
|
|
@@ -54226,20 +54214,20 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54226
54214
|
}
|
|
54227
54215
|
}
|
|
54228
54216
|
|
|
54229
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
54217
|
+
if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psDesign */ .Dh.psDesign) {
|
|
54230
54218
|
var sChildNode = temp.childNodes[0];
|
|
54231
54219
|
var eChildNode = temp.childNodes[temp.childNodes.length - 1];
|
|
54232
54220
|
|
|
54233
|
-
if (!(sChildNode instanceof
|
|
54221
|
+
if (!(sChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j) || sChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j && sChildNode.MarkNodeType !== _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNodeType.mtStart */ .q.mtStart) {
|
|
54234
54222
|
throw new Error('经检测,病历元素“' + temp.name + '”的模板格式有问题,无法正常加载,请联系工程师进行处理。');
|
|
54235
54223
|
}
|
|
54236
54224
|
|
|
54237
|
-
if (!(eChildNode instanceof
|
|
54225
|
+
if (!(eChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j) || eChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j && eChildNode.MarkNodeType !== _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNodeType.mtEnd */ .q.mtEnd) {
|
|
54238
54226
|
throw new Error('经检测,病历元素“' + temp.name + '”的模板格式有问题,无法正常加载,请联系工程师进行处理。');
|
|
54239
54227
|
}
|
|
54240
54228
|
}
|
|
54241
54229
|
|
|
54242
|
-
if (temp.childNodes[1] instanceof
|
|
54230
|
+
if (temp.childNodes[1] instanceof _TableFormula__WEBPACK_IMPORTED_MODULE_53__/* .TableFormula */ .N) {
|
|
54243
54231
|
return temp;
|
|
54244
54232
|
}
|
|
54245
54233
|
|
|
@@ -54274,11 +54262,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54274
54262
|
|
|
54275
54263
|
for (var i = 0; i < lineArr.length; i++) {
|
|
54276
54264
|
var lineText = lineArr[i];
|
|
54277
|
-
var textNode = new
|
|
54265
|
+
var textNode = new _TextNode__WEBPACK_IMPORTED_MODULE_55__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntText */ .Jq.ntText, lineText, styleIndex);
|
|
54278
54266
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode);
|
|
54279
54267
|
|
|
54280
54268
|
if (i < lineArr.length - 1) {
|
|
54281
|
-
var paraNode = new
|
|
54269
|
+
var paraNode = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_48__/* .ParagraphNode */ .C(hoEditorFactoryID, rootNodes, temp, 0);
|
|
54282
54270
|
paraNode.styleIndex = styleIndex;
|
|
54283
54271
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, paraNode);
|
|
54284
54272
|
}
|
|
@@ -54381,14 +54369,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54381
54369
|
var newStyleIndex = styleIndex;
|
|
54382
54370
|
|
|
54383
54371
|
if (resultArr[k].mark == 1) {
|
|
54384
|
-
var textStyle = new
|
|
54372
|
+
var textStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_36__/* .TextStyle */ .pn(hoEditorFactoryID);
|
|
54385
54373
|
textStyle.copyProperty(hoEditorFactory.docTree.styles[styleIndex], textStyle);
|
|
54386
54374
|
textStyle.script = 2;
|
|
54387
54375
|
newStyleIndex = hoEditorFactory.docTree.styleCompare(textStyle);
|
|
54388
54376
|
}
|
|
54389
54377
|
|
|
54390
54378
|
if (resultArr[k].mark == 2) {
|
|
54391
|
-
var _textStyle = new
|
|
54379
|
+
var _textStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_36__/* .TextStyle */ .pn(hoEditorFactoryID);
|
|
54392
54380
|
|
|
54393
54381
|
_textStyle.copyProperty(hoEditorFactory.docTree.styles[styleIndex], _textStyle);
|
|
54394
54382
|
|
|
@@ -54396,18 +54384,18 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54396
54384
|
newStyleIndex = hoEditorFactory.docTree.styleCompare(_textStyle);
|
|
54397
54385
|
}
|
|
54398
54386
|
|
|
54399
|
-
var textNode0 = new
|
|
54387
|
+
var textNode0 = new _TextNode__WEBPACK_IMPORTED_MODULE_55__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntText */ .Jq.ntText, resultArr[k].text, newStyleIndex);
|
|
54400
54388
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode0);
|
|
54401
54389
|
}
|
|
54402
54390
|
}
|
|
54403
54391
|
} else {
|
|
54404
|
-
var textNode1 = new
|
|
54392
|
+
var textNode1 = new _TextNode__WEBPACK_IMPORTED_MODULE_55__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntText */ .Jq.ntText, textArr[0], styleIndex);
|
|
54405
54393
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode1);
|
|
54406
54394
|
}
|
|
54407
54395
|
|
|
54408
54396
|
if (textArr.length > 1) {
|
|
54409
54397
|
for (var _i2 = 1; _i2 < textArr.length; _i2++) {
|
|
54410
|
-
var paragraNode = new
|
|
54398
|
+
var paragraNode = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_48__/* .ParagraphNode */ .C(hoEditorFactoryID, rootNodes, temp, 0);
|
|
54411
54399
|
paragraNode.styleIndex = styleIndex;
|
|
54412
54400
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, paragraNode);
|
|
54413
54401
|
|
|
@@ -54420,7 +54408,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54420
54408
|
var _newStyleIndex = styleIndex;
|
|
54421
54409
|
|
|
54422
54410
|
if (resultArr1[_k].mark == 1) {
|
|
54423
|
-
var _textStyle2 = new
|
|
54411
|
+
var _textStyle2 = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_36__/* .TextStyle */ .pn(hoEditorFactoryID);
|
|
54424
54412
|
|
|
54425
54413
|
_textStyle2.copyProperty(hoEditorFactory.docTree.styles[styleIndex], _textStyle2);
|
|
54426
54414
|
|
|
@@ -54428,13 +54416,13 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54428
54416
|
_newStyleIndex = hoEditorFactory.docTree.styleCompare(_textStyle2);
|
|
54429
54417
|
}
|
|
54430
54418
|
|
|
54431
|
-
var _textNode = new
|
|
54419
|
+
var _textNode = new _TextNode__WEBPACK_IMPORTED_MODULE_55__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntText */ .Jq.ntText, resultArr1[_k].text, _newStyleIndex);
|
|
54432
54420
|
|
|
54433
54421
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, _textNode);
|
|
54434
54422
|
}
|
|
54435
54423
|
}
|
|
54436
54424
|
} else {
|
|
54437
|
-
var _textNode2 = new
|
|
54425
|
+
var _textNode2 = new _TextNode__WEBPACK_IMPORTED_MODULE_55__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntText */ .Jq.ntText, textArr[_i2], styleIndex);
|
|
54438
54426
|
|
|
54439
54427
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, _textNode2);
|
|
54440
54428
|
}
|
|
@@ -54454,7 +54442,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54454
54442
|
var eIndex = expressArr[_i3].eIndex;
|
|
54455
54443
|
var expressJson = temp.text.substring(sIndex + 16, eIndex);
|
|
54456
54444
|
var expressObj = JSON.parse(expressJson);
|
|
54457
|
-
var expressStyle =
|
|
54445
|
+
var expressStyle = _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_47__/* .ExpressStyle */ .e[expressObj.expressStyle];
|
|
54458
54446
|
|
|
54459
54447
|
if (!expressStyle) {
|
|
54460
54448
|
expressStyle = expressObj.expressStyle;
|
|
@@ -54464,18 +54452,18 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54464
54452
|
|
|
54465
54453
|
if (expressStyle.includes('style')) {
|
|
54466
54454
|
//经期史
|
|
54467
|
-
medicalExpressNode = new
|
|
54455
|
+
medicalExpressNode = new _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_47__/* .MenstrualHistoryNode */ .n(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressStyle, expressObj.menseDays, expressObj.cycleDays, expressObj.menarcheAge, expressObj.menoPauseAge);
|
|
54468
54456
|
} else {
|
|
54469
54457
|
if (expressStyle === 'PupilMapNode') {
|
|
54470
|
-
medicalExpressNode = new
|
|
54458
|
+
medicalExpressNode = new _PupilMapNode__WEBPACK_IMPORTED_MODULE_51__/* .PupilMapNode */ .v(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6, expressObj.value7);
|
|
54471
54459
|
} else if (expressStyle === 'LightLocationMapNode') {
|
|
54472
|
-
medicalExpressNode = new
|
|
54460
|
+
medicalExpressNode = new _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_44__/* .LightLocationMapNode */ .D(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6, expressObj.value7, expressObj.value8, expressObj.value9);
|
|
54473
54461
|
} else if (expressStyle === 'FetalHeartMapNode') {
|
|
54474
|
-
medicalExpressNode = new
|
|
54462
|
+
medicalExpressNode = new _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_43__/* .FetalHeartMapNode */ .t(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6);
|
|
54475
54463
|
} else if (expressStyle === 'PermanentTeethMapNode') {
|
|
54476
|
-
medicalExpressNode = new
|
|
54464
|
+
medicalExpressNode = new _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_49__/* .PermanentTeethMapNode */ .f(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.topLeftSelected, expressObj.topRightSelected, expressObj.bottomLeftSelected, expressObj.bottomRightSelected);
|
|
54477
54465
|
} else {
|
|
54478
|
-
medicalExpressNode = new
|
|
54466
|
+
medicalExpressNode = new _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_50__/* .PrimaryTeethMapNode */ .x(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.topLeftSelected, expressObj.topRightSelected, expressObj.bottomLeftSelected, expressObj.bottomRightSelected);
|
|
54479
54467
|
}
|
|
54480
54468
|
}
|
|
54481
54469
|
|
|
@@ -54503,8 +54491,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54503
54491
|
} else {
|
|
54504
54492
|
temp._childNodes2.splice(1, temp._childNodes2.length - 2);
|
|
54505
54493
|
|
|
54506
|
-
var markNode = new
|
|
54507
|
-
styleIndex,
|
|
54494
|
+
var markNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntText */ .Jq.ntText, temp.labelText, //hoEditorFactory.docTree.curStyleIndex,
|
|
54495
|
+
styleIndex, _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNodeType.mtContent */ .q.mtContent);
|
|
54508
54496
|
|
|
54509
54497
|
temp._childNodes.splice(1, 0, markNode);
|
|
54510
54498
|
|
|
@@ -54532,19 +54520,19 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54532
54520
|
}, {
|
|
54533
54521
|
key: "textInpubNodeRedraw",
|
|
54534
54522
|
value: function textInpubNodeRedraw(hoEditorFactoryID, node) {
|
|
54535
|
-
var hoEditorFactory =
|
|
54523
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
|
|
54536
54524
|
var startPath = node.StartMarkNode.getNodePath();
|
|
54537
54525
|
var paragraphNode = hoEditorFactory.docTree.getNodeParaNode(node.EndMarkNode);
|
|
54538
54526
|
var endPath = hoEditorFactory.docTree.getNodeLastPath(paragraphNode);
|
|
54539
|
-
var changeEvent = new
|
|
54527
|
+
var changeEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_32__/* .NodeChangeEvent */ .G(hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_35__/* .DocAction.daModifyStyle */ .gk.daModifyStyle, startPath, endPath);
|
|
54540
54528
|
changeEvent.oldEndPath = endPath;
|
|
54541
|
-
changeEvent.oldDrawLines = new
|
|
54529
|
+
changeEvent.oldDrawLines = new _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_29__/* .SelectRange */ .E(hoEditorFactoryID).getRangeDrawLines(startPath, endPath, true);
|
|
54542
54530
|
hoEditorFactory.docTree.change(changeEvent);
|
|
54543
54531
|
}
|
|
54544
54532
|
}]);
|
|
54545
54533
|
|
|
54546
54534
|
return TextInputFieldNode;
|
|
54547
|
-
}(
|
|
54535
|
+
}(_BaseCombineNode__WEBPACK_IMPORTED_MODULE_39__/* .BaseCombineNode */ .V);
|
|
54548
54536
|
|
|
54549
54537
|
/***/ }),
|
|
54550
54538
|
|
|
@@ -214906,7 +214894,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
214906
214894
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
214907
214895
|
var ParagraphNode = __webpack_require__(14208);
|
|
214908
214896
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
214909
|
-
/* harmony default export */ var version = ('2.0.
|
|
214897
|
+
/* harmony default export */ var version = ('2.0.110');
|
|
214910
214898
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
214911
214899
|
var PoperTipText = __webpack_require__(44523);
|
|
214912
214900
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -218838,7 +218826,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
218838
218826
|
|
|
218839
218827
|
for (var index = 0; index < elementArr.length; index++) {
|
|
218840
218828
|
var element = elementArr[index];
|
|
218841
|
-
var tagName = jquery_default()(element).prop("tagName").toLowerCase();
|
|
218829
|
+
var tagName = jquery_default()(element).prop("tagName").toLowerCase(); //// console.log(tagName);
|
|
218842
218830
|
|
|
218843
218831
|
if (tagName == "p") {
|
|
218844
218832
|
var rtnP = this.dealP(element); //段落节点
|
|
@@ -219497,23 +219485,22 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
219497
219485
|
}, {
|
|
219498
219486
|
key: "xml2Object",
|
|
219499
219487
|
value: function xml2Object(xml) {
|
|
219500
|
-
console.time("replaceNodesName");
|
|
219501
|
-
xml = this.replaceNodesName(xml);
|
|
219502
|
-
|
|
219488
|
+
// console.time("replaceNodesName");
|
|
219489
|
+
xml = this.replaceNodesName(xml); // console.timeEnd("replaceNodesName");
|
|
219490
|
+
|
|
219503
219491
|
var x2js = new (x2js_default())({
|
|
219504
219492
|
stripWhitespaces: false
|
|
219505
|
-
});
|
|
219506
|
-
|
|
219507
|
-
var object = x2js.xml2js(xml);
|
|
219508
|
-
|
|
219493
|
+
}); // console.time("xml2js");
|
|
219494
|
+
|
|
219495
|
+
var object = x2js.xml2js(xml); // console.timeEnd("xml2js");
|
|
219496
|
+
// const json = JSON.parse(JSON.stringify(object));
|
|
219509
219497
|
|
|
219510
219498
|
var json = object;
|
|
219511
219499
|
|
|
219512
219500
|
if (!json.root && !json.rvxml) {
|
|
219513
219501
|
return null;
|
|
219514
|
-
}
|
|
219502
|
+
} // console.time("return");
|
|
219515
219503
|
|
|
219516
|
-
console.time("return");
|
|
219517
219504
|
|
|
219518
219505
|
if (json.root) {
|
|
219519
219506
|
var root = json.root; //处理页眉
|
|
@@ -219593,8 +219580,8 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
219593
219580
|
}
|
|
219594
219581
|
}
|
|
219595
219582
|
|
|
219596
|
-
var footerSubDocTree = new Array();
|
|
219597
|
-
|
|
219583
|
+
var footerSubDocTree = new Array(); // console.timeEnd("return");
|
|
219584
|
+
|
|
219598
219585
|
return {
|
|
219599
219586
|
docProperty: root.docProperty,
|
|
219600
219587
|
pageSettings: root.pageSettings,
|
|
@@ -220100,7 +220087,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220100
220087
|
}, {
|
|
220101
220088
|
key: "json2Doc",
|
|
220102
220089
|
value: function json2Doc(xx, isClearSign) {
|
|
220103
|
-
console.time("json2Doc");
|
|
220090
|
+
// console.time("json2Doc");
|
|
220104
220091
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220105
220092
|
var propertyJson = xx.docProperty;
|
|
220106
220093
|
|
|
@@ -220164,9 +220151,9 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220164
220151
|
if (!isClearSign) {
|
|
220165
220152
|
var comments = xx.comments;
|
|
220166
220153
|
this._comments = comments.comment;
|
|
220167
|
-
}
|
|
220154
|
+
} // console.time("histories");
|
|
220155
|
+
|
|
220168
220156
|
|
|
220169
|
-
console.time("histories");
|
|
220170
220157
|
hoEditorFactory.docTree.userHistories = [];
|
|
220171
220158
|
var histories = xx.userHistories;
|
|
220172
220159
|
var historiesArr = histories.userHistory;
|
|
@@ -220181,10 +220168,10 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220181
220168
|
Object.assign(history, historyObj);
|
|
220182
220169
|
history.permissionLevel = Number(historyObj.permissionLevel);
|
|
220183
220170
|
hoEditorFactory.docTree.userHistories.push(history);
|
|
220184
|
-
}
|
|
220171
|
+
} // console.timeEnd("histories");
|
|
220172
|
+
// console.time("styles");
|
|
220173
|
+
|
|
220185
220174
|
|
|
220186
|
-
console.timeEnd("histories");
|
|
220187
|
-
console.time("styles");
|
|
220188
220175
|
var styles = xx.styles;
|
|
220189
220176
|
hoEditorFactory.docTree.styles = [];
|
|
220190
220177
|
var defaultTextStyle = new TextStyle/* TextStyle */.pn(this._hoEditorFactoryID);
|
|
@@ -220217,9 +220204,9 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220217
220204
|
if (fontStyles) {
|
|
220218
220205
|
var textStyles = this.getDocStyles("font", fontStyles);
|
|
220219
220206
|
hoEditorFactory.docTree.styles = hoEditorFactory.docTree.styles.concat(textStyles);
|
|
220220
|
-
}
|
|
220207
|
+
} // console.timeEnd("styles");
|
|
220208
|
+
|
|
220221
220209
|
|
|
220222
|
-
console.timeEnd("styles");
|
|
220223
220210
|
hoEditorFactory.docTree.paragraphs = [];
|
|
220224
220211
|
var defaultParaStyle = new Paragraph/* Paragraph */.nv(this._hoEditorFactoryID);
|
|
220225
220212
|
hoEditorFactory.docTree.paragraphs.push(defaultParaStyle); //先把默认的样式放进去
|
|
@@ -220230,8 +220217,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220230
220217
|
}
|
|
220231
220218
|
|
|
220232
220219
|
var headersArray = xx.header;
|
|
220233
|
-
var headerNodes = new Array();
|
|
220234
|
-
console.time("headersArray");
|
|
220220
|
+
var headerNodes = new Array(); // console.time("headersArray");
|
|
220235
220221
|
|
|
220236
220222
|
if (headersArray) {
|
|
220237
220223
|
for (var hi = 0; hi < headersArray.length; hi++) {
|
|
@@ -220288,11 +220274,11 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220288
220274
|
}
|
|
220289
220275
|
}
|
|
220290
220276
|
}
|
|
220291
|
-
}
|
|
220277
|
+
} // console.timeEnd("headersArray");
|
|
220278
|
+
// console.time("footersArray");
|
|
220279
|
+
|
|
220292
220280
|
|
|
220293
|
-
console.
|
|
220294
|
-
console.time("footersArray");
|
|
220295
|
-
var footersArray = xx.footer; // console.log(footersArray)
|
|
220281
|
+
var footersArray = xx.footer; // // console.log(footersArray)
|
|
220296
220282
|
|
|
220297
220283
|
var footerNodes = new Array();
|
|
220298
220284
|
|
|
@@ -220352,10 +220338,10 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220352
220338
|
}
|
|
220353
220339
|
}
|
|
220354
220340
|
}
|
|
220355
|
-
}
|
|
220341
|
+
} // console.timeEnd("footersArray");
|
|
220342
|
+
// console.time("mainArray");
|
|
220343
|
+
|
|
220356
220344
|
|
|
220357
|
-
console.timeEnd("footersArray");
|
|
220358
|
-
console.time("mainArray");
|
|
220359
220345
|
var mainArray = xx.main;
|
|
220360
220346
|
var mainNodes = new Array();
|
|
220361
220347
|
|
|
@@ -220366,14 +220352,13 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220366
220352
|
continue;
|
|
220367
220353
|
}
|
|
220368
220354
|
|
|
220369
|
-
if ([2, 10, 14, 19, 24, 40, 54, 65].includes(mi)) {
|
|
220370
|
-
console.time("".concat(mi, "_").concat(temp.name ? temp.name : '表格'));
|
|
220355
|
+
if ([2, 10, 14, 19, 24, 40, 54, 65].includes(mi)) {// console.time(`${mi}_${temp.name ? temp.name : '表格'}`);
|
|
220371
220356
|
}
|
|
220372
220357
|
|
|
220373
220358
|
var _node3 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null, mainNodes, undefined, isClearSign);
|
|
220374
220359
|
|
|
220375
|
-
if ([2, 10, 14, 19, 24, 40, 54, 65].includes(mi)) {
|
|
220376
|
-
console.
|
|
220360
|
+
if ([2, 10, 14, 19, 24, 40, 54, 65].includes(mi)) {// console.timeEnd(`${mi}_${temp.name ? temp.name : '表格'}`);
|
|
220361
|
+
// console.log(temp);
|
|
220377
220362
|
}
|
|
220378
220363
|
|
|
220379
220364
|
if (_node3) {
|
|
@@ -220385,14 +220370,14 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220385
220370
|
mainNodes.push(_node3);
|
|
220386
220371
|
} //pushChildNodes(node, temp,hoEditorFactory.docTree.mainNodes, mainNodes);
|
|
220387
220372
|
|
|
220388
|
-
}
|
|
220373
|
+
} // console.timeEnd("mainArray");
|
|
220374
|
+
|
|
220389
220375
|
|
|
220390
|
-
console.timeEnd("mainArray");
|
|
220391
220376
|
var rtn = new Map();
|
|
220392
220377
|
rtn.set("header", headerNodes);
|
|
220393
220378
|
rtn.set("footer", footerNodes);
|
|
220394
|
-
rtn.set("main", mainNodes);
|
|
220395
|
-
|
|
220379
|
+
rtn.set("main", mainNodes); // console.timeEnd("json2Doc");
|
|
220380
|
+
|
|
220396
220381
|
return rtn;
|
|
220397
220382
|
}
|
|
220398
220383
|
}, {
|
|
@@ -220673,10 +220658,10 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220673
220658
|
|
|
220674
220659
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220675
220660
|
this._superiorSign = [];
|
|
220676
|
-
hoEditorFactory.isThrowError = false;
|
|
220677
|
-
|
|
220678
|
-
var nodes = hoEditorFactory.structureConvert.xml2Doc(xml, isClearSign);
|
|
220679
|
-
|
|
220661
|
+
hoEditorFactory.isThrowError = false; // console.time("xml2Doc");
|
|
220662
|
+
|
|
220663
|
+
var nodes = hoEditorFactory.structureConvert.xml2Doc(xml, isClearSign); // console.timeEnd("xml2Doc");
|
|
220664
|
+
|
|
220680
220665
|
Promise.resolve().then(function () {
|
|
220681
220666
|
// hoEditorFactory.drawTree.updateDrawTreeFirstLine();
|
|
220682
220667
|
_this4.openJson2Doc(nodes, callback, isDelBlockLine);
|
|
@@ -220691,8 +220676,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220691
220676
|
callback && callback({
|
|
220692
220677
|
text: hoEditorFactory.vueController.getDocTitle(),
|
|
220693
220678
|
count: 0
|
|
220694
|
-
});
|
|
220695
|
-
console.time("openJson2Doc");
|
|
220679
|
+
}); // console.time("openJson2Doc");
|
|
220696
220680
|
|
|
220697
220681
|
if (nodes) {
|
|
220698
220682
|
var insertNode = function insertNode(array, prevNode) {
|
|
@@ -220760,9 +220744,9 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220760
220744
|
_this5._superiorSign[0] = aNode;
|
|
220761
220745
|
}
|
|
220762
220746
|
}
|
|
220763
|
-
};
|
|
220747
|
+
}; // console.time("openJson2Doc--headersArray");
|
|
220748
|
+
//添加header节点
|
|
220764
220749
|
|
|
220765
|
-
console.time("openJson2Doc--headersArray"); //添加header节点
|
|
220766
220750
|
|
|
220767
220751
|
var headersArray = nodes.get("header");
|
|
220768
220752
|
|
|
@@ -220797,10 +220781,10 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220797
220781
|
//hoEditorFactory.drawPageTree.drawHeaders[i].stage?.update();
|
|
220798
220782
|
|
|
220799
220783
|
}
|
|
220800
|
-
}
|
|
220784
|
+
} // console.timeEnd("openJson2Doc--headersArray");
|
|
220785
|
+
// console.time("openJson2Doc--footersArray");
|
|
220786
|
+
//添加footer节点
|
|
220801
220787
|
|
|
220802
|
-
console.timeEnd("openJson2Doc--headersArray");
|
|
220803
|
-
console.time("openJson2Doc--footersArray"); //添加footer节点
|
|
220804
220788
|
|
|
220805
220789
|
var footersArray = nodes.get("footer");
|
|
220806
220790
|
|
|
@@ -220836,9 +220820,9 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220836
220820
|
// );
|
|
220837
220821
|
|
|
220838
220822
|
}
|
|
220839
|
-
}
|
|
220823
|
+
} // console.timeEnd("openJson2Doc--footersArray");
|
|
220824
|
+
//main
|
|
220840
220825
|
|
|
220841
|
-
console.timeEnd("openJson2Doc--footersArray"); //main
|
|
220842
220826
|
|
|
220843
220827
|
var main = nodes.get("main");
|
|
220844
220828
|
var mPrevNode = hoEditorFactory.docTree.mainNodes[0];
|
|
@@ -220849,15 +220833,15 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220849
220833
|
|
|
220850
220834
|
insertNode(main, mPrevNode);
|
|
220851
220835
|
var mLength = hoEditorFactory.docTree.mainNodes.length - 1;
|
|
220852
|
-
var mEndPath = hoEditorFactory.docTree.getNodeLastPath(hoEditorFactory.docTree.mainNodes[mLength]);
|
|
220853
|
-
|
|
220836
|
+
var mEndPath = hoEditorFactory.docTree.getNodeLastPath(hoEditorFactory.docTree.mainNodes[mLength]); // console.time("openJson2Doc--change");
|
|
220837
|
+
|
|
220854
220838
|
var mChangeEvent = new NodeChangeEvent/* NodeChangeEvent */.G(this._hoEditorFactoryID, DocTree/* DocAction.daInsert */.gk.daInsert, "main/0", mEndPath); // mChangeEvent.oldEndPath = mEndPath;
|
|
220855
220839
|
// mChangeEvent.oldDrawTreeLines = new SelectRange(
|
|
220856
220840
|
// this._hoEditorFactory
|
|
220857
220841
|
// ).getRangeDrawTreeLines("main/0", mEndPath);
|
|
220858
220842
|
|
|
220859
|
-
hoEditorFactory.docTree.change(mChangeEvent);
|
|
220860
|
-
|
|
220843
|
+
hoEditorFactory.docTree.change(mChangeEvent); // console.timeEnd("openJson2Doc--change");
|
|
220844
|
+
|
|
220861
220845
|
var comments = [];
|
|
220862
220846
|
|
|
220863
220847
|
if (this._comments.length === undefined) {
|
|
@@ -220978,8 +220962,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220978
220962
|
text: hoEditorFactory.vueController.getDocTitle(),
|
|
220979
220963
|
count: 0
|
|
220980
220964
|
});
|
|
220981
|
-
hoEditorFactory.isThrowError = true;
|
|
220982
|
-
console.timeEnd("openJson2Doc");
|
|
220965
|
+
hoEditorFactory.isThrowError = true; // console.timeEnd("openJson2Doc");
|
|
220983
220966
|
}
|
|
220984
220967
|
}
|
|
220985
220968
|
}, {
|