hoeditor-web 3.1.48 → 3.1.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.umd.js +105 -107
- package/lib/hoeditor.umd.min.js +26 -26
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -58216,38 +58216,33 @@ var PageNumNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
58216
58216
|
/* harmony export */ C: function() { return /* binding */ ParagraphNode; }
|
|
58217
58217
|
/* harmony export */ });
|
|
58218
58218
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27222);
|
|
58219
|
-
/* harmony import */ var
|
|
58220
|
-
/* harmony import */ var
|
|
58221
|
-
/* harmony import */ var
|
|
58222
|
-
/* harmony import */ var
|
|
58223
|
-
/* harmony import */ var
|
|
58224
|
-
/* harmony import */ var
|
|
58225
|
-
/* harmony import */ var
|
|
58226
|
-
/* harmony import */ var
|
|
58227
|
-
/* harmony import */ var
|
|
58228
|
-
/* harmony import */ var
|
|
58229
|
-
/* harmony import */ var
|
|
58230
|
-
/* harmony import */ var
|
|
58231
|
-
/* harmony import */ var
|
|
58232
|
-
/* harmony import */ var
|
|
58233
|
-
/* harmony import */ var
|
|
58234
|
-
/* harmony import */ var
|
|
58235
|
-
/* harmony import */ var
|
|
58236
|
-
/* harmony import */ var
|
|
58237
|
-
/* harmony import */ var
|
|
58238
|
-
/* harmony import */ var
|
|
58239
|
-
/* harmony import */ var
|
|
58240
|
-
/* harmony import */ var
|
|
58241
|
-
/* harmony import */ var
|
|
58242
|
-
/* harmony import */ var
|
|
58243
|
-
/* harmony import */ var
|
|
58244
|
-
/* harmony import */ var
|
|
58245
|
-
/* harmony import */ var
|
|
58246
|
-
/* harmony import */ var _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(90161);
|
|
58247
|
-
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(74089);
|
|
58248
|
-
/* harmony import */ var _CellNode__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(68598);
|
|
58249
|
-
|
|
58250
|
-
|
|
58219
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70280);
|
|
58220
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(66298);
|
|
58221
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(75808);
|
|
58222
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11651);
|
|
58223
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(19593);
|
|
58224
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(78255);
|
|
58225
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(41539);
|
|
58226
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
58227
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(54747);
|
|
58228
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
58229
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(40561);
|
|
58230
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
58231
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(57658);
|
|
58232
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
58233
|
+
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(47941);
|
|
58234
|
+
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
58235
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(9653);
|
|
58236
|
+
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_12__);
|
|
58237
|
+
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(62358);
|
|
58238
|
+
/* harmony import */ var _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(53474);
|
|
58239
|
+
/* harmony import */ var _RectNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(67800);
|
|
58240
|
+
/* harmony import */ var _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(96635);
|
|
58241
|
+
/* harmony import */ var _editor_draw_drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(74298);
|
|
58242
|
+
/* harmony import */ var _TableNode__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(5010);
|
|
58243
|
+
/* harmony import */ var _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(90161);
|
|
58244
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(74089);
|
|
58245
|
+
/* harmony import */ var _CellNode__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(68598);
|
|
58251
58246
|
|
|
58252
58247
|
|
|
58253
58248
|
|
|
@@ -58271,34 +58266,34 @@ var PageNumNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
58271
58266
|
|
|
58272
58267
|
|
|
58273
58268
|
var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
58274
|
-
(0,
|
|
58275
|
-
var _super = (0,
|
|
58269
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(ParagraphNode, _BaseNode);
|
|
58270
|
+
var _super = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(ParagraphNode);
|
|
58276
58271
|
//强制换页眉(不新起一页换页眉)
|
|
58277
58272
|
function ParagraphNode(hoEditorFactoryID, rootNodes, parentNode, paraNo, customProperty) {
|
|
58278
58273
|
var _this;
|
|
58279
|
-
(0,
|
|
58280
|
-
_this = _super.call(this, hoEditorFactoryID, rootNodes, parentNode,
|
|
58281
|
-
(0,
|
|
58274
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, ParagraphNode);
|
|
58275
|
+
_this = _super.call(this, hoEditorFactoryID, rootNodes, parentNode, _BaseNode__WEBPACK_IMPORTED_MODULE_13__/* .NodeType */ .Jq.ntParagraph);
|
|
58276
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_paraNo", void 0);
|
|
58282
58277
|
//指向的段落样式
|
|
58283
|
-
(0,
|
|
58284
|
-
(0,
|
|
58285
|
-
(0,
|
|
58286
|
-
(0,
|
|
58287
|
-
(0,
|
|
58288
|
-
(0,
|
|
58289
|
-
(0,
|
|
58290
|
-
(0,
|
|
58278
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_dTop", void 0);
|
|
58279
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_dHeight", void 0);
|
|
58280
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_combineParagraph", void 0);
|
|
58281
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_drawLines", void 0);
|
|
58282
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_pagePaintStart", void 0);
|
|
58283
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_drawRoots", void 0);
|
|
58284
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_printAsSinglePage", void 0);
|
|
58285
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_docId", void 0);
|
|
58291
58286
|
//病历id
|
|
58292
|
-
(0,
|
|
58287
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_styleIndex", void 0);
|
|
58293
58288
|
//文本样式
|
|
58294
|
-
(0,
|
|
58289
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_customProperty", void 0);
|
|
58295
58290
|
//自定义属性
|
|
58296
|
-
(0,
|
|
58291
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_forceChangeHeader", void 0);
|
|
58297
58292
|
_this._parentNode = parentNode;
|
|
58298
58293
|
_this._drawLines = new Array();
|
|
58299
58294
|
_this._drawNodes = _this._drawLines;
|
|
58300
58295
|
_this._paraNo = paraNo;
|
|
58301
|
-
_this._styleIndex =
|
|
58296
|
+
_this._styleIndex = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys */ .b.instance().getFactory(_this.hoEditorFactoryID).docTree.curStyleIndex;
|
|
58302
58297
|
_this._dTop = 0;
|
|
58303
58298
|
_this._dHeight = 0;
|
|
58304
58299
|
_this._pagePaintStart = null;
|
|
@@ -58312,25 +58307,28 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58312
58307
|
// this.node2DrawNode();
|
|
58313
58308
|
return _this;
|
|
58314
58309
|
}
|
|
58315
|
-
(0,
|
|
58310
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(ParagraphNode, [{
|
|
58316
58311
|
key: "setCustomProperty",
|
|
58317
58312
|
value: function setCustomProperty(customProperty, printAsSinglePage, forceChangeHeader) {
|
|
58318
|
-
|
|
58319
|
-
|
|
58320
|
-
|
|
58321
|
-
|
|
58322
|
-
|
|
58323
|
-
|
|
58324
|
-
|
|
58325
|
-
|
|
58326
|
-
|
|
58327
|
-
|
|
58328
|
-
|
|
58329
|
-
|
|
58330
|
-
|
|
58331
|
-
|
|
58332
|
-
};
|
|
58333
|
-
assignvalue(this._customProperty, customProperty);
|
|
58313
|
+
// const assignvalue = (target: any, source: any) => {
|
|
58314
|
+
// Object.keys(source).forEach((value) => {
|
|
58315
|
+
// if (typeof target[value] == "object") {
|
|
58316
|
+
// if (Object.prototype.toString.call(source[value]) === "[object Object]") {
|
|
58317
|
+
// assignvalue(target[value], source[value]);
|
|
58318
|
+
// } else {
|
|
58319
|
+
// if (source[value] !== "" && source[value] !== null) {
|
|
58320
|
+
// assignvalue(target[value], eval("(" + source[value] + ")"));
|
|
58321
|
+
// }
|
|
58322
|
+
// }
|
|
58323
|
+
// } else {
|
|
58324
|
+
// target[value] = source[value];
|
|
58325
|
+
// }
|
|
58326
|
+
// });
|
|
58327
|
+
// };
|
|
58328
|
+
// assignvalue(this._customProperty, customProperty);
|
|
58329
|
+
if (customProperty) {
|
|
58330
|
+
this._customProperty = customProperty;
|
|
58331
|
+
}
|
|
58334
58332
|
if (printAsSinglePage == true) {
|
|
58335
58333
|
this._printAsSinglePage = printAsSinglePage;
|
|
58336
58334
|
}
|
|
@@ -58394,7 +58392,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58394
58392
|
key: "drootNodes",
|
|
58395
58393
|
get: function get() {
|
|
58396
58394
|
if (!this._drawRoots) {
|
|
58397
|
-
var _HOEditorFactorys$ins =
|
|
58395
|
+
var _HOEditorFactorys$ins = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(this.getNodePath()),
|
|
58398
58396
|
_HOEditorFactorys$ins2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_HOEditorFactorys$ins, 2),
|
|
58399
58397
|
dCell = _HOEditorFactorys$ins2[0],
|
|
58400
58398
|
dRoots = _HOEditorFactorys$ins2[1];
|
|
@@ -58405,7 +58403,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58405
58403
|
}, {
|
|
58406
58404
|
key: "refreshDrootNodes",
|
|
58407
58405
|
value: function refreshDrootNodes() {
|
|
58408
|
-
var _HOEditorFactorys$ins3 =
|
|
58406
|
+
var _HOEditorFactorys$ins3 = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(this.getNodePath()),
|
|
58409
58407
|
_HOEditorFactorys$ins4 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_HOEditorFactorys$ins3, 2),
|
|
58410
58408
|
dCell = _HOEditorFactorys$ins4[0],
|
|
58411
58409
|
dRoots = _HOEditorFactorys$ins4[1];
|
|
@@ -58415,7 +58413,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58415
58413
|
key: "getParagraphLeftWidth",
|
|
58416
58414
|
value: function getParagraphLeftWidth() {
|
|
58417
58415
|
//如果父文档节点派生于rectNode(用于表格基类),则取
|
|
58418
|
-
var hoEditorFactory =
|
|
58416
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
58419
58417
|
var pNode = this._parentNode;
|
|
58420
58418
|
var aLeft;
|
|
58421
58419
|
var aWidth;
|
|
@@ -58427,7 +58425,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58427
58425
|
aLeft = _pRectNode$getLeftWid2[0];
|
|
58428
58426
|
aWidth = _pRectNode$getLeftWid2[1];
|
|
58429
58427
|
bRectAlign = _pRectNode$getLeftWid2[2];
|
|
58430
|
-
if (pRectNode instanceof
|
|
58428
|
+
if (pRectNode instanceof _CellNode__WEBPACK_IMPORTED_MODULE_21__/* .CellNode */ .D) {
|
|
58431
58429
|
aLeft = hoEditorFactory.unitConvert.mmConversionPx(pRectNode.cellProperty.cellInnerMargin[2] * 10, true);
|
|
58432
58430
|
aWidth = aWidth - aLeft - hoEditorFactory.unitConvert.mmConversionPx(pRectNode.cellProperty.cellInnerMargin[3] * 10, true);
|
|
58433
58431
|
bRectAlign = true;
|
|
@@ -58448,7 +58446,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58448
58446
|
value: function deleteLine(index) {
|
|
58449
58447
|
var dline = this._drawLines[index];
|
|
58450
58448
|
if (dline) {
|
|
58451
|
-
var _HOEditorFactorys$ins5 =
|
|
58449
|
+
var _HOEditorFactorys$ins5 = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(this.getNodePath()),
|
|
58452
58450
|
_HOEditorFactorys$ins6 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_HOEditorFactorys$ins5, 2),
|
|
58453
58451
|
dCell = _HOEditorFactorys$ins6[0],
|
|
58454
58452
|
dRoots = _HOEditorFactorys$ins6[1];
|
|
@@ -58472,9 +58470,9 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58472
58470
|
// para = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.paragraphs[0];
|
|
58473
58471
|
// }
|
|
58474
58472
|
while (pNode) {
|
|
58475
|
-
if (pNode instanceof
|
|
58473
|
+
if (pNode instanceof _RectNode__WEBPACK_IMPORTED_MODULE_15__/* .RectNode */ .z) {
|
|
58476
58474
|
return pNode;
|
|
58477
|
-
} else if (pNode instanceof
|
|
58475
|
+
} else if (pNode instanceof _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_19__/* .TextInputFieldNode */ .re && pNode.alignWithBlocked) {
|
|
58478
58476
|
return pNode;
|
|
58479
58477
|
} else {
|
|
58480
58478
|
pNode = pNode.parentNode;
|
|
@@ -58485,12 +58483,12 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58485
58483
|
}, {
|
|
58486
58484
|
key: "updateCombineParagraph",
|
|
58487
58485
|
value: function updateCombineParagraph() {
|
|
58488
|
-
var hoEditorFactory =
|
|
58486
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
58489
58487
|
var para = hoEditorFactory.docTree.paragraphs[this._paraNo];
|
|
58490
58488
|
if (!para) {
|
|
58491
58489
|
para = hoEditorFactory.docTree.paragraphs[0];
|
|
58492
58490
|
}
|
|
58493
|
-
return
|
|
58491
|
+
return _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_14__/* .Paragraph */ .nv.para2CombinePara(this._hoEditorFactoryID, this, para, hoEditorFactory.docTree.combineParagraph);
|
|
58494
58492
|
}
|
|
58495
58493
|
/**
|
|
58496
58494
|
* @author xyl
|
|
@@ -58527,9 +58525,9 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58527
58525
|
var prevLine = this._drawLines[index - 1];
|
|
58528
58526
|
prevLine.x = this.combineParagraph.leftMarginPixes + ileft;
|
|
58529
58527
|
prevLine.dWidth = paragraphWidth - this.combineParagraph.leftMarginPixes - this.combineParagraph.rightMarginPixes;
|
|
58530
|
-
if (prevLine instanceof
|
|
58528
|
+
if (prevLine instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_16__/* .DrawLine */ .a) prevLine.updateLineStyle();
|
|
58531
58529
|
}
|
|
58532
|
-
var aline = new
|
|
58530
|
+
var aline = new _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_16__/* .DrawLine */ .a(this._rootPath, this, index, paragraphWidth);
|
|
58533
58531
|
aline.dTop = itop;
|
|
58534
58532
|
aline.dLeft = ileft;
|
|
58535
58533
|
aline.x = this.combineParagraph.leftMarginPixes;
|
|
@@ -58575,7 +58573,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58575
58573
|
for (var i = this.drawlines.length - 1; i >= 0; i--) {
|
|
58576
58574
|
var dline = this.drawlines[i];
|
|
58577
58575
|
if (dline) {
|
|
58578
|
-
if (dline instanceof
|
|
58576
|
+
if (dline instanceof _editor_draw_drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_17__/* .DrawTable */ .t) {
|
|
58579
58577
|
dline.clear();
|
|
58580
58578
|
} else {
|
|
58581
58579
|
if (dline.parent) {
|
|
@@ -58592,12 +58590,12 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58592
58590
|
key: "node2DrawNode",
|
|
58593
58591
|
value: function node2DrawNode() {
|
|
58594
58592
|
this.clear();
|
|
58595
|
-
var itop = this.combineParagraph.topMarginPixes +
|
|
58593
|
+
var itop = this.combineParagraph.topMarginPixes + _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getParagraphStartTop(this);
|
|
58596
58594
|
var leftTopInfos = this.getParagraphLeftWidth();
|
|
58597
58595
|
var ileft = leftTopInfos[0];
|
|
58598
58596
|
var paragraphWidth = leftTopInfos[1];
|
|
58599
58597
|
// console.log(this._combineParagraph);
|
|
58600
|
-
var aline = new
|
|
58598
|
+
var aline = new _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_16__/* .DrawLine */ .a(this._rootPath, this, 0, paragraphWidth);
|
|
58601
58599
|
this._dHeight = aline.dHeight;
|
|
58602
58600
|
this._drawLines.push(aline);
|
|
58603
58601
|
this._dTop = itop;
|
|
@@ -58631,7 +58629,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58631
58629
|
// this.drootNodes.push(this.drawlines[0]);
|
|
58632
58630
|
// }
|
|
58633
58631
|
if (dline) {
|
|
58634
|
-
var dTop =
|
|
58632
|
+
var dTop = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getParagraphStartTop(this);
|
|
58635
58633
|
this.placeDNodeAfterDTop(dTop, dline);
|
|
58636
58634
|
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.insertDline(droots,index+1,this._drawLines[0]);
|
|
58637
58635
|
}
|
|
@@ -58648,7 +58646,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58648
58646
|
var droots = this.drootNodes;
|
|
58649
58647
|
var dline = prevDline;
|
|
58650
58648
|
while (index === -1) {
|
|
58651
|
-
var _TableNode$isNodeInTa =
|
|
58649
|
+
var _TableNode$isNodeInTa = _TableNode__WEBPACK_IMPORTED_MODULE_18__/* .TableNode */ .Fh.isNodeInTable(dline.paragraphNode),
|
|
58652
58650
|
_TableNode$isNodeInTa2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_TableNode$isNodeInTa, 3),
|
|
58653
58651
|
bret = _TableNode$isNodeInTa2[0],
|
|
58654
58652
|
aTable = _TableNode$isNodeInTa2[1],
|
|
@@ -58728,7 +58726,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58728
58726
|
}, {
|
|
58729
58727
|
key: "isInCell",
|
|
58730
58728
|
value: function isInCell() {
|
|
58731
|
-
return this.parentNode !== null && this.parentNode instanceof
|
|
58729
|
+
return this.parentNode !== null && this.parentNode instanceof _RectNode__WEBPACK_IMPORTED_MODULE_15__/* .RectNode */ .z;
|
|
58732
58730
|
}
|
|
58733
58731
|
}, {
|
|
58734
58732
|
key: "drawlines",
|
|
@@ -58738,7 +58736,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58738
58736
|
}, {
|
|
58739
58737
|
key: "adjustNextDline",
|
|
58740
58738
|
value: function adjustNextDline(dline, index) {
|
|
58741
|
-
var droots =
|
|
58739
|
+
var droots = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(dline.rootPath);
|
|
58742
58740
|
var dNextLine = this.getNextDline(dline);
|
|
58743
58741
|
for (var i = index; i < dline.drawItems.length; i++) {
|
|
58744
58742
|
dNextLine.addChildAt(i - index, dline.drawItems[i]);
|
|
@@ -58748,7 +58746,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58748
58746
|
}, {
|
|
58749
58747
|
key: "getParagraphLastNodePath",
|
|
58750
58748
|
value: function getParagraphLastNodePath() {
|
|
58751
|
-
return
|
|
58749
|
+
return _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParaNodeLastPath(this);
|
|
58752
58750
|
// return this.getParagraphLastNode().getNodePath()
|
|
58753
58751
|
// const pNode = this._parentNode;
|
|
58754
58752
|
// if (pNode) {
|
|
@@ -58788,7 +58786,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58788
58786
|
value: function updateDrawLineStyle() {
|
|
58789
58787
|
for (var i = 0; i < this._drawLines.length; i++) {
|
|
58790
58788
|
var dline = this._drawLines[i];
|
|
58791
|
-
if (dline instanceof
|
|
58789
|
+
if (dline instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_16__/* .DrawLine */ .a) dline.updateLineStyle();
|
|
58792
58790
|
}
|
|
58793
58791
|
// if (dline instanceof DrawLine) dline.updateLineStyle();
|
|
58794
58792
|
}
|
|
@@ -58817,12 +58815,12 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58817
58815
|
key: "node2Json",
|
|
58818
58816
|
value: function node2Json(range, iscopy) {
|
|
58819
58817
|
if (iscopy) {
|
|
58820
|
-
var combinePara = new
|
|
58818
|
+
var combinePara = new _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_14__/* .CombineParagraph */ .kh(this._hoEditorFactoryID, null);
|
|
58821
58819
|
combinePara.copyStyle(this.combineParagraph);
|
|
58822
58820
|
var paragraphStyle = {
|
|
58823
58821
|
height: this.dHeight,
|
|
58824
58822
|
top: this.dTop,
|
|
58825
|
-
align:
|
|
58823
|
+
align: _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_14__/* .Align */ .xM[combinePara.align],
|
|
58826
58824
|
charSpace: combinePara.charSpace,
|
|
58827
58825
|
lineSpace: combinePara.lineSpace,
|
|
58828
58826
|
leftMargin: combinePara.leftMarginMm,
|
|
@@ -58831,7 +58829,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58831
58829
|
bottomMargin: combinePara.bottomMarginMm
|
|
58832
58830
|
};
|
|
58833
58831
|
var paga = {
|
|
58834
|
-
nodeType:
|
|
58832
|
+
nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_13__/* .NodeType */ .Jq[this.nodeType],
|
|
58835
58833
|
style: paragraphStyle,
|
|
58836
58834
|
styleIndex: this._paraNo,
|
|
58837
58835
|
textStyleNo: this.styleIndex,
|
|
@@ -58844,7 +58842,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58844
58842
|
}
|
|
58845
58843
|
var paraNode = {
|
|
58846
58844
|
//"ParagraphNode": {
|
|
58847
|
-
nodeType:
|
|
58845
|
+
nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_13__/* .NodeType */ .Jq[this.nodeType],
|
|
58848
58846
|
styleIndex: this._paraNo,
|
|
58849
58847
|
textStyleNo: this.styleIndex
|
|
58850
58848
|
//printAsSinglePage: this.printAsSinglePage,
|
|
@@ -58909,14 +58907,14 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58909
58907
|
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode) {
|
|
58910
58908
|
var paraNo = Number(json.styleIndex);
|
|
58911
58909
|
if (json["style"]) {
|
|
58912
|
-
var hoEditorFactory =
|
|
58910
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_20__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID);
|
|
58913
58911
|
var style = json.style;
|
|
58914
|
-
var paragraph = new
|
|
58912
|
+
var paragraph = new _domNode_Paragraph__WEBPACK_IMPORTED_MODULE_14__/* .Paragraph */ .nv(hoEditorFactoryID);
|
|
58915
58913
|
paragraph.leftMargin = style._leftMarginMm ? Number(style._leftMarginMm) : Number(style.leftMargin);
|
|
58916
58914
|
paragraph.rightMargin = style._rightMarginMm ? Number(style._rightMarginMm) : Number(style.rightMargin);
|
|
58917
58915
|
paragraph.topMargin = style._topMarginMm ? Number(style._topMarginMm) : Number(style.topMargin);
|
|
58918
58916
|
paragraph.bottomMargin = style._bottomMarginMm ? Number(style._bottomMarginMm) : Number(style.bottomMargin);
|
|
58919
|
-
paragraph.align = style._align !== undefined ? parseInt(
|
|
58917
|
+
paragraph.align = style._align !== undefined ? parseInt(_domNode_Paragraph__WEBPACK_IMPORTED_MODULE_14__/* .Align */ .xM[style._align]) : parseInt(_domNode_Paragraph__WEBPACK_IMPORTED_MODULE_14__/* .Align */ .xM[style.align]);
|
|
58920
58918
|
paragraph.charSpace = style._charSpace ? Number(style._charSpace) : Number(style.charSpace);
|
|
58921
58919
|
paragraph.lineSpace = style._lineSpace ? Number(style._lineSpace) : Number(style.lineSpace);
|
|
58922
58920
|
paraNo = hoEditorFactory.docTree.styleCompare(paragraph);
|
|
@@ -58931,7 +58929,7 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58931
58929
|
}
|
|
58932
58930
|
}]);
|
|
58933
58931
|
return ParagraphNode;
|
|
58934
|
-
}(
|
|
58932
|
+
}(_BaseNode__WEBPACK_IMPORTED_MODULE_13__/* .BaseNode */ .Hd);
|
|
58935
58933
|
|
|
58936
58934
|
/***/ }),
|
|
58937
58935
|
|
|
@@ -218758,7 +218756,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
218758
218756
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
218759
218757
|
var ParagraphNode = __webpack_require__(67945);
|
|
218760
218758
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
218761
|
-
/* harmony default export */ var version = ('3.1.
|
|
218759
|
+
/* harmony default export */ var version = ('3.1.49');
|
|
218762
218760
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
218763
218761
|
var PoperTipText = __webpack_require__(50987);
|
|
218764
218762
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -231269,18 +231267,18 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231269
231267
|
var imgType = type ? type : 'image/jpeg';
|
|
231270
231268
|
drawpages.forEach(function (drawpage, index) {
|
|
231271
231269
|
var _drawpage$drawDomLeve;
|
|
231272
|
-
if (index == 0) {
|
|
231273
|
-
|
|
231274
|
-
|
|
231275
|
-
}
|
|
231276
|
-
if (drawpage.drawDomLevel && !drawpage.drawDomLevel.stage) {
|
|
231277
|
-
|
|
231278
|
-
|
|
231279
|
-
}
|
|
231280
|
-
if (drawpage.needUpdateStage && drawpage.drawDomLevel && drawpage.drawDomLevel.stage) {
|
|
231281
|
-
|
|
231282
|
-
|
|
231283
|
-
}
|
|
231270
|
+
// if (index == 0) {
|
|
231271
|
+
// drawpage.paintBackGround();
|
|
231272
|
+
// drawpage.needUpdateStage = true;
|
|
231273
|
+
// }
|
|
231274
|
+
// if (drawpage.drawDomLevel && !drawpage.drawDomLevel.stage) {
|
|
231275
|
+
// drawpage.drawDomLevel.bindStage();
|
|
231276
|
+
// drawpage.needUpdateStage = true;
|
|
231277
|
+
// }
|
|
231278
|
+
// if (drawpage.needUpdateStage && drawpage.drawDomLevel && drawpage.drawDomLevel.stage) {
|
|
231279
|
+
// drawpage.drawDomLevel.stage.update();
|
|
231280
|
+
// drawpage.needUpdateStage = false;
|
|
231281
|
+
// }
|
|
231284
231282
|
var png = document.createElement('img');
|
|
231285
231283
|
var canvas = (_drawpage$drawDomLeve = drawpage.drawDomLevel) === null || _drawpage$drawDomLeve === void 0 ? void 0 : _drawpage$drawDomLeve.domCanvas;
|
|
231286
231284
|
png.src = canvas.toDataURL(imgType, imgQuality);
|