hoeditor-web 3.1.120 → 3.1.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.css +18016 -1
- package/lib/hoeditor.umd.js +86 -48
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -37745,9 +37745,6 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37745
37745
|
var delIndex = aText.indexOf("(del)");
|
|
37746
37746
|
var oldIndex = aText.indexOf("(old)");
|
|
37747
37747
|
if (addIndex >= 0 || delIndex >= 0 || oldIndex >= 0) {
|
|
37748
|
-
var curStyle = hoEditorFactory.docTree.styles[styleIndex];
|
|
37749
|
-
var _newStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_40__/* .TextStyle */ .pn(_this._hoEditorFactoryID);
|
|
37750
|
-
_newStyle.copyProperty(curStyle, _newStyle);
|
|
37751
37748
|
var indexMap = new Map();
|
|
37752
37749
|
var arr = [];
|
|
37753
37750
|
do {
|
|
@@ -37775,6 +37772,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37775
37772
|
return a - b;
|
|
37776
37773
|
});
|
|
37777
37774
|
for (var c = 0; c < arr.length; c++) {
|
|
37775
|
+
var curStyle = hoEditorFactory.docTree.styles[styleIndex];
|
|
37776
|
+
var _newStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_40__/* .TextStyle */ .pn(_this._hoEditorFactoryID);
|
|
37777
|
+
_newStyle.copyProperty(curStyle, _newStyle);
|
|
37778
|
+
_newStyle.creatorIndex = undefined;
|
|
37779
|
+
_newStyle.deleterIndex = undefined;
|
|
37780
|
+
_newStyle.modifierIndex = undefined;
|
|
37778
37781
|
var oper = indexMap.get(arr[c]);
|
|
37779
37782
|
if (oper == "add") {
|
|
37780
37783
|
var addEnd = aText.indexOf("(/add)", arr[c]);
|
|
@@ -40301,7 +40304,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40301
40304
|
key: "insertDateTime",
|
|
40302
40305
|
value: function () {
|
|
40303
40306
|
var _insertDateTime = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)().mark(function _callee2(operType, curDomRange, valuesObject, styleIndex, isTrace, updateProps) {
|
|
40304
|
-
var oldDataID, oldId, domRange, hoEditorFactory, startPath, np, node, parentNode, dateTimeNode, record, changeProps;
|
|
40307
|
+
var oldDataID, oldId, domRange, hoEditorFactory, startPath, np, node, nodeStyle, curTextStyle, color, newHistory, historyIndex, parentNode, dateTimeNode, record, changeProps;
|
|
40305
40308
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)().wrap(function _callee2$(_context2) {
|
|
40306
40309
|
while (1) switch (_context2.prev = _context2.next) {
|
|
40307
40310
|
case 0:
|
|
@@ -40311,26 +40314,37 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40311
40314
|
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40312
40315
|
startPath = domRange.endPath;
|
|
40313
40316
|
if (!(operType === 'update')) {
|
|
40314
|
-
_context2.next =
|
|
40317
|
+
_context2.next = 17;
|
|
40315
40318
|
break;
|
|
40316
40319
|
}
|
|
40317
40320
|
np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
40318
40321
|
if (!np) {
|
|
40319
|
-
_context2.next =
|
|
40322
|
+
_context2.next = 17;
|
|
40320
40323
|
break;
|
|
40321
40324
|
}
|
|
40322
40325
|
node = np.node;
|
|
40323
40326
|
if (!(node instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_61__/* .DateTimeNode */ .Z)) {
|
|
40324
|
-
_context2.next =
|
|
40327
|
+
_context2.next = 17;
|
|
40325
40328
|
break;
|
|
40326
40329
|
}
|
|
40330
|
+
if (isTrace) {
|
|
40331
|
+
nodeStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_40__/* .TextStyle */ .pn(this._hoEditorFactoryID);
|
|
40332
|
+
curTextStyle = hoEditorFactory.docTree.styles[styleIndex];
|
|
40333
|
+
nodeStyle.copyProperty(curTextStyle, nodeStyle);
|
|
40334
|
+
color = hoEditorFactory.option.getColorByLevel(20);
|
|
40335
|
+
newHistory = new _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_67__/* .UserHistory */ .R(this._hoEditorFactoryID, _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_67__/* .HistoryEditType */ .N.hetModify);
|
|
40336
|
+
historyIndex = newHistory.userCompare();
|
|
40337
|
+
nodeStyle.modifierIndex = historyIndex;
|
|
40338
|
+
nodeStyle.color = color;
|
|
40339
|
+
styleIndex = hoEditorFactory.docTree.styleCompare(nodeStyle);
|
|
40340
|
+
}
|
|
40327
40341
|
oldDataID = node.dataId;
|
|
40328
40342
|
oldId = node.id;
|
|
40329
40343
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
40330
40344
|
hoEditorFactory.undoService.begin();
|
|
40331
|
-
_context2.next =
|
|
40345
|
+
_context2.next = 17;
|
|
40332
40346
|
return hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
40333
|
-
case
|
|
40347
|
+
case 17:
|
|
40334
40348
|
parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
40335
40349
|
dateTimeNode = new _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_61__/* .DateTimeNode */ .Z(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntControl, valuesObject, styleIndex, isTrace); //插入该表达式节点
|
|
40336
40350
|
if (operType === 'add') {
|
|
@@ -40369,7 +40383,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40369
40383
|
// );
|
|
40370
40384
|
// hoEditorFactory.docTree.change(changeEvent);
|
|
40371
40385
|
// }
|
|
40372
|
-
case
|
|
40386
|
+
case 23:
|
|
40373
40387
|
case "end":
|
|
40374
40388
|
return _context2.stop();
|
|
40375
40389
|
}
|
|
@@ -40392,7 +40406,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40392
40406
|
key: "insertDownList",
|
|
40393
40407
|
value: function () {
|
|
40394
40408
|
var _insertDownList = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)().mark(function _callee3(operType, curDomRange, valuesObject, downListContent, styleIndex, updateProps, isTrace) {
|
|
40395
|
-
var domRange, startPath, oldDataID, oldId, hoEditorFactory, np, node, parentNode, downListNode, record, changeProps;
|
|
40409
|
+
var domRange, startPath, oldDataID, oldId, hoEditorFactory, np, node, nodeStyle, curTextStyle, color, newHistory, historyIndex, parentNode, downListNode, record, changeProps;
|
|
40396
40410
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)().wrap(function _callee3$(_context3) {
|
|
40397
40411
|
while (1) switch (_context3.prev = _context3.next) {
|
|
40398
40412
|
case 0:
|
|
@@ -40402,29 +40416,40 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40402
40416
|
oldId = '';
|
|
40403
40417
|
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40404
40418
|
if (!(operType === 'update')) {
|
|
40405
|
-
_context3.next =
|
|
40419
|
+
_context3.next = 17;
|
|
40406
40420
|
break;
|
|
40407
40421
|
}
|
|
40408
40422
|
np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
40409
40423
|
if (!np) {
|
|
40410
|
-
_context3.next =
|
|
40424
|
+
_context3.next = 17;
|
|
40411
40425
|
break;
|
|
40412
40426
|
}
|
|
40413
40427
|
node = np.node;
|
|
40414
40428
|
if (!(node instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_62__/* .DownListNode */ .yF)) {
|
|
40415
|
-
_context3.next =
|
|
40429
|
+
_context3.next = 17;
|
|
40416
40430
|
break;
|
|
40417
40431
|
}
|
|
40432
|
+
if (isTrace) {
|
|
40433
|
+
nodeStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_40__/* .TextStyle */ .pn(this._hoEditorFactoryID);
|
|
40434
|
+
curTextStyle = hoEditorFactory.docTree.styles[styleIndex];
|
|
40435
|
+
nodeStyle.copyProperty(curTextStyle, nodeStyle);
|
|
40436
|
+
color = hoEditorFactory.option.getColorByLevel(20);
|
|
40437
|
+
newHistory = new _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_67__/* .UserHistory */ .R(this._hoEditorFactoryID, _domNode_UserHistory__WEBPACK_IMPORTED_MODULE_67__/* .HistoryEditType */ .N.hetModify);
|
|
40438
|
+
historyIndex = newHistory.userCompare();
|
|
40439
|
+
nodeStyle.modifierIndex = historyIndex;
|
|
40440
|
+
nodeStyle.color = color;
|
|
40441
|
+
styleIndex = hoEditorFactory.docTree.styleCompare(nodeStyle);
|
|
40442
|
+
}
|
|
40418
40443
|
oldDataID = node.dataId;
|
|
40419
40444
|
oldId = node.id;
|
|
40420
40445
|
hoEditorFactory.undoService.begin();
|
|
40421
|
-
_context3.next =
|
|
40446
|
+
_context3.next = 16;
|
|
40422
40447
|
return hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
40423
|
-
case
|
|
40448
|
+
case 16:
|
|
40424
40449
|
//hoEditorFactory.undoService.commit();
|
|
40425
40450
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
40426
40451
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
40427
|
-
case
|
|
40452
|
+
case 17:
|
|
40428
40453
|
parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
40429
40454
|
downListNode = new _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_62__/* .DownListNode */ .yF(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntControl, valuesObject, downListContent, styleIndex, isTrace); //插入该表达式节点
|
|
40430
40455
|
if (operType === 'add') {
|
|
@@ -40452,7 +40477,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40452
40477
|
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + '|' + downListNode.dataId, ['update', (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({}, changeProps), updateProps)]);
|
|
40453
40478
|
}
|
|
40454
40479
|
}
|
|
40455
|
-
case
|
|
40480
|
+
case 23:
|
|
40456
40481
|
case "end":
|
|
40457
40482
|
return _context3.stop();
|
|
40458
40483
|
}
|
|
@@ -51679,9 +51704,6 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
51679
51704
|
}
|
|
51680
51705
|
if (hoEditorFactory.drawTree.paintStatus !== _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_19__/* .PaintState */ .Dh.psReview) {
|
|
51681
51706
|
var color = hoEditorFactory.option.getColorByLevel(11);
|
|
51682
|
-
if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_19__/* .PaintState */ .Dh.psTrace && this.isTrace) {
|
|
51683
|
-
color = hoEditorFactory.option.getColorByLevel(20);
|
|
51684
|
-
}
|
|
51685
51707
|
var backColor = new createjs.Shape();
|
|
51686
51708
|
backColor.graphics.clear().beginFill(color).drawRect(0, -drawNode.dHeight + 2, drawNode.dWidth, drawNode.dHeight);
|
|
51687
51709
|
backColor.name = "backColor";
|
|
@@ -52547,9 +52569,9 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
52547
52569
|
color = hoEditorFactory.option.getColorByLevel(12);
|
|
52548
52570
|
}
|
|
52549
52571
|
}
|
|
52550
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
52551
|
-
|
|
52552
|
-
}
|
|
52572
|
+
// if (hoEditorFactory.drawTree.paintStatus === PaintState.psTrace && this.isTrace) {
|
|
52573
|
+
// color = hoEditorFactory.option.getColorByLevel(20);
|
|
52574
|
+
// }
|
|
52553
52575
|
var backColor = new createjs.Shape();
|
|
52554
52576
|
backColor.graphics.clear().beginFill(color).drawRect(0, -drawNode.dHeight + 2, drawNode.dWidth, drawNode.dHeight);
|
|
52555
52577
|
backColor.name = "backColor";
|
|
@@ -74514,6 +74536,8 @@ var DrawContainer = /*#__PURE__*/function (_createjs$Container) {
|
|
|
74514
74536
|
/* harmony import */ var _editor_utils_DrawSimpleText__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(57590);
|
|
74515
74537
|
/* harmony import */ var _DrawCombineNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(66114);
|
|
74516
74538
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(74089);
|
|
74539
|
+
/* harmony import */ var _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(51760);
|
|
74540
|
+
|
|
74517
74541
|
|
|
74518
74542
|
|
|
74519
74543
|
|
|
@@ -74527,7 +74551,7 @@ var DrawContainer = /*#__PURE__*/function (_createjs$Container) {
|
|
|
74527
74551
|
/*
|
|
74528
74552
|
* @Author: your name
|
|
74529
74553
|
* @Date: 2020-11-27 15:24:11
|
|
74530
|
-
* @LastEditTime:
|
|
74554
|
+
* @LastEditTime: 2024-04-26 11:58:33
|
|
74531
74555
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
74532
74556
|
* @Description: In User Settings Edit
|
|
74533
74557
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawDateTime.ts
|
|
@@ -74568,7 +74592,13 @@ var DrawDateTime = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
74568
74592
|
}, {
|
|
74569
74593
|
key: "drawDateTime",
|
|
74570
74594
|
value: function drawDateTime() {
|
|
74571
|
-
var
|
|
74595
|
+
var color = this.textStyle.color;
|
|
74596
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
74597
|
+
var traceColor = hoEditorFactory.option.getColorByLevel(20);
|
|
74598
|
+
if (color === traceColor && hoEditorFactory.drawTree.paintStatus !== _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_10__/* .PaintState */ .Dh.psTrace) {
|
|
74599
|
+
color = hoEditorFactory.pageProperty.fontColor;
|
|
74600
|
+
}
|
|
74601
|
+
var drawDateTime = new _editor_utils_DrawSimpleText__WEBPACK_IMPORTED_MODULE_7__/* .DrawSimpleText */ .b(this._text, this.textStyle.getStyleKey(), color);
|
|
74572
74602
|
drawDateTime.textBaseline = "alphabetic";
|
|
74573
74603
|
drawDateTime.textAlign = "left";
|
|
74574
74604
|
var rect = drawDateTime.getBounds();
|
|
@@ -74618,6 +74648,8 @@ var DrawDateTime = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
74618
74648
|
/* harmony import */ var _editor_utils_DrawSimpleText__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(57590);
|
|
74619
74649
|
/* harmony import */ var _DrawCombineNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(66114);
|
|
74620
74650
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(74089);
|
|
74651
|
+
/* harmony import */ var _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(51760);
|
|
74652
|
+
|
|
74621
74653
|
|
|
74622
74654
|
|
|
74623
74655
|
|
|
@@ -74633,7 +74665,7 @@ var DrawDateTime = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
74633
74665
|
/*
|
|
74634
74666
|
* @Author: your name
|
|
74635
74667
|
* @Date: 2020-11-30 10:59:00
|
|
74636
|
-
* @LastEditTime:
|
|
74668
|
+
* @LastEditTime: 2024-04-26 13:47:43
|
|
74637
74669
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
74638
74670
|
* @Description: In User Settings Edit
|
|
74639
74671
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawDownListNode.ts
|
|
@@ -74711,18 +74743,24 @@ var DrawDownListNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
74711
74743
|
this.children.splice(j, 1);
|
|
74712
74744
|
}
|
|
74713
74745
|
if (child.name == "backColor" && child instanceof createjs.Shape) {
|
|
74714
|
-
var
|
|
74746
|
+
var _color = child.graphics.instructions[2].style;
|
|
74715
74747
|
this.children.splice(j, 1);
|
|
74716
74748
|
var backColor = new createjs.Shape();
|
|
74717
|
-
backColor.graphics.clear().beginFill(
|
|
74749
|
+
backColor.graphics.clear().beginFill(_color).drawRect(0, -this.dHeight + 2, this.dWidth, this.dHeight);
|
|
74718
74750
|
backColor.name = "backColor";
|
|
74719
74751
|
this.addChildAt(backColor, 0);
|
|
74720
74752
|
}
|
|
74721
74753
|
}
|
|
74722
74754
|
var leftWidth = 0;
|
|
74755
|
+
var color = this.textStyle.color;
|
|
74756
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
74757
|
+
var traceColor = hoEditorFactory.option.getColorByLevel(20);
|
|
74758
|
+
if (color === traceColor && hoEditorFactory.drawTree.paintStatus !== _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_12__/* .PaintState */ .Dh.psTrace) {
|
|
74759
|
+
color = hoEditorFactory.pageProperty.fontColor;
|
|
74760
|
+
}
|
|
74723
74761
|
for (var i = 0; i < this._text.length; i++) {
|
|
74724
74762
|
var text = this._text[i];
|
|
74725
|
-
var dText = new _editor_utils_DrawSimpleText__WEBPACK_IMPORTED_MODULE_9__/* .DrawSimpleText */ .b(text, this.textStyle.getStyleKey(),
|
|
74763
|
+
var dText = new _editor_utils_DrawSimpleText__WEBPACK_IMPORTED_MODULE_9__/* .DrawSimpleText */ .b(text, this.textStyle.getStyleKey(), color);
|
|
74726
74764
|
dText.textBaseline = "alphabetic";
|
|
74727
74765
|
dText.textAlign = "left";
|
|
74728
74766
|
var rect = dText.getBounds().clone();
|
|
@@ -207007,8 +207045,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
207007
207045
|
var es_number_constructor = __webpack_require__(9653);
|
|
207008
207046
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
207009
207047
|
var es_json_stringify = __webpack_require__(38862);
|
|
207010
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
207011
|
-
var
|
|
207048
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=08fea252&
|
|
207049
|
+
var HoDocvue_type_template_id_08fea252_render = function render() {
|
|
207012
207050
|
var _vm = this,
|
|
207013
207051
|
_c = _vm._self._c;
|
|
207014
207052
|
return _c('div', {
|
|
@@ -207209,7 +207247,7 @@ var HoDocvue_type_template_id_d9aef342_render = function render() {
|
|
|
207209
207247
|
}
|
|
207210
207248
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
207211
207249
|
};
|
|
207212
|
-
var
|
|
207250
|
+
var HoDocvue_type_template_id_08fea252_staticRenderFns = [];
|
|
207213
207251
|
|
|
207214
207252
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
207215
207253
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -210200,7 +210238,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
210200
210238
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
210201
210239
|
var ParagraphNode = __webpack_require__(67945);
|
|
210202
210240
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
210203
|
-
/* harmony default export */ var version = ('3.1.
|
|
210241
|
+
/* harmony default export */ var version = ('3.1.121');
|
|
210204
210242
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
210205
210243
|
var PoperTipText = __webpack_require__(50987);
|
|
210206
210244
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -211151,7 +211189,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
211151
211189
|
}
|
|
211152
211190
|
}
|
|
211153
211191
|
}
|
|
211154
|
-
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psDesign && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psEdit) {
|
|
211192
|
+
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psDesign && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psEdit && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psTrace) {
|
|
211155
211193
|
_this8.isCreateRightMenuModal = true;
|
|
211156
211194
|
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psReview && node instanceof SignNode/* SignNode */.N) {
|
|
211157
211195
|
_this8.isCreateRightMenuModal = false;
|
|
@@ -211224,10 +211262,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
211224
211262
|
});
|
|
211225
211263
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
211226
211264
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
211227
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
211265
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=08fea252&prod&lang=less&
|
|
211228
211266
|
// extracted by mini-css-extract-plugin
|
|
211229
211267
|
|
|
211230
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
211268
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=08fea252&prod&lang=less&
|
|
211231
211269
|
|
|
211232
211270
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
211233
211271
|
|
|
@@ -211240,8 +211278,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
211240
211278
|
|
|
211241
211279
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
211242
211280
|
components_HoDocvue_type_script_lang_js_,
|
|
211243
|
-
|
|
211244
|
-
|
|
211281
|
+
HoDocvue_type_template_id_08fea252_render,
|
|
211282
|
+
HoDocvue_type_template_id_08fea252_staticRenderFns,
|
|
211245
211283
|
false,
|
|
211246
211284
|
null,
|
|
211247
211285
|
null,
|
|
@@ -222559,7 +222597,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222559
222597
|
key: "getRangeText",
|
|
222560
222598
|
value: function getRangeText(range) {
|
|
222561
222599
|
range = range.normalize();
|
|
222562
|
-
var
|
|
222600
|
+
var str = '';
|
|
222563
222601
|
var nodes = [];
|
|
222564
222602
|
var sNodeChildIndex = range.npStart.childIndex;
|
|
222565
222603
|
var eNodeChildIndex = range.npEnd.childIndex;
|
|
@@ -222579,26 +222617,26 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222579
222617
|
};
|
|
222580
222618
|
if (range.npStart.node === range.npEnd.node) {
|
|
222581
222619
|
if (range.npStart.node instanceof TextNode/* TextNode */.R) {
|
|
222582
|
-
|
|
222620
|
+
str = range.npStart.node.text.substring(sNodeChildIndex + 1, eNodeChildIndex + 1);
|
|
222583
222621
|
} else {
|
|
222584
|
-
|
|
222622
|
+
str = getNodeText(range.npStart.node);
|
|
222585
222623
|
}
|
|
222586
|
-
return
|
|
222624
|
+
return str;
|
|
222587
222625
|
} else {
|
|
222588
222626
|
nodes = DomRange/* DomRange */.a.getSelectDomNodesForUpdate(this._hoEditorFactoryID, range.startPath, range.endPath);
|
|
222589
222627
|
for (var i = 0; i < nodes.length; i++) {
|
|
222590
222628
|
var node = nodes[i];
|
|
222591
222629
|
if (node instanceof TextNode/* TextNode */.R) {
|
|
222592
222630
|
if (i === nodes.length - 1 && node instanceof TextNode/* TextNode */.R) {
|
|
222593
|
-
|
|
222631
|
+
str = str + node.text.substring(0, eNodeChildIndex + 1);
|
|
222594
222632
|
} else {
|
|
222595
|
-
|
|
222633
|
+
str += node.text;
|
|
222596
222634
|
}
|
|
222597
222635
|
} else {
|
|
222598
|
-
|
|
222636
|
+
str += getNodeText(node);
|
|
222599
222637
|
}
|
|
222600
222638
|
}
|
|
222601
|
-
return
|
|
222639
|
+
return str;
|
|
222602
222640
|
}
|
|
222603
222641
|
}
|
|
222604
222642
|
}, {
|
|
@@ -248167,7 +248205,7 @@ var HoRightMenu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
248167
248205
|
},
|
|
248168
248206
|
getUpdateNode: function getUpdateNode() {
|
|
248169
248207
|
var value;
|
|
248170
|
-
if (Array.isArray(this.updateNodeValue) || (0,esm_typeof/* default */.Z)(this.updateNodeValue) === 'object') {
|
|
248208
|
+
if (Array.isArray(this.updateNodeValue) || this.updateNodeValue && (0,esm_typeof/* default */.Z)(this.updateNodeValue) === 'object') {
|
|
248171
248209
|
value = this.updateNodeValue;
|
|
248172
248210
|
} else {
|
|
248173
248211
|
value = this.getCurrentSelectNode();
|