hoeditor-web 2.0.60 → 2.0.63
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 +512 -259
- package/lib/hoeditor.css +2 -1
- package/lib/hoeditor.umd.js +512 -259
- package/lib/hoeditor.umd.min.js +5 -5
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -11622,7 +11622,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11622
11622
|
|
|
11623
11623
|
if (index === hoEditorFactory.startPageNum && positionY) {
|
|
11624
11624
|
dShape = new createjs.Shape();
|
|
11625
|
-
dShape.graphics.beginFill('#
|
|
11625
|
+
dShape.graphics.beginFill('#FFFFFF').rect(0, 0, width, positionY).endFill();
|
|
11626
11626
|
cpage.drawDocContainer.addChild(dShape);
|
|
11627
11627
|
cpage.drawFooter.alpha = 0; // 上一页还有空余时续打起始页隐藏页脚
|
|
11628
11628
|
} // 光标处续打
|
|
@@ -11635,7 +11635,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11635
11635
|
if (index === posIndex && posY) {
|
|
11636
11636
|
_dShape = new createjs.Shape();
|
|
11637
11637
|
|
|
11638
|
-
_dShape.graphics.beginFill('#
|
|
11638
|
+
_dShape.graphics.beginFill('#FFFFFF').rect(0, 0, width, posY).endFill();
|
|
11639
11639
|
|
|
11640
11640
|
cpage.drawDocContainer.addChild(_dShape);
|
|
11641
11641
|
cpage.drawFooter.alpha = 0;
|
|
@@ -11812,7 +11812,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11812
11812
|
return link.remove();
|
|
11813
11813
|
}, 100);
|
|
11814
11814
|
} else {
|
|
11815
|
-
if (height <= 560 && hoEditorFactory.isFixedPrintToA4
|
|
11815
|
+
if (height <= 560 && hoEditorFactory.isFixedPrintToA4 === '') {
|
|
11816
11816
|
PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
|
|
11817
11817
|
}
|
|
11818
11818
|
|
|
@@ -44721,12 +44721,13 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44721
44721
|
var container = new createjs.Container();
|
|
44722
44722
|
container.x = docWidth + 15;
|
|
44723
44723
|
container.y = commentY - comment.lineHeight / 2;
|
|
44724
|
-
container.name = comment.id;
|
|
44724
|
+
container.name = "record" + comment.id;
|
|
44725
44725
|
var commentTextShape = null; // 批注内容
|
|
44726
44726
|
|
|
44727
44727
|
var commentArr = comment.commentTextWarp(commentWidth, comment.text);
|
|
44728
|
-
var text = commentArr[0];
|
|
44729
|
-
|
|
44728
|
+
var text = commentArr[0]; //const textLen = (commentArr[1] as number) > 1 ? (commentArr[1] as number) - 1 : (commentArr[1] as number);
|
|
44729
|
+
|
|
44730
|
+
var textLen = commentArr[1];
|
|
44730
44731
|
comment.lineHeight = 20 * textLen + 10;
|
|
44731
44732
|
commentTextShape = new createjs.Text(text, "12px 微软雅黑", "#666");
|
|
44732
44733
|
commentTextShape.lineWidth = commentWidth - 25;
|
|
@@ -44745,12 +44746,12 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44745
44746
|
|
|
44746
44747
|
var horizontalLine = new createjs.Shape();
|
|
44747
44748
|
horizontalLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").moveTo(nodeX, nodeY).lineTo(docWidth, nodeY);
|
|
44748
|
-
horizontalLine.name = comment.id;
|
|
44749
|
+
horizontalLine.name = "record" + comment.id;
|
|
44749
44750
|
horizontalLine.alpha = 1; //指向线
|
|
44750
44751
|
|
|
44751
44752
|
var guideLine = new createjs.Shape();
|
|
44752
44753
|
guideLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").moveTo(docWidth, nodeY).lineTo(docWidth + 15, commentY - comment.lineHeight / 4);
|
|
44753
|
-
guideLine.name = comment.id;
|
|
44754
|
+
guideLine.name = "record" + comment.id;
|
|
44754
44755
|
guideLine.alpha = 1;
|
|
44755
44756
|
container.addChild(backShape);
|
|
44756
44757
|
container.addChild(commentTextShape);
|
|
@@ -46220,7 +46221,14 @@ var DrawCombineNode = /*#__PURE__*/function (_DrawContainer) {
|
|
|
46220
46221
|
_this2.on('mouseout', function (e) {
|
|
46221
46222
|
hoEditorFactory.nodeMouseMove.setNode(_this2.node, _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_6__/* .DmouseEventType.detOut */ .p.detOut);
|
|
46222
46223
|
});
|
|
46223
|
-
}
|
|
46224
|
+
} // if(this.node && this.node.drawNodes && this.node.drawNodes[0]) {
|
|
46225
|
+
// const paragraphNode = hoEditorFactory.drawTree.getDrawLineByDNode(this._node.drawNodes[0])?.paragraphNode;
|
|
46226
|
+
// const customProperty = paragraphNode && paragraphNode.customProperty;
|
|
46227
|
+
// if(['男', '女'].includes(customProperty.sex) || (customProperty.age && customProperty.age.select == '隐藏')) {
|
|
46228
|
+
// console.log({...paragraphNode.customProperty})
|
|
46229
|
+
// }
|
|
46230
|
+
// }
|
|
46231
|
+
|
|
46224
46232
|
|
|
46225
46233
|
_this2.on('click', function (e) {
|
|
46226
46234
|
if (e.nativeEvent.button === 0) {
|
|
@@ -51274,9 +51282,9 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51274
51282
|
_this = _super.call(this, hoeditfactoryID, rootPath, node, 0);
|
|
51275
51283
|
_this._number = 0;
|
|
51276
51284
|
_this._type = 0;
|
|
51277
|
-
_this._signName =
|
|
51278
|
-
_this._imgSrc =
|
|
51279
|
-
_this._fingerPrintSrc =
|
|
51285
|
+
_this._signName = '';
|
|
51286
|
+
_this._imgSrc = '';
|
|
51287
|
+
_this._fingerPrintSrc = '';
|
|
51280
51288
|
_this._fingerPosition = 0;
|
|
51281
51289
|
_this._number = number;
|
|
51282
51290
|
_this._imgSrc = imgSrc;
|
|
@@ -51290,7 +51298,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51290
51298
|
_this._textStyle = cbStyle.getStyleKey();
|
|
51291
51299
|
|
|
51292
51300
|
if (_this.number > 0 && type === 2) {
|
|
51293
|
-
var signArr = imgSrc.split(
|
|
51301
|
+
var signArr = imgSrc.split('\n');
|
|
51294
51302
|
|
|
51295
51303
|
if (signArr.length > 1) {
|
|
51296
51304
|
_this.dHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoeditfactoryID).signHeight * signArr.length; // const textStyle = new TextStyle(hoeditfactoryID);
|
|
@@ -51309,10 +51317,10 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51309
51317
|
} //this._drawText = new DrawSimpleText('/', cbStyle.getStyleKey(), "#000000");
|
|
51310
51318
|
|
|
51311
51319
|
|
|
51312
|
-
_this._drawText = new createjs.Text(node.connectMode, _this._textStyle,
|
|
51320
|
+
_this._drawText = new createjs.Text(node.connectMode, _this._textStyle, '#000000');
|
|
51313
51321
|
|
|
51314
51322
|
if (_this.number === 0) {
|
|
51315
|
-
var dText = new createjs.Text(_this.signName, _this._textStyle,
|
|
51323
|
+
var dText = new createjs.Text(_this.signName, _this._textStyle, '#000000');
|
|
51316
51324
|
_this.dWidth = dText.getMeasuredWidth();
|
|
51317
51325
|
} else {
|
|
51318
51326
|
if (type === 1) {
|
|
@@ -51326,14 +51334,14 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51326
51334
|
}
|
|
51327
51335
|
|
|
51328
51336
|
if (type === 2) {
|
|
51329
|
-
var _signArr = imgSrc.split(
|
|
51337
|
+
var _signArr = imgSrc.split('\n');
|
|
51330
51338
|
|
|
51331
|
-
var aText = new createjs.Text(_signArr[0], _this._textStyle,
|
|
51339
|
+
var aText = new createjs.Text(_signArr[0], _this._textStyle, '#000000');
|
|
51332
51340
|
var maxWidth = aText.getMeasuredWidth();
|
|
51333
51341
|
|
|
51334
51342
|
if (_signArr.length > 1) {
|
|
51335
51343
|
for (var i = 1; i < _signArr.length; i++) {
|
|
51336
|
-
aText = new createjs.Text(_signArr[i], _this._textStyle,
|
|
51344
|
+
aText = new createjs.Text(_signArr[i], _this._textStyle, '#000000');
|
|
51337
51345
|
var aWidth = aText.getMeasuredWidth();
|
|
51338
51346
|
|
|
51339
51347
|
if (aWidth > maxWidth) {
|
|
@@ -51348,7 +51356,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51348
51356
|
_this.dWidth = maxWidth;
|
|
51349
51357
|
} else {
|
|
51350
51358
|
//this.dWidth = dText.getMeasuredWidth() + this._drawText.getMeasuredWidth();
|
|
51351
|
-
if (node.connectMode ===
|
|
51359
|
+
if (node.connectMode === '换行') {
|
|
51352
51360
|
_this.dWidth = maxWidth;
|
|
51353
51361
|
} else {
|
|
51354
51362
|
_this.dWidth = maxWidth + _this._drawText.getMeasuredWidth();
|
|
@@ -51357,7 +51365,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51357
51365
|
}
|
|
51358
51366
|
}
|
|
51359
51367
|
|
|
51360
|
-
if (imgWidth == 0 && imgHeight == 0 && imgSrc && type == 1 || type == 3) {
|
|
51368
|
+
if (imgWidth == 0 && imgHeight == 0 && (imgSrc || fingerPrintSrc) && type == 1 || type == 3) {
|
|
51361
51369
|
_this.drawWriteSignNode(node);
|
|
51362
51370
|
} else {
|
|
51363
51371
|
_this.drawSignNode();
|
|
@@ -51443,108 +51451,139 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51443
51451
|
|
|
51444
51452
|
this.clear();
|
|
51445
51453
|
var drawNode = this;
|
|
51446
|
-
var isFront = node.isFront;
|
|
51447
51454
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys.instance */ .b.instance().getFactory(drawNode.node.hoEditorFactoryID);
|
|
51448
51455
|
|
|
51449
51456
|
var drawSign = function drawSign() {
|
|
51450
51457
|
if (_this2.type === 1 || _this2.type === 3) {
|
|
51451
|
-
var image = new Image();
|
|
51452
|
-
image.src = _this2.imgSrc;
|
|
51453
51458
|
var currentLineHeight = hoEditorFactory.drawTree.caret.height;
|
|
51454
|
-
|
|
51455
|
-
|
|
51456
|
-
|
|
51457
|
-
|
|
51458
|
-
|
|
51459
|
-
_this2._dWidth =
|
|
51460
|
-
|
|
51461
|
-
|
|
51462
|
-
|
|
51463
|
-
var fingerImage = new Image();
|
|
51464
|
-
var fingerBitmap;
|
|
51465
|
-
|
|
51466
|
-
if (drawNode.fingerPrintSrc !== "") {
|
|
51459
|
+
node.type = 3;
|
|
51460
|
+
|
|
51461
|
+
if (_this2.imgSrc == '' && _this2.fingerPrintSrc) {
|
|
51462
|
+
var fingerscale = drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center ? 0.3 : 0.15;
|
|
51463
|
+
var fingerWidth = 256;
|
|
51464
|
+
_this2._dWidth = fingerWidth * fingerscale;
|
|
51465
|
+
node.imgWidth = _this2._dWidth;
|
|
51466
|
+
var fingerImage = new Image();
|
|
51467
|
+
var fingerBitmap;
|
|
51467
51468
|
fingerImage.src = _this2.fingerPrintSrc;
|
|
51468
51469
|
fingerBitmap = new createjs.Bitmap(fingerImage);
|
|
51469
|
-
drawNode.addChildAt(fingerBitmap,
|
|
51470
|
+
drawNode.addChildAt(fingerBitmap, 0);
|
|
51470
51471
|
hoEditorFactory.loadImageCount++;
|
|
51471
51472
|
|
|
51472
51473
|
fingerImage.onerror = function () {
|
|
51473
51474
|
return hoEditorFactory.loadImageCount--;
|
|
51474
51475
|
};
|
|
51475
|
-
}
|
|
51476
51476
|
|
|
51477
|
-
|
|
51477
|
+
fingerImage.onload = function () {
|
|
51478
|
+
var fingerHeight = fingerImage.naturalHeight !== 0 ? fingerImage.naturalHeight : fingerImage.height;
|
|
51479
|
+
fingerBitmap.y = -fingerHeight * fingerscale;
|
|
51480
|
+
fingerBitmap.x = 0;
|
|
51481
|
+
node.imgHeight = fingerHeight * fingerscale;
|
|
51482
|
+
_this2._dHeight = node.imgHeight;
|
|
51483
|
+
node.type = 3;
|
|
51484
|
+
fingerBitmap.setTransform(fingerBitmap.x, fingerBitmap.y, fingerscale, fingerscale);
|
|
51485
|
+
updateSign();
|
|
51486
|
+
};
|
|
51487
|
+
} else {
|
|
51488
|
+
var image = new Image();
|
|
51489
|
+
image.src = _this2.imgSrc;
|
|
51490
|
+
var bitmap = new createjs.Bitmap(image);
|
|
51491
|
+
bitmap.y = 0;
|
|
51492
|
+
bitmap.x = 0;
|
|
51478
51493
|
|
|
51479
|
-
|
|
51480
|
-
|
|
51481
|
-
|
|
51494
|
+
if (node.imgWidth) {
|
|
51495
|
+
_this2._dWidth = node.imgWidth;
|
|
51496
|
+
}
|
|
51482
51497
|
|
|
51483
|
-
|
|
51484
|
-
var hitWidth = image.naturalWidth !== 0 ? image.naturalWidth : image.width;
|
|
51485
|
-
var hitHeight = image.naturalHeight !== 0 ? image.naturalHeight : image.height;
|
|
51486
|
-
var scale = hoEditorFactory.signHeight / hitHeight < 0.4 ? 0.4 : hoEditorFactory.signHeight / hitHeight > 0.7 ? 1 : hoEditorFactory.signHeight / hitHeight;
|
|
51487
|
-
|
|
51488
|
-
if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center && hoEditorFactory.signHeight / hitHeight < 0.2) {
|
|
51489
|
-
scale = hoEditorFactory.signHeight * 1.5 / hitHeight;
|
|
51490
|
-
}
|
|
51491
|
-
|
|
51492
|
-
_this2._dWidth = hitWidth * scale;
|
|
51493
|
-
|
|
51494
|
-
if (drawNode.fingerPrintSrc !== "") {
|
|
51495
|
-
fingerImage.onload = function () {
|
|
51496
|
-
var fingerWidth = 256;
|
|
51497
|
-
var fingerHeight = fingerImage.naturalHeight !== 0 ? fingerImage.naturalHeight : fingerImage.height;
|
|
51498
|
-
var fingerscale = drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center ? 0.3 : 0.15;
|
|
51499
|
-
fingerBitmap.scaleX = fingerscale;
|
|
51500
|
-
fingerBitmap.scaleY = fingerscale;
|
|
51501
|
-
fingerBitmap.y = -fingerHeight * fingerscale;
|
|
51502
|
-
bitmap.y = -hitHeight * scale;
|
|
51503
|
-
|
|
51504
|
-
if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.left */ .d.left) {
|
|
51505
|
-
bitmap.x = fingerWidth * fingerscale + 5;
|
|
51506
|
-
fingerBitmap.x = 0;
|
|
51507
|
-
_this2._dWidth = hitWidth * scale + 5 + fingerWidth * fingerscale;
|
|
51508
|
-
node.imgHeight = Math.floor(Math.max(fingerHeight * fingerscale, hitHeight * scale));
|
|
51509
|
-
_this2._dHeight = node.imgHeight;
|
|
51510
|
-
} else if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center) {
|
|
51511
|
-
fingerBitmap.x = (hitWidth * scale - fingerWidth * fingerscale) / 2;
|
|
51512
|
-
fingerBitmap.y = -(fingerHeight * fingerscale + currentLineHeight) / 2;
|
|
51513
|
-
bitmap.y = -(hitHeight * scale + currentLineHeight) / 2;
|
|
51514
|
-
node.imgHeight = hoEditorFactory.signHeight;
|
|
51515
|
-
} else if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.right */ .d.right) {
|
|
51516
|
-
fingerBitmap.x = hitWidth * scale + 5;
|
|
51517
|
-
_this2._dWidth = hitWidth * scale + 5 + fingerWidth * fingerscale;
|
|
51518
|
-
node.imgHeight = Math.floor(Math.max(fingerHeight * fingerscale, hitHeight * scale));
|
|
51519
|
-
_this2._dHeight = node.imgHeight;
|
|
51520
|
-
}
|
|
51498
|
+
drawNode.addChildAt(bitmap, 0);
|
|
51521
51499
|
|
|
51522
|
-
|
|
51523
|
-
node.type = 3;
|
|
51500
|
+
var _fingerImage = new Image();
|
|
51524
51501
|
|
|
51525
|
-
|
|
51526
|
-
_this2._dWidth = 0;
|
|
51527
|
-
_this2._dHeight = 0;
|
|
51528
|
-
}
|
|
51502
|
+
var _fingerBitmap;
|
|
51529
51503
|
|
|
51530
|
-
|
|
51531
|
-
|
|
51532
|
-
|
|
51533
|
-
|
|
51504
|
+
if (drawNode.fingerPrintSrc !== '') {
|
|
51505
|
+
_fingerImage.src = _this2.fingerPrintSrc;
|
|
51506
|
+
_fingerBitmap = new createjs.Bitmap(_fingerImage);
|
|
51507
|
+
drawNode.addChildAt(_fingerBitmap, 1);
|
|
51508
|
+
hoEditorFactory.loadImageCount++;
|
|
51534
51509
|
|
|
51535
|
-
|
|
51536
|
-
|
|
51537
|
-
updateSign();
|
|
51510
|
+
_fingerImage.onerror = function () {
|
|
51511
|
+
return hoEditorFactory.loadImageCount--;
|
|
51538
51512
|
};
|
|
51539
|
-
} else {
|
|
51540
|
-
_this2._dWidth = hitWidth * scale;
|
|
51541
|
-
node.imgWidth = _this2._dWidth;
|
|
51542
|
-
node.imgHeight = hoEditorFactory.signHeight;
|
|
51543
|
-
node.type = 3;
|
|
51544
|
-
bitmap.setTransform(0, -(hitHeight * scale + currentLineHeight) / 2, scale, scale);
|
|
51545
|
-
updateSign();
|
|
51546
51513
|
}
|
|
51547
|
-
|
|
51514
|
+
|
|
51515
|
+
hoEditorFactory.loadImageCount++;
|
|
51516
|
+
|
|
51517
|
+
image.onerror = function () {
|
|
51518
|
+
return hoEditorFactory.loadImageCount--;
|
|
51519
|
+
};
|
|
51520
|
+
|
|
51521
|
+
image.onload = function () {
|
|
51522
|
+
var hitWidth = image.naturalWidth !== 0 ? image.naturalWidth : image.width;
|
|
51523
|
+
var hitHeight = image.naturalHeight !== 0 ? image.naturalHeight : image.height;
|
|
51524
|
+
var scale = hoEditorFactory.signHeight / hitHeight < 0.4 ? 0.4 : hoEditorFactory.signHeight / hitHeight > 0.7 ? 1 : hoEditorFactory.signHeight / hitHeight;
|
|
51525
|
+
|
|
51526
|
+
if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center && hoEditorFactory.signHeight / hitHeight < 0.2) {
|
|
51527
|
+
scale = hoEditorFactory.signHeight * 1.5 / hitHeight;
|
|
51528
|
+
}
|
|
51529
|
+
|
|
51530
|
+
_this2._dWidth = hitWidth * scale;
|
|
51531
|
+
|
|
51532
|
+
if (drawNode.fingerPrintSrc !== '') {
|
|
51533
|
+
_fingerImage.onload = function () {
|
|
51534
|
+
var fingerWidth = 256;
|
|
51535
|
+
var fingerHeight = _fingerImage.naturalHeight !== 0 ? _fingerImage.naturalHeight : _fingerImage.height;
|
|
51536
|
+
var fingerscale = drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center ? 0.3 : 0.15;
|
|
51537
|
+
_fingerBitmap.scaleX = fingerscale;
|
|
51538
|
+
_fingerBitmap.scaleY = fingerscale;
|
|
51539
|
+
_fingerBitmap.y = -fingerHeight * fingerscale;
|
|
51540
|
+
bitmap.y = -hitHeight * scale;
|
|
51541
|
+
|
|
51542
|
+
if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.left */ .d.left) {
|
|
51543
|
+
bitmap.x = fingerWidth * fingerscale + 5;
|
|
51544
|
+
_fingerBitmap.x = 0;
|
|
51545
|
+
_this2._dWidth = hitWidth * scale + 5 + fingerWidth * fingerscale;
|
|
51546
|
+
node.imgHeight = Math.floor(Math.max(fingerHeight * fingerscale, hitHeight * scale));
|
|
51547
|
+
_this2._dHeight = node.imgHeight;
|
|
51548
|
+
} else if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center) {
|
|
51549
|
+
_fingerBitmap.x = (hitWidth * scale - fingerWidth * fingerscale) / 2;
|
|
51550
|
+
_fingerBitmap.y = -(fingerHeight * fingerscale + currentLineHeight) / 2;
|
|
51551
|
+
bitmap.y = -(hitHeight * scale + currentLineHeight) / 2;
|
|
51552
|
+
node.imgHeight = hoEditorFactory.signHeight;
|
|
51553
|
+
} else if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.right */ .d.right) {
|
|
51554
|
+
_fingerBitmap.x = hitWidth * scale + 5;
|
|
51555
|
+
_this2._dWidth = hitWidth * scale + 5 + fingerWidth * fingerscale;
|
|
51556
|
+
node.imgHeight = Math.floor(Math.max(fingerHeight * fingerscale, hitHeight * scale));
|
|
51557
|
+
_this2._dHeight = node.imgHeight;
|
|
51558
|
+
}
|
|
51559
|
+
|
|
51560
|
+
node.imgWidth = _this2._dWidth;
|
|
51561
|
+
|
|
51562
|
+
if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center) {
|
|
51563
|
+
_this2._dWidth = 0;
|
|
51564
|
+
_this2._dHeight = 0;
|
|
51565
|
+
}
|
|
51566
|
+
|
|
51567
|
+
bitmap.setTransform(bitmap.x, bitmap.y, scale, scale);
|
|
51568
|
+
|
|
51569
|
+
_fingerBitmap.setTransform(_fingerBitmap.x, _fingerBitmap.y, fingerscale, fingerscale);
|
|
51570
|
+
|
|
51571
|
+
var hitArea = new createjs.Shape();
|
|
51572
|
+
hitArea.graphics.beginFill('#000000').drawRect(_fingerBitmap.x, 0, fingerWidth * fingerscale, fingerHeight * fingerscale); //这里是图片大小
|
|
51573
|
+
|
|
51574
|
+
bitmap.hitArea = hitArea;
|
|
51575
|
+
_fingerBitmap.hitArea = hitArea;
|
|
51576
|
+
updateSign();
|
|
51577
|
+
};
|
|
51578
|
+
} else {
|
|
51579
|
+
_this2._dWidth = hitWidth * scale;
|
|
51580
|
+
node.imgWidth = _this2._dWidth;
|
|
51581
|
+
node.imgHeight = hoEditorFactory.signHeight;
|
|
51582
|
+
bitmap.setTransform(0, -(hitHeight * scale + currentLineHeight) / 2, scale, scale);
|
|
51583
|
+
updateSign();
|
|
51584
|
+
}
|
|
51585
|
+
};
|
|
51586
|
+
}
|
|
51548
51587
|
}
|
|
51549
51588
|
};
|
|
51550
51589
|
|
|
@@ -51563,12 +51602,14 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51563
51602
|
} // hoEditorFactory.drawTree.updateDrawTreeFirstLine();
|
|
51564
51603
|
|
|
51565
51604
|
|
|
51566
|
-
hoEditorFactory.drawTree.rebuildArea(
|
|
51605
|
+
hoEditorFactory.drawTree.rebuildArea('main', false);
|
|
51567
51606
|
}
|
|
51568
51607
|
|
|
51569
|
-
|
|
51608
|
+
if (drawNode.imgSrc) {
|
|
51609
|
+
hoEditorFactory.loadImageCount--;
|
|
51610
|
+
}
|
|
51570
51611
|
|
|
51571
|
-
if (drawNode.fingerPrintSrc
|
|
51612
|
+
if (drawNode.fingerPrintSrc) {
|
|
51572
51613
|
hoEditorFactory.loadImageCount--;
|
|
51573
51614
|
}
|
|
51574
51615
|
};
|
|
@@ -51617,19 +51658,19 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51617
51658
|
|
|
51618
51659
|
bitmap.setTransform(0, -hoEditorFactory.signHeight, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
51619
51660
|
var hitArea = new createjs.Shape();
|
|
51620
|
-
hitArea.graphics.beginFill(
|
|
51661
|
+
hitArea.graphics.beginFill('#000').drawRect(0, 0, drawNode.dWidth, drawNode.dHeight); //这里是图片大小
|
|
51621
51662
|
|
|
51622
51663
|
bitmap.hitArea = hitArea;
|
|
51623
51664
|
|
|
51624
|
-
if (_this3.imgSrc.indexOf(
|
|
51625
|
-
var canvas = document.createElement(
|
|
51665
|
+
if (_this3.imgSrc.indexOf('data:image/') != -1 && _this3.imgSrc.indexOf('data:image/png') == -1) {
|
|
51666
|
+
var canvas = document.createElement('canvas');
|
|
51626
51667
|
canvas.width = image.naturalWidth;
|
|
51627
51668
|
canvas.height = image.naturalHeight;
|
|
51628
|
-
var ctx = canvas.getContext(
|
|
51629
|
-
ctx.fillStyle =
|
|
51669
|
+
var ctx = canvas.getContext('2d');
|
|
51670
|
+
ctx.fillStyle = '#FFFFFF';
|
|
51630
51671
|
ctx.fillRect(0, 0, image.naturalWidth, image.naturalHeight);
|
|
51631
51672
|
ctx.drawImage(image, 0, 0, image.naturalWidth, image.naturalHeight);
|
|
51632
|
-
_this3.node.imgSrc = canvas.toDataURL(
|
|
51673
|
+
_this3.node.imgSrc = canvas.toDataURL('image/png');
|
|
51633
51674
|
_this3.node.PNGToJPG = 1;
|
|
51634
51675
|
}
|
|
51635
51676
|
|
|
@@ -51656,18 +51697,18 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51656
51697
|
return hoEditorFactory.loadImageCount--;
|
|
51657
51698
|
};
|
|
51658
51699
|
} else {
|
|
51659
|
-
var signArr = _this3.imgSrc.split(
|
|
51700
|
+
var signArr = _this3.imgSrc.split('\n');
|
|
51660
51701
|
|
|
51661
51702
|
if (signArr.length === 1) {
|
|
51662
|
-
var drawText2 = new createjs.Text(_this3.imgSrc, _this3.textStyle,
|
|
51663
|
-
drawText2.textBaseline =
|
|
51664
|
-
drawText2.textAlign =
|
|
51703
|
+
var drawText2 = new createjs.Text(_this3.imgSrc, _this3.textStyle, '#000000');
|
|
51704
|
+
drawText2.textBaseline = 'alphabetic';
|
|
51705
|
+
drawText2.textAlign = 'left';
|
|
51665
51706
|
var rect = drawText2.getBounds();
|
|
51666
51707
|
|
|
51667
51708
|
if (rect) {
|
|
51668
51709
|
drawText2.y = _this3.y;
|
|
51669
51710
|
|
|
51670
|
-
if (_this3.number === 1 || isFront && _this3.number > 1 || _this3.node.connectMode ===
|
|
51711
|
+
if (_this3.number === 1 || isFront && _this3.number > 1 || _this3.node.connectMode === '换行') {
|
|
51671
51712
|
drawText2.x = 0;
|
|
51672
51713
|
} else {
|
|
51673
51714
|
drawText2.x = _this3._drawText.getMeasuredWidth();
|
|
@@ -51677,16 +51718,16 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51677
51718
|
_this3.addChild(drawText2);
|
|
51678
51719
|
} else {
|
|
51679
51720
|
for (var i = 0; i < signArr.length; i++) {
|
|
51680
|
-
var aText = new createjs.Text(signArr[i], _this3.textStyle,
|
|
51681
|
-
aText.textBaseline =
|
|
51682
|
-
aText.textAlign =
|
|
51721
|
+
var aText = new createjs.Text(signArr[i], _this3.textStyle, '#000000');
|
|
51722
|
+
aText.textBaseline = 'alphabetic';
|
|
51723
|
+
aText.textAlign = 'left';
|
|
51683
51724
|
|
|
51684
51725
|
var _rect = aText.getBounds();
|
|
51685
51726
|
|
|
51686
51727
|
if (_rect) {
|
|
51687
51728
|
aText.y = _this3.dHeight / signArr.length * (i + 1) - _this3.dHeight; //aText.y = -this.dHeight / (i + 1);
|
|
51688
51729
|
|
|
51689
|
-
if (_this3.number === 1 || isFront && _this3.number > 1 || _this3.node.connectMode ===
|
|
51730
|
+
if (_this3.number === 1 || isFront && _this3.number > 1 || _this3.node.connectMode === '换行') {
|
|
51690
51731
|
aText.x = 0;
|
|
51691
51732
|
} else {
|
|
51692
51733
|
aText.x = _this3._drawText.getMeasuredWidth();
|
|
@@ -51700,9 +51741,9 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51700
51741
|
};
|
|
51701
51742
|
|
|
51702
51743
|
if (this.number === 0) {
|
|
51703
|
-
var drawText1 = new createjs.Text(this.signName, this.textStyle,
|
|
51704
|
-
drawText1.textBaseline =
|
|
51705
|
-
drawText1.textAlign =
|
|
51744
|
+
var drawText1 = new createjs.Text(this.signName, this.textStyle, '#838586');
|
|
51745
|
+
drawText1.textBaseline = 'alphabetic';
|
|
51746
|
+
drawText1.textAlign = 'left';
|
|
51706
51747
|
var rect = drawText1.getBounds();
|
|
51707
51748
|
|
|
51708
51749
|
if (rect) {
|
|
@@ -51730,37 +51771,37 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51730
51771
|
var connectMode = this.node.connectMode;
|
|
51731
51772
|
var line = new createjs.Shape();
|
|
51732
51773
|
|
|
51733
|
-
if (connectMode ===
|
|
51774
|
+
if (connectMode === '/') {
|
|
51734
51775
|
if (this.type === 1) {
|
|
51735
51776
|
if (isFront) {
|
|
51736
|
-
line.graphics.beginStroke(
|
|
51777
|
+
line.graphics.beginStroke('#000000').moveTo(this.dWidth - this._drawText.getMeasuredWidth(), 0).lineTo(this.dWidth, -this.dHeight);
|
|
51737
51778
|
} else {
|
|
51738
|
-
line.graphics.beginStroke(
|
|
51779
|
+
line.graphics.beginStroke('#000000').moveTo(0, 0).lineTo(this._drawText.getMeasuredWidth(), -this.dHeight);
|
|
51739
51780
|
}
|
|
51740
51781
|
} else {
|
|
51741
|
-
var signArr = this.imgSrc.split(
|
|
51742
|
-
var theHeight = new createjs.Text(this.imgSrc, this.textStyle,
|
|
51782
|
+
var signArr = this.imgSrc.split('\n');
|
|
51783
|
+
var theHeight = new createjs.Text(this.imgSrc, this.textStyle, '#000000').getMeasuredHeight();
|
|
51743
51784
|
|
|
51744
51785
|
if (signArr.length > 1) {
|
|
51745
51786
|
for (var i = 1; i < signArr.length; i++) {
|
|
51746
|
-
var aText = new createjs.Text(signArr[i], this.textStyle,
|
|
51787
|
+
var aText = new createjs.Text(signArr[i], this.textStyle, '#000000');
|
|
51747
51788
|
theHeight = theHeight + aText.getMeasuredHeight();
|
|
51748
51789
|
}
|
|
51749
51790
|
}
|
|
51750
51791
|
|
|
51751
51792
|
if (isFront) {
|
|
51752
|
-
line.graphics.beginStroke(
|
|
51793
|
+
line.graphics.beginStroke('#000000').moveTo(this.dWidth - this._drawText.getMeasuredWidth(), 2).lineTo(this.dWidth, -theHeight - 2);
|
|
51753
51794
|
} else {
|
|
51754
|
-
line.graphics.beginStroke(
|
|
51795
|
+
line.graphics.beginStroke('#000000').moveTo(0, 2).lineTo(this._drawText.getMeasuredWidth(), -theHeight - 2);
|
|
51755
51796
|
}
|
|
51756
51797
|
}
|
|
51757
51798
|
|
|
51758
51799
|
this.addChildAt(line);
|
|
51759
|
-
} else if (connectMode ===
|
|
51800
|
+
} else if (connectMode === '换行') {
|
|
51760
51801
|
return;
|
|
51761
51802
|
} else {
|
|
51762
|
-
this._drawText.textBaseline =
|
|
51763
|
-
this._drawText.textAlign =
|
|
51803
|
+
this._drawText.textBaseline = 'alphabetic';
|
|
51804
|
+
this._drawText.textAlign = 'left';
|
|
51764
51805
|
|
|
51765
51806
|
var rect = this._drawText.getBounds();
|
|
51766
51807
|
|
|
@@ -54776,6 +54817,11 @@ var Caret = /*#__PURE__*/function () {
|
|
|
54776
54817
|
this.div_cursor.style.height = Math.max(val, 12) * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY + "px"; // this.updateCaret();
|
|
54777
54818
|
}
|
|
54778
54819
|
}
|
|
54820
|
+
}, {
|
|
54821
|
+
key: "X",
|
|
54822
|
+
get: function get() {
|
|
54823
|
+
return this.x;
|
|
54824
|
+
}
|
|
54779
54825
|
}, {
|
|
54780
54826
|
key: "Y",
|
|
54781
54827
|
get: function get() {
|
|
@@ -62479,7 +62525,7 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
62479
62525
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39873);
|
|
62480
62526
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37174);
|
|
62481
62527
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35671);
|
|
62482
|
-
/* harmony import */ var
|
|
62528
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(22342);
|
|
62483
62529
|
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66992);
|
|
62484
62530
|
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
62485
62531
|
/* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(51532);
|
|
@@ -62494,28 +62540,34 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
62494
62540
|
/* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
62495
62541
|
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(21703);
|
|
62496
62542
|
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
62497
|
-
/* harmony import */ var
|
|
62498
|
-
/* harmony import */ var
|
|
62499
|
-
/* harmony import */ var
|
|
62500
|
-
/* harmony import */ var
|
|
62501
|
-
/* harmony import */ var
|
|
62502
|
-
/* harmony import */ var
|
|
62503
|
-
/* harmony import */ var
|
|
62504
|
-
/* harmony import */ var
|
|
62505
|
-
/* harmony import */ var
|
|
62506
|
-
/* harmony import */ var
|
|
62507
|
-
/* harmony import */ var
|
|
62508
|
-
/* harmony import */ var
|
|
62509
|
-
/* harmony import */ var
|
|
62510
|
-
/* harmony import */ var
|
|
62511
|
-
/* harmony import */ var
|
|
62512
|
-
/* harmony import */ var
|
|
62513
|
-
/* harmony import */ var
|
|
62514
|
-
/* harmony import */ var
|
|
62515
|
-
/* harmony import */ var
|
|
62516
|
-
/* harmony import */ var
|
|
62517
|
-
/* harmony import */ var
|
|
62518
|
-
/* harmony import */ var
|
|
62543
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(26699);
|
|
62544
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_12__);
|
|
62545
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(32023);
|
|
62546
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_13__);
|
|
62547
|
+
/* harmony import */ var _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(23375);
|
|
62548
|
+
/* harmony import */ var _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(91538);
|
|
62549
|
+
/* harmony import */ var _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(34534);
|
|
62550
|
+
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(98199);
|
|
62551
|
+
/* harmony import */ var _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(66828);
|
|
62552
|
+
/* harmony import */ var _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(58416);
|
|
62553
|
+
/* harmony import */ var _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(13113);
|
|
62554
|
+
/* harmony import */ var _UndoService__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(48508);
|
|
62555
|
+
/* harmony import */ var _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(34565);
|
|
62556
|
+
/* harmony import */ var _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(15868);
|
|
62557
|
+
/* harmony import */ var _events_Exception__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(88702);
|
|
62558
|
+
/* harmony import */ var _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(14208);
|
|
62559
|
+
/* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(15798);
|
|
62560
|
+
/* harmony import */ var _draw_SelectRange__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(1470);
|
|
62561
|
+
/* harmony import */ var _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(95883);
|
|
62562
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(41005);
|
|
62563
|
+
/* harmony import */ var _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(8395);
|
|
62564
|
+
/* harmony import */ var _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(89050);
|
|
62565
|
+
/* harmony import */ var _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(36395);
|
|
62566
|
+
/* harmony import */ var _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(98390);
|
|
62567
|
+
/* harmony import */ var _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(12019);
|
|
62568
|
+
/* harmony import */ var _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(34450);
|
|
62569
|
+
|
|
62570
|
+
|
|
62519
62571
|
|
|
62520
62572
|
|
|
62521
62573
|
|
|
@@ -62574,10 +62626,10 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62574
62626
|
this._startPath = startPath;
|
|
62575
62627
|
this._endPath = endPath;
|
|
62576
62628
|
this._isForceDelete = isForceDelete;
|
|
62577
|
-
this._undo = new
|
|
62629
|
+
this._undo = new _UndoService__WEBPACK_IMPORTED_MODULE_21__/* .UndoService */ .O(this._hoEditorFactoryID); //hoEditorFactory.undoService;
|
|
62578
62630
|
|
|
62579
62631
|
this._undoNodes = new Map();
|
|
62580
|
-
var aDomRange = new
|
|
62632
|
+
var aDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(hoEditorFactoryID, startPath, endPath).normalize();
|
|
62581
62633
|
|
|
62582
62634
|
var _aDomRange$inSameTabl = aDomRange.inSameTable(),
|
|
62583
62635
|
_aDomRange$inSameTabl2 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_aDomRange$inSameTabl, 2),
|
|
@@ -62586,10 +62638,10 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62586
62638
|
|
|
62587
62639
|
this._bSameTable = bSametable;
|
|
62588
62640
|
this._opTime = new Date();
|
|
62589
|
-
this._affectText =
|
|
62641
|
+
this._affectText = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).vueController.getRangeText(aDomRange);
|
|
62590
62642
|
}
|
|
62591
62643
|
|
|
62592
|
-
(0,
|
|
62644
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_36__/* ["default"] */ .Z)(NodesDeleteUndoUnit, [{
|
|
62593
62645
|
key: "undo",
|
|
62594
62646
|
value: function undo() {
|
|
62595
62647
|
//2.插入删除的节点
|
|
@@ -62601,12 +62653,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62601
62653
|
var arr = Array.from(this._undoNodes).reverse();
|
|
62602
62654
|
var i = 0;
|
|
62603
62655
|
var prevIsTable = false;
|
|
62604
|
-
var hoEditorFactory =
|
|
62656
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
62605
62657
|
|
|
62606
62658
|
while (i < arr.length) {
|
|
62607
62659
|
var value = arr[i];
|
|
62608
62660
|
|
|
62609
|
-
if (value[1] instanceof
|
|
62661
|
+
if (value[1] instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_26__/* .CellNode */ .D) {// (value[1] as CellNode).redrawCell(true, DocAction.daInsert);
|
|
62610
62662
|
} else {
|
|
62611
62663
|
if (prevIsTable) {
|
|
62612
62664
|
hoEditorFactory.docTree.insertNodeAfterNode(arr[i - 1][1], arr[i][1]);
|
|
@@ -62614,12 +62666,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62614
62666
|
hoEditorFactory.docTree.insertNodeAfterPath(value[0], value[1]);
|
|
62615
62667
|
}
|
|
62616
62668
|
|
|
62617
|
-
if (value[1] instanceof
|
|
62669
|
+
if (value[1] instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_28__/* .TableNode */ .Fh) {
|
|
62618
62670
|
prevIsTable = true; // value[1].clearDrawNodes();
|
|
62619
62671
|
// value[1].drawTable.drawPageTables.length = 0;
|
|
62620
62672
|
|
|
62621
62673
|
var np = hoEditorFactory.docTree.findNodePositionByPath(value[0]);
|
|
62622
|
-
if (np && np.node && np.node instanceof
|
|
62674
|
+
if (np && np.node && np.node instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_25__/* .ParagraphNode */ .C) value[1].drawTable.paragraphNode = np.node;
|
|
62623
62675
|
} else {
|
|
62624
62676
|
prevIsTable = false;
|
|
62625
62677
|
}
|
|
@@ -62629,7 +62681,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62629
62681
|
}
|
|
62630
62682
|
|
|
62631
62683
|
var aendPaht = hoEditorFactory.docTree.getNodeLastPath(arr[arr.length - 1][1]);
|
|
62632
|
-
var changeEvent = new
|
|
62684
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_16__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_14__/* .DocAction.daInsert */ .gk.daInsert, arr[0][0], aendPaht);
|
|
62633
62685
|
hoEditorFactory.docTree.change(changeEvent); //3.合并拆分节点
|
|
62634
62686
|
|
|
62635
62687
|
while (!this._undo.atBottom()) {
|
|
@@ -62657,9 +62709,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62657
62709
|
//选中范围变化事件
|
|
62658
62710
|
|
|
62659
62711
|
|
|
62660
|
-
var newRange = new
|
|
62712
|
+
var newRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
|
|
62661
62713
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
62662
|
-
var cgEvent = new
|
|
62714
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_20__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, newRange);
|
|
62663
62715
|
hoEditorFactory.docTree.selectChange(cgEvent); //光标定位
|
|
62664
62716
|
|
|
62665
62717
|
hoEditorFactory.drawTree.moveCaretToPath(newRange.endPath);
|
|
@@ -62678,7 +62730,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62678
62730
|
}, {
|
|
62679
62731
|
key: "MoveCaret",
|
|
62680
62732
|
value: function MoveCaret(path) {
|
|
62681
|
-
|
|
62733
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.moveCaretToPath(path);
|
|
62682
62734
|
}
|
|
62683
62735
|
/**
|
|
62684
62736
|
* @description 返回前面一个node的开始结束选中范围 文本节点时候返回文本中单个文字的选中范围
|
|
@@ -62689,30 +62741,30 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62689
62741
|
key: "getPrevNodeDomRange",
|
|
62690
62742
|
value: function getPrevNodeDomRange(Anode) {
|
|
62691
62743
|
var spath;
|
|
62692
|
-
var hoEditorFactory =
|
|
62744
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
62693
62745
|
var prev = Anode.prevSibling();
|
|
62694
62746
|
|
|
62695
62747
|
if (!prev) {
|
|
62696
|
-
throw
|
|
62748
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
62697
62749
|
}
|
|
62698
62750
|
|
|
62699
62751
|
var epath = hoEditorFactory.docTree.getNodeLastPath(prev);
|
|
62700
62752
|
|
|
62701
|
-
if (prev instanceof
|
|
62753
|
+
if (prev instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__/* .TextNode */ .R) {
|
|
62702
62754
|
spath = prev.prevPath(epath);
|
|
62703
|
-
} else if (prev instanceof
|
|
62755
|
+
} else if (prev instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_25__/* .ParagraphNode */ .C) {
|
|
62704
62756
|
spath = epath;
|
|
62705
62757
|
} else {
|
|
62706
62758
|
var prev1 = prev.previousLeaf();
|
|
62707
62759
|
|
|
62708
62760
|
if (!prev1) {
|
|
62709
|
-
throw
|
|
62761
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
62710
62762
|
}
|
|
62711
62763
|
|
|
62712
62764
|
spath = hoEditorFactory.docTree.getNodeLastPath(prev1);
|
|
62713
62765
|
}
|
|
62714
62766
|
|
|
62715
|
-
return new
|
|
62767
|
+
return new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, spath, epath);
|
|
62716
62768
|
}
|
|
62717
62769
|
/**
|
|
62718
62770
|
*
|
|
@@ -62726,23 +62778,23 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62726
62778
|
}, {
|
|
62727
62779
|
key: "deleteRange",
|
|
62728
62780
|
value: function deleteRange(endpath, startpath) {
|
|
62729
|
-
var currRange = new
|
|
62781
|
+
var currRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, startpath, endpath).normalize(); //拆分更新节点,更新删除范围 this._tmp
|
|
62730
62782
|
|
|
62731
62783
|
if (!this.spliteNode(currRange)) {
|
|
62732
62784
|
return 0;
|
|
62733
62785
|
}
|
|
62734
62786
|
|
|
62735
|
-
var newDomRange = new
|
|
62736
|
-
if (!newDomRange.npStart.node) throw
|
|
62737
|
-
if (!newDomRange.npEnd.node) throw
|
|
62787
|
+
var newDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.end);
|
|
62788
|
+
if (!newDomRange.npStart.node) throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
62789
|
+
if (!newDomRange.npEnd.node) throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
62738
62790
|
var aStart = newDomRange.npStart.node;
|
|
62739
62791
|
|
|
62740
62792
|
if (currRange.startMainNode) {
|
|
62741
62793
|
aStart = currRange.startMainNode;
|
|
62742
62794
|
}
|
|
62743
62795
|
|
|
62744
|
-
var nodes =
|
|
62745
|
-
var hoEditorFactory =
|
|
62796
|
+
var nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange.getSelectDomNodesForDelete */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._tmp.start, this._tmp.end);
|
|
62797
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID); // this.DeleteBaseCombineNodeContent(
|
|
62746
62798
|
// newDomRange,
|
|
62747
62799
|
// newDomRange.npEnd.node,
|
|
62748
62800
|
// aStart,
|
|
@@ -62867,7 +62919,8 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62867
62919
|
}, {
|
|
62868
62920
|
key: "spliteNode",
|
|
62869
62921
|
value: function spliteNode(Arange) {
|
|
62870
|
-
var _this = this
|
|
62922
|
+
var _this = this,
|
|
62923
|
+
_s$parentNode$downLis;
|
|
62871
62924
|
|
|
62872
62925
|
var s = Arange.npStart.node;
|
|
62873
62926
|
var e = Arange.npEnd.node;
|
|
@@ -62877,10 +62930,10 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62877
62930
|
* @param Anode
|
|
62878
62931
|
*/
|
|
62879
62932
|
|
|
62880
|
-
var hoEditorFactory =
|
|
62933
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
62881
62934
|
|
|
62882
62935
|
var forMarkNode = function forMarkNode(Anode) {
|
|
62883
|
-
if (Anode.parentNode instanceof
|
|
62936
|
+
if (Anode.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re) {
|
|
62884
62937
|
var pTINode = Anode.parentNode;
|
|
62885
62938
|
|
|
62886
62939
|
if (pTINode.isEmpty() || !pTINode.canModifyContent) {
|
|
@@ -62888,11 +62941,11 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62888
62941
|
var tmp = pTINode.previousLeaf();
|
|
62889
62942
|
|
|
62890
62943
|
if (!tmp) {
|
|
62891
|
-
throw
|
|
62944
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
62892
62945
|
}
|
|
62893
62946
|
|
|
62894
62947
|
info[0] = 0;
|
|
62895
|
-
info[1] = new
|
|
62948
|
+
info[1] = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(_this._hoEditorFactoryID, hoEditorFactory.docTree.getNodeLastPath(tmp), hoEditorFactory.docTree.getNodeLastPath(pTINode));
|
|
62896
62949
|
} else {
|
|
62897
62950
|
if (Anode == pTINode.last()) {
|
|
62898
62951
|
//递归调用删除
|
|
@@ -62918,18 +62971,20 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62918
62971
|
};
|
|
62919
62972
|
|
|
62920
62973
|
if (!(s && e)) {
|
|
62921
|
-
throw
|
|
62974
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
62922
62975
|
}
|
|
62923
62976
|
|
|
62924
62977
|
this._tmp.start = Arange.startPath;
|
|
62925
|
-
this._tmp.end = Arange.endPath;
|
|
62926
|
-
|
|
62927
|
-
|
|
62978
|
+
this._tmp.end = Arange.endPath;
|
|
62979
|
+
|
|
62980
|
+
if (s instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j && s.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && s.parentNode.inputFieldType === 1 && (_s$parentNode$downLis = s.parentNode.downListProperty.listItems) !== null && _s$parentNode$downLis !== void 0 && _s$parentNode$downLis.includes("<元素>")) {
|
|
62981
|
+
return true;
|
|
62982
|
+
}
|
|
62928
62983
|
|
|
62929
62984
|
if (s === e) {
|
|
62930
|
-
if (s instanceof
|
|
62985
|
+
if (s instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__/* .TextNode */ .R) {
|
|
62931
62986
|
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange = Arange;
|
|
62932
|
-
var tmp = new
|
|
62987
|
+
var tmp = new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_19__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.startPath, s, Arange);
|
|
62933
62988
|
|
|
62934
62989
|
this._undo.begin();
|
|
62935
62990
|
|
|
@@ -62938,7 +62993,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62938
62993
|
this._undo.commit();
|
|
62939
62994
|
|
|
62940
62995
|
this._tmp.end = hoEditorFactory.docTree.getNodeLastPath(tmp.theNode);
|
|
62941
|
-
} else if (s instanceof
|
|
62996
|
+
} else if (s instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j) {
|
|
62942
62997
|
forMarkNode(s);
|
|
62943
62998
|
|
|
62944
62999
|
if (info[0] == 0 && info[1]) {
|
|
@@ -62955,8 +63010,8 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62955
63010
|
} else {
|
|
62956
63011
|
var _tmp3 = null;
|
|
62957
63012
|
|
|
62958
|
-
if (e instanceof
|
|
62959
|
-
_tmp3 = new
|
|
63013
|
+
if (e instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__/* .TextNode */ .R && Arange.npEnd.childIndex >= 0 && Arange.npEnd.childIndex < e.getLength() - 1) {
|
|
63014
|
+
_tmp3 = new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_19__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.endPath, e, Arange);
|
|
62960
63015
|
|
|
62961
63016
|
this._undo.begin();
|
|
62962
63017
|
|
|
@@ -62965,22 +63020,22 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62965
63020
|
this._undo.commit();
|
|
62966
63021
|
}
|
|
62967
63022
|
|
|
62968
|
-
if (s instanceof
|
|
63023
|
+
if (s instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__/* .TextNode */ .R && Arange.npStart.childIndex >= 0 && Arange.npStart.childIndex < s.getLength() - 1) {
|
|
62969
63024
|
this._undo.begin();
|
|
62970
63025
|
|
|
62971
|
-
this._undo.add(new
|
|
63026
|
+
this._undo.add(new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_19__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.startPath, s, Arange));
|
|
62972
63027
|
|
|
62973
63028
|
this._undo.commit();
|
|
62974
63029
|
}
|
|
62975
63030
|
|
|
62976
|
-
if (e instanceof
|
|
63031
|
+
if (e instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j) {
|
|
62977
63032
|
forMarkNode(e);
|
|
62978
63033
|
|
|
62979
63034
|
if (info[0] == 0 && info[1]) {
|
|
62980
63035
|
this._tmp.end = info[1].endPath; // return this.spliteNode(new DomRange(this._tmp.start, this._tmp.end));
|
|
62981
63036
|
} else if ((info[0] == 1 || info[0] == 2) && info[1]) {
|
|
62982
63037
|
this._tmp.end = info[1].endPath;
|
|
62983
|
-
return this.spliteNode(new
|
|
63038
|
+
return this.spliteNode(new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.end));
|
|
62984
63039
|
}
|
|
62985
63040
|
}
|
|
62986
63041
|
|
|
@@ -62996,15 +63051,15 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62996
63051
|
}, {
|
|
62997
63052
|
key: "ParentRepaint",
|
|
62998
63053
|
value: function ParentRepaint(Anode) {
|
|
62999
|
-
if (Anode && Anode instanceof
|
|
63000
|
-
var hoEditorFactory =
|
|
63054
|
+
if (Anode && Anode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re) {
|
|
63055
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
63001
63056
|
|
|
63002
63057
|
if (Anode.childNodes.length === 2) {
|
|
63003
63058
|
var contentMarkNode = Anode.childNodes2[1];
|
|
63004
63059
|
contentMarkNode.styleIndex = Anode.childNodes[0].styleIndex;
|
|
63005
63060
|
var insertPath = hoEditorFactory.docTree.getNodeLastPath(Anode.childNodes[0]);
|
|
63006
63061
|
hoEditorFactory.undoService.begin();
|
|
63007
|
-
hoEditorFactory.undoService.add(new
|
|
63062
|
+
hoEditorFactory.undoService.add(new _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, insertPath, contentMarkNode));
|
|
63008
63063
|
hoEditorFactory.undoService.commit();
|
|
63009
63064
|
}
|
|
63010
63065
|
|
|
@@ -63029,16 +63084,16 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63029
63084
|
switch (_context.prev = _context.next) {
|
|
63030
63085
|
case 0:
|
|
63031
63086
|
this.initParam();
|
|
63032
|
-
currRange = new
|
|
63033
|
-
hoEditorFactory =
|
|
63087
|
+
currRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
|
|
63088
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
63034
63089
|
hoEditorFactory.docTree.curDomRange = currRange;
|
|
63035
63090
|
|
|
63036
|
-
if (!(hoEditorFactory.drawTree.paintStatus ===
|
|
63091
|
+
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psReview */ .Dh.psReview)) {
|
|
63037
63092
|
_context.next = 10;
|
|
63038
63093
|
break;
|
|
63039
63094
|
}
|
|
63040
63095
|
|
|
63041
|
-
if (!(currRange.npEnd.node && currRange.npEnd.node instanceof
|
|
63096
|
+
if (!(currRange.npEnd.node && currRange.npEnd.node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__/* .TextNode */ .R)) {
|
|
63042
63097
|
_context.next = 10;
|
|
63043
63098
|
break;
|
|
63044
63099
|
}
|
|
@@ -63055,7 +63110,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63055
63110
|
return _context.abrupt("return");
|
|
63056
63111
|
|
|
63057
63112
|
case 10:
|
|
63058
|
-
nodes =
|
|
63113
|
+
nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange.getSelectDomNodesForDelete */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._startPath, this._endPath); // const npFirst = hoEditorFactory.docTree.findNodePositionByPath(this._startPath);
|
|
63059
63114
|
// if (npFirst && npFirst.node) {
|
|
63060
63115
|
// //const parentNode = hoEditorFactory.docTree.getParentNode(this._startPath);
|
|
63061
63116
|
// //if (parentNode) {
|
|
@@ -63066,7 +63121,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63066
63121
|
// }
|
|
63067
63122
|
//if(nodes.length == 0) return;
|
|
63068
63123
|
|
|
63069
|
-
if (!(hoEditorFactory.drawTree.paintStatus !==
|
|
63124
|
+
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psDesign */ .Dh.psDesign && !this._isForceDelete)) {
|
|
63070
63125
|
_context.next = 33;
|
|
63071
63126
|
break;
|
|
63072
63127
|
}
|
|
@@ -63081,7 +63136,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63081
63136
|
|
|
63082
63137
|
node = nodes[n];
|
|
63083
63138
|
|
|
63084
|
-
if (!(node instanceof
|
|
63139
|
+
if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j && node.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && node.MarkNodeType === 1 && !node.parentNode.isAllowDelete)) {
|
|
63085
63140
|
_context.next = 18;
|
|
63086
63141
|
break;
|
|
63087
63142
|
}
|
|
@@ -63091,7 +63146,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63091
63146
|
return _context.abrupt("return", 0);
|
|
63092
63147
|
|
|
63093
63148
|
case 18:
|
|
63094
|
-
if (!(node instanceof
|
|
63149
|
+
if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_30__/* .ControlNode */ .w || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re)) {
|
|
63095
63150
|
_context.next = 27;
|
|
63096
63151
|
break;
|
|
63097
63152
|
}
|
|
@@ -63103,19 +63158,19 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63103
63158
|
|
|
63104
63159
|
tip = "";
|
|
63105
63160
|
|
|
63106
|
-
if (node instanceof
|
|
63161
|
+
if (node instanceof _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_31__/* .RadioAndCheckBoxNode */ .Yh && node.controlStyle === "RadioBox") {
|
|
63107
63162
|
tip = "单选框";
|
|
63108
63163
|
}
|
|
63109
63164
|
|
|
63110
|
-
if (node instanceof
|
|
63165
|
+
if (node instanceof _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_31__/* .RadioAndCheckBoxNode */ .Yh && node.controlStyle === "CheckBox") {
|
|
63111
63166
|
tip = "复选框";
|
|
63112
63167
|
}
|
|
63113
63168
|
|
|
63114
|
-
if (node instanceof
|
|
63169
|
+
if (node instanceof _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_32__/* .DateTimeNode */ .Z) {
|
|
63115
63170
|
tip = "日期时间";
|
|
63116
63171
|
}
|
|
63117
63172
|
|
|
63118
|
-
if (node instanceof
|
|
63173
|
+
if (node instanceof _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_33__/* .DownListNode */ .yF) {
|
|
63119
63174
|
tip = "下拉列表";
|
|
63120
63175
|
}
|
|
63121
63176
|
|
|
@@ -63124,7 +63179,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63124
63179
|
return _context.abrupt("return", 0);
|
|
63125
63180
|
|
|
63126
63181
|
case 27:
|
|
63127
|
-
if (!(node instanceof
|
|
63182
|
+
if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
63128
63183
|
_context.next = 30;
|
|
63129
63184
|
break;
|
|
63130
63185
|
}
|
|
@@ -63141,7 +63196,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63141
63196
|
case 33:
|
|
63142
63197
|
pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
|
|
63143
63198
|
|
|
63144
|
-
if (!(pnode && pnode instanceof
|
|
63199
|
+
if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
|
|
63145
63200
|
_context.next = 39;
|
|
63146
63201
|
break;
|
|
63147
63202
|
}
|
|
@@ -63162,7 +63217,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63162
63217
|
return _context.abrupt("return");
|
|
63163
63218
|
|
|
63164
63219
|
case 39:
|
|
63165
|
-
changeEvent = new
|
|
63220
|
+
changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_16__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_14__/* .DocAction.daUndoInsert */ .gk.daUndoInsert, currRange.startPath, ""); //FIXME:deleteRange函数完成后调用这个
|
|
63166
63221
|
// hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
|
|
63167
63222
|
|
|
63168
63223
|
if (currRange.npStart.node && currRange.npEnd.node) {
|
|
@@ -63170,7 +63225,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63170
63225
|
break;
|
|
63171
63226
|
}
|
|
63172
63227
|
|
|
63173
|
-
throw
|
|
63228
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
63174
63229
|
|
|
63175
63230
|
case 42:
|
|
63176
63231
|
// const [startPath, endPath] = DomRange.skipStartEndTablePath(
|
|
@@ -63181,7 +63236,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63181
63236
|
startPath = currRange.startPath;
|
|
63182
63237
|
endPath = currRange.endPath;
|
|
63183
63238
|
changeEvent.oldEndPath = endPath;
|
|
63184
|
-
changeEvent.oldDrawTreeLines = new
|
|
63239
|
+
changeEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_27__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(startPath, endPath);
|
|
63185
63240
|
res = this.deleteRange(currRange.endPath, currRange.startPath);
|
|
63186
63241
|
|
|
63187
63242
|
if (!(res == 1)) {
|
|
@@ -63195,7 +63250,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63195
63250
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
63196
63251
|
|
|
63197
63252
|
case 52:
|
|
63198
|
-
cgEvent = new
|
|
63253
|
+
cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_20__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.start));
|
|
63199
63254
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
63200
63255
|
|
|
63201
63256
|
case 54:
|
|
@@ -67281,8 +67336,8 @@ var dealImage = function dealImage(base64, callback, qualitys, size, img) {
|
|
|
67281
67336
|
var imgWidth, imgHeight;
|
|
67282
67337
|
|
|
67283
67338
|
newImage.onload = function () {
|
|
67284
|
-
imgWidth = newImage.
|
|
67285
|
-
imgHeight = newImage.
|
|
67339
|
+
imgWidth = newImage.naturalWidth;
|
|
67340
|
+
imgHeight = newImage.naturalHeight;
|
|
67286
67341
|
var canvas = document.createElement("canvas");
|
|
67287
67342
|
var ctx = canvas.getContext("2d");
|
|
67288
67343
|
|
|
@@ -99603,7 +99658,8 @@ out+=String.fromCharCode.apply(null,buf.subarray(i,i+ARRAY_APPLY_BATCH));}return
|
|
|
99603
99658
|
* @returns jsPDF
|
|
99604
99659
|
*/jsPDFAPI.addImage=function(){// 自定义修改 处理签名图片打印
|
|
99605
99660
|
var imageData,format,x,y,w,h,alias,compression,rotation,posX,posY;imageData=arguments[0];if(typeof arguments[1]==="number"){format=UNKNOWN;x=arguments[1];y=arguments[2];w=arguments[3];h=arguments[4];alias=arguments[5];compression=arguments[6];rotation=arguments[7];posX=arguments[8];posY=arguments[9];}else{format=arguments[1];x=arguments[2];y=arguments[3];w=arguments[4];h=arguments[5];alias=arguments[6];compression=arguments[7];rotation=arguments[8];posX=arguments[9];posY=arguments[10];}if((0,esm_typeof/* default */.Z)(imageData)==="object"&&!isDOMElement(imageData)&&"imageData"in imageData){var options=imageData;imageData=options.imageData;format=options.format||format||UNKNOWN;x=options.x||x||0;y=options.y||y||0;w=options.w||options.width||w;h=options.h||options.height||h;alias=options.alias||alias;compression=options.compression||compression;rotation=options.rotation||options.angle||rotation;}//If compression is not explicitly set, determine if we should use compression
|
|
99606
|
-
var filter=this.internal.getFilters();if(compression===undefined&&filter.indexOf("FlateEncode")!==-1){compression="SLOW";}
|
|
99661
|
+
var filter=this.internal.getFilters();if(compression===undefined&&filter.indexOf("FlateEncode")!==-1){compression="SLOW";}// 自定义修改 调整 addImage 方法的 compression值压缩图片
|
|
99662
|
+
compression='SLOW';if(isNaN(x)||isNaN(y)){throw new Error("Invalid coordinates passed to jsPDF.addImage");}// if(posX) x += posX;
|
|
99607
99663
|
// if(posY) y += posY;
|
|
99608
99664
|
initialize.call(this);var image=processImageData.call(this,imageData,format,alias,compression);writeImageToPDF.call(this,x,y,w,h,image,rotation);return this;};var processImageData=function processImageData(imageData,format,alias,compression){var result,dataAsBinaryString;if(typeof imageData==="string"&&getImageFileTypeByImageData(imageData)===UNKNOWN){imageData=unescape(imageData);var tmpImageData=convertBase64ToBinaryString(imageData,false);if(tmpImageData!==""){imageData=tmpImageData;}else{tmpImageData=jsPDFAPI.loadFile(imageData,true);if(tmpImageData!==undefined){imageData=tmpImageData;}}}if(isDOMElement(imageData)){imageData=getImageDataFromElement(imageData,format);}format=getImageFileTypeByImageData(imageData,format);if(!isImageTypeSupported(format)){throw new Error("addImage does not support files of type '"+format+"', please ensure that a plugin for '"+format+"' support is added.");}// now do the heavy lifting
|
|
99609
99665
|
if(notDefined(alias)){alias=generateAliasFromImageData(imageData);}result=checkImagesForAlias.call(this,alias);if(!result){if(supportsArrayBuffer()){// no need to convert if imageData is already uint8array
|
|
@@ -100404,7 +100460,7 @@ a=isNaN(a)?1:a;b=isNaN(b)?0:b;c=isNaN(c)?0:c;d=isNaN(d)?1:d;e=isNaN(e)?0:e;f=isN
|
|
|
100404
100460
|
if(typeof x==="undefined"){x=sx;y=sy;sx=0;sy=0;}if(typeof swidth!=="undefined"&&typeof width==="undefined"){width=swidth;height=sheight;}if(typeof swidth==="undefined"&&typeof width==="undefined"){width=imageProperties.width;height=imageProperties.height;}var decomposedTransformationMatrix=this.ctx.transform.decompose();// console.log("transform.decompose",decomposedTransformationMatrix.scale);
|
|
100405
100461
|
var angle=rad2deg(decomposedTransformationMatrix.rotate.shx);var matrix=new Matrix();matrix=matrix.multiply(decomposedTransformationMatrix.translate);matrix=matrix.multiply(decomposedTransformationMatrix.skew);matrix=matrix.multiply(decomposedTransformationMatrix.scale);if(!swidth){swidth=width;}if(!sheight){sheight=height;}var xRect;// 自定义修改 处理签名图片打印和普通图片打印
|
|
100406
100462
|
if(img.nodeName&&img.nodeName=="CANVAS"){xRect=matrix.applyToRectangle(new Rectangle(x+this.posX-sx*clipFactorX,y+this.posY-sy*clipFactorY,swidth*factorX,sheight*factorY));}else{xRect=matrix.applyToRectangle(new Rectangle(x-sx*clipFactorX,y-sy*clipFactorY,swidth*factorX,sheight*factorY));}var pageArray=getPagesByPath.call(this,xRect);var pages=[];for(var ii=0;ii<pageArray.length;ii+=1){if(pages.indexOf(pageArray[ii])===-1){pages.push(pageArray[ii]);}}sortPages(pages);var clipPath;if(this.autoPaging){var min=pages[0];var max=pages[pages.length-1];for(var i=min;i<max+1;i++){this.pdf.setPage(i);var pageWidthMinusMargins=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1];var topMargin=i===1?this.posY+this.margin[0]:this.margin[0];var firstPageHeight=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2];var pageHeightMinusMargins=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var previousPageHeightSum=i===1?0:firstPageHeight+(i-2)*pageHeightMinusMargins;if(this.ctx.clip_path.length!==0){var tmpPaths=this.path;clipPath=JSON.parse(JSON.stringify(this.ctx.clip_path));this.path=pathPositionRedo(clipPath,this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset);drawPaths.call(this,"fill",true);this.path=tmpPaths;}var tmpRect=JSON.parse(JSON.stringify(xRect));tmpRect=pathPositionRedo([tmpRect],this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset)[0];var needsClipping=(i>min||i<max)&&hasMargins.call(this);if(needsClipping){this.pdf.saveGraphicsState();this.pdf.rect(this.margin[3],this.margin[0],pageWidthMinusMargins,pageHeightMinusMargins,null).clip().discardPath();}this.pdf.addImage(img,"JPEG",tmpRect.x,tmpRect.y,tmpRect.w,tmpRect.h,null,null,angle);if(needsClipping){this.pdf.restoreGraphicsState();}}}else{if(img.nodeName&&img.nodeName=="CANVAS"){// 自定义修改
|
|
100407
|
-
this.pdf.addImage(img.toDataURL("image/
|
|
100463
|
+
this.pdf.addImage(img.toDataURL("image/png"),'',xRect.x,xRect.y,xRect.w,xRect.h);}else{// 自定义修改
|
|
100408
100464
|
this.pdf.addImage(img,"JPEG",xRect.x+this.posX,xRect.y+this.posY,xRect.w,xRect.h,null,null,angle,this.posX,this.posY);}}};var getPagesByPath=function getPagesByPath(path,pageWrapX,pageWrapY){var result=[];pageWrapX=pageWrapX||this.pdf.internal.pageSize.width;pageWrapY=pageWrapY||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var yOffset=this.posY+this.ctx.prevPageLastElemOffset;switch(path.type){default:case"mt":case"lt":result.push(Math.floor((path.y+yOffset)/pageWrapY)+1);break;case"arc":result.push(Math.floor((path.y+yOffset-path.radius)/pageWrapY)+1);result.push(Math.floor((path.y+yOffset+path.radius)/pageWrapY)+1);break;case"qct":var rectOfQuadraticCurve=getQuadraticCurveBoundary(this.ctx.lastPoint.x,this.ctx.lastPoint.y,path.x1,path.y1,path.x,path.y);result.push(Math.floor((rectOfQuadraticCurve.y+yOffset)/pageWrapY)+1);result.push(Math.floor((rectOfQuadraticCurve.y+rectOfQuadraticCurve.h+yOffset)/pageWrapY)+1);break;case"bct":var rectOfBezierCurve=getBezierCurveBoundary(this.ctx.lastPoint.x,this.ctx.lastPoint.y,path.x1,path.y1,path.x2,path.y2,path.x,path.y);result.push(Math.floor((rectOfBezierCurve.y+yOffset)/pageWrapY)+1);result.push(Math.floor((rectOfBezierCurve.y+rectOfBezierCurve.h+yOffset)/pageWrapY)+1);break;case"rect":result.push(Math.floor((path.y+yOffset)/pageWrapY)+1);result.push(Math.floor((path.y+path.h+yOffset)/pageWrapY)+1);}for(var i=0;i<result.length;i+=1){while(this.pdf.internal.getNumberOfPages()<result[i]){addPage.call(this);}}return result;};var addPage=function addPage(){var fillStyle=this.fillStyle;var strokeStyle=this.strokeStyle;var font=this.font;var lineCap=this.lineCap;var lineWidth=this.lineWidth;var lineJoin=this.lineJoin;this.pdf.addPage();this.fillStyle=fillStyle;this.strokeStyle=strokeStyle;this.font=font;this.lineCap=lineCap;this.lineWidth=lineWidth;this.lineJoin=lineJoin;};var pathPositionRedo=function pathPositionRedo(paths,x,y){for(var i=0;i<paths.length;i++){switch(paths[i].type){case"bct":paths[i].x2+=x;paths[i].y2+=y;case"qct":paths[i].x1+=x;paths[i].y1+=y;case"mt":case"lt":case"arc":default:paths[i].x+=x;paths[i].y+=y;}}return paths;};var sortPages=function sortPages(pages){return pages.sort(function(a,b){return a-b;});};var pathPreProcess=function pathPreProcess(rule,isClip){var fillStyle=this.fillStyle;var strokeStyle=this.strokeStyle;var lineCap=this.lineCap;var oldLineWidth=this.lineWidth;var lineWidth=Math.abs(oldLineWidth*this.ctx.transform.scaleX);var lineJoin=this.lineJoin;var origPath=JSON.parse(JSON.stringify(this.path));var xPath=JSON.parse(JSON.stringify(this.path));var clipPath;var tmpPath;var pages=[];for(var i=0;i<xPath.length;i++){if(typeof xPath[i].x!=="undefined"){var page=getPagesByPath.call(this,xPath[i]);for(var ii=0;ii<page.length;ii+=1){if(pages.indexOf(page[ii])===-1){pages.push(page[ii]);}}}}for(var j=0;j<pages.length;j++){while(this.pdf.internal.getNumberOfPages()<pages[j]){addPage.call(this);}}sortPages(pages);if(this.autoPaging){var min=pages[0];var max=pages[pages.length-1];for(var k=min;k<max+1;k++){this.pdf.setPage(k);this.fillStyle=fillStyle;this.strokeStyle=strokeStyle;this.lineCap=lineCap;this.lineWidth=lineWidth;this.lineJoin=lineJoin;var pageWidthMinusMargins=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1];var topMargin=k===1?this.posY+this.margin[0]:this.margin[0];var firstPageHeight=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2];var pageHeightMinusMargins=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var previousPageHeightSum=k===1?0:firstPageHeight+(k-2)*pageHeightMinusMargins;if(this.ctx.clip_path.length!==0){var tmpPaths=this.path;clipPath=JSON.parse(JSON.stringify(this.ctx.clip_path));this.path=pathPositionRedo(clipPath,this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset);drawPaths.call(this,rule,true);this.path=tmpPaths;}tmpPath=JSON.parse(JSON.stringify(origPath));this.path=pathPositionRedo(tmpPath,this.posX+this.margin[3],-previousPageHeightSum+topMargin+this.ctx.prevPageLastElemOffset);if(isClip===false||k===0){var needsClipping=(k>min||k<max)&&hasMargins.call(this);if(needsClipping){this.pdf.saveGraphicsState();this.pdf.rect(this.margin[3],this.margin[0],pageWidthMinusMargins,pageHeightMinusMargins,null).clip().discardPath();}drawPaths.call(this,rule,isClip);if(needsClipping){this.pdf.restoreGraphicsState();}}this.lineWidth=oldLineWidth;}}else{this.lineWidth=lineWidth;drawPaths.call(this,rule,isClip);this.lineWidth=oldLineWidth;}this.path=origPath;};/**
|
|
100409
100465
|
* Processes the paths
|
|
100410
100466
|
*
|
|
@@ -199102,8 +199158,8 @@ var es_function_name = __webpack_require__(68309);
|
|
|
199102
199158
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
199103
199159
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(13797);
|
|
199104
199160
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
199105
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=
|
|
199106
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.hoEditorFactoryIdList.length > 0)?_c('div',{staticClass:"ho-docs"},[_c('section',{class:_vm.defaultEditJson.isFooter ? 'ho-editor-list' : 'ho-editor-list editor-no-footer',on:{"contextmenu":function($event){return _vm.blankAreaRightClick.apply(null, arguments)}}},[_vm._l((_vm.hoEditorFactoryIdList),function(hoEditorId,index){return [_c('HoDoc',{key:index,attrs:{"docIndex":index,"hoEditorId":hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"activeDocId":_vm.activeDocId,"editJson":_vm.defaultEditJson,"isUseTipText":_vm.isUseTipText,"textStyle":_vm.textStyle},on:{"dblNodeClick":_vm.dblNodeClick,"setFontStyles":_vm.setFontStyles,"rightClickEvent":_vm.rightClickEvent,"setActiveDocIndex":_vm.setActiveDocIndex,"setActivePageIndex":_vm.setActivePageIndex,"drawPagesLengthChange":_vm.drawPagesLengthChange},scopedSlots:_vm._u([{key:"hoDocHead",fn:function(){return [_vm._t("hoHead")]},proxy:true},{key:"hoDocFoot",fn:function(){return [_vm._t("hoFoot")]},proxy:true}],null,true)})]})],2),(_vm.notUseModal)?_c('ControlModal',{attrs:{"hoEditorFactoryId":_vm.activeDocId,"controlProperty":_vm.controlProperty,"isDataSource":_vm.isDataSource,"isCustoms":_vm.isCustoms,"isTableProperty":_vm.isTableProperty,"isListStyle":_vm.isListStyle,"uploadImageParams":_vm.uploadImageParams},on:{"insertComments":_vm.insertComments,"closeControlmodal":_vm.closeControlModal},scopedSlots:_vm._u([{key:"hoTextModal",fn:function(){return [_vm._t("hoTextField")]},proxy:true},{key:"hoComment",fn:function(){return [_vm._t("hoTextComment")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlFindType)?_c('FindReplaceDialog',{attrs:{"hoEditorFactoryId":_vm.activeDocId}}):_vm._e(),(_vm.defaultEditJson.isFooter)?_c('HoFooter',{attrs:{"docProperty":_vm.defaultDocProperty,"hoEditorFactoryId":_vm.activeDocId,"drawPages":_vm.drawPageLength,"currentActivePages":_vm.activePageIndex}}):_vm._e()
|
|
199161
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=83a638fc&
|
|
199162
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.hoEditorFactoryIdList.length > 0)?_c('div',{staticClass:"ho-docs"},[_c('section',{class:_vm.defaultEditJson.isFooter ? 'ho-editor-list' : 'ho-editor-list editor-no-footer',on:{"contextmenu":function($event){return _vm.blankAreaRightClick.apply(null, arguments)}}},[_vm._l((_vm.hoEditorFactoryIdList),function(hoEditorId,index){return [_c('HoDoc',{key:index,attrs:{"docIndex":index,"hoEditorId":hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"activeDocId":_vm.activeDocId,"editJson":_vm.defaultEditJson,"isUseTipText":_vm.isUseTipText,"textStyle":_vm.textStyle},on:{"dblNodeClick":_vm.dblNodeClick,"setFontStyles":_vm.setFontStyles,"rightClickEvent":_vm.rightClickEvent,"setActiveDocIndex":_vm.setActiveDocIndex,"setActivePageIndex":_vm.setActivePageIndex,"drawPagesLengthChange":_vm.drawPagesLengthChange},scopedSlots:_vm._u([{key:"hoDocHead",fn:function(){return [_vm._t("hoHead")]},proxy:true},{key:"hoDocFoot",fn:function(){return [_vm._t("hoFoot")]},proxy:true}],null,true)})]})],2),(_vm.notUseModal)?_c('ControlModal',{attrs:{"hoEditorFactoryId":_vm.activeDocId,"controlProperty":_vm.controlProperty,"isDataSource":_vm.isDataSource,"isCustoms":_vm.isCustoms,"isTableProperty":_vm.isTableProperty,"isListStyle":_vm.isListStyle,"uploadImageParams":_vm.uploadImageParams},on:{"insertComments":_vm.insertComments,"closeControlmodal":_vm.closeControlModal},scopedSlots:_vm._u([{key:"hoTextModal",fn:function(){return [_vm._t("hoTextField")]},proxy:true},{key:"hoParagraphModal",fn:function(){return [_vm._t("hoParagraphField")]},proxy:true},{key:"hoComment",fn:function(){return [_vm._t("hoTextComment")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlFindType)?_c('FindReplaceDialog',{attrs:{"hoEditorFactoryId":_vm.activeDocId}}):_vm._e(),(_vm.defaultEditJson.isFooter)?_c('HoFooter',{attrs:{"docProperty":_vm.defaultDocProperty,"hoEditorFactoryId":_vm.activeDocId,"drawPages":_vm.drawPageLength,"currentActivePages":_vm.activePageIndex}}):_vm._e()],1):_vm._e()}
|
|
199107
199163
|
var staticRenderFns = []
|
|
199108
199164
|
|
|
199109
199165
|
|
|
@@ -200028,9 +200084,9 @@ function isPromise(obj) {
|
|
|
200028
200084
|
return obj instanceof Promise || (obj && typeof obj.then === 'function');
|
|
200029
200085
|
}
|
|
200030
200086
|
|
|
200031
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
200032
|
-
var
|
|
200033
|
-
var
|
|
200087
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=4a9748a4&
|
|
200088
|
+
var HoDocvue_type_template_id_4a9748a4_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.docClassNames},[_c('div',{ref:"editorArea",staticClass:"editors"},[(_vm.drawPageLength > 0)?_c('div',{staticClass:"editor",on:{"click":function($event){return _vm.setActiveDocIndex(_vm.hoEditorId)}}},[_vm._l((_vm.drawPageCount.count),function(pgIndex){return [_c('HoPage',{key:pgIndex - 1,attrs:{"data-id":pgIndex - 1,"index":pgIndex - 1,"docIndex":_vm.docIndex,"canvasWidth":_vm.canvasParams.width,"canvasHeight":_vm.canvasParams.height,"currentActivePages":_vm.activePageIndex.index,"hoEditorId":_vm.hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"mouseMoveNodes":_vm.mouseMoveNodes,"viewableAreaObserver":_vm.viewableAreaObserver,"inViewPages":_vm.inViewPages,"canvasHeadFootPos":_vm.canvasHeadFootPos,"poperTipPos":_vm.poperTipPos,"textStyle":_vm.textStyle,"aiInfo":_vm.aiInfo},on:{"pageReady":_vm.pageReady,"canvasRightClick":_vm.mouseRightClickEvent},scopedSlots:_vm._u([{key:"hoPageHead",fn:function(){return [_vm._t("hoDocHead")]},proxy:true},{key:"hoPageFoot",fn:function(){return [_vm._t("hoDocFoot")]},proxy:true}],null,true)})]})],2):_vm._e()]),(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper')?_c('PoperSelectModal',{attrs:{"poperType":_vm.poperType,"poperSelectList":_vm.poperSelectList,"poperPos":_vm.poperPos,"hoEditorId":_vm.hoEditorId},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('PoperMark',{directives:[{name:"show",rawName:"v-show",value:(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper' || _vm.poperType === 'table-cell-poper'),expression:"poperType === 'datePoper' || poperType === 'selectPoper' || poperType === 'table-cell-poper'"}]}),(_vm.poperType === 'table-cell-poper')?_c('TableCellPoper',{attrs:{"poperNode":_vm.nodeValue,"poperPos":_vm.poperPos},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('HoToPage',{attrs:{"hoEditorId":_vm.hoEditorId,"inViewPages":_vm.inViewPages}}),_c('PoperTipText',{attrs:{"isPoperText":_vm.isPoperText,"poperText":_vm.poperText,"poperPos":_vm.poperTextPos},on:{"poperTextClose":_vm.poperTextClose}}),_c('ul',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(function () { return (_vm.isCreateRightMenuModal = false); }),expression:"() => (isCreateRightMenuModal = false)"},{name:"show",rawName:"v-show",value:(_vm.isCreateRightMenuModal),expression:"isCreateRightMenuModal"}],ref:"rightMenuModal",staticClass:"create-right-menu"},[(_vm.showCommentsBtn)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.hideComments}},[_vm._v(_vm._s(_vm.isHideComments ? '显示' : '隐藏')+"批注")]):_vm._e(),_c('li',{staticClass:"mouse-menu-item"},[_vm._v(" 编辑器内核版本: "),_c('span',{staticStyle:{"font-size":"14px","color":"#0a77e3"}},[_vm._v("v "+_vm._s(_vm.version))])])])],1)}
|
|
200089
|
+
var HoDocvue_type_template_id_4a9748a4_staticRenderFns = []
|
|
200034
200090
|
|
|
200035
200091
|
|
|
200036
200092
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
@@ -207085,7 +207141,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
207085
207141
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207086
207142
|
var ParagraphNode = __webpack_require__(14208);
|
|
207087
207143
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207088
|
-
/* harmony default export */ var version = ('2.0.
|
|
207144
|
+
/* harmony default export */ var version = ('2.0.63');
|
|
207089
207145
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperTipText/PoperTipText.vue?vue&type=template&id=3fa4e4d3&scoped=true&
|
|
207090
207146
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShow),expression:"isShow"},{name:"click-outside",rawName:"v-click-outside",value:(_vm.handleClose),expression:"handleClose"}],ref:"poperTextNode",staticClass:"poper-text-modal animation-in",style:(_vm.posStyle),on:{"mouseenter":_vm.mouseEnter,"mouseleave":_vm.mouseLeave}},_vm._l((_vm.poperText),function(text){return _c('div',{key:text + Math.random(0, 1),staticClass:"poper-text"},[_vm._v(" "+_vm._s(text)+" ")])}),0)}
|
|
207091
207147
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -207626,6 +207682,14 @@ var HoDoc = /*#__PURE__*/function (_Vue) {
|
|
|
207626
207682
|
|
|
207627
207683
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
207628
207684
|
if (!e.clickType || e.clickType === 'move') return false;
|
|
207685
|
+
var hoParagrapghTipElementNode = document.querySelector('#ho_paragrapgh_tip');
|
|
207686
|
+
|
|
207687
|
+
if (hoParagrapghTipElementNode) {
|
|
207688
|
+
var _hoParagrapghTipEleme;
|
|
207689
|
+
|
|
207690
|
+
(_hoParagrapghTipEleme = hoParagrapghTipElementNode.parentNode) === null || _hoParagrapghTipEleme === void 0 ? void 0 : _hoParagrapghTipEleme.removeChild(hoParagrapghTipElementNode);
|
|
207691
|
+
}
|
|
207692
|
+
|
|
207629
207693
|
var node = e.node;
|
|
207630
207694
|
this.poperClose();
|
|
207631
207695
|
|
|
@@ -208017,8 +208081,8 @@ HoDoc = __decorate([vue_class_component_esm({
|
|
|
208017
208081
|
|
|
208018
208082
|
var HoDoc_component = normalizeComponent(
|
|
208019
208083
|
components_HoDocvue_type_script_lang_ts_,
|
|
208020
|
-
|
|
208021
|
-
|
|
208084
|
+
HoDocvue_type_template_id_4a9748a4_render,
|
|
208085
|
+
HoDocvue_type_template_id_4a9748a4_staticRenderFns,
|
|
208022
208086
|
false,
|
|
208023
208087
|
null,
|
|
208024
208088
|
null,
|
|
@@ -209311,6 +209375,8 @@ var NodeClickEvent = __webpack_require__(25445);
|
|
|
209311
209375
|
|
|
209312
209376
|
|
|
209313
209377
|
|
|
209378
|
+
|
|
209379
|
+
|
|
209314
209380
|
var DmouseEventType;
|
|
209315
209381
|
|
|
209316
209382
|
(function (DmouseEventType) {
|
|
@@ -209498,6 +209564,8 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
|
209498
209564
|
}, {
|
|
209499
209565
|
key: "NodeClick",
|
|
209500
209566
|
value: function NodeClick(node, moveType) {
|
|
209567
|
+
var _this = this;
|
|
209568
|
+
|
|
209501
209569
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
209502
209570
|
|
|
209503
209571
|
if (node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh && moveType === DmouseEventType.detClick) {
|
|
@@ -209506,6 +209574,44 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
|
209506
209574
|
hoEditorFactory.docTree.nodeClick(nodeClickEvent);
|
|
209507
209575
|
node.drawNodes[0].parent = drawLine;
|
|
209508
209576
|
}
|
|
209577
|
+
|
|
209578
|
+
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psDesign */.Dh.psDesign) {
|
|
209579
|
+
var paragraphNode = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]).paragraphNode;
|
|
209580
|
+
|
|
209581
|
+
if (paragraphNode && paragraphNode.customProperty) {
|
|
209582
|
+
var customProperty = paragraphNode.customProperty;
|
|
209583
|
+
var paragraphTip = ['男', '女'].includes(customProperty.sex) || customProperty.age && customProperty.age.select == '隐藏';
|
|
209584
|
+
var arr = [];
|
|
209585
|
+
|
|
209586
|
+
if (paragraphTip) {
|
|
209587
|
+
if (['男', '女'].includes(customProperty.sex)) {
|
|
209588
|
+
arr.push("\u60A3\u8005\u4E3A<span style=\"color:#f00\"> ".concat(customProperty.sex, " </span>\u6027\u65F6\uFF0C\u9690\u85CF\u5F53\u524D\u6BB5\u843D"));
|
|
209589
|
+
}
|
|
209590
|
+
|
|
209591
|
+
if (customProperty.age && customProperty.age.select == '隐藏') {
|
|
209592
|
+
arr.push("\u60A3\u8005\u5E74\u9F84\u5728<span style=\"color:#f00\"> ".concat(customProperty.age.minAge, " </span>\u5C81\u5230<span style=\"color:#f00\"> ").concat(customProperty.age.maxAge, " </span>\u4E4B\u95F4\u65F6\uFF0C\u9690\u85CF\u5F53\u524D\u6BB5\u843D"));
|
|
209593
|
+
}
|
|
209594
|
+
|
|
209595
|
+
if (arr.length > 0) {
|
|
209596
|
+
setTimeout(function () {
|
|
209597
|
+
_this.createParagraphTipHTML(hoEditorFactory.drawTree.caret, arr);
|
|
209598
|
+
}, 0);
|
|
209599
|
+
}
|
|
209600
|
+
}
|
|
209601
|
+
}
|
|
209602
|
+
}
|
|
209603
|
+
}
|
|
209604
|
+
}, {
|
|
209605
|
+
key: "createParagraphTipHTML",
|
|
209606
|
+
value: function createParagraphTipHTML(caret, text) {
|
|
209607
|
+
var _caret$cursor$parentN;
|
|
209608
|
+
|
|
209609
|
+
var tipdiv = document.createElement('div');
|
|
209610
|
+
tipdiv.id = "ho_paragrapgh_tip";
|
|
209611
|
+
tipdiv.style.left = caret.X + "px";
|
|
209612
|
+
tipdiv.style.top = caret.Y + caret.height + "px";
|
|
209613
|
+
tipdiv.innerHTML = text.join("<br />");
|
|
209614
|
+
(_caret$cursor$parentN = caret.cursor.parentNode) === null || _caret$cursor$parentN === void 0 ? void 0 : _caret$cursor$parentN.appendChild(tipdiv);
|
|
209509
209615
|
}
|
|
209510
209616
|
/**
|
|
209511
209617
|
* @param node moveNode
|
|
@@ -213061,8 +213167,14 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213061
213167
|
var insertNode = function insertNode(array, prevNode) {
|
|
213062
213168
|
var firstNode = array[0];
|
|
213063
213169
|
|
|
213064
|
-
if (firstNode instanceof ParagraphNode/* ParagraphNode */.C &&
|
|
213065
|
-
|
|
213170
|
+
if (firstNode instanceof ParagraphNode/* ParagraphNode */.C && prevNode instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
213171
|
+
if (firstNode.paraNo !== 0) {
|
|
213172
|
+
prevNode.paraNo = firstNode.paraNo;
|
|
213173
|
+
}
|
|
213174
|
+
|
|
213175
|
+
if (firstNode.customProperty) {
|
|
213176
|
+
prevNode.customProperty = firstNode.customProperty;
|
|
213177
|
+
}
|
|
213066
213178
|
}
|
|
213067
213179
|
|
|
213068
213180
|
for (var j = 1; j < array.length; j++) {
|
|
@@ -220111,7 +220223,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220111
220223
|
|
|
220112
220224
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
220113
220225
|
if (node.isTemplate) {
|
|
220114
|
-
if (node.imgSrc) {
|
|
220226
|
+
if (node.imgSrc || node.fingerPrintSrc) {
|
|
220115
220227
|
this.deleteNode(node);
|
|
220116
220228
|
setTimeout(function () {
|
|
220117
220229
|
var newcurDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
@@ -220145,7 +220257,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220145
220257
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
|
|
220146
220258
|
|
|
220147
220259
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
220148
|
-
Promise.all([hoEditorFactory.docController.insertSignNode(curDomRange,
|
|
220260
|
+
Promise.all([hoEditorFactory.docController.insertSignNode(curDomRange, 3, "患者签名", "", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220149
220261
|
setTimeout(function () {
|
|
220150
220262
|
callback && callback();
|
|
220151
220263
|
}, 0);
|
|
@@ -220839,6 +220951,26 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220839
220951
|
}
|
|
220840
220952
|
});
|
|
220841
220953
|
}
|
|
220954
|
+
}, {
|
|
220955
|
+
key: "clearEditRecords",
|
|
220956
|
+
value: function clearEditRecords() {
|
|
220957
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220958
|
+
var drawMainDocs = hoEditorFactory.drawPageTree.drawMainDocs;
|
|
220959
|
+
|
|
220960
|
+
for (var j = drawMainDocs.length - 1; j >= 0; j--) {
|
|
220961
|
+
var children = drawMainDocs[j].children;
|
|
220962
|
+
|
|
220963
|
+
for (var i = children.length - 1; i >= 0; i--) {
|
|
220964
|
+
var child = children[i];
|
|
220965
|
+
|
|
220966
|
+
if (child.name && child.name.indexOf("recordC") >= 0) {
|
|
220967
|
+
children.splice(i, 1);
|
|
220968
|
+
}
|
|
220969
|
+
}
|
|
220970
|
+
|
|
220971
|
+
hoEditorFactory.drawPageTree.updateDrawPage(j);
|
|
220972
|
+
}
|
|
220973
|
+
}
|
|
220842
220974
|
}, {
|
|
220843
220975
|
key: "updateImageSrc",
|
|
220844
220976
|
value: function updateImageSrc(node, src) {
|
|
@@ -224531,7 +224663,8 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
224531
224663
|
this._lastSaveTime = new Date(Date.now());
|
|
224532
224664
|
this._superiorSigns = []; //上级医生签名
|
|
224533
224665
|
|
|
224534
|
-
this._isEnabledGlobalColor = false;
|
|
224666
|
+
this._isEnabledGlobalColor = false; //是否启用全局颜色
|
|
224667
|
+
|
|
224535
224668
|
this._hoEditorFactoryId = id;
|
|
224536
224669
|
}
|
|
224537
224670
|
/**
|
|
@@ -225595,9 +225728,9 @@ var HoFooter_component = normalizeComponent(
|
|
|
225595
225728
|
)
|
|
225596
225729
|
|
|
225597
225730
|
/* harmony default export */ var components_HoFooter = (HoFooter_component.exports);
|
|
225598
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=template&id=
|
|
225599
|
-
var
|
|
225600
|
-
var
|
|
225731
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=template&id=36fbe7eb&
|
|
225732
|
+
var ControlModalvue_type_template_id_36fbe7eb_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"toolModals",staticClass:"control-modal",on:{"mousedown":_vm.toolModalDown}},[(_vm.controlType === 'barcode')?_c('Barcode',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'qrcode')?_c('QrCode',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'express')?_c('ExpressionForm',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"controlProperty":_vm.controlProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'text')?_c('TextDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoTextFieldModal",fn:function(){return [_vm._t("hoTextModal")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'date')?_c('DateDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoDateFieldModal",fn:function(){return [_vm._t("hoDateModal")]},proxy:true},{key:"hoTextFieldModal",fn:function(){return [_vm._t("hoTextModal")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'select')?_c('SelectDialog',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'gestation')?_c('Gestation',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table')?_c('TableProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-row')?_c('TableRowProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-cell')?_c('TableCellProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-col')?_c('TableColProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isCustoms)?_c('CustomAttributes',{attrs:{"isTableProperty":_vm.isTableProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isDataSource)?_c('DataSourceDialog',{on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isListStyle)?_c('ListSource',{on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'RadioBox' || _vm.controlType === 'CheckBox')?_c('RadioCheckbox',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId,"controlProperty":_vm.controlProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'waterset')?_c('WaterSetDialog',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'comment')?_c('CommentDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"insertComments":_vm.insertComments,"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoCommentModal",fn:function(){return [_vm._t("hoComment")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'pageInfoes')?_c('PageInfoes',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'delimiter')?_c('Delimiter',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'sign')?_c('Sign',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'upload-image')?_c('UploadImageDialog',{attrs:{"uploadImageParams":_vm.uploadImageParams,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'edit-image')?_c('CanvasImageDialog',{attrs:{"vueController":_vm.vueController,"hoEditorFactoryId":_vm.hoEditorFactoryId,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'paragraph')?_c('ParagraphDialog',{attrs:{"vueController":_vm.vueController,"controlProperty":_vm.controlProperty,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoParagraph",fn:function(){return [_vm._t("hoParagraphModal")]},proxy:true}],null,true)}):_vm._e()],1)}
|
|
225733
|
+
var ControlModalvue_type_template_id_36fbe7eb_staticRenderFns = []
|
|
225601
225734
|
|
|
225602
225735
|
|
|
225603
225736
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/selectDialog/SelectDialog.vue?vue&type=template&id=3b6d4c1e&scoped=true&
|
|
@@ -229741,6 +229874,104 @@ var CanvasImageDialog_component = normalizeComponent(
|
|
|
229741
229874
|
|
|
229742
229875
|
|
|
229743
229876
|
|
|
229877
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/paragraph/ParagraphDialog.vue?vue&type=template&id=461dae42&
|
|
229878
|
+
var ParagraphDialogvue_type_template_id_461dae42_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("段落属性设置")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_vm._t("hoParagraph")],2)]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
229879
|
+
var ParagraphDialogvue_type_template_id_461dae42_staticRenderFns = []
|
|
229880
|
+
|
|
229881
|
+
|
|
229882
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/paragraph/ParagraphDialog.vue?vue&type=script&lang=js&
|
|
229883
|
+
//
|
|
229884
|
+
//
|
|
229885
|
+
//
|
|
229886
|
+
//
|
|
229887
|
+
//
|
|
229888
|
+
//
|
|
229889
|
+
//
|
|
229890
|
+
//
|
|
229891
|
+
//
|
|
229892
|
+
//
|
|
229893
|
+
//
|
|
229894
|
+
//
|
|
229895
|
+
//
|
|
229896
|
+
//
|
|
229897
|
+
//
|
|
229898
|
+
//
|
|
229899
|
+
//
|
|
229900
|
+
//
|
|
229901
|
+
//
|
|
229902
|
+
|
|
229903
|
+
/* harmony default export */ var ParagraphDialogvue_type_script_lang_js_ = ({
|
|
229904
|
+
name: 'ParagraphDialog',
|
|
229905
|
+
props: {
|
|
229906
|
+
hoEditorFactoryId: {
|
|
229907
|
+
type: String,
|
|
229908
|
+
required: true
|
|
229909
|
+
},
|
|
229910
|
+
controlStatus: {
|
|
229911
|
+
type: String,
|
|
229912
|
+
required: true
|
|
229913
|
+
},
|
|
229914
|
+
controlProperty: {
|
|
229915
|
+
type: Object,
|
|
229916
|
+
required: true
|
|
229917
|
+
}
|
|
229918
|
+
},
|
|
229919
|
+
inject: ['getParagraphCustomProperty'],
|
|
229920
|
+
data: function data() {
|
|
229921
|
+
return {
|
|
229922
|
+
textActiveName: 'first',
|
|
229923
|
+
animationClassNames: 'control-modal-contents paragraph-modal animation-in'
|
|
229924
|
+
};
|
|
229925
|
+
},
|
|
229926
|
+
computed: {
|
|
229927
|
+
domRange: function domRange() {
|
|
229928
|
+
return this.controlProperty.domRange;
|
|
229929
|
+
}
|
|
229930
|
+
},
|
|
229931
|
+
methods: {
|
|
229932
|
+
sure: function sure() {
|
|
229933
|
+
var _hoEditorFactory$vueC;
|
|
229934
|
+
|
|
229935
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
229936
|
+
var node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(this.domRange.endPath)) === null || _hoEditorFactory$vueC === void 0 ? void 0 : _hoEditorFactory$vueC.node;
|
|
229937
|
+
var paragraphNode = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]).paragraphNode;
|
|
229938
|
+
paragraphNode.setCustomProperty(this.getParagraphCustomProperty());
|
|
229939
|
+
this.handleClose();
|
|
229940
|
+
},
|
|
229941
|
+
handleClose: function handleClose() {
|
|
229942
|
+
this.animationClassNames = 'control-modal-contents paragraph-modal animation-out';
|
|
229943
|
+
this.$emit('closed');
|
|
229944
|
+
}
|
|
229945
|
+
}
|
|
229946
|
+
});
|
|
229947
|
+
;// CONCATENATED MODULE: ./src/components/controls/paragraph/ParagraphDialog.vue?vue&type=script&lang=js&
|
|
229948
|
+
/* harmony default export */ var paragraph_ParagraphDialogvue_type_script_lang_js_ = (ParagraphDialogvue_type_script_lang_js_);
|
|
229949
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/paragraph/ParagraphDialog.vue?vue&type=style&index=0&lang=scss&
|
|
229950
|
+
// extracted by mini-css-extract-plugin
|
|
229951
|
+
|
|
229952
|
+
;// CONCATENATED MODULE: ./src/components/controls/paragraph/ParagraphDialog.vue?vue&type=style&index=0&lang=scss&
|
|
229953
|
+
|
|
229954
|
+
;// CONCATENATED MODULE: ./src/components/controls/paragraph/ParagraphDialog.vue
|
|
229955
|
+
|
|
229956
|
+
|
|
229957
|
+
|
|
229958
|
+
;
|
|
229959
|
+
|
|
229960
|
+
|
|
229961
|
+
/* normalize component */
|
|
229962
|
+
|
|
229963
|
+
var ParagraphDialog_component = normalizeComponent(
|
|
229964
|
+
paragraph_ParagraphDialogvue_type_script_lang_js_,
|
|
229965
|
+
ParagraphDialogvue_type_template_id_461dae42_render,
|
|
229966
|
+
ParagraphDialogvue_type_template_id_461dae42_staticRenderFns,
|
|
229967
|
+
false,
|
|
229968
|
+
null,
|
|
229969
|
+
null,
|
|
229970
|
+
null
|
|
229971
|
+
|
|
229972
|
+
)
|
|
229973
|
+
|
|
229974
|
+
/* harmony default export */ var ParagraphDialog = (ParagraphDialog_component.exports);
|
|
229744
229975
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/watermark/WaterSet.vue?vue&type=template&id=58b59c58&
|
|
229745
229976
|
var WaterSetvue_type_template_id_58b59c58_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents water-set animation-in"},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("水印")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"50px"}},[_vm._v("内容")]),_c('el-input',{attrs:{"type":"text","size":"mini","clearable":"","placeholder":"文本内容","maxlength":"20","show-word-limit":""},on:{"input":_vm.codeChange},model:{value:(_vm.textContent),callback:function ($$v) {_vm.textContent=$$v},expression:"textContent"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"50px"}},[_vm._v("角度")]),_c('el-radio-group',{attrs:{"size":"mini"},on:{"change":_vm.codeChange},model:{value:(_vm.rotate),callback:function ($$v) {_vm.rotate=$$v},expression:"rotate"}},[_c('el-radio-button',{attrs:{"label":0}},[_vm._v("水平")]),_c('el-radio-button',{attrs:{"label":1}},[_vm._v("倾斜")])],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"50px"}},[_vm._v("颜色")]),_c('el-color-picker',{attrs:{"show-alpha":""},on:{"change":_vm.codeChange},model:{value:(_vm.color),callback:function ($$v) {_vm.color=$$v},expression:"color"}})],1)]),_c('div',{staticClass:"section-right"},[_c('fieldset',{staticClass:"fieldset"},[_c('legend',[_vm._v("预 览")]),_c('div',{attrs:{"id":"water"}},[_c('img',{directives:[{name:"show",rawName:"v-show",value:(_vm.waterUrl),expression:"waterUrl"}],attrs:{"src":_vm.waterUrl,"alt":"背景水印"}})])])])]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
229746
229977
|
var WaterSetvue_type_template_id_58b59c58_staticRenderFns = []
|
|
@@ -231416,6 +231647,7 @@ var TableCellProperty_component = normalizeComponent(
|
|
|
231416
231647
|
|
|
231417
231648
|
|
|
231418
231649
|
|
|
231650
|
+
|
|
231419
231651
|
|
|
231420
231652
|
|
|
231421
231653
|
var ControlModal = /*#__PURE__*/function (_Mixins) {
|
|
@@ -231526,7 +231758,8 @@ ControlModal = __decorate([vue_class_component_esm({
|
|
|
231526
231758
|
PageInfoes: pageInfoes,
|
|
231527
231759
|
Delimiter: delimiter,
|
|
231528
231760
|
UploadImageDialog: upload_UploadImageDialog,
|
|
231529
|
-
CanvasImageDialog: CanvasImageDialog
|
|
231761
|
+
CanvasImageDialog: CanvasImageDialog,
|
|
231762
|
+
ParagraphDialog: ParagraphDialog
|
|
231530
231763
|
}
|
|
231531
231764
|
})], ControlModal);
|
|
231532
231765
|
/* harmony default export */ var ControlModalvue_type_script_lang_ts_ = (ControlModal);
|
|
@@ -231542,8 +231775,8 @@ ControlModal = __decorate([vue_class_component_esm({
|
|
|
231542
231775
|
;
|
|
231543
231776
|
var ControlModal_component = normalizeComponent(
|
|
231544
231777
|
controls_ControlModalvue_type_script_lang_ts_,
|
|
231545
|
-
|
|
231546
|
-
|
|
231778
|
+
ControlModalvue_type_template_id_36fbe7eb_render,
|
|
231779
|
+
ControlModalvue_type_template_id_36fbe7eb_staticRenderFns,
|
|
231547
231780
|
false,
|
|
231548
231781
|
null,
|
|
231549
231782
|
null,
|
|
@@ -232667,12 +232900,6 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
232667
232900
|
|
|
232668
232901
|
|
|
232669
232902
|
|
|
232670
|
-
|
|
232671
|
-
|
|
232672
|
-
|
|
232673
|
-
|
|
232674
|
-
|
|
232675
|
-
|
|
232676
232903
|
|
|
232677
232904
|
|
|
232678
232905
|
|
|
@@ -232799,6 +233026,11 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
232799
233026
|
value: function getCustomProperty() {
|
|
232800
233027
|
return this.customProperty;
|
|
232801
233028
|
}
|
|
233029
|
+
}, {
|
|
233030
|
+
key: "getParagraphCustomProperty",
|
|
233031
|
+
value: function getParagraphCustomProperty() {
|
|
233032
|
+
return this.paragraphCustomProperty;
|
|
233033
|
+
}
|
|
232802
233034
|
}, {
|
|
232803
233035
|
key: "textStyleChange",
|
|
232804
233036
|
value: function textStyleChange(val) {
|
|
@@ -232816,7 +233048,7 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
232816
233048
|
}, {
|
|
232817
233049
|
key: "controlTypeChange",
|
|
232818
233050
|
value: function controlTypeChange(newValue, oldValue) {
|
|
232819
|
-
if (newValue === '' && ['text', 'date', 'comment'].includes(oldValue)) {
|
|
233051
|
+
if (newValue === '' && ['text', 'date', 'comment', 'paragraph'].includes(oldValue)) {
|
|
232820
233052
|
this.$emit('closeTextModal');
|
|
232821
233053
|
this.customPropertyValue = {};
|
|
232822
233054
|
}
|
|
@@ -232998,16 +233230,17 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
232998
233230
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.activeDocId);
|
|
232999
233231
|
nodeInfoes.rightTypeIsTable = hoEditorFactory.docTree.curDomRange.normalize().inSameTable()[0];
|
|
233000
233232
|
nodeInfoes.rightPosition = rightPosition;
|
|
233233
|
+
var node = nodeInfoes.node();
|
|
233001
233234
|
|
|
233002
|
-
|
|
233235
|
+
nodeInfoes.labelNode = function () {
|
|
233003
233236
|
var labelNode = [];
|
|
233004
233237
|
var isIncludes = '';
|
|
233005
233238
|
var hoEditor = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(_this4.activeDocId);
|
|
233006
233239
|
var currentDomRange = hoEditor.vueController.getDomRange();
|
|
233007
233240
|
|
|
233008
233241
|
if (currentDomRange !== null && currentDomRange !== void 0 && currentDomRange.isEmpty) {
|
|
233009
|
-
if (
|
|
233010
|
-
labelNode.push(
|
|
233242
|
+
if (node instanceof LabelNode/* LabelNode */.P) {
|
|
233243
|
+
labelNode.push(node);
|
|
233011
233244
|
isIncludes = 'toText';
|
|
233012
233245
|
}
|
|
233013
233246
|
} else {
|
|
@@ -233030,16 +233263,20 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
233030
233263
|
labelNode: [].concat(labelNode),
|
|
233031
233264
|
isIncludes: isIncludes
|
|
233032
233265
|
};
|
|
233033
|
-
};
|
|
233266
|
+
}; // 是否是元素类型;
|
|
233034
233267
|
|
|
233035
|
-
nodeInfoes.labelNode = getLabelNode; // 是否是元素类型;
|
|
233036
233268
|
|
|
233037
233269
|
nodeInfoes.isElement = false;
|
|
233038
|
-
nodeInfoes.canShowComment = hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psEdit */.Dh.psEdit || hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psReview */.Dh.psReview || hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psReadOnly */.Dh.psReadOnly;
|
|
233039
|
-
|
|
233040
|
-
|
|
233041
|
-
|
|
233042
|
-
|
|
233270
|
+
nodeInfoes.canShowComment = hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psEdit */.Dh.psEdit || hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psReview */.Dh.psReview || hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psReadOnly */.Dh.psReadOnly; // if (
|
|
233271
|
+
// node instanceof TextInputFieldNode ||
|
|
233272
|
+
// node instanceof DateTimeNode ||
|
|
233273
|
+
// node instanceof DownListNode ||
|
|
233274
|
+
// node instanceof RadioAndCheckBoxNode ||
|
|
233275
|
+
// node instanceof MarkNode ||
|
|
233276
|
+
// (node instanceof TextNode && node.parentNode instanceof TextInputFieldNode)
|
|
233277
|
+
// ) {
|
|
233278
|
+
// nodeInfoes.isElement = true;
|
|
233279
|
+
// }
|
|
233043
233280
|
|
|
233044
233281
|
nodeInfoes.isHideComments = hoEditorFactory.isHideComments;
|
|
233045
233282
|
nodeInfoes.activePageIndex = this.activePageIndex;
|
|
@@ -233058,6 +233295,18 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
233058
233295
|
};
|
|
233059
233296
|
}
|
|
233060
233297
|
|
|
233298
|
+
nodeInfoes.getParagraphNode = function () {
|
|
233299
|
+
var _hoEditorFactory$vueC;
|
|
233300
|
+
|
|
233301
|
+
var node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(_this4.domRange.endPath)) === null || _hoEditorFactory$vueC === void 0 ? void 0 : _hoEditorFactory$vueC.node;
|
|
233302
|
+
|
|
233303
|
+
if (node) {
|
|
233304
|
+
return hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]).paragraphNode;
|
|
233305
|
+
}
|
|
233306
|
+
|
|
233307
|
+
return null;
|
|
233308
|
+
};
|
|
233309
|
+
|
|
233061
233310
|
this.$emit('rightClickEvent', nodeInfoes);
|
|
233062
233311
|
}
|
|
233063
233312
|
/**
|
|
@@ -233293,6 +233542,8 @@ __decorate([Prop()], HoDocs.prototype, "uploadImageParams", void 0);
|
|
|
233293
233542
|
|
|
233294
233543
|
__decorate([Prop()], HoDocs.prototype, "customProperty", void 0);
|
|
233295
233544
|
|
|
233545
|
+
__decorate([Prop()], HoDocs.prototype, "paragraphCustomProperty", void 0);
|
|
233546
|
+
|
|
233296
233547
|
__decorate([Prop()], HoDocs.prototype, "deleteImageNodeList", void 0);
|
|
233297
233548
|
|
|
233298
233549
|
__decorate([Prop()], HoDocs.prototype, "pageProperty", void 0);
|
|
@@ -233339,6 +233590,8 @@ __decorate([Watch('editJson')], HoDocs.prototype, "editJsonChange", null);
|
|
|
233339
233590
|
|
|
233340
233591
|
__decorate([Provide()], HoDocs.prototype, "getCustomProperty", null);
|
|
233341
233592
|
|
|
233593
|
+
__decorate([Provide()], HoDocs.prototype, "getParagraphCustomProperty", null);
|
|
233594
|
+
|
|
233342
233595
|
__decorate([Watch('textStyle', {
|
|
233343
233596
|
deep: true
|
|
233344
233597
|
})], HoDocs.prototype, "textStyleChange", null);
|