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.umd.js
CHANGED
|
@@ -11632,7 +11632,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11632
11632
|
|
|
11633
11633
|
if (index === hoEditorFactory.startPageNum && positionY) {
|
|
11634
11634
|
dShape = new createjs.Shape();
|
|
11635
|
-
dShape.graphics.beginFill('#
|
|
11635
|
+
dShape.graphics.beginFill('#FFFFFF').rect(0, 0, width, positionY).endFill();
|
|
11636
11636
|
cpage.drawDocContainer.addChild(dShape);
|
|
11637
11637
|
cpage.drawFooter.alpha = 0; // 上一页还有空余时续打起始页隐藏页脚
|
|
11638
11638
|
} // 光标处续打
|
|
@@ -11645,7 +11645,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11645
11645
|
if (index === posIndex && posY) {
|
|
11646
11646
|
_dShape = new createjs.Shape();
|
|
11647
11647
|
|
|
11648
|
-
_dShape.graphics.beginFill('#
|
|
11648
|
+
_dShape.graphics.beginFill('#FFFFFF').rect(0, 0, width, posY).endFill();
|
|
11649
11649
|
|
|
11650
11650
|
cpage.drawDocContainer.addChild(_dShape);
|
|
11651
11651
|
cpage.drawFooter.alpha = 0;
|
|
@@ -11822,7 +11822,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11822
11822
|
return link.remove();
|
|
11823
11823
|
}, 100);
|
|
11824
11824
|
} else {
|
|
11825
|
-
if (height <= 560 && hoEditorFactory.isFixedPrintToA4
|
|
11825
|
+
if (height <= 560 && hoEditorFactory.isFixedPrintToA4 === '') {
|
|
11826
11826
|
PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
|
|
11827
11827
|
}
|
|
11828
11828
|
|
|
@@ -44731,12 +44731,13 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44731
44731
|
var container = new createjs.Container();
|
|
44732
44732
|
container.x = docWidth + 15;
|
|
44733
44733
|
container.y = commentY - comment.lineHeight / 2;
|
|
44734
|
-
container.name = comment.id;
|
|
44734
|
+
container.name = "record" + comment.id;
|
|
44735
44735
|
var commentTextShape = null; // 批注内容
|
|
44736
44736
|
|
|
44737
44737
|
var commentArr = comment.commentTextWarp(commentWidth, comment.text);
|
|
44738
|
-
var text = commentArr[0];
|
|
44739
|
-
|
|
44738
|
+
var text = commentArr[0]; //const textLen = (commentArr[1] as number) > 1 ? (commentArr[1] as number) - 1 : (commentArr[1] as number);
|
|
44739
|
+
|
|
44740
|
+
var textLen = commentArr[1];
|
|
44740
44741
|
comment.lineHeight = 20 * textLen + 10;
|
|
44741
44742
|
commentTextShape = new createjs.Text(text, "12px 微软雅黑", "#666");
|
|
44742
44743
|
commentTextShape.lineWidth = commentWidth - 25;
|
|
@@ -44755,12 +44756,12 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44755
44756
|
|
|
44756
44757
|
var horizontalLine = new createjs.Shape();
|
|
44757
44758
|
horizontalLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").moveTo(nodeX, nodeY).lineTo(docWidth, nodeY);
|
|
44758
|
-
horizontalLine.name = comment.id;
|
|
44759
|
+
horizontalLine.name = "record" + comment.id;
|
|
44759
44760
|
horizontalLine.alpha = 1; //指向线
|
|
44760
44761
|
|
|
44761
44762
|
var guideLine = new createjs.Shape();
|
|
44762
44763
|
guideLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").moveTo(docWidth, nodeY).lineTo(docWidth + 15, commentY - comment.lineHeight / 4);
|
|
44763
|
-
guideLine.name = comment.id;
|
|
44764
|
+
guideLine.name = "record" + comment.id;
|
|
44764
44765
|
guideLine.alpha = 1;
|
|
44765
44766
|
container.addChild(backShape);
|
|
44766
44767
|
container.addChild(commentTextShape);
|
|
@@ -46230,7 +46231,14 @@ var DrawCombineNode = /*#__PURE__*/function (_DrawContainer) {
|
|
|
46230
46231
|
_this2.on('mouseout', function (e) {
|
|
46231
46232
|
hoEditorFactory.nodeMouseMove.setNode(_this2.node, _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_6__/* .DmouseEventType.detOut */ .p.detOut);
|
|
46232
46233
|
});
|
|
46233
|
-
}
|
|
46234
|
+
} // if(this.node && this.node.drawNodes && this.node.drawNodes[0]) {
|
|
46235
|
+
// const paragraphNode = hoEditorFactory.drawTree.getDrawLineByDNode(this._node.drawNodes[0])?.paragraphNode;
|
|
46236
|
+
// const customProperty = paragraphNode && paragraphNode.customProperty;
|
|
46237
|
+
// if(['男', '女'].includes(customProperty.sex) || (customProperty.age && customProperty.age.select == '隐藏')) {
|
|
46238
|
+
// console.log({...paragraphNode.customProperty})
|
|
46239
|
+
// }
|
|
46240
|
+
// }
|
|
46241
|
+
|
|
46234
46242
|
|
|
46235
46243
|
_this2.on('click', function (e) {
|
|
46236
46244
|
if (e.nativeEvent.button === 0) {
|
|
@@ -51284,9 +51292,9 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51284
51292
|
_this = _super.call(this, hoeditfactoryID, rootPath, node, 0);
|
|
51285
51293
|
_this._number = 0;
|
|
51286
51294
|
_this._type = 0;
|
|
51287
|
-
_this._signName =
|
|
51288
|
-
_this._imgSrc =
|
|
51289
|
-
_this._fingerPrintSrc =
|
|
51295
|
+
_this._signName = '';
|
|
51296
|
+
_this._imgSrc = '';
|
|
51297
|
+
_this._fingerPrintSrc = '';
|
|
51290
51298
|
_this._fingerPosition = 0;
|
|
51291
51299
|
_this._number = number;
|
|
51292
51300
|
_this._imgSrc = imgSrc;
|
|
@@ -51300,7 +51308,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51300
51308
|
_this._textStyle = cbStyle.getStyleKey();
|
|
51301
51309
|
|
|
51302
51310
|
if (_this.number > 0 && type === 2) {
|
|
51303
|
-
var signArr = imgSrc.split(
|
|
51311
|
+
var signArr = imgSrc.split('\n');
|
|
51304
51312
|
|
|
51305
51313
|
if (signArr.length > 1) {
|
|
51306
51314
|
_this.dHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoeditfactoryID).signHeight * signArr.length; // const textStyle = new TextStyle(hoeditfactoryID);
|
|
@@ -51319,10 +51327,10 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51319
51327
|
} //this._drawText = new DrawSimpleText('/', cbStyle.getStyleKey(), "#000000");
|
|
51320
51328
|
|
|
51321
51329
|
|
|
51322
|
-
_this._drawText = new createjs.Text(node.connectMode, _this._textStyle,
|
|
51330
|
+
_this._drawText = new createjs.Text(node.connectMode, _this._textStyle, '#000000');
|
|
51323
51331
|
|
|
51324
51332
|
if (_this.number === 0) {
|
|
51325
|
-
var dText = new createjs.Text(_this.signName, _this._textStyle,
|
|
51333
|
+
var dText = new createjs.Text(_this.signName, _this._textStyle, '#000000');
|
|
51326
51334
|
_this.dWidth = dText.getMeasuredWidth();
|
|
51327
51335
|
} else {
|
|
51328
51336
|
if (type === 1) {
|
|
@@ -51336,14 +51344,14 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51336
51344
|
}
|
|
51337
51345
|
|
|
51338
51346
|
if (type === 2) {
|
|
51339
|
-
var _signArr = imgSrc.split(
|
|
51347
|
+
var _signArr = imgSrc.split('\n');
|
|
51340
51348
|
|
|
51341
|
-
var aText = new createjs.Text(_signArr[0], _this._textStyle,
|
|
51349
|
+
var aText = new createjs.Text(_signArr[0], _this._textStyle, '#000000');
|
|
51342
51350
|
var maxWidth = aText.getMeasuredWidth();
|
|
51343
51351
|
|
|
51344
51352
|
if (_signArr.length > 1) {
|
|
51345
51353
|
for (var i = 1; i < _signArr.length; i++) {
|
|
51346
|
-
aText = new createjs.Text(_signArr[i], _this._textStyle,
|
|
51354
|
+
aText = new createjs.Text(_signArr[i], _this._textStyle, '#000000');
|
|
51347
51355
|
var aWidth = aText.getMeasuredWidth();
|
|
51348
51356
|
|
|
51349
51357
|
if (aWidth > maxWidth) {
|
|
@@ -51358,7 +51366,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51358
51366
|
_this.dWidth = maxWidth;
|
|
51359
51367
|
} else {
|
|
51360
51368
|
//this.dWidth = dText.getMeasuredWidth() + this._drawText.getMeasuredWidth();
|
|
51361
|
-
if (node.connectMode ===
|
|
51369
|
+
if (node.connectMode === '换行') {
|
|
51362
51370
|
_this.dWidth = maxWidth;
|
|
51363
51371
|
} else {
|
|
51364
51372
|
_this.dWidth = maxWidth + _this._drawText.getMeasuredWidth();
|
|
@@ -51367,7 +51375,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51367
51375
|
}
|
|
51368
51376
|
}
|
|
51369
51377
|
|
|
51370
|
-
if (imgWidth == 0 && imgHeight == 0 && imgSrc && type == 1 || type == 3) {
|
|
51378
|
+
if (imgWidth == 0 && imgHeight == 0 && (imgSrc || fingerPrintSrc) && type == 1 || type == 3) {
|
|
51371
51379
|
_this.drawWriteSignNode(node);
|
|
51372
51380
|
} else {
|
|
51373
51381
|
_this.drawSignNode();
|
|
@@ -51453,108 +51461,139 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51453
51461
|
|
|
51454
51462
|
this.clear();
|
|
51455
51463
|
var drawNode = this;
|
|
51456
|
-
var isFront = node.isFront;
|
|
51457
51464
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys.instance */ .b.instance().getFactory(drawNode.node.hoEditorFactoryID);
|
|
51458
51465
|
|
|
51459
51466
|
var drawSign = function drawSign() {
|
|
51460
51467
|
if (_this2.type === 1 || _this2.type === 3) {
|
|
51461
|
-
var image = new Image();
|
|
51462
|
-
image.src = _this2.imgSrc;
|
|
51463
51468
|
var currentLineHeight = hoEditorFactory.drawTree.caret.height;
|
|
51464
|
-
|
|
51465
|
-
|
|
51466
|
-
|
|
51467
|
-
|
|
51468
|
-
|
|
51469
|
-
_this2._dWidth =
|
|
51470
|
-
|
|
51471
|
-
|
|
51472
|
-
|
|
51473
|
-
var fingerImage = new Image();
|
|
51474
|
-
var fingerBitmap;
|
|
51475
|
-
|
|
51476
|
-
if (drawNode.fingerPrintSrc !== "") {
|
|
51469
|
+
node.type = 3;
|
|
51470
|
+
|
|
51471
|
+
if (_this2.imgSrc == '' && _this2.fingerPrintSrc) {
|
|
51472
|
+
var fingerscale = drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center ? 0.3 : 0.15;
|
|
51473
|
+
var fingerWidth = 256;
|
|
51474
|
+
_this2._dWidth = fingerWidth * fingerscale;
|
|
51475
|
+
node.imgWidth = _this2._dWidth;
|
|
51476
|
+
var fingerImage = new Image();
|
|
51477
|
+
var fingerBitmap;
|
|
51477
51478
|
fingerImage.src = _this2.fingerPrintSrc;
|
|
51478
51479
|
fingerBitmap = new createjs.Bitmap(fingerImage);
|
|
51479
|
-
drawNode.addChildAt(fingerBitmap,
|
|
51480
|
+
drawNode.addChildAt(fingerBitmap, 0);
|
|
51480
51481
|
hoEditorFactory.loadImageCount++;
|
|
51481
51482
|
|
|
51482
51483
|
fingerImage.onerror = function () {
|
|
51483
51484
|
return hoEditorFactory.loadImageCount--;
|
|
51484
51485
|
};
|
|
51485
|
-
}
|
|
51486
51486
|
|
|
51487
|
-
|
|
51487
|
+
fingerImage.onload = function () {
|
|
51488
|
+
var fingerHeight = fingerImage.naturalHeight !== 0 ? fingerImage.naturalHeight : fingerImage.height;
|
|
51489
|
+
fingerBitmap.y = -fingerHeight * fingerscale;
|
|
51490
|
+
fingerBitmap.x = 0;
|
|
51491
|
+
node.imgHeight = fingerHeight * fingerscale;
|
|
51492
|
+
_this2._dHeight = node.imgHeight;
|
|
51493
|
+
node.type = 3;
|
|
51494
|
+
fingerBitmap.setTransform(fingerBitmap.x, fingerBitmap.y, fingerscale, fingerscale);
|
|
51495
|
+
updateSign();
|
|
51496
|
+
};
|
|
51497
|
+
} else {
|
|
51498
|
+
var image = new Image();
|
|
51499
|
+
image.src = _this2.imgSrc;
|
|
51500
|
+
var bitmap = new createjs.Bitmap(image);
|
|
51501
|
+
bitmap.y = 0;
|
|
51502
|
+
bitmap.x = 0;
|
|
51488
51503
|
|
|
51489
|
-
|
|
51490
|
-
|
|
51491
|
-
|
|
51504
|
+
if (node.imgWidth) {
|
|
51505
|
+
_this2._dWidth = node.imgWidth;
|
|
51506
|
+
}
|
|
51492
51507
|
|
|
51493
|
-
|
|
51494
|
-
var hitWidth = image.naturalWidth !== 0 ? image.naturalWidth : image.width;
|
|
51495
|
-
var hitHeight = image.naturalHeight !== 0 ? image.naturalHeight : image.height;
|
|
51496
|
-
var scale = hoEditorFactory.signHeight / hitHeight < 0.4 ? 0.4 : hoEditorFactory.signHeight / hitHeight > 0.7 ? 1 : hoEditorFactory.signHeight / hitHeight;
|
|
51497
|
-
|
|
51498
|
-
if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center && hoEditorFactory.signHeight / hitHeight < 0.2) {
|
|
51499
|
-
scale = hoEditorFactory.signHeight * 1.5 / hitHeight;
|
|
51500
|
-
}
|
|
51501
|
-
|
|
51502
|
-
_this2._dWidth = hitWidth * scale;
|
|
51503
|
-
|
|
51504
|
-
if (drawNode.fingerPrintSrc !== "") {
|
|
51505
|
-
fingerImage.onload = function () {
|
|
51506
|
-
var fingerWidth = 256;
|
|
51507
|
-
var fingerHeight = fingerImage.naturalHeight !== 0 ? fingerImage.naturalHeight : fingerImage.height;
|
|
51508
|
-
var fingerscale = drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center ? 0.3 : 0.15;
|
|
51509
|
-
fingerBitmap.scaleX = fingerscale;
|
|
51510
|
-
fingerBitmap.scaleY = fingerscale;
|
|
51511
|
-
fingerBitmap.y = -fingerHeight * fingerscale;
|
|
51512
|
-
bitmap.y = -hitHeight * scale;
|
|
51513
|
-
|
|
51514
|
-
if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.left */ .d.left) {
|
|
51515
|
-
bitmap.x = fingerWidth * fingerscale + 5;
|
|
51516
|
-
fingerBitmap.x = 0;
|
|
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
|
-
} else if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center) {
|
|
51521
|
-
fingerBitmap.x = (hitWidth * scale - fingerWidth * fingerscale) / 2;
|
|
51522
|
-
fingerBitmap.y = -(fingerHeight * fingerscale + currentLineHeight) / 2;
|
|
51523
|
-
bitmap.y = -(hitHeight * scale + currentLineHeight) / 2;
|
|
51524
|
-
node.imgHeight = hoEditorFactory.signHeight;
|
|
51525
|
-
} else if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.right */ .d.right) {
|
|
51526
|
-
fingerBitmap.x = hitWidth * scale + 5;
|
|
51527
|
-
_this2._dWidth = hitWidth * scale + 5 + fingerWidth * fingerscale;
|
|
51528
|
-
node.imgHeight = Math.floor(Math.max(fingerHeight * fingerscale, hitHeight * scale));
|
|
51529
|
-
_this2._dHeight = node.imgHeight;
|
|
51530
|
-
}
|
|
51508
|
+
drawNode.addChildAt(bitmap, 0);
|
|
51531
51509
|
|
|
51532
|
-
|
|
51533
|
-
node.type = 3;
|
|
51510
|
+
var _fingerImage = new Image();
|
|
51534
51511
|
|
|
51535
|
-
|
|
51536
|
-
_this2._dWidth = 0;
|
|
51537
|
-
_this2._dHeight = 0;
|
|
51538
|
-
}
|
|
51512
|
+
var _fingerBitmap;
|
|
51539
51513
|
|
|
51540
|
-
|
|
51541
|
-
|
|
51542
|
-
|
|
51543
|
-
|
|
51514
|
+
if (drawNode.fingerPrintSrc !== '') {
|
|
51515
|
+
_fingerImage.src = _this2.fingerPrintSrc;
|
|
51516
|
+
_fingerBitmap = new createjs.Bitmap(_fingerImage);
|
|
51517
|
+
drawNode.addChildAt(_fingerBitmap, 1);
|
|
51518
|
+
hoEditorFactory.loadImageCount++;
|
|
51544
51519
|
|
|
51545
|
-
|
|
51546
|
-
|
|
51547
|
-
updateSign();
|
|
51520
|
+
_fingerImage.onerror = function () {
|
|
51521
|
+
return hoEditorFactory.loadImageCount--;
|
|
51548
51522
|
};
|
|
51549
|
-
} else {
|
|
51550
|
-
_this2._dWidth = hitWidth * scale;
|
|
51551
|
-
node.imgWidth = _this2._dWidth;
|
|
51552
|
-
node.imgHeight = hoEditorFactory.signHeight;
|
|
51553
|
-
node.type = 3;
|
|
51554
|
-
bitmap.setTransform(0, -(hitHeight * scale + currentLineHeight) / 2, scale, scale);
|
|
51555
|
-
updateSign();
|
|
51556
51523
|
}
|
|
51557
|
-
|
|
51524
|
+
|
|
51525
|
+
hoEditorFactory.loadImageCount++;
|
|
51526
|
+
|
|
51527
|
+
image.onerror = function () {
|
|
51528
|
+
return hoEditorFactory.loadImageCount--;
|
|
51529
|
+
};
|
|
51530
|
+
|
|
51531
|
+
image.onload = function () {
|
|
51532
|
+
var hitWidth = image.naturalWidth !== 0 ? image.naturalWidth : image.width;
|
|
51533
|
+
var hitHeight = image.naturalHeight !== 0 ? image.naturalHeight : image.height;
|
|
51534
|
+
var scale = hoEditorFactory.signHeight / hitHeight < 0.4 ? 0.4 : hoEditorFactory.signHeight / hitHeight > 0.7 ? 1 : hoEditorFactory.signHeight / hitHeight;
|
|
51535
|
+
|
|
51536
|
+
if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center && hoEditorFactory.signHeight / hitHeight < 0.2) {
|
|
51537
|
+
scale = hoEditorFactory.signHeight * 1.5 / hitHeight;
|
|
51538
|
+
}
|
|
51539
|
+
|
|
51540
|
+
_this2._dWidth = hitWidth * scale;
|
|
51541
|
+
|
|
51542
|
+
if (drawNode.fingerPrintSrc !== '') {
|
|
51543
|
+
_fingerImage.onload = function () {
|
|
51544
|
+
var fingerWidth = 256;
|
|
51545
|
+
var fingerHeight = _fingerImage.naturalHeight !== 0 ? _fingerImage.naturalHeight : _fingerImage.height;
|
|
51546
|
+
var fingerscale = drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center ? 0.3 : 0.15;
|
|
51547
|
+
_fingerBitmap.scaleX = fingerscale;
|
|
51548
|
+
_fingerBitmap.scaleY = fingerscale;
|
|
51549
|
+
_fingerBitmap.y = -fingerHeight * fingerscale;
|
|
51550
|
+
bitmap.y = -hitHeight * scale;
|
|
51551
|
+
|
|
51552
|
+
if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.left */ .d.left) {
|
|
51553
|
+
bitmap.x = fingerWidth * fingerscale + 5;
|
|
51554
|
+
_fingerBitmap.x = 0;
|
|
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
|
+
} else if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center) {
|
|
51559
|
+
_fingerBitmap.x = (hitWidth * scale - fingerWidth * fingerscale) / 2;
|
|
51560
|
+
_fingerBitmap.y = -(fingerHeight * fingerscale + currentLineHeight) / 2;
|
|
51561
|
+
bitmap.y = -(hitHeight * scale + currentLineHeight) / 2;
|
|
51562
|
+
node.imgHeight = hoEditorFactory.signHeight;
|
|
51563
|
+
} else if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.right */ .d.right) {
|
|
51564
|
+
_fingerBitmap.x = hitWidth * scale + 5;
|
|
51565
|
+
_this2._dWidth = hitWidth * scale + 5 + fingerWidth * fingerscale;
|
|
51566
|
+
node.imgHeight = Math.floor(Math.max(fingerHeight * fingerscale, hitHeight * scale));
|
|
51567
|
+
_this2._dHeight = node.imgHeight;
|
|
51568
|
+
}
|
|
51569
|
+
|
|
51570
|
+
node.imgWidth = _this2._dWidth;
|
|
51571
|
+
|
|
51572
|
+
if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center) {
|
|
51573
|
+
_this2._dWidth = 0;
|
|
51574
|
+
_this2._dHeight = 0;
|
|
51575
|
+
}
|
|
51576
|
+
|
|
51577
|
+
bitmap.setTransform(bitmap.x, bitmap.y, scale, scale);
|
|
51578
|
+
|
|
51579
|
+
_fingerBitmap.setTransform(_fingerBitmap.x, _fingerBitmap.y, fingerscale, fingerscale);
|
|
51580
|
+
|
|
51581
|
+
var hitArea = new createjs.Shape();
|
|
51582
|
+
hitArea.graphics.beginFill('#000000').drawRect(_fingerBitmap.x, 0, fingerWidth * fingerscale, fingerHeight * fingerscale); //这里是图片大小
|
|
51583
|
+
|
|
51584
|
+
bitmap.hitArea = hitArea;
|
|
51585
|
+
_fingerBitmap.hitArea = hitArea;
|
|
51586
|
+
updateSign();
|
|
51587
|
+
};
|
|
51588
|
+
} else {
|
|
51589
|
+
_this2._dWidth = hitWidth * scale;
|
|
51590
|
+
node.imgWidth = _this2._dWidth;
|
|
51591
|
+
node.imgHeight = hoEditorFactory.signHeight;
|
|
51592
|
+
bitmap.setTransform(0, -(hitHeight * scale + currentLineHeight) / 2, scale, scale);
|
|
51593
|
+
updateSign();
|
|
51594
|
+
}
|
|
51595
|
+
};
|
|
51596
|
+
}
|
|
51558
51597
|
}
|
|
51559
51598
|
};
|
|
51560
51599
|
|
|
@@ -51573,12 +51612,14 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51573
51612
|
} // hoEditorFactory.drawTree.updateDrawTreeFirstLine();
|
|
51574
51613
|
|
|
51575
51614
|
|
|
51576
|
-
hoEditorFactory.drawTree.rebuildArea(
|
|
51615
|
+
hoEditorFactory.drawTree.rebuildArea('main', false);
|
|
51577
51616
|
}
|
|
51578
51617
|
|
|
51579
|
-
|
|
51618
|
+
if (drawNode.imgSrc) {
|
|
51619
|
+
hoEditorFactory.loadImageCount--;
|
|
51620
|
+
}
|
|
51580
51621
|
|
|
51581
|
-
if (drawNode.fingerPrintSrc
|
|
51622
|
+
if (drawNode.fingerPrintSrc) {
|
|
51582
51623
|
hoEditorFactory.loadImageCount--;
|
|
51583
51624
|
}
|
|
51584
51625
|
};
|
|
@@ -51627,19 +51668,19 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51627
51668
|
|
|
51628
51669
|
bitmap.setTransform(0, -hoEditorFactory.signHeight, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
51629
51670
|
var hitArea = new createjs.Shape();
|
|
51630
|
-
hitArea.graphics.beginFill(
|
|
51671
|
+
hitArea.graphics.beginFill('#000').drawRect(0, 0, drawNode.dWidth, drawNode.dHeight); //这里是图片大小
|
|
51631
51672
|
|
|
51632
51673
|
bitmap.hitArea = hitArea;
|
|
51633
51674
|
|
|
51634
|
-
if (_this3.imgSrc.indexOf(
|
|
51635
|
-
var canvas = document.createElement(
|
|
51675
|
+
if (_this3.imgSrc.indexOf('data:image/') != -1 && _this3.imgSrc.indexOf('data:image/png') == -1) {
|
|
51676
|
+
var canvas = document.createElement('canvas');
|
|
51636
51677
|
canvas.width = image.naturalWidth;
|
|
51637
51678
|
canvas.height = image.naturalHeight;
|
|
51638
|
-
var ctx = canvas.getContext(
|
|
51639
|
-
ctx.fillStyle =
|
|
51679
|
+
var ctx = canvas.getContext('2d');
|
|
51680
|
+
ctx.fillStyle = '#FFFFFF';
|
|
51640
51681
|
ctx.fillRect(0, 0, image.naturalWidth, image.naturalHeight);
|
|
51641
51682
|
ctx.drawImage(image, 0, 0, image.naturalWidth, image.naturalHeight);
|
|
51642
|
-
_this3.node.imgSrc = canvas.toDataURL(
|
|
51683
|
+
_this3.node.imgSrc = canvas.toDataURL('image/png');
|
|
51643
51684
|
_this3.node.PNGToJPG = 1;
|
|
51644
51685
|
}
|
|
51645
51686
|
|
|
@@ -51666,18 +51707,18 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51666
51707
|
return hoEditorFactory.loadImageCount--;
|
|
51667
51708
|
};
|
|
51668
51709
|
} else {
|
|
51669
|
-
var signArr = _this3.imgSrc.split(
|
|
51710
|
+
var signArr = _this3.imgSrc.split('\n');
|
|
51670
51711
|
|
|
51671
51712
|
if (signArr.length === 1) {
|
|
51672
|
-
var drawText2 = new createjs.Text(_this3.imgSrc, _this3.textStyle,
|
|
51673
|
-
drawText2.textBaseline =
|
|
51674
|
-
drawText2.textAlign =
|
|
51713
|
+
var drawText2 = new createjs.Text(_this3.imgSrc, _this3.textStyle, '#000000');
|
|
51714
|
+
drawText2.textBaseline = 'alphabetic';
|
|
51715
|
+
drawText2.textAlign = 'left';
|
|
51675
51716
|
var rect = drawText2.getBounds();
|
|
51676
51717
|
|
|
51677
51718
|
if (rect) {
|
|
51678
51719
|
drawText2.y = _this3.y;
|
|
51679
51720
|
|
|
51680
|
-
if (_this3.number === 1 || isFront && _this3.number > 1 || _this3.node.connectMode ===
|
|
51721
|
+
if (_this3.number === 1 || isFront && _this3.number > 1 || _this3.node.connectMode === '换行') {
|
|
51681
51722
|
drawText2.x = 0;
|
|
51682
51723
|
} else {
|
|
51683
51724
|
drawText2.x = _this3._drawText.getMeasuredWidth();
|
|
@@ -51687,16 +51728,16 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51687
51728
|
_this3.addChild(drawText2);
|
|
51688
51729
|
} else {
|
|
51689
51730
|
for (var i = 0; i < signArr.length; i++) {
|
|
51690
|
-
var aText = new createjs.Text(signArr[i], _this3.textStyle,
|
|
51691
|
-
aText.textBaseline =
|
|
51692
|
-
aText.textAlign =
|
|
51731
|
+
var aText = new createjs.Text(signArr[i], _this3.textStyle, '#000000');
|
|
51732
|
+
aText.textBaseline = 'alphabetic';
|
|
51733
|
+
aText.textAlign = 'left';
|
|
51693
51734
|
|
|
51694
51735
|
var _rect = aText.getBounds();
|
|
51695
51736
|
|
|
51696
51737
|
if (_rect) {
|
|
51697
51738
|
aText.y = _this3.dHeight / signArr.length * (i + 1) - _this3.dHeight; //aText.y = -this.dHeight / (i + 1);
|
|
51698
51739
|
|
|
51699
|
-
if (_this3.number === 1 || isFront && _this3.number > 1 || _this3.node.connectMode ===
|
|
51740
|
+
if (_this3.number === 1 || isFront && _this3.number > 1 || _this3.node.connectMode === '换行') {
|
|
51700
51741
|
aText.x = 0;
|
|
51701
51742
|
} else {
|
|
51702
51743
|
aText.x = _this3._drawText.getMeasuredWidth();
|
|
@@ -51710,9 +51751,9 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51710
51751
|
};
|
|
51711
51752
|
|
|
51712
51753
|
if (this.number === 0) {
|
|
51713
|
-
var drawText1 = new createjs.Text(this.signName, this.textStyle,
|
|
51714
|
-
drawText1.textBaseline =
|
|
51715
|
-
drawText1.textAlign =
|
|
51754
|
+
var drawText1 = new createjs.Text(this.signName, this.textStyle, '#838586');
|
|
51755
|
+
drawText1.textBaseline = 'alphabetic';
|
|
51756
|
+
drawText1.textAlign = 'left';
|
|
51716
51757
|
var rect = drawText1.getBounds();
|
|
51717
51758
|
|
|
51718
51759
|
if (rect) {
|
|
@@ -51740,37 +51781,37 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51740
51781
|
var connectMode = this.node.connectMode;
|
|
51741
51782
|
var line = new createjs.Shape();
|
|
51742
51783
|
|
|
51743
|
-
if (connectMode ===
|
|
51784
|
+
if (connectMode === '/') {
|
|
51744
51785
|
if (this.type === 1) {
|
|
51745
51786
|
if (isFront) {
|
|
51746
|
-
line.graphics.beginStroke(
|
|
51787
|
+
line.graphics.beginStroke('#000000').moveTo(this.dWidth - this._drawText.getMeasuredWidth(), 0).lineTo(this.dWidth, -this.dHeight);
|
|
51747
51788
|
} else {
|
|
51748
|
-
line.graphics.beginStroke(
|
|
51789
|
+
line.graphics.beginStroke('#000000').moveTo(0, 0).lineTo(this._drawText.getMeasuredWidth(), -this.dHeight);
|
|
51749
51790
|
}
|
|
51750
51791
|
} else {
|
|
51751
|
-
var signArr = this.imgSrc.split(
|
|
51752
|
-
var theHeight = new createjs.Text(this.imgSrc, this.textStyle,
|
|
51792
|
+
var signArr = this.imgSrc.split('\n');
|
|
51793
|
+
var theHeight = new createjs.Text(this.imgSrc, this.textStyle, '#000000').getMeasuredHeight();
|
|
51753
51794
|
|
|
51754
51795
|
if (signArr.length > 1) {
|
|
51755
51796
|
for (var i = 1; i < signArr.length; i++) {
|
|
51756
|
-
var aText = new createjs.Text(signArr[i], this.textStyle,
|
|
51797
|
+
var aText = new createjs.Text(signArr[i], this.textStyle, '#000000');
|
|
51757
51798
|
theHeight = theHeight + aText.getMeasuredHeight();
|
|
51758
51799
|
}
|
|
51759
51800
|
}
|
|
51760
51801
|
|
|
51761
51802
|
if (isFront) {
|
|
51762
|
-
line.graphics.beginStroke(
|
|
51803
|
+
line.graphics.beginStroke('#000000').moveTo(this.dWidth - this._drawText.getMeasuredWidth(), 2).lineTo(this.dWidth, -theHeight - 2);
|
|
51763
51804
|
} else {
|
|
51764
|
-
line.graphics.beginStroke(
|
|
51805
|
+
line.graphics.beginStroke('#000000').moveTo(0, 2).lineTo(this._drawText.getMeasuredWidth(), -theHeight - 2);
|
|
51765
51806
|
}
|
|
51766
51807
|
}
|
|
51767
51808
|
|
|
51768
51809
|
this.addChildAt(line);
|
|
51769
|
-
} else if (connectMode ===
|
|
51810
|
+
} else if (connectMode === '换行') {
|
|
51770
51811
|
return;
|
|
51771
51812
|
} else {
|
|
51772
|
-
this._drawText.textBaseline =
|
|
51773
|
-
this._drawText.textAlign =
|
|
51813
|
+
this._drawText.textBaseline = 'alphabetic';
|
|
51814
|
+
this._drawText.textAlign = 'left';
|
|
51774
51815
|
|
|
51775
51816
|
var rect = this._drawText.getBounds();
|
|
51776
51817
|
|
|
@@ -54786,6 +54827,11 @@ var Caret = /*#__PURE__*/function () {
|
|
|
54786
54827
|
this.div_cursor.style.height = Math.max(val, 12) * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY + "px"; // this.updateCaret();
|
|
54787
54828
|
}
|
|
54788
54829
|
}
|
|
54830
|
+
}, {
|
|
54831
|
+
key: "X",
|
|
54832
|
+
get: function get() {
|
|
54833
|
+
return this.x;
|
|
54834
|
+
}
|
|
54789
54835
|
}, {
|
|
54790
54836
|
key: "Y",
|
|
54791
54837
|
get: function get() {
|
|
@@ -62489,7 +62535,7 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
62489
62535
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(60199);
|
|
62490
62536
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91347);
|
|
62491
62537
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(42015);
|
|
62492
|
-
/* harmony import */ var
|
|
62538
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(16296);
|
|
62493
62539
|
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66992);
|
|
62494
62540
|
/* 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__);
|
|
62495
62541
|
/* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(51532);
|
|
@@ -62504,28 +62550,34 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
62504
62550
|
/* 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__);
|
|
62505
62551
|
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(21703);
|
|
62506
62552
|
/* 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__);
|
|
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
|
|
62519
|
-
/* harmony import */ var
|
|
62520
|
-
/* harmony import */ var
|
|
62521
|
-
/* harmony import */ var
|
|
62522
|
-
/* harmony import */ var
|
|
62523
|
-
/* harmony import */ var
|
|
62524
|
-
/* harmony import */ var
|
|
62525
|
-
/* harmony import */ var
|
|
62526
|
-
/* harmony import */ var
|
|
62527
|
-
/* harmony import */ var
|
|
62528
|
-
/* harmony import */ var
|
|
62553
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(26699);
|
|
62554
|
+
/* 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__);
|
|
62555
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(32023);
|
|
62556
|
+
/* 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__);
|
|
62557
|
+
/* harmony import */ var _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(71080);
|
|
62558
|
+
/* harmony import */ var _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(27564);
|
|
62559
|
+
/* harmony import */ var _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(35657);
|
|
62560
|
+
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(27356);
|
|
62561
|
+
/* harmony import */ var _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(75438);
|
|
62562
|
+
/* harmony import */ var _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(26608);
|
|
62563
|
+
/* harmony import */ var _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(40713);
|
|
62564
|
+
/* harmony import */ var _UndoService__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(19633);
|
|
62565
|
+
/* harmony import */ var _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(69802);
|
|
62566
|
+
/* harmony import */ var _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(92730);
|
|
62567
|
+
/* harmony import */ var _events_Exception__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(8696);
|
|
62568
|
+
/* harmony import */ var _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(13880);
|
|
62569
|
+
/* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(69088);
|
|
62570
|
+
/* harmony import */ var _draw_SelectRange__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(62938);
|
|
62571
|
+
/* harmony import */ var _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(59530);
|
|
62572
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(28831);
|
|
62573
|
+
/* harmony import */ var _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(99964);
|
|
62574
|
+
/* harmony import */ var _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(89104);
|
|
62575
|
+
/* harmony import */ var _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(40253);
|
|
62576
|
+
/* harmony import */ var _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(76771);
|
|
62577
|
+
/* harmony import */ var _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(11438);
|
|
62578
|
+
/* harmony import */ var _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(78975);
|
|
62579
|
+
|
|
62580
|
+
|
|
62529
62581
|
|
|
62530
62582
|
|
|
62531
62583
|
|
|
@@ -62584,10 +62636,10 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62584
62636
|
this._startPath = startPath;
|
|
62585
62637
|
this._endPath = endPath;
|
|
62586
62638
|
this._isForceDelete = isForceDelete;
|
|
62587
|
-
this._undo = new
|
|
62639
|
+
this._undo = new _UndoService__WEBPACK_IMPORTED_MODULE_21__/* .UndoService */ .O(this._hoEditorFactoryID); //hoEditorFactory.undoService;
|
|
62588
62640
|
|
|
62589
62641
|
this._undoNodes = new Map();
|
|
62590
|
-
var aDomRange = new
|
|
62642
|
+
var aDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(hoEditorFactoryID, startPath, endPath).normalize();
|
|
62591
62643
|
|
|
62592
62644
|
var _aDomRange$inSameTabl = aDomRange.inSameTable(),
|
|
62593
62645
|
_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),
|
|
@@ -62596,10 +62648,10 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62596
62648
|
|
|
62597
62649
|
this._bSameTable = bSametable;
|
|
62598
62650
|
this._opTime = new Date();
|
|
62599
|
-
this._affectText =
|
|
62651
|
+
this._affectText = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).vueController.getRangeText(aDomRange);
|
|
62600
62652
|
}
|
|
62601
62653
|
|
|
62602
|
-
(0,
|
|
62654
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_36__/* ["default"] */ .Z)(NodesDeleteUndoUnit, [{
|
|
62603
62655
|
key: "undo",
|
|
62604
62656
|
value: function undo() {
|
|
62605
62657
|
//2.插入删除的节点
|
|
@@ -62611,12 +62663,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62611
62663
|
var arr = Array.from(this._undoNodes).reverse();
|
|
62612
62664
|
var i = 0;
|
|
62613
62665
|
var prevIsTable = false;
|
|
62614
|
-
var hoEditorFactory =
|
|
62666
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
62615
62667
|
|
|
62616
62668
|
while (i < arr.length) {
|
|
62617
62669
|
var value = arr[i];
|
|
62618
62670
|
|
|
62619
|
-
if (value[1] instanceof
|
|
62671
|
+
if (value[1] instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_26__/* .CellNode */ .D) {// (value[1] as CellNode).redrawCell(true, DocAction.daInsert);
|
|
62620
62672
|
} else {
|
|
62621
62673
|
if (prevIsTable) {
|
|
62622
62674
|
hoEditorFactory.docTree.insertNodeAfterNode(arr[i - 1][1], arr[i][1]);
|
|
@@ -62624,12 +62676,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62624
62676
|
hoEditorFactory.docTree.insertNodeAfterPath(value[0], value[1]);
|
|
62625
62677
|
}
|
|
62626
62678
|
|
|
62627
|
-
if (value[1] instanceof
|
|
62679
|
+
if (value[1] instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_28__/* .TableNode */ .Fh) {
|
|
62628
62680
|
prevIsTable = true; // value[1].clearDrawNodes();
|
|
62629
62681
|
// value[1].drawTable.drawPageTables.length = 0;
|
|
62630
62682
|
|
|
62631
62683
|
var np = hoEditorFactory.docTree.findNodePositionByPath(value[0]);
|
|
62632
|
-
if (np && np.node && np.node instanceof
|
|
62684
|
+
if (np && np.node && np.node instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_25__/* .ParagraphNode */ .C) value[1].drawTable.paragraphNode = np.node;
|
|
62633
62685
|
} else {
|
|
62634
62686
|
prevIsTable = false;
|
|
62635
62687
|
}
|
|
@@ -62639,7 +62691,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62639
62691
|
}
|
|
62640
62692
|
|
|
62641
62693
|
var aendPaht = hoEditorFactory.docTree.getNodeLastPath(arr[arr.length - 1][1]);
|
|
62642
|
-
var changeEvent = new
|
|
62694
|
+
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);
|
|
62643
62695
|
hoEditorFactory.docTree.change(changeEvent); //3.合并拆分节点
|
|
62644
62696
|
|
|
62645
62697
|
while (!this._undo.atBottom()) {
|
|
@@ -62667,9 +62719,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62667
62719
|
//选中范围变化事件
|
|
62668
62720
|
|
|
62669
62721
|
|
|
62670
|
-
var newRange = new
|
|
62722
|
+
var newRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
|
|
62671
62723
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
62672
|
-
var cgEvent = new
|
|
62724
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_20__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, newRange);
|
|
62673
62725
|
hoEditorFactory.docTree.selectChange(cgEvent); //光标定位
|
|
62674
62726
|
|
|
62675
62727
|
hoEditorFactory.drawTree.moveCaretToPath(newRange.endPath);
|
|
@@ -62688,7 +62740,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62688
62740
|
}, {
|
|
62689
62741
|
key: "MoveCaret",
|
|
62690
62742
|
value: function MoveCaret(path) {
|
|
62691
|
-
|
|
62743
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.moveCaretToPath(path);
|
|
62692
62744
|
}
|
|
62693
62745
|
/**
|
|
62694
62746
|
* @description 返回前面一个node的开始结束选中范围 文本节点时候返回文本中单个文字的选中范围
|
|
@@ -62699,30 +62751,30 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62699
62751
|
key: "getPrevNodeDomRange",
|
|
62700
62752
|
value: function getPrevNodeDomRange(Anode) {
|
|
62701
62753
|
var spath;
|
|
62702
|
-
var hoEditorFactory =
|
|
62754
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
62703
62755
|
var prev = Anode.prevSibling();
|
|
62704
62756
|
|
|
62705
62757
|
if (!prev) {
|
|
62706
|
-
throw
|
|
62758
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
62707
62759
|
}
|
|
62708
62760
|
|
|
62709
62761
|
var epath = hoEditorFactory.docTree.getNodeLastPath(prev);
|
|
62710
62762
|
|
|
62711
|
-
if (prev instanceof
|
|
62763
|
+
if (prev instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__/* .TextNode */ .R) {
|
|
62712
62764
|
spath = prev.prevPath(epath);
|
|
62713
|
-
} else if (prev instanceof
|
|
62765
|
+
} else if (prev instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_25__/* .ParagraphNode */ .C) {
|
|
62714
62766
|
spath = epath;
|
|
62715
62767
|
} else {
|
|
62716
62768
|
var prev1 = prev.previousLeaf();
|
|
62717
62769
|
|
|
62718
62770
|
if (!prev1) {
|
|
62719
|
-
throw
|
|
62771
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
62720
62772
|
}
|
|
62721
62773
|
|
|
62722
62774
|
spath = hoEditorFactory.docTree.getNodeLastPath(prev1);
|
|
62723
62775
|
}
|
|
62724
62776
|
|
|
62725
|
-
return new
|
|
62777
|
+
return new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, spath, epath);
|
|
62726
62778
|
}
|
|
62727
62779
|
/**
|
|
62728
62780
|
*
|
|
@@ -62736,23 +62788,23 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62736
62788
|
}, {
|
|
62737
62789
|
key: "deleteRange",
|
|
62738
62790
|
value: function deleteRange(endpath, startpath) {
|
|
62739
|
-
var currRange = new
|
|
62791
|
+
var currRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, startpath, endpath).normalize(); //拆分更新节点,更新删除范围 this._tmp
|
|
62740
62792
|
|
|
62741
62793
|
if (!this.spliteNode(currRange)) {
|
|
62742
62794
|
return 0;
|
|
62743
62795
|
}
|
|
62744
62796
|
|
|
62745
|
-
var newDomRange = new
|
|
62746
|
-
if (!newDomRange.npStart.node) throw
|
|
62747
|
-
if (!newDomRange.npEnd.node) throw
|
|
62797
|
+
var newDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.end);
|
|
62798
|
+
if (!newDomRange.npStart.node) throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
62799
|
+
if (!newDomRange.npEnd.node) throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
62748
62800
|
var aStart = newDomRange.npStart.node;
|
|
62749
62801
|
|
|
62750
62802
|
if (currRange.startMainNode) {
|
|
62751
62803
|
aStart = currRange.startMainNode;
|
|
62752
62804
|
}
|
|
62753
62805
|
|
|
62754
|
-
var nodes =
|
|
62755
|
-
var hoEditorFactory =
|
|
62806
|
+
var nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange.getSelectDomNodesForDelete */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._tmp.start, this._tmp.end);
|
|
62807
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID); // this.DeleteBaseCombineNodeContent(
|
|
62756
62808
|
// newDomRange,
|
|
62757
62809
|
// newDomRange.npEnd.node,
|
|
62758
62810
|
// aStart,
|
|
@@ -62877,7 +62929,8 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62877
62929
|
}, {
|
|
62878
62930
|
key: "spliteNode",
|
|
62879
62931
|
value: function spliteNode(Arange) {
|
|
62880
|
-
var _this = this
|
|
62932
|
+
var _this = this,
|
|
62933
|
+
_s$parentNode$downLis;
|
|
62881
62934
|
|
|
62882
62935
|
var s = Arange.npStart.node;
|
|
62883
62936
|
var e = Arange.npEnd.node;
|
|
@@ -62887,10 +62940,10 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62887
62940
|
* @param Anode
|
|
62888
62941
|
*/
|
|
62889
62942
|
|
|
62890
|
-
var hoEditorFactory =
|
|
62943
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
62891
62944
|
|
|
62892
62945
|
var forMarkNode = function forMarkNode(Anode) {
|
|
62893
|
-
if (Anode.parentNode instanceof
|
|
62946
|
+
if (Anode.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re) {
|
|
62894
62947
|
var pTINode = Anode.parentNode;
|
|
62895
62948
|
|
|
62896
62949
|
if (pTINode.isEmpty() || !pTINode.canModifyContent) {
|
|
@@ -62898,11 +62951,11 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62898
62951
|
var tmp = pTINode.previousLeaf();
|
|
62899
62952
|
|
|
62900
62953
|
if (!tmp) {
|
|
62901
|
-
throw
|
|
62954
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
62902
62955
|
}
|
|
62903
62956
|
|
|
62904
62957
|
info[0] = 0;
|
|
62905
|
-
info[1] = new
|
|
62958
|
+
info[1] = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(_this._hoEditorFactoryID, hoEditorFactory.docTree.getNodeLastPath(tmp), hoEditorFactory.docTree.getNodeLastPath(pTINode));
|
|
62906
62959
|
} else {
|
|
62907
62960
|
if (Anode == pTINode.last()) {
|
|
62908
62961
|
//递归调用删除
|
|
@@ -62928,18 +62981,20 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62928
62981
|
};
|
|
62929
62982
|
|
|
62930
62983
|
if (!(s && e)) {
|
|
62931
|
-
throw
|
|
62984
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
62932
62985
|
}
|
|
62933
62986
|
|
|
62934
62987
|
this._tmp.start = Arange.startPath;
|
|
62935
|
-
this._tmp.end = Arange.endPath;
|
|
62936
|
-
|
|
62937
|
-
|
|
62988
|
+
this._tmp.end = Arange.endPath;
|
|
62989
|
+
|
|
62990
|
+
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("<元素>")) {
|
|
62991
|
+
return true;
|
|
62992
|
+
}
|
|
62938
62993
|
|
|
62939
62994
|
if (s === e) {
|
|
62940
|
-
if (s instanceof
|
|
62995
|
+
if (s instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__/* .TextNode */ .R) {
|
|
62941
62996
|
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange = Arange;
|
|
62942
|
-
var tmp = new
|
|
62997
|
+
var tmp = new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_19__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.startPath, s, Arange);
|
|
62943
62998
|
|
|
62944
62999
|
this._undo.begin();
|
|
62945
63000
|
|
|
@@ -62948,7 +63003,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62948
63003
|
this._undo.commit();
|
|
62949
63004
|
|
|
62950
63005
|
this._tmp.end = hoEditorFactory.docTree.getNodeLastPath(tmp.theNode);
|
|
62951
|
-
} else if (s instanceof
|
|
63006
|
+
} else if (s instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j) {
|
|
62952
63007
|
forMarkNode(s);
|
|
62953
63008
|
|
|
62954
63009
|
if (info[0] == 0 && info[1]) {
|
|
@@ -62965,8 +63020,8 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62965
63020
|
} else {
|
|
62966
63021
|
var _tmp3 = null;
|
|
62967
63022
|
|
|
62968
|
-
if (e instanceof
|
|
62969
|
-
_tmp3 = new
|
|
63023
|
+
if (e instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__/* .TextNode */ .R && Arange.npEnd.childIndex >= 0 && Arange.npEnd.childIndex < e.getLength() - 1) {
|
|
63024
|
+
_tmp3 = new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_19__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.endPath, e, Arange);
|
|
62970
63025
|
|
|
62971
63026
|
this._undo.begin();
|
|
62972
63027
|
|
|
@@ -62975,22 +63030,22 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62975
63030
|
this._undo.commit();
|
|
62976
63031
|
}
|
|
62977
63032
|
|
|
62978
|
-
if (s instanceof
|
|
63033
|
+
if (s instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__/* .TextNode */ .R && Arange.npStart.childIndex >= 0 && Arange.npStart.childIndex < s.getLength() - 1) {
|
|
62979
63034
|
this._undo.begin();
|
|
62980
63035
|
|
|
62981
|
-
this._undo.add(new
|
|
63036
|
+
this._undo.add(new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_19__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.startPath, s, Arange));
|
|
62982
63037
|
|
|
62983
63038
|
this._undo.commit();
|
|
62984
63039
|
}
|
|
62985
63040
|
|
|
62986
|
-
if (e instanceof
|
|
63041
|
+
if (e instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j) {
|
|
62987
63042
|
forMarkNode(e);
|
|
62988
63043
|
|
|
62989
63044
|
if (info[0] == 0 && info[1]) {
|
|
62990
63045
|
this._tmp.end = info[1].endPath; // return this.spliteNode(new DomRange(this._tmp.start, this._tmp.end));
|
|
62991
63046
|
} else if ((info[0] == 1 || info[0] == 2) && info[1]) {
|
|
62992
63047
|
this._tmp.end = info[1].endPath;
|
|
62993
|
-
return this.spliteNode(new
|
|
63048
|
+
return this.spliteNode(new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.end));
|
|
62994
63049
|
}
|
|
62995
63050
|
}
|
|
62996
63051
|
|
|
@@ -63006,15 +63061,15 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63006
63061
|
}, {
|
|
63007
63062
|
key: "ParentRepaint",
|
|
63008
63063
|
value: function ParentRepaint(Anode) {
|
|
63009
|
-
if (Anode && Anode instanceof
|
|
63010
|
-
var hoEditorFactory =
|
|
63064
|
+
if (Anode && Anode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re) {
|
|
63065
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
63011
63066
|
|
|
63012
63067
|
if (Anode.childNodes.length === 2) {
|
|
63013
63068
|
var contentMarkNode = Anode.childNodes2[1];
|
|
63014
63069
|
contentMarkNode.styleIndex = Anode.childNodes[0].styleIndex;
|
|
63015
63070
|
var insertPath = hoEditorFactory.docTree.getNodeLastPath(Anode.childNodes[0]);
|
|
63016
63071
|
hoEditorFactory.undoService.begin();
|
|
63017
|
-
hoEditorFactory.undoService.add(new
|
|
63072
|
+
hoEditorFactory.undoService.add(new _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, insertPath, contentMarkNode));
|
|
63018
63073
|
hoEditorFactory.undoService.commit();
|
|
63019
63074
|
}
|
|
63020
63075
|
|
|
@@ -63039,16 +63094,16 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63039
63094
|
switch (_context.prev = _context.next) {
|
|
63040
63095
|
case 0:
|
|
63041
63096
|
this.initParam();
|
|
63042
|
-
currRange = new
|
|
63043
|
-
hoEditorFactory =
|
|
63097
|
+
currRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
|
|
63098
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
63044
63099
|
hoEditorFactory.docTree.curDomRange = currRange;
|
|
63045
63100
|
|
|
63046
|
-
if (!(hoEditorFactory.drawTree.paintStatus ===
|
|
63101
|
+
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psReview */ .Dh.psReview)) {
|
|
63047
63102
|
_context.next = 10;
|
|
63048
63103
|
break;
|
|
63049
63104
|
}
|
|
63050
63105
|
|
|
63051
|
-
if (!(currRange.npEnd.node && currRange.npEnd.node instanceof
|
|
63106
|
+
if (!(currRange.npEnd.node && currRange.npEnd.node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__/* .TextNode */ .R)) {
|
|
63052
63107
|
_context.next = 10;
|
|
63053
63108
|
break;
|
|
63054
63109
|
}
|
|
@@ -63065,7 +63120,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63065
63120
|
return _context.abrupt("return");
|
|
63066
63121
|
|
|
63067
63122
|
case 10:
|
|
63068
|
-
nodes =
|
|
63123
|
+
nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange.getSelectDomNodesForDelete */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._startPath, this._endPath); // const npFirst = hoEditorFactory.docTree.findNodePositionByPath(this._startPath);
|
|
63069
63124
|
// if (npFirst && npFirst.node) {
|
|
63070
63125
|
// //const parentNode = hoEditorFactory.docTree.getParentNode(this._startPath);
|
|
63071
63126
|
// //if (parentNode) {
|
|
@@ -63076,7 +63131,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63076
63131
|
// }
|
|
63077
63132
|
//if(nodes.length == 0) return;
|
|
63078
63133
|
|
|
63079
|
-
if (!(hoEditorFactory.drawTree.paintStatus !==
|
|
63134
|
+
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psDesign */ .Dh.psDesign && !this._isForceDelete)) {
|
|
63080
63135
|
_context.next = 33;
|
|
63081
63136
|
break;
|
|
63082
63137
|
}
|
|
@@ -63091,7 +63146,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63091
63146
|
|
|
63092
63147
|
node = nodes[n];
|
|
63093
63148
|
|
|
63094
|
-
if (!(node instanceof
|
|
63149
|
+
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)) {
|
|
63095
63150
|
_context.next = 18;
|
|
63096
63151
|
break;
|
|
63097
63152
|
}
|
|
@@ -63101,7 +63156,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63101
63156
|
return _context.abrupt("return", 0);
|
|
63102
63157
|
|
|
63103
63158
|
case 18:
|
|
63104
|
-
if (!(node instanceof
|
|
63159
|
+
if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_30__/* .ControlNode */ .w || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re)) {
|
|
63105
63160
|
_context.next = 27;
|
|
63106
63161
|
break;
|
|
63107
63162
|
}
|
|
@@ -63113,19 +63168,19 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63113
63168
|
|
|
63114
63169
|
tip = "";
|
|
63115
63170
|
|
|
63116
|
-
if (node instanceof
|
|
63171
|
+
if (node instanceof _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_31__/* .RadioAndCheckBoxNode */ .Yh && node.controlStyle === "RadioBox") {
|
|
63117
63172
|
tip = "单选框";
|
|
63118
63173
|
}
|
|
63119
63174
|
|
|
63120
|
-
if (node instanceof
|
|
63175
|
+
if (node instanceof _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_31__/* .RadioAndCheckBoxNode */ .Yh && node.controlStyle === "CheckBox") {
|
|
63121
63176
|
tip = "复选框";
|
|
63122
63177
|
}
|
|
63123
63178
|
|
|
63124
|
-
if (node instanceof
|
|
63179
|
+
if (node instanceof _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_32__/* .DateTimeNode */ .Z) {
|
|
63125
63180
|
tip = "日期时间";
|
|
63126
63181
|
}
|
|
63127
63182
|
|
|
63128
|
-
if (node instanceof
|
|
63183
|
+
if (node instanceof _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_33__/* .DownListNode */ .yF) {
|
|
63129
63184
|
tip = "下拉列表";
|
|
63130
63185
|
}
|
|
63131
63186
|
|
|
@@ -63134,7 +63189,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63134
63189
|
return _context.abrupt("return", 0);
|
|
63135
63190
|
|
|
63136
63191
|
case 27:
|
|
63137
|
-
if (!(node instanceof
|
|
63192
|
+
if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
63138
63193
|
_context.next = 30;
|
|
63139
63194
|
break;
|
|
63140
63195
|
}
|
|
@@ -63151,7 +63206,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63151
63206
|
case 33:
|
|
63152
63207
|
pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
|
|
63153
63208
|
|
|
63154
|
-
if (!(pnode && pnode instanceof
|
|
63209
|
+
if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
|
|
63155
63210
|
_context.next = 39;
|
|
63156
63211
|
break;
|
|
63157
63212
|
}
|
|
@@ -63172,7 +63227,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63172
63227
|
return _context.abrupt("return");
|
|
63173
63228
|
|
|
63174
63229
|
case 39:
|
|
63175
|
-
changeEvent = new
|
|
63230
|
+
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函数完成后调用这个
|
|
63176
63231
|
// hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
|
|
63177
63232
|
|
|
63178
63233
|
if (currRange.npStart.node && currRange.npEnd.node) {
|
|
@@ -63180,7 +63235,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63180
63235
|
break;
|
|
63181
63236
|
}
|
|
63182
63237
|
|
|
63183
|
-
throw
|
|
63238
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
63184
63239
|
|
|
63185
63240
|
case 42:
|
|
63186
63241
|
// const [startPath, endPath] = DomRange.skipStartEndTablePath(
|
|
@@ -63191,7 +63246,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63191
63246
|
startPath = currRange.startPath;
|
|
63192
63247
|
endPath = currRange.endPath;
|
|
63193
63248
|
changeEvent.oldEndPath = endPath;
|
|
63194
|
-
changeEvent.oldDrawTreeLines = new
|
|
63249
|
+
changeEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_27__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(startPath, endPath);
|
|
63195
63250
|
res = this.deleteRange(currRange.endPath, currRange.startPath);
|
|
63196
63251
|
|
|
63197
63252
|
if (!(res == 1)) {
|
|
@@ -63205,7 +63260,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63205
63260
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
63206
63261
|
|
|
63207
63262
|
case 52:
|
|
63208
|
-
cgEvent = new
|
|
63263
|
+
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));
|
|
63209
63264
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
63210
63265
|
|
|
63211
63266
|
case 54:
|
|
@@ -67291,8 +67346,8 @@ var dealImage = function dealImage(base64, callback, qualitys, size, img) {
|
|
|
67291
67346
|
var imgWidth, imgHeight;
|
|
67292
67347
|
|
|
67293
67348
|
newImage.onload = function () {
|
|
67294
|
-
imgWidth = newImage.
|
|
67295
|
-
imgHeight = newImage.
|
|
67349
|
+
imgWidth = newImage.naturalWidth;
|
|
67350
|
+
imgHeight = newImage.naturalHeight;
|
|
67296
67351
|
var canvas = document.createElement("canvas");
|
|
67297
67352
|
var ctx = canvas.getContext("2d");
|
|
67298
67353
|
|
|
@@ -99613,7 +99668,8 @@ out+=String.fromCharCode.apply(null,buf.subarray(i,i+ARRAY_APPLY_BATCH));}return
|
|
|
99613
99668
|
* @returns jsPDF
|
|
99614
99669
|
*/jsPDFAPI.addImage=function(){// 自定义修改 处理签名图片打印
|
|
99615
99670
|
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
|
|
99616
|
-
var filter=this.internal.getFilters();if(compression===undefined&&filter.indexOf("FlateEncode")!==-1){compression="SLOW";}
|
|
99671
|
+
var filter=this.internal.getFilters();if(compression===undefined&&filter.indexOf("FlateEncode")!==-1){compression="SLOW";}// 自定义修改 调整 addImage 方法的 compression值压缩图片
|
|
99672
|
+
compression='SLOW';if(isNaN(x)||isNaN(y)){throw new Error("Invalid coordinates passed to jsPDF.addImage");}// if(posX) x += posX;
|
|
99617
99673
|
// if(posY) y += posY;
|
|
99618
99674
|
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
|
|
99619
99675
|
if(notDefined(alias)){alias=generateAliasFromImageData(imageData);}result=checkImagesForAlias.call(this,alias);if(!result){if(supportsArrayBuffer()){// no need to convert if imageData is already uint8array
|
|
@@ -100414,7 +100470,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
|
|
|
100414
100470
|
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);
|
|
100415
100471
|
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;// 自定义修改 处理签名图片打印和普通图片打印
|
|
100416
100472
|
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"){// 自定义修改
|
|
100417
|
-
this.pdf.addImage(img.toDataURL("image/
|
|
100473
|
+
this.pdf.addImage(img.toDataURL("image/png"),'',xRect.x,xRect.y,xRect.w,xRect.h);}else{// 自定义修改
|
|
100418
100474
|
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;};/**
|
|
100419
100475
|
* Processes the paths
|
|
100420
100476
|
*
|
|
@@ -199112,8 +199168,8 @@ var es_function_name = __webpack_require__(68309);
|
|
|
199112
199168
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
199113
199169
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(77203);
|
|
199114
199170
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
199115
|
-
;// 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=
|
|
199116
|
-
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()
|
|
199171
|
+
;// 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&
|
|
199172
|
+
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()}
|
|
199117
199173
|
var staticRenderFns = []
|
|
199118
199174
|
|
|
199119
199175
|
|
|
@@ -200038,9 +200094,9 @@ function isPromise(obj) {
|
|
|
200038
200094
|
return obj instanceof Promise || (obj && typeof obj.then === 'function');
|
|
200039
200095
|
}
|
|
200040
200096
|
|
|
200041
|
-
;// 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=
|
|
200042
|
-
var
|
|
200043
|
-
var
|
|
200097
|
+
;// 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&
|
|
200098
|
+
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)}
|
|
200099
|
+
var HoDocvue_type_template_id_4a9748a4_staticRenderFns = []
|
|
200044
200100
|
|
|
200045
200101
|
|
|
200046
200102
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
@@ -207095,7 +207151,7 @@ var SignNode = __webpack_require__(78975);
|
|
|
207095
207151
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207096
207152
|
var ParagraphNode = __webpack_require__(13880);
|
|
207097
207153
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207098
|
-
/* harmony default export */ var version = ('2.0.
|
|
207154
|
+
/* harmony default export */ var version = ('2.0.63');
|
|
207099
207155
|
;// 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&
|
|
207100
207156
|
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)}
|
|
207101
207157
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -207636,6 +207692,14 @@ var HoDoc = /*#__PURE__*/function (_Vue) {
|
|
|
207636
207692
|
|
|
207637
207693
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
207638
207694
|
if (!e.clickType || e.clickType === 'move') return false;
|
|
207695
|
+
var hoParagrapghTipElementNode = document.querySelector('#ho_paragrapgh_tip');
|
|
207696
|
+
|
|
207697
|
+
if (hoParagrapghTipElementNode) {
|
|
207698
|
+
var _hoParagrapghTipEleme;
|
|
207699
|
+
|
|
207700
|
+
(_hoParagrapghTipEleme = hoParagrapghTipElementNode.parentNode) === null || _hoParagrapghTipEleme === void 0 ? void 0 : _hoParagrapghTipEleme.removeChild(hoParagrapghTipElementNode);
|
|
207701
|
+
}
|
|
207702
|
+
|
|
207639
207703
|
var node = e.node;
|
|
207640
207704
|
this.poperClose();
|
|
207641
207705
|
|
|
@@ -208027,8 +208091,8 @@ HoDoc = __decorate([vue_class_component_esm({
|
|
|
208027
208091
|
|
|
208028
208092
|
var HoDoc_component = normalizeComponent(
|
|
208029
208093
|
components_HoDocvue_type_script_lang_ts_,
|
|
208030
|
-
|
|
208031
|
-
|
|
208094
|
+
HoDocvue_type_template_id_4a9748a4_render,
|
|
208095
|
+
HoDocvue_type_template_id_4a9748a4_staticRenderFns,
|
|
208032
208096
|
false,
|
|
208033
208097
|
null,
|
|
208034
208098
|
null,
|
|
@@ -209321,6 +209385,8 @@ var NodeClickEvent = __webpack_require__(17750);
|
|
|
209321
209385
|
|
|
209322
209386
|
|
|
209323
209387
|
|
|
209388
|
+
|
|
209389
|
+
|
|
209324
209390
|
var DmouseEventType;
|
|
209325
209391
|
|
|
209326
209392
|
(function (DmouseEventType) {
|
|
@@ -209508,6 +209574,8 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
|
209508
209574
|
}, {
|
|
209509
209575
|
key: "NodeClick",
|
|
209510
209576
|
value: function NodeClick(node, moveType) {
|
|
209577
|
+
var _this = this;
|
|
209578
|
+
|
|
209511
209579
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
209512
209580
|
|
|
209513
209581
|
if (node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh && moveType === DmouseEventType.detClick) {
|
|
@@ -209516,6 +209584,44 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
|
209516
209584
|
hoEditorFactory.docTree.nodeClick(nodeClickEvent);
|
|
209517
209585
|
node.drawNodes[0].parent = drawLine;
|
|
209518
209586
|
}
|
|
209587
|
+
|
|
209588
|
+
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psDesign */.Dh.psDesign) {
|
|
209589
|
+
var paragraphNode = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]).paragraphNode;
|
|
209590
|
+
|
|
209591
|
+
if (paragraphNode && paragraphNode.customProperty) {
|
|
209592
|
+
var customProperty = paragraphNode.customProperty;
|
|
209593
|
+
var paragraphTip = ['男', '女'].includes(customProperty.sex) || customProperty.age && customProperty.age.select == '隐藏';
|
|
209594
|
+
var arr = [];
|
|
209595
|
+
|
|
209596
|
+
if (paragraphTip) {
|
|
209597
|
+
if (['男', '女'].includes(customProperty.sex)) {
|
|
209598
|
+
arr.push("\u60A3\u8005\u4E3A<span style=\"color:#f00\"> ".concat(customProperty.sex, " </span>\u6027\u65F6\uFF0C\u9690\u85CF\u5F53\u524D\u6BB5\u843D"));
|
|
209599
|
+
}
|
|
209600
|
+
|
|
209601
|
+
if (customProperty.age && customProperty.age.select == '隐藏') {
|
|
209602
|
+
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"));
|
|
209603
|
+
}
|
|
209604
|
+
|
|
209605
|
+
if (arr.length > 0) {
|
|
209606
|
+
setTimeout(function () {
|
|
209607
|
+
_this.createParagraphTipHTML(hoEditorFactory.drawTree.caret, arr);
|
|
209608
|
+
}, 0);
|
|
209609
|
+
}
|
|
209610
|
+
}
|
|
209611
|
+
}
|
|
209612
|
+
}
|
|
209613
|
+
}
|
|
209614
|
+
}, {
|
|
209615
|
+
key: "createParagraphTipHTML",
|
|
209616
|
+
value: function createParagraphTipHTML(caret, text) {
|
|
209617
|
+
var _caret$cursor$parentN;
|
|
209618
|
+
|
|
209619
|
+
var tipdiv = document.createElement('div');
|
|
209620
|
+
tipdiv.id = "ho_paragrapgh_tip";
|
|
209621
|
+
tipdiv.style.left = caret.X + "px";
|
|
209622
|
+
tipdiv.style.top = caret.Y + caret.height + "px";
|
|
209623
|
+
tipdiv.innerHTML = text.join("<br />");
|
|
209624
|
+
(_caret$cursor$parentN = caret.cursor.parentNode) === null || _caret$cursor$parentN === void 0 ? void 0 : _caret$cursor$parentN.appendChild(tipdiv);
|
|
209519
209625
|
}
|
|
209520
209626
|
/**
|
|
209521
209627
|
* @param node moveNode
|
|
@@ -213071,8 +213177,14 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213071
213177
|
var insertNode = function insertNode(array, prevNode) {
|
|
213072
213178
|
var firstNode = array[0];
|
|
213073
213179
|
|
|
213074
|
-
if (firstNode instanceof ParagraphNode/* ParagraphNode */.C &&
|
|
213075
|
-
|
|
213180
|
+
if (firstNode instanceof ParagraphNode/* ParagraphNode */.C && prevNode instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
213181
|
+
if (firstNode.paraNo !== 0) {
|
|
213182
|
+
prevNode.paraNo = firstNode.paraNo;
|
|
213183
|
+
}
|
|
213184
|
+
|
|
213185
|
+
if (firstNode.customProperty) {
|
|
213186
|
+
prevNode.customProperty = firstNode.customProperty;
|
|
213187
|
+
}
|
|
213076
213188
|
}
|
|
213077
213189
|
|
|
213078
213190
|
for (var j = 1; j < array.length; j++) {
|
|
@@ -220121,7 +220233,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220121
220233
|
|
|
220122
220234
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
220123
220235
|
if (node.isTemplate) {
|
|
220124
|
-
if (node.imgSrc) {
|
|
220236
|
+
if (node.imgSrc || node.fingerPrintSrc) {
|
|
220125
220237
|
this.deleteNode(node);
|
|
220126
220238
|
setTimeout(function () {
|
|
220127
220239
|
var newcurDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
@@ -220155,7 +220267,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220155
220267
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
|
|
220156
220268
|
|
|
220157
220269
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
220158
|
-
Promise.all([hoEditorFactory.docController.insertSignNode(curDomRange,
|
|
220270
|
+
Promise.all([hoEditorFactory.docController.insertSignNode(curDomRange, 3, "患者签名", "", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220159
220271
|
setTimeout(function () {
|
|
220160
220272
|
callback && callback();
|
|
220161
220273
|
}, 0);
|
|
@@ -220849,6 +220961,26 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220849
220961
|
}
|
|
220850
220962
|
});
|
|
220851
220963
|
}
|
|
220964
|
+
}, {
|
|
220965
|
+
key: "clearEditRecords",
|
|
220966
|
+
value: function clearEditRecords() {
|
|
220967
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220968
|
+
var drawMainDocs = hoEditorFactory.drawPageTree.drawMainDocs;
|
|
220969
|
+
|
|
220970
|
+
for (var j = drawMainDocs.length - 1; j >= 0; j--) {
|
|
220971
|
+
var children = drawMainDocs[j].children;
|
|
220972
|
+
|
|
220973
|
+
for (var i = children.length - 1; i >= 0; i--) {
|
|
220974
|
+
var child = children[i];
|
|
220975
|
+
|
|
220976
|
+
if (child.name && child.name.indexOf("recordC") >= 0) {
|
|
220977
|
+
children.splice(i, 1);
|
|
220978
|
+
}
|
|
220979
|
+
}
|
|
220980
|
+
|
|
220981
|
+
hoEditorFactory.drawPageTree.updateDrawPage(j);
|
|
220982
|
+
}
|
|
220983
|
+
}
|
|
220852
220984
|
}, {
|
|
220853
220985
|
key: "updateImageSrc",
|
|
220854
220986
|
value: function updateImageSrc(node, src) {
|
|
@@ -224541,7 +224673,8 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
224541
224673
|
this._lastSaveTime = new Date(Date.now());
|
|
224542
224674
|
this._superiorSigns = []; //上级医生签名
|
|
224543
224675
|
|
|
224544
|
-
this._isEnabledGlobalColor = false;
|
|
224676
|
+
this._isEnabledGlobalColor = false; //是否启用全局颜色
|
|
224677
|
+
|
|
224545
224678
|
this._hoEditorFactoryId = id;
|
|
224546
224679
|
}
|
|
224547
224680
|
/**
|
|
@@ -225605,9 +225738,9 @@ var HoFooter_component = normalizeComponent(
|
|
|
225605
225738
|
)
|
|
225606
225739
|
|
|
225607
225740
|
/* harmony default export */ var components_HoFooter = (HoFooter_component.exports);
|
|
225608
|
-
;// 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=
|
|
225609
|
-
var
|
|
225610
|
-
var
|
|
225741
|
+
;// 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&
|
|
225742
|
+
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)}
|
|
225743
|
+
var ControlModalvue_type_template_id_36fbe7eb_staticRenderFns = []
|
|
225611
225744
|
|
|
225612
225745
|
|
|
225613
225746
|
;// 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&
|
|
@@ -229751,6 +229884,104 @@ var CanvasImageDialog_component = normalizeComponent(
|
|
|
229751
229884
|
|
|
229752
229885
|
|
|
229753
229886
|
|
|
229887
|
+
;// 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&
|
|
229888
|
+
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)])}
|
|
229889
|
+
var ParagraphDialogvue_type_template_id_461dae42_staticRenderFns = []
|
|
229890
|
+
|
|
229891
|
+
|
|
229892
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83[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&
|
|
229893
|
+
//
|
|
229894
|
+
//
|
|
229895
|
+
//
|
|
229896
|
+
//
|
|
229897
|
+
//
|
|
229898
|
+
//
|
|
229899
|
+
//
|
|
229900
|
+
//
|
|
229901
|
+
//
|
|
229902
|
+
//
|
|
229903
|
+
//
|
|
229904
|
+
//
|
|
229905
|
+
//
|
|
229906
|
+
//
|
|
229907
|
+
//
|
|
229908
|
+
//
|
|
229909
|
+
//
|
|
229910
|
+
//
|
|
229911
|
+
//
|
|
229912
|
+
|
|
229913
|
+
/* harmony default export */ var ParagraphDialogvue_type_script_lang_js_ = ({
|
|
229914
|
+
name: 'ParagraphDialog',
|
|
229915
|
+
props: {
|
|
229916
|
+
hoEditorFactoryId: {
|
|
229917
|
+
type: String,
|
|
229918
|
+
required: true
|
|
229919
|
+
},
|
|
229920
|
+
controlStatus: {
|
|
229921
|
+
type: String,
|
|
229922
|
+
required: true
|
|
229923
|
+
},
|
|
229924
|
+
controlProperty: {
|
|
229925
|
+
type: Object,
|
|
229926
|
+
required: true
|
|
229927
|
+
}
|
|
229928
|
+
},
|
|
229929
|
+
inject: ['getParagraphCustomProperty'],
|
|
229930
|
+
data: function data() {
|
|
229931
|
+
return {
|
|
229932
|
+
textActiveName: 'first',
|
|
229933
|
+
animationClassNames: 'control-modal-contents paragraph-modal animation-in'
|
|
229934
|
+
};
|
|
229935
|
+
},
|
|
229936
|
+
computed: {
|
|
229937
|
+
domRange: function domRange() {
|
|
229938
|
+
return this.controlProperty.domRange;
|
|
229939
|
+
}
|
|
229940
|
+
},
|
|
229941
|
+
methods: {
|
|
229942
|
+
sure: function sure() {
|
|
229943
|
+
var _hoEditorFactory$vueC;
|
|
229944
|
+
|
|
229945
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
229946
|
+
var node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(this.domRange.endPath)) === null || _hoEditorFactory$vueC === void 0 ? void 0 : _hoEditorFactory$vueC.node;
|
|
229947
|
+
var paragraphNode = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]).paragraphNode;
|
|
229948
|
+
paragraphNode.setCustomProperty(this.getParagraphCustomProperty());
|
|
229949
|
+
this.handleClose();
|
|
229950
|
+
},
|
|
229951
|
+
handleClose: function handleClose() {
|
|
229952
|
+
this.animationClassNames = 'control-modal-contents paragraph-modal animation-out';
|
|
229953
|
+
this.$emit('closed');
|
|
229954
|
+
}
|
|
229955
|
+
}
|
|
229956
|
+
});
|
|
229957
|
+
;// CONCATENATED MODULE: ./src/components/controls/paragraph/ParagraphDialog.vue?vue&type=script&lang=js&
|
|
229958
|
+
/* harmony default export */ var paragraph_ParagraphDialogvue_type_script_lang_js_ = (ParagraphDialogvue_type_script_lang_js_);
|
|
229959
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[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&
|
|
229960
|
+
// extracted by mini-css-extract-plugin
|
|
229961
|
+
|
|
229962
|
+
;// CONCATENATED MODULE: ./src/components/controls/paragraph/ParagraphDialog.vue?vue&type=style&index=0&lang=scss&
|
|
229963
|
+
|
|
229964
|
+
;// CONCATENATED MODULE: ./src/components/controls/paragraph/ParagraphDialog.vue
|
|
229965
|
+
|
|
229966
|
+
|
|
229967
|
+
|
|
229968
|
+
;
|
|
229969
|
+
|
|
229970
|
+
|
|
229971
|
+
/* normalize component */
|
|
229972
|
+
|
|
229973
|
+
var ParagraphDialog_component = normalizeComponent(
|
|
229974
|
+
paragraph_ParagraphDialogvue_type_script_lang_js_,
|
|
229975
|
+
ParagraphDialogvue_type_template_id_461dae42_render,
|
|
229976
|
+
ParagraphDialogvue_type_template_id_461dae42_staticRenderFns,
|
|
229977
|
+
false,
|
|
229978
|
+
null,
|
|
229979
|
+
null,
|
|
229980
|
+
null
|
|
229981
|
+
|
|
229982
|
+
)
|
|
229983
|
+
|
|
229984
|
+
/* harmony default export */ var ParagraphDialog = (ParagraphDialog_component.exports);
|
|
229754
229985
|
;// 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&
|
|
229755
229986
|
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)])}
|
|
229756
229987
|
var WaterSetvue_type_template_id_58b59c58_staticRenderFns = []
|
|
@@ -231426,6 +231657,7 @@ var TableCellProperty_component = normalizeComponent(
|
|
|
231426
231657
|
|
|
231427
231658
|
|
|
231428
231659
|
|
|
231660
|
+
|
|
231429
231661
|
|
|
231430
231662
|
|
|
231431
231663
|
var ControlModal = /*#__PURE__*/function (_Mixins) {
|
|
@@ -231536,7 +231768,8 @@ ControlModal = __decorate([vue_class_component_esm({
|
|
|
231536
231768
|
PageInfoes: pageInfoes,
|
|
231537
231769
|
Delimiter: delimiter,
|
|
231538
231770
|
UploadImageDialog: upload_UploadImageDialog,
|
|
231539
|
-
CanvasImageDialog: CanvasImageDialog
|
|
231771
|
+
CanvasImageDialog: CanvasImageDialog,
|
|
231772
|
+
ParagraphDialog: ParagraphDialog
|
|
231540
231773
|
}
|
|
231541
231774
|
})], ControlModal);
|
|
231542
231775
|
/* harmony default export */ var ControlModalvue_type_script_lang_ts_ = (ControlModal);
|
|
@@ -231552,8 +231785,8 @@ ControlModal = __decorate([vue_class_component_esm({
|
|
|
231552
231785
|
;
|
|
231553
231786
|
var ControlModal_component = normalizeComponent(
|
|
231554
231787
|
controls_ControlModalvue_type_script_lang_ts_,
|
|
231555
|
-
|
|
231556
|
-
|
|
231788
|
+
ControlModalvue_type_template_id_36fbe7eb_render,
|
|
231789
|
+
ControlModalvue_type_template_id_36fbe7eb_staticRenderFns,
|
|
231557
231790
|
false,
|
|
231558
231791
|
null,
|
|
231559
231792
|
null,
|
|
@@ -232677,12 +232910,6 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
232677
232910
|
|
|
232678
232911
|
|
|
232679
232912
|
|
|
232680
|
-
|
|
232681
|
-
|
|
232682
|
-
|
|
232683
|
-
|
|
232684
|
-
|
|
232685
|
-
|
|
232686
232913
|
|
|
232687
232914
|
|
|
232688
232915
|
|
|
@@ -232809,6 +233036,11 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
232809
233036
|
value: function getCustomProperty() {
|
|
232810
233037
|
return this.customProperty;
|
|
232811
233038
|
}
|
|
233039
|
+
}, {
|
|
233040
|
+
key: "getParagraphCustomProperty",
|
|
233041
|
+
value: function getParagraphCustomProperty() {
|
|
233042
|
+
return this.paragraphCustomProperty;
|
|
233043
|
+
}
|
|
232812
233044
|
}, {
|
|
232813
233045
|
key: "textStyleChange",
|
|
232814
233046
|
value: function textStyleChange(val) {
|
|
@@ -232826,7 +233058,7 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
232826
233058
|
}, {
|
|
232827
233059
|
key: "controlTypeChange",
|
|
232828
233060
|
value: function controlTypeChange(newValue, oldValue) {
|
|
232829
|
-
if (newValue === '' && ['text', 'date', 'comment'].includes(oldValue)) {
|
|
233061
|
+
if (newValue === '' && ['text', 'date', 'comment', 'paragraph'].includes(oldValue)) {
|
|
232830
233062
|
this.$emit('closeTextModal');
|
|
232831
233063
|
this.customPropertyValue = {};
|
|
232832
233064
|
}
|
|
@@ -233008,16 +233240,17 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
233008
233240
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.activeDocId);
|
|
233009
233241
|
nodeInfoes.rightTypeIsTable = hoEditorFactory.docTree.curDomRange.normalize().inSameTable()[0];
|
|
233010
233242
|
nodeInfoes.rightPosition = rightPosition;
|
|
233243
|
+
var node = nodeInfoes.node();
|
|
233011
233244
|
|
|
233012
|
-
|
|
233245
|
+
nodeInfoes.labelNode = function () {
|
|
233013
233246
|
var labelNode = [];
|
|
233014
233247
|
var isIncludes = '';
|
|
233015
233248
|
var hoEditor = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(_this4.activeDocId);
|
|
233016
233249
|
var currentDomRange = hoEditor.vueController.getDomRange();
|
|
233017
233250
|
|
|
233018
233251
|
if (currentDomRange !== null && currentDomRange !== void 0 && currentDomRange.isEmpty) {
|
|
233019
|
-
if (
|
|
233020
|
-
labelNode.push(
|
|
233252
|
+
if (node instanceof LabelNode/* LabelNode */.P) {
|
|
233253
|
+
labelNode.push(node);
|
|
233021
233254
|
isIncludes = 'toText';
|
|
233022
233255
|
}
|
|
233023
233256
|
} else {
|
|
@@ -233040,16 +233273,20 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
233040
233273
|
labelNode: [].concat(labelNode),
|
|
233041
233274
|
isIncludes: isIncludes
|
|
233042
233275
|
};
|
|
233043
|
-
};
|
|
233276
|
+
}; // 是否是元素类型;
|
|
233044
233277
|
|
|
233045
|
-
nodeInfoes.labelNode = getLabelNode; // 是否是元素类型;
|
|
233046
233278
|
|
|
233047
233279
|
nodeInfoes.isElement = false;
|
|
233048
|
-
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;
|
|
233049
|
-
|
|
233050
|
-
|
|
233051
|
-
|
|
233052
|
-
|
|
233280
|
+
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 (
|
|
233281
|
+
// node instanceof TextInputFieldNode ||
|
|
233282
|
+
// node instanceof DateTimeNode ||
|
|
233283
|
+
// node instanceof DownListNode ||
|
|
233284
|
+
// node instanceof RadioAndCheckBoxNode ||
|
|
233285
|
+
// node instanceof MarkNode ||
|
|
233286
|
+
// (node instanceof TextNode && node.parentNode instanceof TextInputFieldNode)
|
|
233287
|
+
// ) {
|
|
233288
|
+
// nodeInfoes.isElement = true;
|
|
233289
|
+
// }
|
|
233053
233290
|
|
|
233054
233291
|
nodeInfoes.isHideComments = hoEditorFactory.isHideComments;
|
|
233055
233292
|
nodeInfoes.activePageIndex = this.activePageIndex;
|
|
@@ -233068,6 +233305,18 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
233068
233305
|
};
|
|
233069
233306
|
}
|
|
233070
233307
|
|
|
233308
|
+
nodeInfoes.getParagraphNode = function () {
|
|
233309
|
+
var _hoEditorFactory$vueC;
|
|
233310
|
+
|
|
233311
|
+
var node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(_this4.domRange.endPath)) === null || _hoEditorFactory$vueC === void 0 ? void 0 : _hoEditorFactory$vueC.node;
|
|
233312
|
+
|
|
233313
|
+
if (node) {
|
|
233314
|
+
return hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]).paragraphNode;
|
|
233315
|
+
}
|
|
233316
|
+
|
|
233317
|
+
return null;
|
|
233318
|
+
};
|
|
233319
|
+
|
|
233071
233320
|
this.$emit('rightClickEvent', nodeInfoes);
|
|
233072
233321
|
}
|
|
233073
233322
|
/**
|
|
@@ -233303,6 +233552,8 @@ __decorate([Prop()], HoDocs.prototype, "uploadImageParams", void 0);
|
|
|
233303
233552
|
|
|
233304
233553
|
__decorate([Prop()], HoDocs.prototype, "customProperty", void 0);
|
|
233305
233554
|
|
|
233555
|
+
__decorate([Prop()], HoDocs.prototype, "paragraphCustomProperty", void 0);
|
|
233556
|
+
|
|
233306
233557
|
__decorate([Prop()], HoDocs.prototype, "deleteImageNodeList", void 0);
|
|
233307
233558
|
|
|
233308
233559
|
__decorate([Prop()], HoDocs.prototype, "pageProperty", void 0);
|
|
@@ -233349,6 +233600,8 @@ __decorate([Watch('editJson')], HoDocs.prototype, "editJsonChange", null);
|
|
|
233349
233600
|
|
|
233350
233601
|
__decorate([Provide()], HoDocs.prototype, "getCustomProperty", null);
|
|
233351
233602
|
|
|
233603
|
+
__decorate([Provide()], HoDocs.prototype, "getParagraphCustomProperty", null);
|
|
233604
|
+
|
|
233352
233605
|
__decorate([Watch('textStyle', {
|
|
233353
233606
|
deep: true
|
|
233354
233607
|
})], HoDocs.prototype, "textStyleChange", null);
|