hoeditor-web 2.0.109 → 2.0.111
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 +304 -266
- package/lib/hoeditor.umd.js +304 -266
- package/lib/hoeditor.umd.min.js +22 -22
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -15793,7 +15793,8 @@ var textParams = {
|
|
|
15793
15793
|
dataMetaIdentifier: "",
|
|
15794
15794
|
identifierFormat: "",
|
|
15795
15795
|
readType: false,
|
|
15796
|
-
keyValue: ''
|
|
15796
|
+
keyValue: '',
|
|
15797
|
+
value: ''
|
|
15797
15798
|
};
|
|
15798
15799
|
|
|
15799
15800
|
/***/ }),
|
|
@@ -26080,18 +26081,18 @@ var DocController = /*#__PURE__*/function () {
|
|
|
26080
26081
|
if (node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R && parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && parentNode.inputFieldType == 1 && isResetFieldText) {
|
|
26081
26082
|
var firstPath = parentNode.StartMarkNode.getNodePath();
|
|
26082
26083
|
var lastPath = parentNode.EndMarkNode.getNodePath();
|
|
26083
|
-
|
|
26084
|
-
|
|
26085
|
-
|
|
26086
|
-
|
|
26087
|
-
|
|
26088
|
-
|
|
26089
|
-
|
|
26090
|
-
|
|
26091
|
-
|
|
26092
|
-
|
|
26093
|
-
|
|
26094
|
-
}
|
|
26084
|
+
var ePath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
|
|
26085
|
+
curRange.startPath = firstPath;
|
|
26086
|
+
curRange.endPath = ePath; // if (curRange.isEmpty) {
|
|
26087
|
+
// const ePath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf() as BaseNode);
|
|
26088
|
+
// curRange.startPath=firstPath;
|
|
26089
|
+
// curRange.endPath = ePath;
|
|
26090
|
+
// }
|
|
26091
|
+
// if (!curRange.isEmpty && curRange.endPath == lastPath) {
|
|
26092
|
+
// const ePath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf() as BaseNode);
|
|
26093
|
+
// curRange.startPath = firstPath;
|
|
26094
|
+
// curRange.endPath = ePath;
|
|
26095
|
+
// }
|
|
26095
26096
|
}
|
|
26096
26097
|
|
|
26097
26098
|
var isError;
|
|
@@ -26409,6 +26410,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
26409
26410
|
var newHistory = new _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_60__/* .UserHistory */ .R(this._hoEditorFactoryID, _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_60__/* .HistoryEditType.hetCreate */ .N.hetCreate);
|
|
26410
26411
|
var historyIndex = newHistory.userCompare();
|
|
26411
26412
|
nodeStyle.creatorIndex = historyIndex;
|
|
26413
|
+
|
|
26414
|
+
if (nodeStyle.combineStyle.strikeout) {
|
|
26415
|
+
nodeStyle.strikeout = false;
|
|
26416
|
+
}
|
|
26412
26417
|
} else {
|
|
26413
26418
|
nodeStyle.creatorIndex = -1;
|
|
26414
26419
|
}
|
|
@@ -36164,77 +36169,77 @@ var CombineStyle = /*#__PURE__*/function () {
|
|
|
36164
36169
|
|
|
36165
36170
|
if (fontSize === 5.5) {
|
|
36166
36171
|
//七号
|
|
36167
|
-
fontHeight =
|
|
36172
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(1.94, false);
|
|
36168
36173
|
}
|
|
36169
36174
|
|
|
36170
36175
|
if (fontSize === 6.5) {
|
|
36171
36176
|
//小六
|
|
36172
|
-
fontHeight =
|
|
36177
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(2.29, false);
|
|
36173
36178
|
}
|
|
36174
36179
|
|
|
36175
36180
|
if (fontSize === 7.5) {
|
|
36176
36181
|
//六号
|
|
36177
|
-
fontHeight =
|
|
36182
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(2.65, false);
|
|
36178
36183
|
}
|
|
36179
36184
|
|
|
36180
36185
|
if (fontSize === 9) {
|
|
36181
36186
|
//小五
|
|
36182
|
-
fontHeight =
|
|
36187
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(3.18, false);
|
|
36183
36188
|
}
|
|
36184
36189
|
|
|
36185
36190
|
if (fontSize === 10.5 || fontSize === 10) {
|
|
36186
36191
|
//五号
|
|
36187
|
-
fontHeight =
|
|
36192
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(3.70, false);
|
|
36188
36193
|
}
|
|
36189
36194
|
|
|
36190
36195
|
if (fontSize === 12) {
|
|
36191
36196
|
//小四
|
|
36192
|
-
fontHeight =
|
|
36197
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(4.23, false);
|
|
36193
36198
|
}
|
|
36194
36199
|
|
|
36195
36200
|
if (fontSize === 14) {
|
|
36196
36201
|
//四号
|
|
36197
|
-
fontHeight =
|
|
36202
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(4.94, false);
|
|
36198
36203
|
}
|
|
36199
36204
|
|
|
36200
36205
|
if (fontSize === 15) {
|
|
36201
36206
|
//小三
|
|
36202
|
-
fontHeight =
|
|
36207
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(5.29, false);
|
|
36203
36208
|
}
|
|
36204
36209
|
|
|
36205
36210
|
if (fontSize === 16) {
|
|
36206
36211
|
//三号
|
|
36207
|
-
fontHeight =
|
|
36212
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(5.64, false);
|
|
36208
36213
|
}
|
|
36209
36214
|
|
|
36210
36215
|
if (fontSize === 18) {
|
|
36211
36216
|
//小二
|
|
36212
|
-
fontHeight =
|
|
36217
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(6.35, false);
|
|
36213
36218
|
}
|
|
36214
36219
|
|
|
36215
36220
|
if (fontSize === 22) {
|
|
36216
36221
|
//二号
|
|
36217
|
-
fontHeight =
|
|
36222
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(7.76, false);
|
|
36218
36223
|
}
|
|
36219
36224
|
|
|
36220
36225
|
if (fontSize === 24) {
|
|
36221
36226
|
//小一
|
|
36222
|
-
fontHeight =
|
|
36227
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(8.47, false);
|
|
36223
36228
|
}
|
|
36224
36229
|
|
|
36225
36230
|
if (fontSize === 26) {
|
|
36226
36231
|
//一号
|
|
36227
|
-
fontHeight =
|
|
36232
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(9.17, false);
|
|
36228
36233
|
}
|
|
36229
36234
|
|
|
36230
36235
|
if (fontSize === 36) {
|
|
36231
36236
|
//小初
|
|
36232
|
-
fontHeight =
|
|
36237
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(12.7, false);
|
|
36233
36238
|
}
|
|
36234
36239
|
|
|
36235
36240
|
if (fontSize === 42) {
|
|
36236
36241
|
//初号
|
|
36237
|
-
fontHeight =
|
|
36242
|
+
fontHeight = hoeditfactory.unitConvert.mmConversionPx(14.82, false);
|
|
36238
36243
|
}
|
|
36239
36244
|
|
|
36240
36245
|
return fontHeight;
|
|
@@ -40717,8 +40722,8 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
40717
40722
|
_this._keyValue = ""; //选中项的key值
|
|
40718
40723
|
|
|
40719
40724
|
_this._downListContent = []; //列表内容
|
|
40725
|
+
//private _bandDataSource = new BandDataSource();
|
|
40720
40726
|
|
|
40721
|
-
_this._bandDataSource = new BandDataSource();
|
|
40722
40727
|
_this._charSpace = 0;
|
|
40723
40728
|
_this._value = ""; //选中项的value值
|
|
40724
40729
|
|
|
@@ -40833,16 +40838,18 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
40833
40838
|
|
|
40834
40839
|
var assignvalue = function assignvalue(target, source) {
|
|
40835
40840
|
Object.keys(source).forEach(function (value) {
|
|
40836
|
-
if (
|
|
40837
|
-
if (
|
|
40838
|
-
|
|
40839
|
-
|
|
40840
|
-
|
|
40841
|
-
|
|
40841
|
+
if (value != "dataSource") {
|
|
40842
|
+
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(target[value]) == "object") {
|
|
40843
|
+
if (Object.prototype.toString.call(source[value]) === "[object Object]") {
|
|
40844
|
+
assignvalue(target[value], source[value]);
|
|
40845
|
+
} else {
|
|
40846
|
+
if (source[value] !== "" && source[value] !== null) {
|
|
40847
|
+
assignvalue(target[value], eval("(" + source[value] + ")"));
|
|
40848
|
+
}
|
|
40842
40849
|
}
|
|
40850
|
+
} else {
|
|
40851
|
+
target[value] = source[value];
|
|
40843
40852
|
}
|
|
40844
|
-
} else {
|
|
40845
|
-
target[value] = source[value];
|
|
40846
40853
|
}
|
|
40847
40854
|
});
|
|
40848
40855
|
};
|
|
@@ -40932,17 +40939,15 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
40932
40939
|
// this._valuesObject = value;
|
|
40933
40940
|
// }
|
|
40934
40941
|
// }
|
|
40942
|
+
// get bandDataSource(): BandDataSource {
|
|
40943
|
+
// return this._bandDataSource;
|
|
40944
|
+
// }
|
|
40945
|
+
// set bandDataSource(value: BandDataSource) {
|
|
40946
|
+
// if (this._bandDataSource !== value) {
|
|
40947
|
+
// this._bandDataSource = value;
|
|
40948
|
+
// }
|
|
40949
|
+
// }
|
|
40935
40950
|
|
|
40936
|
-
}, {
|
|
40937
|
-
key: "bandDataSource",
|
|
40938
|
-
get: function get() {
|
|
40939
|
-
return this._bandDataSource;
|
|
40940
|
-
},
|
|
40941
|
-
set: function set(value) {
|
|
40942
|
-
if (this._bandDataSource !== value) {
|
|
40943
|
-
this._bandDataSource = value;
|
|
40944
|
-
}
|
|
40945
|
-
}
|
|
40946
40951
|
}, {
|
|
40947
40952
|
key: "charSpace",
|
|
40948
40953
|
get: function get() {
|
|
@@ -40966,8 +40971,8 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
40966
40971
|
ret.TipText = this.tipText !== undefined ? this.tipText : ret.TipText;
|
|
40967
40972
|
ret.IsAllowDelete = this.isAllowDelete !== undefined ? this.isAllowDelete : ret.IsAllowDelete;
|
|
40968
40973
|
ret.AllowMultiSelect = this.allowMultiSelect !== undefined ? this.allowMultiSelect : ret.AllowMultiSelect;
|
|
40969
|
-
ret.IsReadOnly = this.isReadOnly !== undefined ? this.isReadOnly : ret.IsReadOnly;
|
|
40970
|
-
|
|
40974
|
+
ret.IsReadOnly = this.isReadOnly !== undefined ? this.isReadOnly : ret.IsReadOnly; //ret.BandDataSource = this.bandDataSource;
|
|
40975
|
+
|
|
40971
40976
|
return ret;
|
|
40972
40977
|
}
|
|
40973
40978
|
}, {
|
|
@@ -41166,7 +41171,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
41166
41171
|
allowMultiSelect: this.allowMultiSelect,
|
|
41167
41172
|
readType: this.readType,
|
|
41168
41173
|
downLists: downLists,
|
|
41169
|
-
dataSource: this.bandDataSource,
|
|
41174
|
+
//dataSource: this.bandDataSource,
|
|
41170
41175
|
remark: this.remark,
|
|
41171
41176
|
customProperty: this.customProperty
|
|
41172
41177
|
};
|
|
@@ -41202,7 +41207,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
41202
41207
|
allowMultiSelect: this.allowMultiSelect,
|
|
41203
41208
|
readType: this.readType,
|
|
41204
41209
|
downLists: downLists,
|
|
41205
|
-
dataSource: this.bandDataSource,
|
|
41210
|
+
//dataSource: this.bandDataSource,
|
|
41206
41211
|
remark: this.remark,
|
|
41207
41212
|
customProperty: this.customProperty
|
|
41208
41213
|
};
|
|
@@ -46307,7 +46312,7 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
46307
46312
|
|
|
46308
46313
|
var assignvalue = function assignvalue(target, source) {
|
|
46309
46314
|
Object.keys(source).forEach(function (value) {
|
|
46310
|
-
if (value !== "appendText") {
|
|
46315
|
+
if (value !== "appendText" && value != "bandDataSource") {
|
|
46311
46316
|
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(target[value]) == "object") {
|
|
46312
46317
|
if (Object.prototype.toString.call(source[value]) === "[object Object]") {
|
|
46313
46318
|
assignvalue(target[value], source[value]);
|
|
@@ -52059,7 +52064,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
52059
52064
|
/* 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);
|
|
52060
52065
|
/* 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);
|
|
52061
52066
|
/* 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);
|
|
52062
|
-
/* harmony import */ var
|
|
52067
|
+
/* 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);
|
|
52063
52068
|
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(68309);
|
|
52064
52069
|
/* 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__);
|
|
52065
52070
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(41539);
|
|
@@ -52080,47 +52085,50 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
52080
52085
|
/* 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__);
|
|
52081
52086
|
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(32023);
|
|
52082
52087
|
/* 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__);
|
|
52083
|
-
/* harmony import */ var
|
|
52084
|
-
/* harmony import */ var
|
|
52085
|
-
/* harmony import */ var
|
|
52086
|
-
/* harmony import */ var
|
|
52087
|
-
/* harmony import */ var
|
|
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
|
|
52088
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(39714);
|
|
52089
|
+
/* 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__);
|
|
52090
|
+
/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(69600);
|
|
52091
|
+
/* 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__);
|
|
52092
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(40561);
|
|
52093
|
+
/* 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__);
|
|
52094
|
+
/* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(19601);
|
|
52095
|
+
/* 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__);
|
|
52096
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(92222);
|
|
52097
|
+
/* 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__);
|
|
52098
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(9653);
|
|
52099
|
+
/* 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__);
|
|
52100
|
+
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(21703);
|
|
52101
|
+
/* 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__);
|
|
52102
|
+
/* harmony import */ var _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(94407);
|
|
52103
|
+
/* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(24093);
|
|
52104
|
+
/* harmony import */ var _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(1470);
|
|
52105
|
+
/* harmony import */ var _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(94290);
|
|
52106
|
+
/* harmony import */ var _editor_events_Exception__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(88702);
|
|
52107
|
+
/* harmony import */ var _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(34534);
|
|
52108
|
+
/* harmony import */ var _editor_undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(12019);
|
|
52109
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(41005);
|
|
52110
|
+
/* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(23375);
|
|
52111
|
+
/* harmony import */ var _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(74163);
|
|
52112
|
+
/* harmony import */ var _DomRange__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(66828);
|
|
52113
|
+
/* harmony import */ var _NodePosition__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(2242);
|
|
52114
|
+
/* harmony import */ var _BaseCombineNode__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(8);
|
|
52115
|
+
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(50369);
|
|
52116
|
+
/* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(8395);
|
|
52117
|
+
/* harmony import */ var _DateTimeNode__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(36395);
|
|
52118
|
+
/* harmony import */ var _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(50161);
|
|
52119
|
+
/* harmony import */ var _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(84844);
|
|
52120
|
+
/* harmony import */ var _MarkNode__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(15868);
|
|
52121
|
+
/* harmony import */ var _MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(8623);
|
|
52122
|
+
/* harmony import */ var _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(97724);
|
|
52123
|
+
/* harmony import */ var _ParagraphNode__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(14208);
|
|
52124
|
+
/* harmony import */ var _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(85028);
|
|
52125
|
+
/* harmony import */ var _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(91715);
|
|
52126
|
+
/* harmony import */ var _PupilMapNode__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(43010);
|
|
52127
|
+
/* harmony import */ var _SignNode__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(34450);
|
|
52128
|
+
/* harmony import */ var _TableFormula__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(39869);
|
|
52129
|
+
/* harmony import */ var _TableNode__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(95883);
|
|
52130
|
+
/* harmony import */ var _TextNode__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(91538);
|
|
52131
|
+
|
|
52124
52132
|
|
|
52125
52133
|
|
|
52126
52134
|
|
|
@@ -52152,7 +52160,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
52152
52160
|
/*
|
|
52153
52161
|
* @Author: your name
|
|
52154
52162
|
* @Date: 2020-11-03 15:17:54
|
|
52155
|
-
* @LastEditTime: 2022-10-
|
|
52163
|
+
* @LastEditTime: 2022-10-18 09:36:56
|
|
52156
52164
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
52157
52165
|
* @Description: In User Settings Edit
|
|
52158
52166
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -52242,7 +52250,7 @@ var DownListProperty = /*#__PURE__*/function () {
|
|
|
52242
52250
|
DownListProperty.setDefaultImportStyle(this);
|
|
52243
52251
|
}
|
|
52244
52252
|
|
|
52245
|
-
(0,
|
|
52253
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_56__/* ["default"] */ .Z)(DownListProperty, [{
|
|
52246
52254
|
key: "allowMultiSelected",
|
|
52247
52255
|
get: function get() {
|
|
52248
52256
|
return this._allowMultiSelected;
|
|
@@ -52337,7 +52345,7 @@ var DataVerifyFormat = /*#__PURE__*/function () {
|
|
|
52337
52345
|
DataVerifyFormat.setDefaultDataVerifyFormat(this);
|
|
52338
52346
|
}
|
|
52339
52347
|
|
|
52340
|
-
(0,
|
|
52348
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_56__/* ["default"] */ .Z)(DataVerifyFormat, [{
|
|
52341
52349
|
key: "mustInputValue",
|
|
52342
52350
|
get: function get() {
|
|
52343
52351
|
return this._mustInputValue;
|
|
@@ -52445,7 +52453,7 @@ var BandDataSource = /*#__PURE__*/function () {
|
|
|
52445
52453
|
BandDataSource.setDefaultBandDataSource(this);
|
|
52446
52454
|
}
|
|
52447
52455
|
|
|
52448
|
-
(0,
|
|
52456
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_56__/* ["default"] */ .Z)(BandDataSource, [{
|
|
52449
52457
|
key: "dataSourceEnabled",
|
|
52450
52458
|
get: function get() {
|
|
52451
52459
|
return this._dataSourceEnabled;
|
|
@@ -52650,7 +52658,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
52650
52658
|
}
|
|
52651
52659
|
|
|
52652
52660
|
if (!_this._dataId) {
|
|
52653
|
-
_this._dataId =
|
|
52661
|
+
_this._dataId = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID('Field');
|
|
52654
52662
|
} // const serialID = valuesObj["serialID"];
|
|
52655
52663
|
// let name = "";
|
|
52656
52664
|
// let readOnlyStatus = ReadOnlyStatus.false;
|
|
@@ -52721,7 +52729,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
52721
52729
|
*/
|
|
52722
52730
|
|
|
52723
52731
|
|
|
52724
|
-
(0,
|
|
52732
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_56__/* ["default"] */ .Z)(TextInputFieldNode, [{
|
|
52725
52733
|
key: "alignWithBlocked",
|
|
52726
52734
|
get: function get() {
|
|
52727
52735
|
return this._alignWithBlocked;
|
|
@@ -52743,31 +52751,36 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
52743
52751
|
key: "setValuesObject",
|
|
52744
52752
|
value: function setValuesObject(valuesObject) {
|
|
52745
52753
|
// const valuesObj = eval("(" + valuesObject + ")");
|
|
52754
|
+
console.time("".concat(valuesObject.name, "--setValuesObject"));
|
|
52746
52755
|
var valuesObj = valuesObject;
|
|
52747
52756
|
|
|
52748
52757
|
var assignvalue = function assignvalue(target, source) {
|
|
52749
52758
|
Object.keys(source).forEach(function (value) {
|
|
52750
|
-
if (
|
|
52751
|
-
if (
|
|
52752
|
-
|
|
52753
|
-
|
|
52754
|
-
|
|
52755
|
-
|
|
52759
|
+
if (value != "childNodes" && value != "bandDataSource") {
|
|
52760
|
+
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(target[value]) == 'object') {
|
|
52761
|
+
if (Object.prototype.toString.call(source[value]) === '[object Object]') {
|
|
52762
|
+
assignvalue(target[value], source[value]);
|
|
52763
|
+
} else {
|
|
52764
|
+
if (source[value] !== '' && source[value] !== null) {
|
|
52765
|
+
// assignvalue(target[value], eval('(' + + ')'));
|
|
52766
|
+
assignvalue(target[value], JSON.parse(source[value]));
|
|
52767
|
+
}
|
|
52756
52768
|
}
|
|
52769
|
+
} else {
|
|
52770
|
+
target[value] = source[value];
|
|
52757
52771
|
}
|
|
52758
|
-
} else {
|
|
52759
|
-
target[value] = source[value];
|
|
52760
52772
|
}
|
|
52761
52773
|
});
|
|
52762
52774
|
};
|
|
52763
52775
|
|
|
52764
52776
|
assignvalue(this, valuesObj);
|
|
52777
|
+
console.timeEnd("".concat(valuesObject.name, "--setValuesObject"));
|
|
52765
52778
|
}
|
|
52766
52779
|
}, {
|
|
52767
52780
|
key: "mouseEvent",
|
|
52768
52781
|
value: function mouseEvent(event) {
|
|
52769
|
-
if (event.type ==
|
|
52770
|
-
if (event.type ==
|
|
52782
|
+
if (event.type == _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_30__/* .DmouseEventType.detOver */ .p.detOver) this.activity(true);
|
|
52783
|
+
if (event.type == _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_30__/* .DmouseEventType.detOut */ .p.detOut) this.activity(false);
|
|
52771
52784
|
} // public activity(active: boolean) {
|
|
52772
52785
|
// if (active) {
|
|
52773
52786
|
// if (this.StartMarkNode.alpha != 1) {
|
|
@@ -52864,11 +52877,9 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
52864
52877
|
},
|
|
52865
52878
|
set: function set(value) {
|
|
52866
52879
|
if (this._labelText !== value) {
|
|
52867
|
-
this._labelText = value;
|
|
52868
|
-
|
|
52869
|
-
|
|
52870
|
-
this.node2DrawNodeRange(0, 0);
|
|
52871
|
-
}
|
|
52880
|
+
this._labelText = value; // if (this.text === '') {
|
|
52881
|
+
// this.node2DrawNodeRange(0, 0);
|
|
52882
|
+
// }
|
|
52872
52883
|
}
|
|
52873
52884
|
}
|
|
52874
52885
|
}, {
|
|
@@ -53077,7 +53088,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53077
53088
|
value: function update(mode) {
|
|
53078
53089
|
var _this2 = this;
|
|
53079
53090
|
|
|
53080
|
-
var hoEditorFactory =
|
|
53091
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
53081
53092
|
/**
|
|
53082
53093
|
* 内容为空,显示一个点位符
|
|
53083
53094
|
*/
|
|
@@ -53103,9 +53114,9 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53103
53114
|
case 0:
|
|
53104
53115
|
//由于在表格在放置输入域后会在绘制时触发输入域重绘,此时表格还未放置于舞台,造成报错,故暂时禁用此函数
|
|
53105
53116
|
//熊跃龙 2021-03-19
|
|
53106
|
-
changeEvent = new
|
|
53117
|
+
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);
|
|
53107
53118
|
changeEvent.oldEndPath = path2 || endPath;
|
|
53108
|
-
changeEvent.oldDrawLines = new
|
|
53119
|
+
changeEvent.oldDrawLines = new _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_29__/* .SelectRange */ .E(_this2.hoEditorFactoryID).getRangeDrawLines(path1 || startPath, path2 || endPath, true);
|
|
53109
53120
|
_context.next = 5;
|
|
53110
53121
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
53111
53122
|
|
|
@@ -53129,11 +53140,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53129
53140
|
|
|
53130
53141
|
if (mode == 0) {
|
|
53131
53142
|
var prev = first.previousLeaf();
|
|
53132
|
-
if (!prev) throw
|
|
53143
|
+
if (!prev) throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_31__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
53133
53144
|
refresh(hoEditorFactory.docTree.getNodeLastPath(prev), hoEditorFactory.docTree.getNodeLastPath(last));
|
|
53134
53145
|
setTimeout(function () {
|
|
53135
53146
|
prev = first.previousLeaf();
|
|
53136
|
-
if (!prev) throw
|
|
53147
|
+
if (!prev) throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_31__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
53137
53148
|
refresh(hoEditorFactory.docTree.getNodeLastPath(prev), hoEditorFactory.docTree.getNodeLastPath(last));
|
|
53138
53149
|
}, 200);
|
|
53139
53150
|
return; //执行完后自行退出
|
|
@@ -53176,7 +53187,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53176
53187
|
|
|
53177
53188
|
if (this.StartMarkNode.drawNodes.length > 0 && this.EndMarkNode.drawNodes.length > 0) {
|
|
53178
53189
|
//不空,还原
|
|
53179
|
-
var bInSameLine =
|
|
53190
|
+
var bInSameLine = _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_27__/* .DrawLine.inSameLine */ .a.inSameLine(this.StartMarkNode.drawNodes[0], this.EndMarkNode.drawNodes[0]);
|
|
53180
53191
|
|
|
53181
53192
|
if (fixWidthPix == 0 || !bInSameLine || usedWidth >= maxEmptWidth) {
|
|
53182
53193
|
if (this.isEmpty()) lastWidth = 0;else lastWidth = 0;
|
|
@@ -53190,7 +53201,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53190
53201
|
var _prev = last.previousLeaf();
|
|
53191
53202
|
|
|
53192
53203
|
if (!_prev) {
|
|
53193
|
-
throw
|
|
53204
|
+
throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_31__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
53194
53205
|
}
|
|
53195
53206
|
|
|
53196
53207
|
startPath = hoEditorFactory.docTree.getNodeLastPath(_prev);
|
|
@@ -53223,8 +53234,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53223
53234
|
var loopChildNodes = function loopChildNodes(node) {
|
|
53224
53235
|
var nodes = node.childNodes.slice(1);
|
|
53225
53236
|
nodes.forEach(function (childNode) {
|
|
53226
|
-
if (childNode instanceof
|
|
53227
|
-
var hoEditorFactory =
|
|
53237
|
+
if (childNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_55__/* .TextNode */ .R) {
|
|
53238
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(_this3.hoEditorFactoryID);
|
|
53228
53239
|
var textStyle = hoEditorFactory.docTree.styles[childNode.styleIndex];
|
|
53229
53240
|
|
|
53230
53241
|
if (!textStyle) {
|
|
@@ -53241,27 +53252,27 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53241
53252
|
text += childNode.text;
|
|
53242
53253
|
}
|
|
53243
53254
|
}
|
|
53244
|
-
} else if (childNode instanceof
|
|
53245
|
-
if (childNode instanceof
|
|
53255
|
+
} else if (childNode instanceof _ControlNode__WEBPACK_IMPORTED_MODULE_41__/* .ControlNode */ .w) {
|
|
53256
|
+
if (childNode instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_42__/* .DateTimeNode */ .Z && (isClearValue || childNode.text == childNode.name)) {
|
|
53246
53257
|
text += '';
|
|
53247
53258
|
} else {
|
|
53248
53259
|
text += childNode.text;
|
|
53249
53260
|
}
|
|
53250
|
-
} else if (childNode instanceof
|
|
53261
|
+
} else if (childNode instanceof _BaseCombineNode__WEBPACK_IMPORTED_MODULE_39__/* .BaseCombineNode */ .V) {
|
|
53251
53262
|
loopChildNodes(childNode);
|
|
53252
|
-
} else if (childNode instanceof
|
|
53263
|
+
} else if (childNode instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_48__/* .ParagraphNode */ .C) {
|
|
53253
53264
|
text += '\n';
|
|
53254
|
-
} else if (childNode instanceof
|
|
53265
|
+
} else if (childNode instanceof _MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_46__/* .MedicalExpressionNode */ .H) {
|
|
53255
53266
|
var expressJson = JSON.parse('{}');
|
|
53256
53267
|
text += '<MedicalExpress>';
|
|
53257
53268
|
|
|
53258
|
-
if (childNode instanceof
|
|
53269
|
+
if (childNode instanceof _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_47__/* .MenstrualHistoryNode */ .n) {
|
|
53259
53270
|
expressJson.expressStyle = childNode.expressStyle;
|
|
53260
53271
|
expressJson.menseDays = childNode.menseDays;
|
|
53261
53272
|
expressJson.cycleDays = childNode.cycleDays;
|
|
53262
53273
|
expressJson.menarcheAge = childNode.menarcheAge;
|
|
53263
53274
|
expressJson.menoPauseAge = childNode.menoPauseAge;
|
|
53264
|
-
} else if (childNode instanceof
|
|
53275
|
+
} 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) {
|
|
53265
53276
|
expressJson.value1 = childNode.value1;
|
|
53266
53277
|
expressJson.value2 = childNode.value2;
|
|
53267
53278
|
expressJson.value3 = childNode.value3;
|
|
@@ -53269,10 +53280,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53269
53280
|
expressJson.value5 = childNode.value5;
|
|
53270
53281
|
expressJson.value6 = childNode.value6;
|
|
53271
53282
|
|
|
53272
|
-
if (childNode instanceof
|
|
53283
|
+
if (childNode instanceof _PupilMapNode__WEBPACK_IMPORTED_MODULE_51__/* .PupilMapNode */ .v) {
|
|
53273
53284
|
expressJson.expressStyle = 'PupilMapNode';
|
|
53274
53285
|
expressJson.value7 = childNode.value7;
|
|
53275
|
-
} else if (childNode instanceof
|
|
53286
|
+
} else if (childNode instanceof _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_44__/* .LightLocationMapNode */ .D) {
|
|
53276
53287
|
expressJson.expressStyle = 'LightLocationMapNode';
|
|
53277
53288
|
expressJson.value7 = childNode.value7;
|
|
53278
53289
|
expressJson.value8 = childNode.value8;
|
|
@@ -53280,12 +53291,12 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53280
53291
|
} else {
|
|
53281
53292
|
expressJson.expressStyle = 'FetalHeartMapNode';
|
|
53282
53293
|
}
|
|
53283
|
-
} else if (childNode instanceof
|
|
53284
|
-
if (childNode instanceof
|
|
53294
|
+
} else if (childNode instanceof _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_49__/* .PermanentTeethMapNode */ .f || childNode instanceof _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_50__/* .PrimaryTeethMapNode */ .x) {
|
|
53295
|
+
if (childNode instanceof _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_49__/* .PermanentTeethMapNode */ .f) {
|
|
53285
53296
|
expressJson.expressStyle = 'PermanentTeethMapNode';
|
|
53286
53297
|
}
|
|
53287
53298
|
|
|
53288
|
-
if (childNode instanceof
|
|
53299
|
+
if (childNode instanceof _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_50__/* .PrimaryTeethMapNode */ .x) {
|
|
53289
53300
|
expressJson.expressStyle = 'PrimaryTeethMapNode';
|
|
53290
53301
|
}
|
|
53291
53302
|
|
|
@@ -53317,12 +53328,9 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53317
53328
|
for (var i = 0; i < listItems.length; i++) {
|
|
53318
53329
|
var listItem = listItems[i];
|
|
53319
53330
|
|
|
53320
|
-
if (keyValue.includes(listItem.id)) {
|
|
53331
|
+
if (keyValue.includes(listItem.id.toString())) {
|
|
53321
53332
|
var index = listItem.text.indexOf('<元素>');
|
|
53322
53333
|
text += index === -1 ? listItem.text : listItem.text.substring(0, index);
|
|
53323
|
-
}
|
|
53324
|
-
|
|
53325
|
-
if (keyValue.includes(listItem.id)) {
|
|
53326
53334
|
String(listItem.value) && value.push(listItem.value);
|
|
53327
53335
|
}
|
|
53328
53336
|
}
|
|
@@ -53355,7 +53363,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53355
53363
|
this.keyValue = keyValue;
|
|
53356
53364
|
}
|
|
53357
53365
|
|
|
53358
|
-
if (!(value === '' && this.childNodes[1] instanceof
|
|
53366
|
+
if (!(value === '' && this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j)) {
|
|
53359
53367
|
_context2.next = 4;
|
|
53360
53368
|
break;
|
|
53361
53369
|
}
|
|
@@ -53365,13 +53373,13 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53365
53373
|
case 4:
|
|
53366
53374
|
oldValue = this._canModifyContent.valueOf();
|
|
53367
53375
|
this._canModifyContent = true;
|
|
53368
|
-
hoEditorFactory =
|
|
53376
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
53369
53377
|
startPath = this.StartMarkNode.getNodePath();
|
|
53370
53378
|
endPath = hoEditorFactory.docTree.getNodeLastPath(this.childNodes[this.childNodes.length - 2]);
|
|
53371
|
-
aRange = new
|
|
53379
|
+
aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_37__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
53372
53380
|
|
|
53373
|
-
if (!(this.childNodes[1] instanceof
|
|
53374
|
-
anodes =
|
|
53381
|
+
if (!(this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j) && this.inputFieldType === 0) {
|
|
53382
|
+
anodes = _DomRange__WEBPACK_IMPORTED_MODULE_37__/* .DomRange.getSelectDomNodesForDelete */ .a.getSelectDomNodesForDelete(this.hoEditorFactoryID, startPath, endPath);
|
|
53375
53383
|
|
|
53376
53384
|
for (i = 0; i < anodes.length; i++) {
|
|
53377
53385
|
anode = anodes[i];
|
|
@@ -53389,9 +53397,9 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53389
53397
|
break;
|
|
53390
53398
|
}
|
|
53391
53399
|
|
|
53392
|
-
markNode = new
|
|
53400
|
+
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);
|
|
53393
53401
|
hoEditorFactory.undoService.begin();
|
|
53394
|
-
hoEditorFactory.undoService.add(new
|
|
53402
|
+
hoEditorFactory.undoService.add(new _editor_undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, markNode));
|
|
53395
53403
|
hoEditorFactory.undoService.commit();
|
|
53396
53404
|
|
|
53397
53405
|
if (this._childNodes2.length === 3) {
|
|
@@ -53457,7 +53465,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53457
53465
|
value: function node2DrawNodeRange(startIndex, endIndex) {
|
|
53458
53466
|
this.childNodes.length = 0;
|
|
53459
53467
|
this._childNodes2.length = 0;
|
|
53460
|
-
var hoEditorFactory =
|
|
53468
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
53461
53469
|
var curStyleIndex = hoEditorFactory.docTree.curStyleIndex;
|
|
53462
53470
|
var cbStyle = hoEditorFactory.docTree.styles[curStyleIndex].combineStyle;
|
|
53463
53471
|
var dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
|
|
@@ -53468,19 +53476,19 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53468
53476
|
// index = astyle.changeStyleString("fontBackColor", "transparent");
|
|
53469
53477
|
// }
|
|
53470
53478
|
|
|
53471
|
-
this.StartMarkNode = new
|
|
53479
|
+
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);
|
|
53472
53480
|
this.StartMarkNode.isReadOnly = true;
|
|
53473
|
-
this.StartMarkNode.MarkNodeType =
|
|
53474
|
-
this.EndMarkNode = new
|
|
53481
|
+
this.StartMarkNode.MarkNodeType = _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNodeType.mtStart */ .q.mtStart;
|
|
53482
|
+
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);
|
|
53475
53483
|
this.EndMarkNode.isReadOnly = true;
|
|
53476
|
-
this.EndMarkNode.MarkNodeType =
|
|
53484
|
+
this.EndMarkNode.MarkNodeType = _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNodeType.mtEnd */ .q.mtEnd;
|
|
53477
53485
|
this.StartMarkNode.pair = this.EndMarkNode;
|
|
53478
53486
|
this.EndMarkNode.pair = this.StartMarkNode;
|
|
53479
53487
|
|
|
53480
53488
|
this._childNodes2.push(this.StartMarkNode);
|
|
53481
53489
|
|
|
53482
53490
|
if (this.labelText.length != 0) {
|
|
53483
|
-
this._childNodes2.push(new
|
|
53491
|
+
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);
|
|
53484
53492
|
// this._childNodes2.push(this._labelNode);
|
|
53485
53493
|
|
|
53486
53494
|
}
|
|
@@ -53494,7 +53502,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53494
53502
|
this.childNodes.splice(1, 1);
|
|
53495
53503
|
}
|
|
53496
53504
|
|
|
53497
|
-
this._childNodes.splice(1, 0, new
|
|
53505
|
+
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));
|
|
53498
53506
|
}
|
|
53499
53507
|
}
|
|
53500
53508
|
}, {
|
|
@@ -53530,16 +53538,16 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53530
53538
|
return dline;
|
|
53531
53539
|
}
|
|
53532
53540
|
|
|
53533
|
-
var hoEditorFactory =
|
|
53541
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
53534
53542
|
var endnode = hoEditorFactory.docTree.findNodePositionByPath(endPath).node;
|
|
53535
53543
|
var isEnd = false;
|
|
53536
53544
|
|
|
53537
53545
|
for (var index = 0; index < this.childNodes.length; index++) {
|
|
53538
53546
|
var value = this.childNodes[index];
|
|
53539
53547
|
|
|
53540
|
-
if (value instanceof
|
|
53548
|
+
if (value instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_48__/* .ParagraphNode */ .C) {
|
|
53541
53549
|
if (aline.paragraphNode !== value) {
|
|
53542
|
-
if (aline instanceof
|
|
53550
|
+
if (aline instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_27__/* .DrawLine */ .a) {
|
|
53543
53551
|
aline.fitLines();
|
|
53544
53552
|
aline.updateLineStyle();
|
|
53545
53553
|
}
|
|
@@ -53554,7 +53562,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53554
53562
|
|
|
53555
53563
|
paraNode = value;
|
|
53556
53564
|
aline = paraNode.drawlines[0];
|
|
53557
|
-
} else if (value instanceof
|
|
53565
|
+
} else if (value instanceof _TableNode__WEBPACK_IMPORTED_MODULE_54__/* .TableNode */ .Fh) {
|
|
53558
53566
|
value.placeDNodeAfterDrawLine(paraNode, aline, endPath);
|
|
53559
53567
|
aline = value.drawTable;
|
|
53560
53568
|
} else {
|
|
@@ -53567,7 +53575,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53567
53575
|
}
|
|
53568
53576
|
|
|
53569
53577
|
var nodePath = hoEditorFactory.docTree.getNodeLastPath(value);
|
|
53570
|
-
var cresult =
|
|
53578
|
+
var cresult = _NodePosition__WEBPACK_IMPORTED_MODULE_38__/* .NodePosition.treePathCompare */ .F.treePathCompare(endPath, nodePath);
|
|
53571
53579
|
|
|
53572
53580
|
if (cresult <= 0) {
|
|
53573
53581
|
break;
|
|
@@ -53577,7 +53585,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53577
53585
|
aline.fitLines();
|
|
53578
53586
|
aline.updateLineStyle();
|
|
53579
53587
|
|
|
53580
|
-
if (dline === aline && aline instanceof
|
|
53588
|
+
if (dline === aline && aline instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_27__/* .DrawLine */ .a) {
|
|
53581
53589
|
this._text = this.getFieldText();
|
|
53582
53590
|
var fixWidthPix = hoEditorFactory.unitConvert.mmConversionPx(this.fixedWidth * 10, true);
|
|
53583
53591
|
var restWidth = aline.dWidth - aline.paragraphNode.combineParagraph.leftMarginPixes - aline.paragraphNode.combineParagraph.rightMarginPixes - this.StartMarkNode.drawNodes[0].x; //const maxEmptWidth = Math.min(aline.calcRestWidth(), fixWidthPix);
|
|
@@ -53627,9 +53635,9 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53627
53635
|
}, {
|
|
53628
53636
|
key: "getReadyToEdit",
|
|
53629
53637
|
value: function getReadyToEdit(callback) {
|
|
53630
|
-
var hoEditorFactory =
|
|
53638
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this.hoEditorFactoryID);
|
|
53631
53639
|
|
|
53632
|
-
if (!this.canModifyContent && hoEditorFactory.drawTree.paintStatus !==
|
|
53640
|
+
if (!this.canModifyContent && hoEditorFactory.drawTree.paintStatus !== _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psDesign */ .Dh.psDesign) {
|
|
53633
53641
|
return [false, ''];
|
|
53634
53642
|
}
|
|
53635
53643
|
|
|
@@ -53637,8 +53645,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53637
53645
|
|
|
53638
53646
|
if (label) {
|
|
53639
53647
|
var prev = label.previousLeaf();
|
|
53640
|
-
if (!prev) throw
|
|
53641
|
-
var path =
|
|
53648
|
+
if (!prev) throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_31__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
53649
|
+
var path = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(prev);
|
|
53642
53650
|
if (callback) callback(label);
|
|
53643
53651
|
return [true, path];
|
|
53644
53652
|
}
|
|
@@ -53664,16 +53672,16 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53664
53672
|
value: function getActualWidth() {
|
|
53665
53673
|
var w = 0;
|
|
53666
53674
|
this.childNodes.forEach(function (value) {
|
|
53667
|
-
if (!(value instanceof
|
|
53675
|
+
if (!(value instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_48__/* .ParagraphNode */ .C)) w += value.getActualWidth();
|
|
53668
53676
|
});
|
|
53669
53677
|
return w;
|
|
53670
53678
|
}
|
|
53671
53679
|
}, {
|
|
53672
53680
|
key: "delete",
|
|
53673
53681
|
value: function _delete(operType) {
|
|
53674
|
-
var hoEditorFactory =
|
|
53682
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this.hoEditorFactoryID);
|
|
53675
53683
|
|
|
53676
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
53684
|
+
if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psDesign */ .Dh.psDesign || this.isAllowDelete) {
|
|
53677
53685
|
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);
|
|
53678
53686
|
} else {
|
|
53679
53687
|
if (operType !== 'update') {
|
|
@@ -53707,7 +53715,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53707
53715
|
return false;
|
|
53708
53716
|
} else {
|
|
53709
53717
|
for (var i = 0; i++; i < this.childNodes.length) {
|
|
53710
|
-
if (this.childNodes[i] instanceof
|
|
53718
|
+
if (this.childNodes[i] instanceof _BaseCombineNode__WEBPACK_IMPORTED_MODULE_39__/* .BaseCombineNode */ .V) {
|
|
53711
53719
|
if (this.childNodes[i].removeChild(node)) return true;
|
|
53712
53720
|
}
|
|
53713
53721
|
}
|
|
@@ -53727,10 +53735,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53727
53735
|
return true;
|
|
53728
53736
|
}
|
|
53729
53737
|
|
|
53730
|
-
if (this.childNodes.length == 3 && this.childNodes[1] instanceof
|
|
53738
|
+
if (this.childNodes.length == 3 && this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j) {
|
|
53731
53739
|
var markNode = this.childNodes[1];
|
|
53732
53740
|
|
|
53733
|
-
if (markNode.MarkNodeType ===
|
|
53741
|
+
if (markNode.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNodeType.mtContent */ .q.mtContent) {
|
|
53734
53742
|
return true;
|
|
53735
53743
|
} else return false;
|
|
53736
53744
|
}
|
|
@@ -53766,7 +53774,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53766
53774
|
|
|
53767
53775
|
for (var i = 1; i < ilen; i++) {
|
|
53768
53776
|
textInputFieldNode.insertText(arr[i].text, textInputFieldNode.text.length);
|
|
53769
|
-
|
|
53777
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.deleteNode(arr[i]);
|
|
53770
53778
|
}
|
|
53771
53779
|
|
|
53772
53780
|
return textInputFieldNode;
|
|
@@ -53787,10 +53795,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53787
53795
|
for (var i = 0; i < this.childNodes.length; i++) {
|
|
53788
53796
|
var node = this.childNodes[i];
|
|
53789
53797
|
|
|
53790
|
-
if (!(node instanceof
|
|
53791
|
-
if (node instanceof
|
|
53798
|
+
if (!(node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j && node.text.substr(0, 1) !== 'C')) {
|
|
53799
|
+
if (node instanceof _TableNode__WEBPACK_IMPORTED_MODULE_54__/* .TableNode */ .Fh || node instanceof TextInputFieldNode) {
|
|
53792
53800
|
childArray.push(node.node2Json(undefined, isCopy, type, clearSign));
|
|
53793
|
-
} else if (node instanceof
|
|
53801
|
+
} else if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_52__/* .SignNode */ .N) {
|
|
53794
53802
|
if (clearSign) {
|
|
53795
53803
|
if (node.isTemplate) {
|
|
53796
53804
|
childArray.push(node.node2Json(undefined, isCopy, undefined, clearSign));
|
|
@@ -53799,11 +53807,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53799
53807
|
childArray.push(node.node2Json(undefined, isCopy));
|
|
53800
53808
|
}
|
|
53801
53809
|
} else {
|
|
53802
|
-
if (node instanceof
|
|
53810
|
+
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_55__/* .TextNode */ .R) {
|
|
53803
53811
|
if (node.text !== '') {
|
|
53804
53812
|
childArray.push(node.node2Json(undefined, isCopy));
|
|
53805
53813
|
}
|
|
53806
|
-
} else if (node instanceof
|
|
53814
|
+
} else if (node instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_42__/* .DateTimeNode */ .Z) {
|
|
53807
53815
|
childArray.push(node.node2Json(undefined, isCopy, undefined, clearSign));
|
|
53808
53816
|
} else {
|
|
53809
53817
|
childArray.push(node.node2Json(undefined, isCopy));
|
|
@@ -53860,7 +53868,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53860
53868
|
}
|
|
53861
53869
|
|
|
53862
53870
|
if (canCopy) {
|
|
53863
|
-
if (!(_node instanceof
|
|
53871
|
+
if (!(_node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j && _node.text.substr(0, 1) === 'C')) {
|
|
53864
53872
|
childArray.push(_node.node2Json(rec, isCopy));
|
|
53865
53873
|
}
|
|
53866
53874
|
}
|
|
@@ -53988,7 +53996,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
53988
53996
|
}, {
|
|
53989
53997
|
key: "getLeftWidth",
|
|
53990
53998
|
value: function getLeftWidth() {
|
|
53991
|
-
var hoEditorFactory =
|
|
53999
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
53992
54000
|
|
|
53993
54001
|
if (this.alignWithBlocked && this.StartMarkNode && this.StartMarkNode.drawNodes.length > 0) {
|
|
53994
54002
|
var dNode = this.StartMarkNode.drawNodes[0];
|
|
@@ -54054,7 +54062,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54054
54062
|
}], [{
|
|
54055
54063
|
key: "json2Node",
|
|
54056
54064
|
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
|
|
54057
|
-
var hoEditorFactory =
|
|
54065
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
|
|
54058
54066
|
var eachCount = 0;
|
|
54059
54067
|
delete json.nodeType;
|
|
54060
54068
|
this.transType(json);
|
|
@@ -54076,7 +54084,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54076
54084
|
json.isSynchro = !json.isSynchro ? false : json.isSynchro;
|
|
54077
54085
|
json.readType = json.readType ? Number(json.readType) : -1; // json.isMultiLinesDisplay = !json.isMultiLinesDisplay ? false : json.isMultiLinesDisplay;
|
|
54078
54086
|
|
|
54079
|
-
var temp = new TextInputFieldNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null,
|
|
54087
|
+
var temp = new TextInputFieldNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntField */ .Jq.ntField, json); // this.insertChild
|
|
54080
54088
|
|
|
54081
54089
|
if (json.childNodes) {
|
|
54082
54090
|
var nodes = new Array();
|
|
@@ -54097,13 +54105,13 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54097
54105
|
// };
|
|
54098
54106
|
|
|
54099
54107
|
if (node) {
|
|
54100
|
-
if (node instanceof
|
|
54108
|
+
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_55__/* .TextNode */ .R) {
|
|
54101
54109
|
if (node.text !== '') {
|
|
54102
54110
|
nodes.push(node);
|
|
54103
54111
|
}
|
|
54104
54112
|
} else {
|
|
54105
54113
|
if (isClearSign) {
|
|
54106
|
-
if (node instanceof
|
|
54114
|
+
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_52__/* .SignNode */ .N) {
|
|
54107
54115
|
if (node.isTemplate && !(node.number == 0 && node.type == 0 && node.name == '')) {
|
|
54108
54116
|
nodes.push(node);
|
|
54109
54117
|
}
|
|
@@ -54111,7 +54119,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54111
54119
|
nodes.push(node);
|
|
54112
54120
|
}
|
|
54113
54121
|
} else {
|
|
54114
|
-
if (node instanceof
|
|
54122
|
+
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_52__/* .SignNode */ .N) {
|
|
54115
54123
|
if (!(node.number == 0 && node.type == 0 && node.name == '')) {
|
|
54116
54124
|
nodes.push(node);
|
|
54117
54125
|
}
|
|
@@ -54122,11 +54130,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54122
54130
|
}
|
|
54123
54131
|
}
|
|
54124
54132
|
|
|
54125
|
-
if (node instanceof
|
|
54133
|
+
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') {
|
|
54126
54134
|
hoEditorFactory.structureConvert._markNodes.push(node);
|
|
54127
54135
|
}
|
|
54128
54136
|
|
|
54129
|
-
if (node instanceof
|
|
54137
|
+
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_52__/* .SignNode */ .N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(node.customProperty.bce01)) {
|
|
54130
54138
|
hoEditorFactory.structureConvert._superiorSign[0] = node;
|
|
54131
54139
|
}
|
|
54132
54140
|
}
|
|
@@ -54135,14 +54143,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54135
54143
|
var _node2 = hoEditorFactory.structureConvert.convertNode(item, rootNodes, temp, undefined, undefined, isClearSign);
|
|
54136
54144
|
|
|
54137
54145
|
if (_node2) {
|
|
54138
|
-
if (_node2 instanceof
|
|
54146
|
+
if (_node2 instanceof _TextNode__WEBPACK_IMPORTED_MODULE_55__/* .TextNode */ .R) {
|
|
54139
54147
|
if (_node2.text !== '') {
|
|
54140
54148
|
nodes.push(_node2);
|
|
54141
54149
|
}
|
|
54142
54150
|
} else {
|
|
54143
54151
|
//nodes.push(node);
|
|
54144
54152
|
if (isClearSign) {
|
|
54145
|
-
if (_node2 instanceof
|
|
54153
|
+
if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_52__/* .SignNode */ .N) {
|
|
54146
54154
|
if (_node2.isTemplate && !(_node2.number == 0 && _node2.type == 0 && _node2.name == '')) {
|
|
54147
54155
|
nodes.push(_node2);
|
|
54148
54156
|
}
|
|
@@ -54150,7 +54158,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54150
54158
|
nodes.push(_node2);
|
|
54151
54159
|
}
|
|
54152
54160
|
} else {
|
|
54153
|
-
if (_node2 instanceof
|
|
54161
|
+
if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_52__/* .SignNode */ .N) {
|
|
54154
54162
|
if (!(_node2.number == 0 && _node2.type == 0 && _node2.name == '')) {
|
|
54155
54163
|
nodes.push(_node2);
|
|
54156
54164
|
}
|
|
@@ -54161,11 +54169,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54161
54169
|
}
|
|
54162
54170
|
}
|
|
54163
54171
|
|
|
54164
|
-
if (_node2 instanceof
|
|
54172
|
+
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') {
|
|
54165
54173
|
hoEditorFactory.structureConvert._markNodes.push(_node2);
|
|
54166
54174
|
}
|
|
54167
54175
|
|
|
54168
|
-
if (_node2 instanceof
|
|
54176
|
+
if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_52__/* .SignNode */ .N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(_node2.customProperty.bce01)) {
|
|
54169
54177
|
hoEditorFactory.structureConvert._superiorSign[0] = _node2;
|
|
54170
54178
|
}
|
|
54171
54179
|
} // if(json.name === '1-1') console.timeEnd(`1-1---${eachCount}`);
|
|
@@ -54185,14 +54193,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54185
54193
|
|
|
54186
54194
|
|
|
54187
54195
|
if (nodes.length > 0) {
|
|
54188
|
-
if (nodes[0] instanceof
|
|
54196
|
+
if (nodes[0] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j) {
|
|
54189
54197
|
var _temp$childNodes;
|
|
54190
54198
|
|
|
54191
54199
|
temp.childNodes.length = 0;
|
|
54192
54200
|
|
|
54193
54201
|
(_temp$childNodes = temp.childNodes).splice.apply(_temp$childNodes, [0, 0].concat(nodes));
|
|
54194
54202
|
|
|
54195
|
-
if (temp.childNodes.length === 3 && temp.childNodes[1] instanceof
|
|
54203
|
+
if (temp.childNodes.length === 3 && temp.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNode */ .j) {
|
|
54196
54204
|
temp._childNodes2.splice(1, 1);
|
|
54197
54205
|
|
|
54198
54206
|
temp._childNodes2.splice(1, 0, temp.childNodes[1]);
|
|
@@ -54208,20 +54216,20 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54208
54216
|
}
|
|
54209
54217
|
}
|
|
54210
54218
|
|
|
54211
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
54219
|
+
if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psDesign */ .Dh.psDesign) {
|
|
54212
54220
|
var sChildNode = temp.childNodes[0];
|
|
54213
54221
|
var eChildNode = temp.childNodes[temp.childNodes.length - 1];
|
|
54214
54222
|
|
|
54215
|
-
if (!(sChildNode instanceof
|
|
54223
|
+
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) {
|
|
54216
54224
|
throw new Error('经检测,病历元素“' + temp.name + '”的模板格式有问题,无法正常加载,请联系工程师进行处理。');
|
|
54217
54225
|
}
|
|
54218
54226
|
|
|
54219
|
-
if (!(eChildNode instanceof
|
|
54227
|
+
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) {
|
|
54220
54228
|
throw new Error('经检测,病历元素“' + temp.name + '”的模板格式有问题,无法正常加载,请联系工程师进行处理。');
|
|
54221
54229
|
}
|
|
54222
54230
|
}
|
|
54223
54231
|
|
|
54224
|
-
if (temp.childNodes[1] instanceof
|
|
54232
|
+
if (temp.childNodes[1] instanceof _TableFormula__WEBPACK_IMPORTED_MODULE_53__/* .TableFormula */ .N) {
|
|
54225
54233
|
return temp;
|
|
54226
54234
|
}
|
|
54227
54235
|
|
|
@@ -54256,11 +54264,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54256
54264
|
|
|
54257
54265
|
for (var i = 0; i < lineArr.length; i++) {
|
|
54258
54266
|
var lineText = lineArr[i];
|
|
54259
|
-
var textNode = new
|
|
54267
|
+
var textNode = new _TextNode__WEBPACK_IMPORTED_MODULE_55__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntText */ .Jq.ntText, lineText, styleIndex);
|
|
54260
54268
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode);
|
|
54261
54269
|
|
|
54262
54270
|
if (i < lineArr.length - 1) {
|
|
54263
|
-
var paraNode = new
|
|
54271
|
+
var paraNode = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_48__/* .ParagraphNode */ .C(hoEditorFactoryID, rootNodes, temp, 0);
|
|
54264
54272
|
paraNode.styleIndex = styleIndex;
|
|
54265
54273
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, paraNode);
|
|
54266
54274
|
}
|
|
@@ -54363,14 +54371,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54363
54371
|
var newStyleIndex = styleIndex;
|
|
54364
54372
|
|
|
54365
54373
|
if (resultArr[k].mark == 1) {
|
|
54366
|
-
var textStyle = new
|
|
54374
|
+
var textStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_36__/* .TextStyle */ .pn(hoEditorFactoryID);
|
|
54367
54375
|
textStyle.copyProperty(hoEditorFactory.docTree.styles[styleIndex], textStyle);
|
|
54368
54376
|
textStyle.script = 2;
|
|
54369
54377
|
newStyleIndex = hoEditorFactory.docTree.styleCompare(textStyle);
|
|
54370
54378
|
}
|
|
54371
54379
|
|
|
54372
54380
|
if (resultArr[k].mark == 2) {
|
|
54373
|
-
var _textStyle = new
|
|
54381
|
+
var _textStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_36__/* .TextStyle */ .pn(hoEditorFactoryID);
|
|
54374
54382
|
|
|
54375
54383
|
_textStyle.copyProperty(hoEditorFactory.docTree.styles[styleIndex], _textStyle);
|
|
54376
54384
|
|
|
@@ -54378,18 +54386,20 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54378
54386
|
newStyleIndex = hoEditorFactory.docTree.styleCompare(_textStyle);
|
|
54379
54387
|
}
|
|
54380
54388
|
|
|
54381
|
-
var textNode0 = new
|
|
54389
|
+
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);
|
|
54382
54390
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode0);
|
|
54383
54391
|
}
|
|
54384
54392
|
}
|
|
54385
54393
|
} else {
|
|
54386
|
-
|
|
54387
|
-
|
|
54394
|
+
if (textArr[0] != "") {
|
|
54395
|
+
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);
|
|
54396
|
+
temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode1);
|
|
54397
|
+
}
|
|
54388
54398
|
}
|
|
54389
54399
|
|
|
54390
54400
|
if (textArr.length > 1) {
|
|
54391
54401
|
for (var _i2 = 1; _i2 < textArr.length; _i2++) {
|
|
54392
|
-
var paragraNode = new
|
|
54402
|
+
var paragraNode = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_48__/* .ParagraphNode */ .C(hoEditorFactoryID, rootNodes, temp, 0);
|
|
54393
54403
|
paragraNode.styleIndex = styleIndex;
|
|
54394
54404
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, paragraNode);
|
|
54395
54405
|
|
|
@@ -54402,7 +54412,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54402
54412
|
var _newStyleIndex = styleIndex;
|
|
54403
54413
|
|
|
54404
54414
|
if (resultArr1[_k].mark == 1) {
|
|
54405
|
-
var _textStyle2 = new
|
|
54415
|
+
var _textStyle2 = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_36__/* .TextStyle */ .pn(hoEditorFactoryID);
|
|
54406
54416
|
|
|
54407
54417
|
_textStyle2.copyProperty(hoEditorFactory.docTree.styles[styleIndex], _textStyle2);
|
|
54408
54418
|
|
|
@@ -54410,13 +54420,13 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54410
54420
|
_newStyleIndex = hoEditorFactory.docTree.styleCompare(_textStyle2);
|
|
54411
54421
|
}
|
|
54412
54422
|
|
|
54413
|
-
var _textNode = new
|
|
54423
|
+
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);
|
|
54414
54424
|
|
|
54415
54425
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, _textNode);
|
|
54416
54426
|
}
|
|
54417
54427
|
}
|
|
54418
54428
|
} else {
|
|
54419
|
-
var _textNode2 = new
|
|
54429
|
+
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);
|
|
54420
54430
|
|
|
54421
54431
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, _textNode2);
|
|
54422
54432
|
}
|
|
@@ -54436,7 +54446,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54436
54446
|
var eIndex = expressArr[_i3].eIndex;
|
|
54437
54447
|
var expressJson = temp.text.substring(sIndex + 16, eIndex);
|
|
54438
54448
|
var expressObj = JSON.parse(expressJson);
|
|
54439
|
-
var expressStyle =
|
|
54449
|
+
var expressStyle = _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_47__/* .ExpressStyle */ .e[expressObj.expressStyle];
|
|
54440
54450
|
|
|
54441
54451
|
if (!expressStyle) {
|
|
54442
54452
|
expressStyle = expressObj.expressStyle;
|
|
@@ -54446,18 +54456,18 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54446
54456
|
|
|
54447
54457
|
if (expressStyle.includes('style')) {
|
|
54448
54458
|
//经期史
|
|
54449
|
-
medicalExpressNode = new
|
|
54459
|
+
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);
|
|
54450
54460
|
} else {
|
|
54451
54461
|
if (expressStyle === 'PupilMapNode') {
|
|
54452
|
-
medicalExpressNode = new
|
|
54462
|
+
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);
|
|
54453
54463
|
} else if (expressStyle === 'LightLocationMapNode') {
|
|
54454
|
-
medicalExpressNode = new
|
|
54464
|
+
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);
|
|
54455
54465
|
} else if (expressStyle === 'FetalHeartMapNode') {
|
|
54456
|
-
medicalExpressNode = new
|
|
54466
|
+
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);
|
|
54457
54467
|
} else if (expressStyle === 'PermanentTeethMapNode') {
|
|
54458
|
-
medicalExpressNode = new
|
|
54468
|
+
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);
|
|
54459
54469
|
} else {
|
|
54460
|
-
medicalExpressNode = new
|
|
54470
|
+
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);
|
|
54461
54471
|
}
|
|
54462
54472
|
}
|
|
54463
54473
|
|
|
@@ -54485,8 +54495,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54485
54495
|
} else {
|
|
54486
54496
|
temp._childNodes2.splice(1, temp._childNodes2.length - 2);
|
|
54487
54497
|
|
|
54488
|
-
var markNode = new
|
|
54489
|
-
styleIndex,
|
|
54498
|
+
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,
|
|
54499
|
+
styleIndex, _MarkNode__WEBPACK_IMPORTED_MODULE_45__/* .MarkNodeType.mtContent */ .q.mtContent);
|
|
54490
54500
|
|
|
54491
54501
|
temp._childNodes.splice(1, 0, markNode);
|
|
54492
54502
|
|
|
@@ -54514,19 +54524,19 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
54514
54524
|
}, {
|
|
54515
54525
|
key: "textInpubNodeRedraw",
|
|
54516
54526
|
value: function textInpubNodeRedraw(hoEditorFactoryID, node) {
|
|
54517
|
-
var hoEditorFactory =
|
|
54527
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_34__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
|
|
54518
54528
|
var startPath = node.StartMarkNode.getNodePath();
|
|
54519
54529
|
var paragraphNode = hoEditorFactory.docTree.getNodeParaNode(node.EndMarkNode);
|
|
54520
54530
|
var endPath = hoEditorFactory.docTree.getNodeLastPath(paragraphNode);
|
|
54521
|
-
var changeEvent = new
|
|
54531
|
+
var changeEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_32__/* .NodeChangeEvent */ .G(hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_35__/* .DocAction.daModifyStyle */ .gk.daModifyStyle, startPath, endPath);
|
|
54522
54532
|
changeEvent.oldEndPath = endPath;
|
|
54523
|
-
changeEvent.oldDrawLines = new
|
|
54533
|
+
changeEvent.oldDrawLines = new _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_29__/* .SelectRange */ .E(hoEditorFactoryID).getRangeDrawLines(startPath, endPath, true);
|
|
54524
54534
|
hoEditorFactory.docTree.change(changeEvent);
|
|
54525
54535
|
}
|
|
54526
54536
|
}]);
|
|
54527
54537
|
|
|
54528
54538
|
return TextInputFieldNode;
|
|
54529
|
-
}(
|
|
54539
|
+
}(_BaseCombineNode__WEBPACK_IMPORTED_MODULE_39__/* .BaseCombineNode */ .V);
|
|
54530
54540
|
|
|
54531
54541
|
/***/ }),
|
|
54532
54542
|
|
|
@@ -119020,7 +119030,7 @@ this.clear();}var p=Graphics.prototype;var G=Graphics;// shortcut
|
|
|
119020
119030
|
* @static
|
|
119021
119031
|
* @protected
|
|
119022
119032
|
* @type {CanvasRenderingContext2D}
|
|
119023
|
-
**/var canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");if(canvas.getContext){Graphics._ctx=canvas.getContext("2d");canvas.width=canvas.height=1;}// getter / setters:
|
|
119033
|
+
**/var canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");if(canvas.getContext){Graphics._ctx=canvas.getContext("2d",{willReadFrequently:true});canvas.width=canvas.height=1;}// getter / setters:
|
|
119024
119034
|
/**
|
|
119025
119035
|
* Use the {{#crossLink "Graphics/instructions:property"}}{{/crossLink}} property instead.
|
|
119026
119036
|
* @method _getInstructions
|
|
@@ -120600,7 +120610,7 @@ this.createjs=this.createjs||{};(function(){"use strict";// constructor:
|
|
|
120600
120610
|
* @static
|
|
120601
120611
|
* @protected
|
|
120602
120612
|
**/var canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");// prevent errors on load in browsers without canvas.
|
|
120603
|
-
if(canvas.getContext){DisplayObject._hitTestCanvas=canvas;DisplayObject._hitTestContext=canvas.getContext("2d");canvas.width=canvas.height=1;}// events:
|
|
120613
|
+
if(canvas.getContext){DisplayObject._hitTestCanvas=canvas;DisplayObject._hitTestContext=canvas.getContext("2d",{willReadFrequently:true});canvas.width=canvas.height=1;}// events:
|
|
120604
120614
|
/**
|
|
120605
120615
|
* Dispatched when the user presses their left mouse button over the display object. See the
|
|
120606
120616
|
* {{#crossLink "MouseEvent"}}{{/crossLink}} class for a listing of event properties.
|
|
@@ -121647,7 +121657,7 @@ this.enableDOMEvents(true);}var p=createjs.extend(Stage,createjs.Container);// e
|
|
|
121647
121657
|
*
|
|
121648
121658
|
* @method update
|
|
121649
121659
|
* @param {Object} [props] Props object to pass to `tick()`. Should usually be a {{#crossLink "Ticker"}}{{/crossLink}} event object, or similar object with a delta property.
|
|
121650
|
-
**/p.update=function(props){if(!this.canvas){return;}if(this.tickOnUpdate){this.tick(props);}if(this.dispatchEvent("drawstart",false,true)===false){return;}createjs.DisplayObject._snapToPixelEnabled=this.snapToPixelEnabled;var r=this.drawRect,ctx=this.canvas.getContext("2d");ctx.setTransform(1,0,0,1,0,0);if(this.autoClear){if(r){ctx.clearRect(r.x,r.y,r.width,r.height);}else{ctx.clearRect(0,0,this.canvas.width+1,this.canvas.height+1);}}ctx.save();if(this.drawRect){ctx.beginPath();ctx.rect(r.x,r.y,r.width,r.height);ctx.clip();}this.updateContext(ctx);this.draw(ctx,false);ctx.restore();this.dispatchEvent("drawend");};/**
|
|
121660
|
+
**/p.update=function(props){if(!this.canvas){return;}if(this.tickOnUpdate){this.tick(props);}if(this.dispatchEvent("drawstart",false,true)===false){return;}createjs.DisplayObject._snapToPixelEnabled=this.snapToPixelEnabled;var r=this.drawRect,ctx=this.canvas.getContext("2d",{willReadFrequently:true});ctx.setTransform(1,0,0,1,0,0);if(this.autoClear){if(r){ctx.clearRect(r.x,r.y,r.width,r.height);}else{ctx.clearRect(0,0,this.canvas.width+1,this.canvas.height+1);}}ctx.save();if(this.drawRect){ctx.beginPath();ctx.rect(r.x,r.y,r.width,r.height);ctx.clip();}this.updateContext(ctx);this.draw(ctx,false);ctx.restore();this.dispatchEvent("drawend");};/**
|
|
121651
121661
|
* Propagates a tick event through the display list. This is automatically called by {{#crossLink "Stage/update"}}{{/crossLink}}
|
|
121652
121662
|
* unless {{#crossLink "Stage/tickOnUpdate:property"}}{{/crossLink}} is set to false.
|
|
121653
121663
|
*
|
|
@@ -121690,7 +121700,7 @@ this.enableDOMEvents(true);}var p=createjs.extend(Stage,createjs.Container);// e
|
|
|
121690
121700
|
**/p.handleEvent=function(evt){if(evt.type=="tick"){this.update(evt);}};/**
|
|
121691
121701
|
* Clears the target canvas. Useful if {{#crossLink "Stage/autoClear:property"}}{{/crossLink}} is set to `false`.
|
|
121692
121702
|
* @method clear
|
|
121693
|
-
**/p.clear=function(){if(!this.canvas){return;}var ctx=this.canvas.getContext("2d");ctx.setTransform(1,0,0,1,0,0);ctx.clearRect(0,0,this.canvas.width+1,this.canvas.height+1);};/**
|
|
121703
|
+
**/p.clear=function(){if(!this.canvas){return;}var ctx=this.canvas.getContext("2d",{willReadFrequently:true});ctx.setTransform(1,0,0,1,0,0);ctx.clearRect(0,0,this.canvas.width+1,this.canvas.height+1);};/**
|
|
121694
121704
|
* Returns a data url that contains a Base64-encoded image of the contents of the stage. The returned data url can
|
|
121695
121705
|
* be specified as the src value of an image element.
|
|
121696
121706
|
* @method toDataURL
|
|
@@ -122381,7 +122391,7 @@ this._webGLContext.clearColor(this._clearColor.r,this._clearColor.g,this._clearC
|
|
|
122381
122391
|
* Docced in superclass
|
|
122382
122392
|
*/p.update=function(props){if(!this.canvas){return;}if(this.tickOnUpdate){this.tick(props);}this.dispatchEvent("drawstart");if(this.autoClear){this.clear();}if(this._webGLContext){// Use WebGL.
|
|
122383
122393
|
this._batchDraw(this,this._webGLContext);if(this._autoPurge!=-1&&!(this._drawID%(this._autoPurge/2|0))){this.purgeTextures(this._autoPurge);}}else{// Use 2D.
|
|
122384
|
-
var ctx=this.canvas.getContext("2d");ctx.save();this.updateContext(ctx);this.draw(ctx,false);ctx.restore();}this.dispatchEvent("drawend");};/**
|
|
122394
|
+
var ctx=this.canvas.getContext("2d",{willReadFrequently:true});ctx.save();this.updateContext(ctx);this.draw(ctx,false);ctx.restore();}this.dispatchEvent("drawend");};/**
|
|
122385
122395
|
* Docced in superclass
|
|
122386
122396
|
*/p.clear=function(){if(!this.canvas){return;}if(StageGL.isWebGLActive(this._webGLContext)){var gl=this._webGLContext;var cc=this._clearColor;var adjust=this._transparent?cc.a:1.0;// Use WebGL settings; adjust for pre multiplied alpha appropriate to scenario
|
|
122387
122397
|
this._webGLContext.clearColor(cc.r*adjust,cc.g*adjust,cc.b*adjust,adjust);gl.clear(gl.COLOR_BUFFER_BIT);this._webGLContext.clearColor(cc.r,cc.g,cc.b,cc.a);}else{// Use 2D.
|
|
@@ -123287,7 +123297,7 @@ this.createjs=this.createjs||{};(function(){"use strict";// constructor:
|
|
|
123287
123297
|
* @property _workingContext
|
|
123288
123298
|
* @type CanvasRenderingContext2D
|
|
123289
123299
|
* @private
|
|
123290
|
-
**/var canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");if(canvas.getContext){Text._workingContext=canvas.getContext("2d");canvas.width=canvas.height=1;}// constants:
|
|
123300
|
+
**/var canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");if(canvas.getContext){Text._workingContext=canvas.getContext("2d",{willReadFrequently:true});canvas.width=canvas.height=1;}// constants:
|
|
123291
123301
|
/**
|
|
123292
123302
|
* Lookup table for the ratio to offset bounds x calculations based on the textAlign property.
|
|
123293
123303
|
* @property H_OFFSETS
|
|
@@ -123948,7 +123958,7 @@ this.createjs=this.createjs||{};(function(){"use strict";// constructor:
|
|
|
123948
123958
|
* @static
|
|
123949
123959
|
* @type CanvasRenderingContext2D
|
|
123950
123960
|
* @protected
|
|
123951
|
-
*/var canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");if(canvas.getContext){SpriteSheetUtils._workingCanvas=canvas;SpriteSheetUtils._workingContext=canvas.getContext("2d");canvas.width=canvas.height=1;}// public static methods:
|
|
123961
|
+
*/var canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");if(canvas.getContext){SpriteSheetUtils._workingCanvas=canvas;SpriteSheetUtils._workingContext=canvas.getContext("2d",{willReadFrequently:true});canvas.width=canvas.height=1;}// public static methods:
|
|
123952
123962
|
/**
|
|
123953
123963
|
* Returns a single frame of the specified sprite sheet as a new PNG image. An example of when this may be useful is
|
|
123954
123964
|
* to use a spritesheet frame as the source for a bitmap fill.
|
|
@@ -124197,7 +124207,7 @@ SpriteSheetBuilder.ERR_DIMENSIONS="frame dimensions exceed max spritesheet dimen
|
|
|
124197
124207
|
* @method _drawNext
|
|
124198
124208
|
* @protected
|
|
124199
124209
|
* @return Boolean Returns false if this is the last draw.
|
|
124200
|
-
**/p._drawNext=function(){var frame=this._frames[this._index];var sc=frame.scale*this._scale;var rect=frame.rect;var sourceRect=frame.sourceRect;var canvas=this._data.images[frame.img];var ctx=canvas.getContext("2d");frame.funct&&frame.funct(frame.source,frame.data);ctx.save();ctx.beginPath();ctx.rect(rect.x,rect.y,rect.width,rect.height);ctx.clip();ctx.translate(Math.ceil(rect.x-sourceRect.x*sc),Math.ceil(rect.y-sourceRect.y*sc));ctx.scale(sc,sc);frame.source.draw(ctx);// display object will draw itself.
|
|
124210
|
+
**/p._drawNext=function(){var frame=this._frames[this._index];var sc=frame.scale*this._scale;var rect=frame.rect;var sourceRect=frame.sourceRect;var canvas=this._data.images[frame.img];var ctx=canvas.getContext("2d",{willReadFrequently:true});frame.funct&&frame.funct(frame.source,frame.data);ctx.save();ctx.beginPath();ctx.rect(rect.x,rect.y,rect.width,rect.height);ctx.clip();ctx.translate(Math.ceil(rect.x-sourceRect.x*sc),Math.ceil(rect.y-sourceRect.y*sc));ctx.scale(sc,sc);frame.source.draw(ctx);// display object will draw itself.
|
|
124201
124211
|
ctx.restore();return++this._index<this._frames.length;};createjs.SpriteSheetBuilder=createjs.promote(SpriteSheetBuilder,"EventDispatcher");})();//##############################################################################
|
|
124202
124212
|
// DOMElement.js
|
|
124203
124213
|
//##############################################################################
|
|
@@ -124668,7 +124678,7 @@ if(!stageGL.isCacheControlled){stageGL.getTargetRenderTexture(this.target,this._
|
|
|
124668
124678
|
* @protected
|
|
124669
124679
|
**/p._drawToCache=function(compositeOperation){var surface=this.target.cacheCanvas;var target=this.target;var webGL=this._webGLCache;if(webGL){//TODO: auto split blur into an x/y pass
|
|
124670
124680
|
webGL.cacheDraw(target,target.filters,this);// we may of swapped around which element the surface is, so we re-fetch it
|
|
124671
|
-
surface=this.target.cacheCanvas;surface.width=this._drawWidth;surface.height=this._drawHeight;}else{var ctx=surface.getContext("2d");if(!compositeOperation){ctx.clearRect(0,0,this._drawWidth+1,this._drawHeight+1);}ctx.save();ctx.globalCompositeOperation=compositeOperation;ctx.setTransform(this.scale,0,0,this.scale,-this._filterOffX,-this._filterOffY);ctx.translate(-this.x,-this.y);target.draw(ctx,true);ctx.restore();if(target.filters&&target.filters.length){this._applyFilters(ctx);}}surface._invalid=true;};/**
|
|
124681
|
+
surface=this.target.cacheCanvas;surface.width=this._drawWidth;surface.height=this._drawHeight;}else{var ctx=surface.getContext("2d",{willReadFrequently:true});if(!compositeOperation){ctx.clearRect(0,0,this._drawWidth+1,this._drawHeight+1);}ctx.save();ctx.globalCompositeOperation=compositeOperation;ctx.setTransform(this.scale,0,0,this.scale,-this._filterOffX,-this._filterOffY);ctx.translate(-this.x,-this.y);target.draw(ctx,true);ctx.restore();if(target.filters&&target.filters.length){this._applyFilters(ctx);}}surface._invalid=true;};/**
|
|
124672
124682
|
* Work through every filter and apply its individual visual transformation.
|
|
124673
124683
|
* @method _applyFilters
|
|
124674
124684
|
* @protected
|
|
@@ -124808,7 +124818,7 @@ this.createjs=this.createjs||{};(function(){"use strict";// constructor:
|
|
|
124808
124818
|
var data=imageData.data;var map=this._mapData;for(var i=0,l=data.length;i<l;i+=4){data[i+3]=map[i]||0;}return true;};/**
|
|
124809
124819
|
* @method _prepAlphaMap
|
|
124810
124820
|
* @protected
|
|
124811
|
-
**/p._prepAlphaMap=function(){if(!this.alphaMap){return false;}if(this.alphaMap==this._alphaMap&&this._mapData){return true;}this._mapData=null;var map=this._alphaMap=this.alphaMap;var canvas=map;var ctx;if(map instanceof HTMLCanvasElement){ctx=canvas.getContext("2d");}else{canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");canvas.width=map.width;canvas.height=map.height;ctx=canvas.getContext("2d");ctx.drawImage(map,0,0);}try{var imgData=ctx.getImageData(0,0,map.width,map.height);}catch(e){//if (!this.suppressCrossDomainErrors) throw new Error("unable to access local image data: " + e);
|
|
124821
|
+
**/p._prepAlphaMap=function(){if(!this.alphaMap){return false;}if(this.alphaMap==this._alphaMap&&this._mapData){return true;}this._mapData=null;var map=this._alphaMap=this.alphaMap;var canvas=map;var ctx;if(map instanceof HTMLCanvasElement){ctx=canvas.getContext("2d",{willReadFrequently:true});}else{canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");canvas.width=map.width;canvas.height=map.height;ctx=canvas.getContext("2d",{willReadFrequently:true});ctx.drawImage(map,0,0);}try{var imgData=ctx.getImageData(0,0,map.width,map.height);}catch(e){//if (!this.suppressCrossDomainErrors) throw new Error("unable to access local image data: " + e);
|
|
124812
124822
|
return false;}this._mapData=imgData.data;return true;};createjs.AlphaMapFilter=createjs.promote(AlphaMapFilter,"Filter");})();//##############################################################################
|
|
124813
124823
|
// AlphaMaskFilter.js
|
|
124814
124824
|
//##############################################################################
|
|
@@ -214888,7 +214898,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
214888
214898
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
214889
214899
|
var ParagraphNode = __webpack_require__(14208);
|
|
214890
214900
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
214891
|
-
/* harmony default export */ var version = ('2.0.
|
|
214901
|
+
/* harmony default export */ var version = ('2.0.111');
|
|
214892
214902
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
214893
214903
|
var PoperTipText = __webpack_require__(44523);
|
|
214894
214904
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -218453,8 +218463,6 @@ var PageCountNode = __webpack_require__(49381);
|
|
|
218453
218463
|
var PageNumNode = __webpack_require__(98700);
|
|
218454
218464
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ControlNode.ts
|
|
218455
218465
|
var ControlNode = __webpack_require__(8395);
|
|
218456
|
-
// EXTERNAL MODULE: ./src/editor/draw/SelectRange.ts
|
|
218457
|
-
var SelectRange = __webpack_require__(1470);
|
|
218458
218466
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TableFormula.ts
|
|
218459
218467
|
var TableFormula = __webpack_require__(39869);
|
|
218460
218468
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.search.js
|
|
@@ -218609,8 +218617,6 @@ var GestationNode = __webpack_require__(74873);
|
|
|
218609
218617
|
|
|
218610
218618
|
|
|
218611
218619
|
|
|
218612
|
-
|
|
218613
|
-
|
|
218614
218620
|
|
|
218615
218621
|
|
|
218616
218622
|
|
|
@@ -218824,7 +218830,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
218824
218830
|
|
|
218825
218831
|
for (var index = 0; index < elementArr.length; index++) {
|
|
218826
218832
|
var element = elementArr[index];
|
|
218827
|
-
var tagName = jquery_default()(element).prop("tagName").toLowerCase();
|
|
218833
|
+
var tagName = jquery_default()(element).prop("tagName").toLowerCase(); //// console.log(tagName);
|
|
218828
218834
|
|
|
218829
218835
|
if (tagName == "p") {
|
|
218830
218836
|
var rtnP = this.dealP(element); //段落节点
|
|
@@ -219578,7 +219584,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
219578
219584
|
}
|
|
219579
219585
|
}
|
|
219580
219586
|
|
|
219581
|
-
var footerSubDocTree = new Array(); //
|
|
219587
|
+
var footerSubDocTree = new Array(); // console.timeEnd("return");
|
|
219582
219588
|
|
|
219583
219589
|
return {
|
|
219584
219590
|
docProperty: root.docProperty,
|
|
@@ -220276,7 +220282,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220276
220282
|
// console.time("footersArray");
|
|
220277
220283
|
|
|
220278
220284
|
|
|
220279
|
-
var footersArray = xx.footer; // console.log(footersArray)
|
|
220285
|
+
var footersArray = xx.footer; // // console.log(footersArray)
|
|
220280
220286
|
|
|
220281
220287
|
var footerNodes = new Array();
|
|
220282
220288
|
|
|
@@ -220348,16 +220354,16 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220348
220354
|
|
|
220349
220355
|
if (!temp) {
|
|
220350
220356
|
continue;
|
|
220351
|
-
}
|
|
220352
|
-
// console.time(`${mi}_${temp.name ? temp.name : '表格'}`);
|
|
220353
|
-
// }
|
|
220357
|
+
}
|
|
220354
220358
|
|
|
220359
|
+
if ([2, 10, 14, 19, 24, 40, 54, 65].includes(mi)) {// console.time(`${mi}_${temp.name ? temp.name : '表格'}`);
|
|
220360
|
+
}
|
|
220355
220361
|
|
|
220356
|
-
var _node3 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null, mainNodes, undefined, isClearSign);
|
|
220357
|
-
// console.timeEnd(`${mi}_${temp.name ? temp.name : '表格'}`);
|
|
220358
|
-
// console.log(temp);
|
|
220359
|
-
// }
|
|
220362
|
+
var _node3 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null, mainNodes, undefined, isClearSign);
|
|
220360
220363
|
|
|
220364
|
+
if ([2, 10, 14, 19, 24, 40, 54, 65].includes(mi)) {// console.timeEnd(`${mi}_${temp.name ? temp.name : '表格'}`);
|
|
220365
|
+
// console.log(temp);
|
|
220366
|
+
}
|
|
220361
220367
|
|
|
220362
220368
|
if (_node3) {
|
|
220363
220369
|
// if (node instanceof BaseCombineNode && temp.childNode) {
|
|
@@ -220742,7 +220748,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220742
220748
|
_this5._superiorSign[0] = aNode;
|
|
220743
220749
|
}
|
|
220744
220750
|
}
|
|
220745
|
-
}; //
|
|
220751
|
+
}; // console.time("openJson2Doc--headersArray");
|
|
220746
220752
|
//添加header节点
|
|
220747
220753
|
|
|
220748
220754
|
|
|
@@ -220779,8 +220785,8 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220779
220785
|
//hoEditorFactory.drawPageTree.drawHeaders[i].stage?.update();
|
|
220780
220786
|
|
|
220781
220787
|
}
|
|
220782
|
-
} //
|
|
220783
|
-
//
|
|
220788
|
+
} // console.timeEnd("openJson2Doc--headersArray");
|
|
220789
|
+
// console.time("openJson2Doc--footersArray");
|
|
220784
220790
|
//添加footer节点
|
|
220785
220791
|
|
|
220786
220792
|
|
|
@@ -220818,7 +220824,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220818
220824
|
// );
|
|
220819
220825
|
|
|
220820
220826
|
}
|
|
220821
|
-
} //
|
|
220827
|
+
} // console.timeEnd("openJson2Doc--footersArray");
|
|
220822
220828
|
//main
|
|
220823
220829
|
|
|
220824
220830
|
|
|
@@ -220831,14 +220837,14 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220831
220837
|
|
|
220832
220838
|
insertNode(main, mPrevNode);
|
|
220833
220839
|
var mLength = hoEditorFactory.docTree.mainNodes.length - 1;
|
|
220834
|
-
var mEndPath = hoEditorFactory.docTree.getNodeLastPath(hoEditorFactory.docTree.mainNodes[mLength]); //
|
|
220840
|
+
var mEndPath = hoEditorFactory.docTree.getNodeLastPath(hoEditorFactory.docTree.mainNodes[mLength]); // console.time("openJson2Doc--change");
|
|
220835
220841
|
|
|
220836
220842
|
var mChangeEvent = new NodeChangeEvent/* NodeChangeEvent */.G(this._hoEditorFactoryID, DocTree/* DocAction.daInsert */.gk.daInsert, "main/0", mEndPath); // mChangeEvent.oldEndPath = mEndPath;
|
|
220837
220843
|
// mChangeEvent.oldDrawTreeLines = new SelectRange(
|
|
220838
220844
|
// this._hoEditorFactory
|
|
220839
220845
|
// ).getRangeDrawTreeLines("main/0", mEndPath);
|
|
220840
220846
|
|
|
220841
|
-
hoEditorFactory.docTree.change(mChangeEvent); //
|
|
220847
|
+
hoEditorFactory.docTree.change(mChangeEvent); // console.timeEnd("openJson2Doc--change");
|
|
220842
220848
|
|
|
220843
220849
|
var comments = [];
|
|
220844
220850
|
|
|
@@ -220899,36 +220905,66 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
220899
220905
|
|
|
220900
220906
|
|
|
220901
220907
|
var formularNodes = hoEditorFactory.drawTree.formularNodes;
|
|
220908
|
+
var tableArr = [];
|
|
220902
220909
|
formularNodes.forEach(function (value, key) {
|
|
220903
|
-
if (
|
|
220904
|
-
//|| value.formularType === FormularType.ftFormular
|
|
220905
|
-
value.formularType === TableFormula/* FormularType.ftBMI */.a.ftBMI || value.formularType === TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess || value.formularType === TableFormula/* FormularType.ftExpectedBirthDate */.a.ftExpectedBirthDate || value.formularType === TableFormula/* FormularType.ftPregnantWeeks */.a.ftPregnantWeeks || value.formularType === TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping) {
|
|
220910
|
+
if (value.formularType === TableFormula/* FormularType.ftSum */.a.ftSum || value.formularType === TableFormula/* FormularType.ftFormular */.a.ftFormular || value.formularType === TableFormula/* FormularType.ftBMI */.a.ftBMI || value.formularType === TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess || value.formularType === TableFormula/* FormularType.ftExpectedBirthDate */.a.ftExpectedBirthDate || value.formularType === TableFormula/* FormularType.ftPregnantWeeks */.a.ftPregnantWeeks || value.formularType === TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping) {
|
|
220906
220911
|
value.updateResult();
|
|
220907
|
-
value.getParentCell().drawCell.needUpdate = true;
|
|
220908
|
-
|
|
220912
|
+
value.getParentCell().drawCell.needUpdate = true; // const prevNode = value.previousLeaf();
|
|
220913
|
+
// if (!prevNode) {
|
|
220914
|
+
// throw new Error('错误的绘制位置');
|
|
220915
|
+
// }
|
|
220909
220916
|
|
|
220910
|
-
|
|
220911
|
-
|
|
220912
|
-
|
|
220917
|
+
var table = value.getParentCell().table;
|
|
220918
|
+
|
|
220919
|
+
if (!tableArr.includes(table)) {
|
|
220920
|
+
tableArr.push(table);
|
|
220921
|
+
} // const startPath = hoEditorFactory.docTree.getNodeLastPath(prevNode);
|
|
220922
|
+
// const changeEvent = new NodeChangeEvent(this._hoEditorFactoryID,
|
|
220923
|
+
// DocAction.daModifyStyle, startPath, startPath)
|
|
220924
|
+
// changeEvent.oldEndPath = startPath;
|
|
220925
|
+
// changeEvent.oldDrawLines = new SelectRange(this._hoEditorFactoryID).getRangeDrawLines(startPath, startPath, false)
|
|
220926
|
+
// hangeEvent.repaintImmediate=false;
|
|
220927
|
+
//hoEditorFactory.docTree.change(changeEvent);
|
|
220913
220928
|
|
|
220914
|
-
var startPath = hoEditorFactory.docTree.getNodeLastPath(prevNode);
|
|
220915
|
-
var changeEvent = new NodeChangeEvent/* NodeChangeEvent */.G(_this5._hoEditorFactoryID, DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, startPath);
|
|
220916
|
-
changeEvent.oldEndPath = startPath;
|
|
220917
|
-
changeEvent.oldDrawLines = new SelectRange/* SelectRange */.E(_this5._hoEditorFactoryID).getRangeDrawLines(startPath, startPath, false);
|
|
220918
|
-
hoEditorFactory.docTree.change(changeEvent);
|
|
220919
220929
|
}
|
|
220920
|
-
});
|
|
220930
|
+
});
|
|
220931
|
+
|
|
220932
|
+
for (var t = 0; t < tableArr.length; t++) {
|
|
220933
|
+
// const table=tableArr[t];
|
|
220934
|
+
tableArr[t].update(); // const dpos = hoEditorFactory.drawTree.getDlineDrawRootLists(
|
|
220935
|
+
// table.drawTable
|
|
220936
|
+
// );
|
|
220937
|
+
// const mainArea = hoEditorFactory.drawPageTree.getMainRootArea(
|
|
220938
|
+
// table.drawTable.drawPageTables[0]
|
|
220939
|
+
// );
|
|
220940
|
+
// if (mainArea) {
|
|
220941
|
+
// let drawTop = table.drawTable.drawPageTables[0].y;
|
|
220942
|
+
// if (mainArea.contains(table.drawTable.drawPageTables[0]) && table.drawTable.drawPageTables[0] instanceof DrawPageTable
|
|
220943
|
+
// && (table.drawTable.drawPageTables[0] as DrawPageTable).table.drawTable.drawPageTables.indexOf(table.drawTable.drawPageTables[0] as DrawPageTable) > 0
|
|
220944
|
+
// ) {
|
|
220945
|
+
// drawTop = 0
|
|
220946
|
+
// }
|
|
220947
|
+
// hoEditorFactory.drawPageTree.update(
|
|
220948
|
+
// mainArea,
|
|
220949
|
+
// dpos[0].drawRoots,
|
|
220950
|
+
// drawTop,
|
|
220951
|
+
// dpos[0].index,
|
|
220952
|
+
// dpos[0].index
|
|
220953
|
+
// );
|
|
220954
|
+
// }
|
|
220955
|
+
} //模板加载完成后 开始加载数据集
|
|
220921
220956
|
// if (test) {
|
|
220922
220957
|
// const data =hoEditorFactory.testDataSet.getTestJsonData();
|
|
220923
220958
|
// const jsonData = JSON.parse(JSON.stringify(data));
|
|
220924
220959
|
// this.loadDataSet(jsonData);
|
|
220925
220960
|
// }
|
|
220926
220961
|
|
|
220962
|
+
|
|
220927
220963
|
callback && callback({
|
|
220928
220964
|
text: hoEditorFactory.vueController.getDocTitle(),
|
|
220929
220965
|
count: 0
|
|
220930
220966
|
});
|
|
220931
|
-
hoEditorFactory.isThrowError = true; //
|
|
220967
|
+
hoEditorFactory.isThrowError = true; // console.timeEnd("openJson2Doc");
|
|
220932
220968
|
}
|
|
220933
220969
|
}
|
|
220934
220970
|
}, {
|
|
@@ -222229,6 +222265,8 @@ var web_url_search_params = __webpack_require__(41637);
|
|
|
222229
222265
|
var NodeChangingEvent = __webpack_require__(92787);
|
|
222230
222266
|
// EXTERNAL MODULE: ./src/plugins/pretty-data.js
|
|
222231
222267
|
var pretty_data = __webpack_require__(3105);
|
|
222268
|
+
// EXTERNAL MODULE: ./src/editor/draw/SelectRange.ts
|
|
222269
|
+
var SelectRange = __webpack_require__(1470);
|
|
222232
222270
|
// EXTERNAL MODULE: ./src/plugins/type.ts
|
|
222233
222271
|
var type = __webpack_require__(28349);
|
|
222234
222272
|
// EXTERNAL MODULE: ./src/editor/undoRedo/NodeDeleteUndoUnit.ts
|