hoeditor-web 2.0.62 → 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 +390 -239
- package/lib/hoeditor.css +2 -2
- package/lib/hoeditor.umd.js +390 -239
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -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:
|
|
@@ -199113,8 +199168,8 @@ var es_function_name = __webpack_require__(68309);
|
|
|
199113
199168
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
199114
199169
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(77203);
|
|
199115
199170
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
199116
|
-
;// 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=
|
|
199117
|
-
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()
|
|
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()}
|
|
199118
199173
|
var staticRenderFns = []
|
|
199119
199174
|
|
|
199120
199175
|
|
|
@@ -200039,9 +200094,9 @@ function isPromise(obj) {
|
|
|
200039
200094
|
return obj instanceof Promise || (obj && typeof obj.then === 'function');
|
|
200040
200095
|
}
|
|
200041
200096
|
|
|
200042
|
-
;// 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=
|
|
200043
|
-
var
|
|
200044
|
-
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 = []
|
|
200045
200100
|
|
|
200046
200101
|
|
|
200047
200102
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
@@ -207096,7 +207151,7 @@ var SignNode = __webpack_require__(78975);
|
|
|
207096
207151
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207097
207152
|
var ParagraphNode = __webpack_require__(13880);
|
|
207098
207153
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207099
|
-
/* harmony default export */ var version = ('2.0.
|
|
207154
|
+
/* harmony default export */ var version = ('2.0.63');
|
|
207100
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&
|
|
207101
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)}
|
|
207102
207157
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -207637,6 +207692,14 @@ var HoDoc = /*#__PURE__*/function (_Vue) {
|
|
|
207637
207692
|
|
|
207638
207693
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
207639
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
|
+
|
|
207640
207703
|
var node = e.node;
|
|
207641
207704
|
this.poperClose();
|
|
207642
207705
|
|
|
@@ -208028,8 +208091,8 @@ HoDoc = __decorate([vue_class_component_esm({
|
|
|
208028
208091
|
|
|
208029
208092
|
var HoDoc_component = normalizeComponent(
|
|
208030
208093
|
components_HoDocvue_type_script_lang_ts_,
|
|
208031
|
-
|
|
208032
|
-
|
|
208094
|
+
HoDocvue_type_template_id_4a9748a4_render,
|
|
208095
|
+
HoDocvue_type_template_id_4a9748a4_staticRenderFns,
|
|
208033
208096
|
false,
|
|
208034
208097
|
null,
|
|
208035
208098
|
null,
|
|
@@ -209322,6 +209385,8 @@ var NodeClickEvent = __webpack_require__(17750);
|
|
|
209322
209385
|
|
|
209323
209386
|
|
|
209324
209387
|
|
|
209388
|
+
|
|
209389
|
+
|
|
209325
209390
|
var DmouseEventType;
|
|
209326
209391
|
|
|
209327
209392
|
(function (DmouseEventType) {
|
|
@@ -209509,6 +209574,8 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
|
209509
209574
|
}, {
|
|
209510
209575
|
key: "NodeClick",
|
|
209511
209576
|
value: function NodeClick(node, moveType) {
|
|
209577
|
+
var _this = this;
|
|
209578
|
+
|
|
209512
209579
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
209513
209580
|
|
|
209514
209581
|
if (node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh && moveType === DmouseEventType.detClick) {
|
|
@@ -209517,6 +209584,44 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
|
209517
209584
|
hoEditorFactory.docTree.nodeClick(nodeClickEvent);
|
|
209518
209585
|
node.drawNodes[0].parent = drawLine;
|
|
209519
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);
|
|
209520
209625
|
}
|
|
209521
209626
|
/**
|
|
209522
209627
|
* @param node moveNode
|
|
@@ -213072,8 +213177,14 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213072
213177
|
var insertNode = function insertNode(array, prevNode) {
|
|
213073
213178
|
var firstNode = array[0];
|
|
213074
213179
|
|
|
213075
|
-
if (firstNode instanceof ParagraphNode/* ParagraphNode */.C &&
|
|
213076
|
-
|
|
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
|
+
}
|
|
213077
213188
|
}
|
|
213078
213189
|
|
|
213079
213190
|
for (var j = 1; j < array.length; j++) {
|
|
@@ -220122,7 +220233,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220122
220233
|
|
|
220123
220234
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
220124
220235
|
if (node.isTemplate) {
|
|
220125
|
-
if (node.imgSrc) {
|
|
220236
|
+
if (node.imgSrc || node.fingerPrintSrc) {
|
|
220126
220237
|
this.deleteNode(node);
|
|
220127
220238
|
setTimeout(function () {
|
|
220128
220239
|
var newcurDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
@@ -220156,7 +220267,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220156
220267
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
|
|
220157
220268
|
|
|
220158
220269
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
220159
|
-
Promise.all([hoEditorFactory.docController.insertSignNode(curDomRange,
|
|
220270
|
+
Promise.all([hoEditorFactory.docController.insertSignNode(curDomRange, 3, "患者签名", "", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220160
220271
|
setTimeout(function () {
|
|
220161
220272
|
callback && callback();
|
|
220162
220273
|
}, 0);
|
|
@@ -220850,6 +220961,26 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220850
220961
|
}
|
|
220851
220962
|
});
|
|
220852
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
|
+
}
|
|
220853
220984
|
}, {
|
|
220854
220985
|
key: "updateImageSrc",
|
|
220855
220986
|
value: function updateImageSrc(node, src) {
|
|
@@ -224542,7 +224673,8 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
224542
224673
|
this._lastSaveTime = new Date(Date.now());
|
|
224543
224674
|
this._superiorSigns = []; //上级医生签名
|
|
224544
224675
|
|
|
224545
|
-
this._isEnabledGlobalColor = false;
|
|
224676
|
+
this._isEnabledGlobalColor = false; //是否启用全局颜色
|
|
224677
|
+
|
|
224546
224678
|
this._hoEditorFactoryId = id;
|
|
224547
224679
|
}
|
|
224548
224680
|
/**
|
|
@@ -229752,9 +229884,9 @@ var CanvasImageDialog_component = normalizeComponent(
|
|
|
229752
229884
|
|
|
229753
229885
|
|
|
229754
229886
|
|
|
229755
|
-
;// 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=
|
|
229756
|
-
var
|
|
229757
|
-
var
|
|
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 = []
|
|
229758
229890
|
|
|
229759
229891
|
|
|
229760
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&
|
|
@@ -229777,7 +229909,7 @@ var ParagraphDialogvue_type_template_id_2a071484_staticRenderFns = []
|
|
|
229777
229909
|
//
|
|
229778
229910
|
//
|
|
229779
229911
|
//
|
|
229780
|
-
|
|
229912
|
+
|
|
229781
229913
|
/* harmony default export */ var ParagraphDialogvue_type_script_lang_js_ = ({
|
|
229782
229914
|
name: 'ParagraphDialog',
|
|
229783
229915
|
props: {
|
|
@@ -229794,16 +229926,26 @@ var ParagraphDialogvue_type_template_id_2a071484_staticRenderFns = []
|
|
|
229794
229926
|
required: true
|
|
229795
229927
|
}
|
|
229796
229928
|
},
|
|
229929
|
+
inject: ['getParagraphCustomProperty'],
|
|
229797
229930
|
data: function data() {
|
|
229798
229931
|
return {
|
|
229799
229932
|
textActiveName: 'first',
|
|
229800
229933
|
animationClassNames: 'control-modal-contents paragraph-modal animation-in'
|
|
229801
229934
|
};
|
|
229802
229935
|
},
|
|
229803
|
-
|
|
229804
|
-
|
|
229936
|
+
computed: {
|
|
229937
|
+
domRange: function domRange() {
|
|
229938
|
+
return this.controlProperty.domRange;
|
|
229939
|
+
}
|
|
229940
|
+
},
|
|
229805
229941
|
methods: {
|
|
229806
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());
|
|
229807
229949
|
this.handleClose();
|
|
229808
229950
|
},
|
|
229809
229951
|
handleClose: function handleClose() {
|
|
@@ -229830,8 +229972,8 @@ var ParagraphDialogvue_type_template_id_2a071484_staticRenderFns = []
|
|
|
229830
229972
|
|
|
229831
229973
|
var ParagraphDialog_component = normalizeComponent(
|
|
229832
229974
|
paragraph_ParagraphDialogvue_type_script_lang_js_,
|
|
229833
|
-
|
|
229834
|
-
|
|
229975
|
+
ParagraphDialogvue_type_template_id_461dae42_render,
|
|
229976
|
+
ParagraphDialogvue_type_template_id_461dae42_staticRenderFns,
|
|
229835
229977
|
false,
|
|
229836
229978
|
null,
|
|
229837
229979
|
null,
|
|
@@ -232894,6 +233036,11 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
232894
233036
|
value: function getCustomProperty() {
|
|
232895
233037
|
return this.customProperty;
|
|
232896
233038
|
}
|
|
233039
|
+
}, {
|
|
233040
|
+
key: "getParagraphCustomProperty",
|
|
233041
|
+
value: function getParagraphCustomProperty() {
|
|
233042
|
+
return this.paragraphCustomProperty;
|
|
233043
|
+
}
|
|
232897
233044
|
}, {
|
|
232898
233045
|
key: "textStyleChange",
|
|
232899
233046
|
value: function textStyleChange(val) {
|
|
@@ -232911,7 +233058,7 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
232911
233058
|
}, {
|
|
232912
233059
|
key: "controlTypeChange",
|
|
232913
233060
|
value: function controlTypeChange(newValue, oldValue) {
|
|
232914
|
-
if (newValue === '' && ['text', 'date', 'comment'].includes(oldValue)) {
|
|
233061
|
+
if (newValue === '' && ['text', 'date', 'comment', 'paragraph'].includes(oldValue)) {
|
|
232915
233062
|
this.$emit('closeTextModal');
|
|
232916
233063
|
this.customPropertyValue = {};
|
|
232917
233064
|
}
|
|
@@ -233405,6 +233552,8 @@ __decorate([Prop()], HoDocs.prototype, "uploadImageParams", void 0);
|
|
|
233405
233552
|
|
|
233406
233553
|
__decorate([Prop()], HoDocs.prototype, "customProperty", void 0);
|
|
233407
233554
|
|
|
233555
|
+
__decorate([Prop()], HoDocs.prototype, "paragraphCustomProperty", void 0);
|
|
233556
|
+
|
|
233408
233557
|
__decorate([Prop()], HoDocs.prototype, "deleteImageNodeList", void 0);
|
|
233409
233558
|
|
|
233410
233559
|
__decorate([Prop()], HoDocs.prototype, "pageProperty", void 0);
|
|
@@ -233451,6 +233600,8 @@ __decorate([Watch('editJson')], HoDocs.prototype, "editJsonChange", null);
|
|
|
233451
233600
|
|
|
233452
233601
|
__decorate([Provide()], HoDocs.prototype, "getCustomProperty", null);
|
|
233453
233602
|
|
|
233603
|
+
__decorate([Provide()], HoDocs.prototype, "getParagraphCustomProperty", null);
|
|
233604
|
+
|
|
233454
233605
|
__decorate([Watch('textStyle', {
|
|
233455
233606
|
deep: true
|
|
233456
233607
|
})], HoDocs.prototype, "textStyleChange", null);
|