hoeditor-web 2.0.93 → 2.0.94
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 +36 -17
- package/lib/hoeditor.umd.js +36 -17
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -28157,13 +28157,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
28157
28157
|
if (node.keyValue !== "") {
|
|
28158
28158
|
node.childNodes.splice(1, node.childNodes.length - 2);
|
|
28159
28159
|
var textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R(this._hoEditorFactoryID, node.rootNodes, node, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntText */ .Jq.ntText, values["text"], hoEditorFactory.docTree.curStyleIndex);
|
|
28160
|
-
node.childNodes.splice(1, 0, textNode);
|
|
28160
|
+
node.childNodes.splice(1, 0, textNode);
|
|
28161
|
+
changeEvent.afterChangePath = hoEditorFactory.docTree.getNodeLastPath(textNode);
|
|
28161
28162
|
} else {
|
|
28162
28163
|
node.childNodes.splice(1, node.childNodes.length - 2);
|
|
28163
28164
|
node.childNodes.splice(1, 0, node.childNodes2[1]);
|
|
28165
|
+
changeEvent.afterChangePath = ePath;
|
|
28164
28166
|
}
|
|
28165
|
-
|
|
28166
|
-
changeEvent.afterChangePath = ePath;
|
|
28167
28167
|
} else {
|
|
28168
28168
|
//changeEvent.afterChangePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
28169
28169
|
changeEvent.afterChangePath = ePath;
|
|
@@ -58454,10 +58454,10 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
58454
58454
|
commentTextShape.alpha = 1; //背景
|
|
58455
58455
|
|
|
58456
58456
|
var backShape = new createjs.Shape();
|
|
58457
|
-
backShape.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").beginFill("#ffe5e5")
|
|
58457
|
+
backShape.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").beginFill("#ffe5e5") //.drawRoundRect(0, 0, commentWidth - 20, comment.lineHeigh,5);
|
|
58458
|
+
.drawRect(0, 0, commentWidth - 20, comment.lineHeight);
|
|
58458
58459
|
backShape.name = "back";
|
|
58459
|
-
backShape.alpha = 0.5;
|
|
58460
|
-
//横线
|
|
58460
|
+
backShape.alpha = 0.5; //横线
|
|
58461
58461
|
|
|
58462
58462
|
var horizontalLine = new createjs.Shape();
|
|
58463
58463
|
horizontalLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").moveTo(nodeX, nodeY).lineTo(docWidth, nodeY);
|
|
@@ -71474,9 +71474,14 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
71474
71474
|
paragraphNode = this.clearDrawParagraphAfterDline(dline.paragraphNode, dline, inLineIndex, e.beforeChangePath);
|
|
71475
71475
|
dendDrawLine = this.drawDocInsert(paragraphNode, lineIndex, // inLineIndex,
|
|
71476
71476
|
node, startChildIndex + 1, e.afterChangePath);
|
|
71477
|
-
var endIndex = alines.
|
|
71477
|
+
var endIndex = alines.indexOf(dendDrawLine);
|
|
71478
|
+
|
|
71479
|
+
if (hoEditorFactory.isUseDrawingOptimization) {
|
|
71480
|
+
endIndex = alines.length - 1;
|
|
71481
|
+
} // if (paragraphNode.parentNode === null) {
|
|
71478
71482
|
// const darea = this.getDrawA(dline);
|
|
71479
71483
|
|
|
71484
|
+
|
|
71480
71485
|
if (e.repaintImmediate) {
|
|
71481
71486
|
if (!dArea) {
|
|
71482
71487
|
return false;
|
|
@@ -217979,7 +217984,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
217979
217984
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
217980
217985
|
var ParagraphNode = __webpack_require__(14208);
|
|
217981
217986
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
217982
|
-
/* harmony default export */ var version = ('2.0.
|
|
217987
|
+
/* harmony default export */ var version = ('2.0.94');
|
|
217983
217988
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
217984
217989
|
var PoperTipText = __webpack_require__(91831);
|
|
217985
217990
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -219098,7 +219103,10 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219098
219103
|
return;
|
|
219099
219104
|
}
|
|
219100
219105
|
|
|
219101
|
-
|
|
219106
|
+
if (hoEditorFactory.isUseDrawingOptimization) {
|
|
219107
|
+
this.clearAfterDTop(mainArea, dTop);
|
|
219108
|
+
}
|
|
219109
|
+
|
|
219102
219110
|
var nextLine = startLine;
|
|
219103
219111
|
var pageIsFull = new Map();
|
|
219104
219112
|
|
|
@@ -219154,7 +219162,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219154
219162
|
restHeight = drawArea.maxHeight - dTop;
|
|
219155
219163
|
}
|
|
219156
219164
|
|
|
219157
|
-
if (!isNew) {
|
|
219165
|
+
if (!isNew && hoEditorFactory.isUseDrawingOptimization) {
|
|
219158
219166
|
break;
|
|
219159
219167
|
}
|
|
219160
219168
|
}
|
|
@@ -219674,7 +219682,6 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219674
219682
|
}
|
|
219675
219683
|
}
|
|
219676
219684
|
|
|
219677
|
-
this.clearAfterDTop(drawArea, dTop);
|
|
219678
219685
|
drawArea.update(prevArea, dRoots, startIndex, dTop, restHeight);
|
|
219679
219686
|
this.afterAreaFinishPaint(drawArea);
|
|
219680
219687
|
this._startNeedUpdatePage = Math.min(drawArea.index, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
@@ -233394,13 +233401,14 @@ var jspdf = __webpack_require__(53672);
|
|
|
233394
233401
|
|
|
233395
233402
|
|
|
233396
233403
|
|
|
233404
|
+
|
|
233397
233405
|
|
|
233398
233406
|
|
|
233399
233407
|
/*
|
|
233400
233408
|
* @Author: your name
|
|
233401
233409
|
* @Date: 2021-07-31 09:25:57
|
|
233402
|
-
* @LastEditTime:
|
|
233403
|
-
* @LastEditors:
|
|
233410
|
+
* @LastEditTime: 2022-08-26 13:53:54
|
|
233411
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
233404
233412
|
* @Description: In User Settings Edit
|
|
233405
233413
|
* @FilePath: \hoeditor-web\src\editor\externalCall\PrintController.ts
|
|
233406
233414
|
*/
|
|
@@ -233709,10 +233717,21 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
233709
233717
|
});
|
|
233710
233718
|
|
|
233711
233719
|
return;
|
|
233712
|
-
}
|
|
233720
|
+
} // if (hoEditorFactory.isHideComments) {
|
|
233721
|
+
// hoEditorFactory.vueController.hideComments(true);
|
|
233722
|
+
// }
|
|
233713
233723
|
|
|
233714
|
-
|
|
233715
|
-
|
|
233724
|
+
|
|
233725
|
+
var drawMainDocs = hoEditorFactory.drawPageTree.drawMainDocs;
|
|
233726
|
+
|
|
233727
|
+
for (var k = 0; k < drawMainDocs.length; k++) {
|
|
233728
|
+
for (var s = drawMainDocs[k].children.length - 1; s >= 0; s--) {
|
|
233729
|
+
var child = drawMainDocs[k].children[s];
|
|
233730
|
+
|
|
233731
|
+
if (child.name && child.name.substring(0, 1) === "C" && child.name.length > 15) {
|
|
233732
|
+
drawMainDocs[k].removeChildAt(s);
|
|
233733
|
+
}
|
|
233734
|
+
}
|
|
233716
233735
|
}
|
|
233717
233736
|
|
|
233718
233737
|
if (printMode && printAppoint) {
|
|
@@ -235160,7 +235179,7 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
235160
235179
|
|
|
235161
235180
|
this._isCanUseTableProperty = false; //非设计模式下是否可以使用表格、单元格、行、列属性设置
|
|
235162
235181
|
|
|
235163
|
-
this._isUseDrawingOptimization =
|
|
235182
|
+
this._isUseDrawingOptimization = false; // 是否启用绘制优化 默认启用
|
|
235164
235183
|
|
|
235165
235184
|
this._loadImageCount = 0; // 待加载的图片数量
|
|
235166
235185
|
|
package/lib/hoeditor.umd.js
CHANGED
|
@@ -28167,13 +28167,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
28167
28167
|
if (node.keyValue !== "") {
|
|
28168
28168
|
node.childNodes.splice(1, node.childNodes.length - 2);
|
|
28169
28169
|
var textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R(this._hoEditorFactoryID, node.rootNodes, node, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntText */ .Jq.ntText, values["text"], hoEditorFactory.docTree.curStyleIndex);
|
|
28170
|
-
node.childNodes.splice(1, 0, textNode);
|
|
28170
|
+
node.childNodes.splice(1, 0, textNode);
|
|
28171
|
+
changeEvent.afterChangePath = hoEditorFactory.docTree.getNodeLastPath(textNode);
|
|
28171
28172
|
} else {
|
|
28172
28173
|
node.childNodes.splice(1, node.childNodes.length - 2);
|
|
28173
28174
|
node.childNodes.splice(1, 0, node.childNodes2[1]);
|
|
28175
|
+
changeEvent.afterChangePath = ePath;
|
|
28174
28176
|
}
|
|
28175
|
-
|
|
28176
|
-
changeEvent.afterChangePath = ePath;
|
|
28177
28177
|
} else {
|
|
28178
28178
|
//changeEvent.afterChangePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
28179
28179
|
changeEvent.afterChangePath = ePath;
|
|
@@ -58464,10 +58464,10 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
58464
58464
|
commentTextShape.alpha = 1; //背景
|
|
58465
58465
|
|
|
58466
58466
|
var backShape = new createjs.Shape();
|
|
58467
|
-
backShape.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").beginFill("#ffe5e5")
|
|
58467
|
+
backShape.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").beginFill("#ffe5e5") //.drawRoundRect(0, 0, commentWidth - 20, comment.lineHeigh,5);
|
|
58468
|
+
.drawRect(0, 0, commentWidth - 20, comment.lineHeight);
|
|
58468
58469
|
backShape.name = "back";
|
|
58469
|
-
backShape.alpha = 0.5;
|
|
58470
|
-
//横线
|
|
58470
|
+
backShape.alpha = 0.5; //横线
|
|
58471
58471
|
|
|
58472
58472
|
var horizontalLine = new createjs.Shape();
|
|
58473
58473
|
horizontalLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").moveTo(nodeX, nodeY).lineTo(docWidth, nodeY);
|
|
@@ -71484,9 +71484,14 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
71484
71484
|
paragraphNode = this.clearDrawParagraphAfterDline(dline.paragraphNode, dline, inLineIndex, e.beforeChangePath);
|
|
71485
71485
|
dendDrawLine = this.drawDocInsert(paragraphNode, lineIndex, // inLineIndex,
|
|
71486
71486
|
node, startChildIndex + 1, e.afterChangePath);
|
|
71487
|
-
var endIndex = alines.
|
|
71487
|
+
var endIndex = alines.indexOf(dendDrawLine);
|
|
71488
|
+
|
|
71489
|
+
if (hoEditorFactory.isUseDrawingOptimization) {
|
|
71490
|
+
endIndex = alines.length - 1;
|
|
71491
|
+
} // if (paragraphNode.parentNode === null) {
|
|
71488
71492
|
// const darea = this.getDrawA(dline);
|
|
71489
71493
|
|
|
71494
|
+
|
|
71490
71495
|
if (e.repaintImmediate) {
|
|
71491
71496
|
if (!dArea) {
|
|
71492
71497
|
return false;
|
|
@@ -217989,7 +217994,7 @@ var SignNode = __webpack_require__(78975);
|
|
|
217989
217994
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
217990
217995
|
var ParagraphNode = __webpack_require__(13880);
|
|
217991
217996
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
217992
|
-
/* harmony default export */ var version = ('2.0.
|
|
217997
|
+
/* harmony default export */ var version = ('2.0.94');
|
|
217993
217998
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
217994
217999
|
var PoperTipText = __webpack_require__(97824);
|
|
217995
218000
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -219108,7 +219113,10 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219108
219113
|
return;
|
|
219109
219114
|
}
|
|
219110
219115
|
|
|
219111
|
-
|
|
219116
|
+
if (hoEditorFactory.isUseDrawingOptimization) {
|
|
219117
|
+
this.clearAfterDTop(mainArea, dTop);
|
|
219118
|
+
}
|
|
219119
|
+
|
|
219112
219120
|
var nextLine = startLine;
|
|
219113
219121
|
var pageIsFull = new Map();
|
|
219114
219122
|
|
|
@@ -219164,7 +219172,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219164
219172
|
restHeight = drawArea.maxHeight - dTop;
|
|
219165
219173
|
}
|
|
219166
219174
|
|
|
219167
|
-
if (!isNew) {
|
|
219175
|
+
if (!isNew && hoEditorFactory.isUseDrawingOptimization) {
|
|
219168
219176
|
break;
|
|
219169
219177
|
}
|
|
219170
219178
|
}
|
|
@@ -219684,7 +219692,6 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219684
219692
|
}
|
|
219685
219693
|
}
|
|
219686
219694
|
|
|
219687
|
-
this.clearAfterDTop(drawArea, dTop);
|
|
219688
219695
|
drawArea.update(prevArea, dRoots, startIndex, dTop, restHeight);
|
|
219689
219696
|
this.afterAreaFinishPaint(drawArea);
|
|
219690
219697
|
this._startNeedUpdatePage = Math.min(drawArea.index, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
@@ -233404,13 +233411,14 @@ var jspdf = __webpack_require__(7147);
|
|
|
233404
233411
|
|
|
233405
233412
|
|
|
233406
233413
|
|
|
233414
|
+
|
|
233407
233415
|
|
|
233408
233416
|
|
|
233409
233417
|
/*
|
|
233410
233418
|
* @Author: your name
|
|
233411
233419
|
* @Date: 2021-07-31 09:25:57
|
|
233412
|
-
* @LastEditTime:
|
|
233413
|
-
* @LastEditors:
|
|
233420
|
+
* @LastEditTime: 2022-08-26 13:53:54
|
|
233421
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
233414
233422
|
* @Description: In User Settings Edit
|
|
233415
233423
|
* @FilePath: \hoeditor-web\src\editor\externalCall\PrintController.ts
|
|
233416
233424
|
*/
|
|
@@ -233719,10 +233727,21 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
233719
233727
|
});
|
|
233720
233728
|
|
|
233721
233729
|
return;
|
|
233722
|
-
}
|
|
233730
|
+
} // if (hoEditorFactory.isHideComments) {
|
|
233731
|
+
// hoEditorFactory.vueController.hideComments(true);
|
|
233732
|
+
// }
|
|
233723
233733
|
|
|
233724
|
-
|
|
233725
|
-
|
|
233734
|
+
|
|
233735
|
+
var drawMainDocs = hoEditorFactory.drawPageTree.drawMainDocs;
|
|
233736
|
+
|
|
233737
|
+
for (var k = 0; k < drawMainDocs.length; k++) {
|
|
233738
|
+
for (var s = drawMainDocs[k].children.length - 1; s >= 0; s--) {
|
|
233739
|
+
var child = drawMainDocs[k].children[s];
|
|
233740
|
+
|
|
233741
|
+
if (child.name && child.name.substring(0, 1) === "C" && child.name.length > 15) {
|
|
233742
|
+
drawMainDocs[k].removeChildAt(s);
|
|
233743
|
+
}
|
|
233744
|
+
}
|
|
233726
233745
|
}
|
|
233727
233746
|
|
|
233728
233747
|
if (printMode && printAppoint) {
|
|
@@ -235170,7 +235189,7 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
235170
235189
|
|
|
235171
235190
|
this._isCanUseTableProperty = false; //非设计模式下是否可以使用表格、单元格、行、列属性设置
|
|
235172
235191
|
|
|
235173
|
-
this._isUseDrawingOptimization =
|
|
235192
|
+
this._isUseDrawingOptimization = false; // 是否启用绘制优化 默认启用
|
|
235174
235193
|
|
|
235175
235194
|
this._loadImageCount = 0; // 待加载的图片数量
|
|
235176
235195
|
|