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.common.js
CHANGED
|
@@ -11812,7 +11812,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11812
11812
|
return link.remove();
|
|
11813
11813
|
}, 100);
|
|
11814
11814
|
} else {
|
|
11815
|
-
if (height <= 560 && hoEditorFactory.isFixedPrintToA4
|
|
11815
|
+
if (height <= 560 && hoEditorFactory.isFixedPrintToA4 === '') {
|
|
11816
11816
|
PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
|
|
11817
11817
|
}
|
|
11818
11818
|
|
|
@@ -44721,12 +44721,13 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44721
44721
|
var container = new createjs.Container();
|
|
44722
44722
|
container.x = docWidth + 15;
|
|
44723
44723
|
container.y = commentY - comment.lineHeight / 2;
|
|
44724
|
-
container.name = comment.id;
|
|
44724
|
+
container.name = "record" + comment.id;
|
|
44725
44725
|
var commentTextShape = null; // 批注内容
|
|
44726
44726
|
|
|
44727
44727
|
var commentArr = comment.commentTextWarp(commentWidth, comment.text);
|
|
44728
|
-
var text = commentArr[0];
|
|
44729
|
-
|
|
44728
|
+
var text = commentArr[0]; //const textLen = (commentArr[1] as number) > 1 ? (commentArr[1] as number) - 1 : (commentArr[1] as number);
|
|
44729
|
+
|
|
44730
|
+
var textLen = commentArr[1];
|
|
44730
44731
|
comment.lineHeight = 20 * textLen + 10;
|
|
44731
44732
|
commentTextShape = new createjs.Text(text, "12px 微软雅黑", "#666");
|
|
44732
44733
|
commentTextShape.lineWidth = commentWidth - 25;
|
|
@@ -44745,12 +44746,12 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44745
44746
|
|
|
44746
44747
|
var horizontalLine = new createjs.Shape();
|
|
44747
44748
|
horizontalLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").moveTo(nodeX, nodeY).lineTo(docWidth, nodeY);
|
|
44748
|
-
horizontalLine.name = comment.id;
|
|
44749
|
+
horizontalLine.name = "record" + comment.id;
|
|
44749
44750
|
horizontalLine.alpha = 1; //指向线
|
|
44750
44751
|
|
|
44751
44752
|
var guideLine = new createjs.Shape();
|
|
44752
44753
|
guideLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").moveTo(docWidth, nodeY).lineTo(docWidth + 15, commentY - comment.lineHeight / 4);
|
|
44753
|
-
guideLine.name = comment.id;
|
|
44754
|
+
guideLine.name = "record" + comment.id;
|
|
44754
44755
|
guideLine.alpha = 1;
|
|
44755
44756
|
container.addChild(backShape);
|
|
44756
44757
|
container.addChild(commentTextShape);
|
|
@@ -46220,7 +46221,14 @@ var DrawCombineNode = /*#__PURE__*/function (_DrawContainer) {
|
|
|
46220
46221
|
_this2.on('mouseout', function (e) {
|
|
46221
46222
|
hoEditorFactory.nodeMouseMove.setNode(_this2.node, _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_6__/* .DmouseEventType.detOut */ .p.detOut);
|
|
46222
46223
|
});
|
|
46223
|
-
}
|
|
46224
|
+
} // if(this.node && this.node.drawNodes && this.node.drawNodes[0]) {
|
|
46225
|
+
// const paragraphNode = hoEditorFactory.drawTree.getDrawLineByDNode(this._node.drawNodes[0])?.paragraphNode;
|
|
46226
|
+
// const customProperty = paragraphNode && paragraphNode.customProperty;
|
|
46227
|
+
// if(['男', '女'].includes(customProperty.sex) || (customProperty.age && customProperty.age.select == '隐藏')) {
|
|
46228
|
+
// console.log({...paragraphNode.customProperty})
|
|
46229
|
+
// }
|
|
46230
|
+
// }
|
|
46231
|
+
|
|
46224
46232
|
|
|
46225
46233
|
_this2.on('click', function (e) {
|
|
46226
46234
|
if (e.nativeEvent.button === 0) {
|
|
@@ -51274,9 +51282,9 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51274
51282
|
_this = _super.call(this, hoeditfactoryID, rootPath, node, 0);
|
|
51275
51283
|
_this._number = 0;
|
|
51276
51284
|
_this._type = 0;
|
|
51277
|
-
_this._signName =
|
|
51278
|
-
_this._imgSrc =
|
|
51279
|
-
_this._fingerPrintSrc =
|
|
51285
|
+
_this._signName = '';
|
|
51286
|
+
_this._imgSrc = '';
|
|
51287
|
+
_this._fingerPrintSrc = '';
|
|
51280
51288
|
_this._fingerPosition = 0;
|
|
51281
51289
|
_this._number = number;
|
|
51282
51290
|
_this._imgSrc = imgSrc;
|
|
@@ -51290,7 +51298,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51290
51298
|
_this._textStyle = cbStyle.getStyleKey();
|
|
51291
51299
|
|
|
51292
51300
|
if (_this.number > 0 && type === 2) {
|
|
51293
|
-
var signArr = imgSrc.split(
|
|
51301
|
+
var signArr = imgSrc.split('\n');
|
|
51294
51302
|
|
|
51295
51303
|
if (signArr.length > 1) {
|
|
51296
51304
|
_this.dHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoeditfactoryID).signHeight * signArr.length; // const textStyle = new TextStyle(hoeditfactoryID);
|
|
@@ -51309,10 +51317,10 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51309
51317
|
} //this._drawText = new DrawSimpleText('/', cbStyle.getStyleKey(), "#000000");
|
|
51310
51318
|
|
|
51311
51319
|
|
|
51312
|
-
_this._drawText = new createjs.Text(node.connectMode, _this._textStyle,
|
|
51320
|
+
_this._drawText = new createjs.Text(node.connectMode, _this._textStyle, '#000000');
|
|
51313
51321
|
|
|
51314
51322
|
if (_this.number === 0) {
|
|
51315
|
-
var dText = new createjs.Text(_this.signName, _this._textStyle,
|
|
51323
|
+
var dText = new createjs.Text(_this.signName, _this._textStyle, '#000000');
|
|
51316
51324
|
_this.dWidth = dText.getMeasuredWidth();
|
|
51317
51325
|
} else {
|
|
51318
51326
|
if (type === 1) {
|
|
@@ -51326,14 +51334,14 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51326
51334
|
}
|
|
51327
51335
|
|
|
51328
51336
|
if (type === 2) {
|
|
51329
|
-
var _signArr = imgSrc.split(
|
|
51337
|
+
var _signArr = imgSrc.split('\n');
|
|
51330
51338
|
|
|
51331
|
-
var aText = new createjs.Text(_signArr[0], _this._textStyle,
|
|
51339
|
+
var aText = new createjs.Text(_signArr[0], _this._textStyle, '#000000');
|
|
51332
51340
|
var maxWidth = aText.getMeasuredWidth();
|
|
51333
51341
|
|
|
51334
51342
|
if (_signArr.length > 1) {
|
|
51335
51343
|
for (var i = 1; i < _signArr.length; i++) {
|
|
51336
|
-
aText = new createjs.Text(_signArr[i], _this._textStyle,
|
|
51344
|
+
aText = new createjs.Text(_signArr[i], _this._textStyle, '#000000');
|
|
51337
51345
|
var aWidth = aText.getMeasuredWidth();
|
|
51338
51346
|
|
|
51339
51347
|
if (aWidth > maxWidth) {
|
|
@@ -51348,7 +51356,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51348
51356
|
_this.dWidth = maxWidth;
|
|
51349
51357
|
} else {
|
|
51350
51358
|
//this.dWidth = dText.getMeasuredWidth() + this._drawText.getMeasuredWidth();
|
|
51351
|
-
if (node.connectMode ===
|
|
51359
|
+
if (node.connectMode === '换行') {
|
|
51352
51360
|
_this.dWidth = maxWidth;
|
|
51353
51361
|
} else {
|
|
51354
51362
|
_this.dWidth = maxWidth + _this._drawText.getMeasuredWidth();
|
|
@@ -51357,7 +51365,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51357
51365
|
}
|
|
51358
51366
|
}
|
|
51359
51367
|
|
|
51360
|
-
if (imgWidth == 0 && imgHeight == 0 && imgSrc && type == 1 || type == 3) {
|
|
51368
|
+
if (imgWidth == 0 && imgHeight == 0 && (imgSrc || fingerPrintSrc) && type == 1 || type == 3) {
|
|
51361
51369
|
_this.drawWriteSignNode(node);
|
|
51362
51370
|
} else {
|
|
51363
51371
|
_this.drawSignNode();
|
|
@@ -51443,108 +51451,139 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51443
51451
|
|
|
51444
51452
|
this.clear();
|
|
51445
51453
|
var drawNode = this;
|
|
51446
|
-
var isFront = node.isFront;
|
|
51447
51454
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_7__/* .HOEditorFactorys.instance */ .b.instance().getFactory(drawNode.node.hoEditorFactoryID);
|
|
51448
51455
|
|
|
51449
51456
|
var drawSign = function drawSign() {
|
|
51450
51457
|
if (_this2.type === 1 || _this2.type === 3) {
|
|
51451
|
-
var image = new Image();
|
|
51452
|
-
image.src = _this2.imgSrc;
|
|
51453
51458
|
var currentLineHeight = hoEditorFactory.drawTree.caret.height;
|
|
51454
|
-
|
|
51455
|
-
|
|
51456
|
-
|
|
51457
|
-
|
|
51458
|
-
|
|
51459
|
-
_this2._dWidth =
|
|
51460
|
-
|
|
51461
|
-
|
|
51462
|
-
|
|
51463
|
-
var fingerImage = new Image();
|
|
51464
|
-
var fingerBitmap;
|
|
51465
|
-
|
|
51466
|
-
if (drawNode.fingerPrintSrc !== "") {
|
|
51459
|
+
node.type = 3;
|
|
51460
|
+
|
|
51461
|
+
if (_this2.imgSrc == '' && _this2.fingerPrintSrc) {
|
|
51462
|
+
var fingerscale = drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center ? 0.3 : 0.15;
|
|
51463
|
+
var fingerWidth = 256;
|
|
51464
|
+
_this2._dWidth = fingerWidth * fingerscale;
|
|
51465
|
+
node.imgWidth = _this2._dWidth;
|
|
51466
|
+
var fingerImage = new Image();
|
|
51467
|
+
var fingerBitmap;
|
|
51467
51468
|
fingerImage.src = _this2.fingerPrintSrc;
|
|
51468
51469
|
fingerBitmap = new createjs.Bitmap(fingerImage);
|
|
51469
|
-
drawNode.addChildAt(fingerBitmap,
|
|
51470
|
+
drawNode.addChildAt(fingerBitmap, 0);
|
|
51470
51471
|
hoEditorFactory.loadImageCount++;
|
|
51471
51472
|
|
|
51472
51473
|
fingerImage.onerror = function () {
|
|
51473
51474
|
return hoEditorFactory.loadImageCount--;
|
|
51474
51475
|
};
|
|
51475
|
-
}
|
|
51476
51476
|
|
|
51477
|
-
|
|
51477
|
+
fingerImage.onload = function () {
|
|
51478
|
+
var fingerHeight = fingerImage.naturalHeight !== 0 ? fingerImage.naturalHeight : fingerImage.height;
|
|
51479
|
+
fingerBitmap.y = -fingerHeight * fingerscale;
|
|
51480
|
+
fingerBitmap.x = 0;
|
|
51481
|
+
node.imgHeight = fingerHeight * fingerscale;
|
|
51482
|
+
_this2._dHeight = node.imgHeight;
|
|
51483
|
+
node.type = 3;
|
|
51484
|
+
fingerBitmap.setTransform(fingerBitmap.x, fingerBitmap.y, fingerscale, fingerscale);
|
|
51485
|
+
updateSign();
|
|
51486
|
+
};
|
|
51487
|
+
} else {
|
|
51488
|
+
var image = new Image();
|
|
51489
|
+
image.src = _this2.imgSrc;
|
|
51490
|
+
var bitmap = new createjs.Bitmap(image);
|
|
51491
|
+
bitmap.y = 0;
|
|
51492
|
+
bitmap.x = 0;
|
|
51478
51493
|
|
|
51479
|
-
|
|
51480
|
-
|
|
51481
|
-
|
|
51494
|
+
if (node.imgWidth) {
|
|
51495
|
+
_this2._dWidth = node.imgWidth;
|
|
51496
|
+
}
|
|
51482
51497
|
|
|
51483
|
-
|
|
51484
|
-
var hitWidth = image.naturalWidth !== 0 ? image.naturalWidth : image.width;
|
|
51485
|
-
var hitHeight = image.naturalHeight !== 0 ? image.naturalHeight : image.height;
|
|
51486
|
-
var scale = hoEditorFactory.signHeight / hitHeight < 0.4 ? 0.4 : hoEditorFactory.signHeight / hitHeight > 0.7 ? 1 : hoEditorFactory.signHeight / hitHeight;
|
|
51487
|
-
|
|
51488
|
-
if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center && hoEditorFactory.signHeight / hitHeight < 0.2) {
|
|
51489
|
-
scale = hoEditorFactory.signHeight * 1.5 / hitHeight;
|
|
51490
|
-
}
|
|
51491
|
-
|
|
51492
|
-
_this2._dWidth = hitWidth * scale;
|
|
51493
|
-
|
|
51494
|
-
if (drawNode.fingerPrintSrc !== "") {
|
|
51495
|
-
fingerImage.onload = function () {
|
|
51496
|
-
var fingerWidth = 256;
|
|
51497
|
-
var fingerHeight = fingerImage.naturalHeight !== 0 ? fingerImage.naturalHeight : fingerImage.height;
|
|
51498
|
-
var fingerscale = drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center ? 0.3 : 0.15;
|
|
51499
|
-
fingerBitmap.scaleX = fingerscale;
|
|
51500
|
-
fingerBitmap.scaleY = fingerscale;
|
|
51501
|
-
fingerBitmap.y = -fingerHeight * fingerscale;
|
|
51502
|
-
bitmap.y = -hitHeight * scale;
|
|
51503
|
-
|
|
51504
|
-
if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.left */ .d.left) {
|
|
51505
|
-
bitmap.x = fingerWidth * fingerscale + 5;
|
|
51506
|
-
fingerBitmap.x = 0;
|
|
51507
|
-
_this2._dWidth = hitWidth * scale + 5 + fingerWidth * fingerscale;
|
|
51508
|
-
node.imgHeight = Math.floor(Math.max(fingerHeight * fingerscale, hitHeight * scale));
|
|
51509
|
-
_this2._dHeight = node.imgHeight;
|
|
51510
|
-
} else if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center) {
|
|
51511
|
-
fingerBitmap.x = (hitWidth * scale - fingerWidth * fingerscale) / 2;
|
|
51512
|
-
fingerBitmap.y = -(fingerHeight * fingerscale + currentLineHeight) / 2;
|
|
51513
|
-
bitmap.y = -(hitHeight * scale + currentLineHeight) / 2;
|
|
51514
|
-
node.imgHeight = hoEditorFactory.signHeight;
|
|
51515
|
-
} else if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.right */ .d.right) {
|
|
51516
|
-
fingerBitmap.x = hitWidth * scale + 5;
|
|
51517
|
-
_this2._dWidth = hitWidth * scale + 5 + fingerWidth * fingerscale;
|
|
51518
|
-
node.imgHeight = Math.floor(Math.max(fingerHeight * fingerscale, hitHeight * scale));
|
|
51519
|
-
_this2._dHeight = node.imgHeight;
|
|
51520
|
-
}
|
|
51498
|
+
drawNode.addChildAt(bitmap, 0);
|
|
51521
51499
|
|
|
51522
|
-
|
|
51523
|
-
node.type = 3;
|
|
51500
|
+
var _fingerImage = new Image();
|
|
51524
51501
|
|
|
51525
|
-
|
|
51526
|
-
_this2._dWidth = 0;
|
|
51527
|
-
_this2._dHeight = 0;
|
|
51528
|
-
}
|
|
51502
|
+
var _fingerBitmap;
|
|
51529
51503
|
|
|
51530
|
-
|
|
51531
|
-
|
|
51532
|
-
|
|
51533
|
-
|
|
51504
|
+
if (drawNode.fingerPrintSrc !== '') {
|
|
51505
|
+
_fingerImage.src = _this2.fingerPrintSrc;
|
|
51506
|
+
_fingerBitmap = new createjs.Bitmap(_fingerImage);
|
|
51507
|
+
drawNode.addChildAt(_fingerBitmap, 1);
|
|
51508
|
+
hoEditorFactory.loadImageCount++;
|
|
51534
51509
|
|
|
51535
|
-
|
|
51536
|
-
|
|
51537
|
-
updateSign();
|
|
51510
|
+
_fingerImage.onerror = function () {
|
|
51511
|
+
return hoEditorFactory.loadImageCount--;
|
|
51538
51512
|
};
|
|
51539
|
-
} else {
|
|
51540
|
-
_this2._dWidth = hitWidth * scale;
|
|
51541
|
-
node.imgWidth = _this2._dWidth;
|
|
51542
|
-
node.imgHeight = hoEditorFactory.signHeight;
|
|
51543
|
-
node.type = 3;
|
|
51544
|
-
bitmap.setTransform(0, -(hitHeight * scale + currentLineHeight) / 2, scale, scale);
|
|
51545
|
-
updateSign();
|
|
51546
51513
|
}
|
|
51547
|
-
|
|
51514
|
+
|
|
51515
|
+
hoEditorFactory.loadImageCount++;
|
|
51516
|
+
|
|
51517
|
+
image.onerror = function () {
|
|
51518
|
+
return hoEditorFactory.loadImageCount--;
|
|
51519
|
+
};
|
|
51520
|
+
|
|
51521
|
+
image.onload = function () {
|
|
51522
|
+
var hitWidth = image.naturalWidth !== 0 ? image.naturalWidth : image.width;
|
|
51523
|
+
var hitHeight = image.naturalHeight !== 0 ? image.naturalHeight : image.height;
|
|
51524
|
+
var scale = hoEditorFactory.signHeight / hitHeight < 0.4 ? 0.4 : hoEditorFactory.signHeight / hitHeight > 0.7 ? 1 : hoEditorFactory.signHeight / hitHeight;
|
|
51525
|
+
|
|
51526
|
+
if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center && hoEditorFactory.signHeight / hitHeight < 0.2) {
|
|
51527
|
+
scale = hoEditorFactory.signHeight * 1.5 / hitHeight;
|
|
51528
|
+
}
|
|
51529
|
+
|
|
51530
|
+
_this2._dWidth = hitWidth * scale;
|
|
51531
|
+
|
|
51532
|
+
if (drawNode.fingerPrintSrc !== '') {
|
|
51533
|
+
_fingerImage.onload = function () {
|
|
51534
|
+
var fingerWidth = 256;
|
|
51535
|
+
var fingerHeight = _fingerImage.naturalHeight !== 0 ? _fingerImage.naturalHeight : _fingerImage.height;
|
|
51536
|
+
var fingerscale = drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center ? 0.3 : 0.15;
|
|
51537
|
+
_fingerBitmap.scaleX = fingerscale;
|
|
51538
|
+
_fingerBitmap.scaleY = fingerscale;
|
|
51539
|
+
_fingerBitmap.y = -fingerHeight * fingerscale;
|
|
51540
|
+
bitmap.y = -hitHeight * scale;
|
|
51541
|
+
|
|
51542
|
+
if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.left */ .d.left) {
|
|
51543
|
+
bitmap.x = fingerWidth * fingerscale + 5;
|
|
51544
|
+
_fingerBitmap.x = 0;
|
|
51545
|
+
_this2._dWidth = hitWidth * scale + 5 + fingerWidth * fingerscale;
|
|
51546
|
+
node.imgHeight = Math.floor(Math.max(fingerHeight * fingerscale, hitHeight * scale));
|
|
51547
|
+
_this2._dHeight = node.imgHeight;
|
|
51548
|
+
} else if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center) {
|
|
51549
|
+
_fingerBitmap.x = (hitWidth * scale - fingerWidth * fingerscale) / 2;
|
|
51550
|
+
_fingerBitmap.y = -(fingerHeight * fingerscale + currentLineHeight) / 2;
|
|
51551
|
+
bitmap.y = -(hitHeight * scale + currentLineHeight) / 2;
|
|
51552
|
+
node.imgHeight = hoEditorFactory.signHeight;
|
|
51553
|
+
} else if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.right */ .d.right) {
|
|
51554
|
+
_fingerBitmap.x = hitWidth * scale + 5;
|
|
51555
|
+
_this2._dWidth = hitWidth * scale + 5 + fingerWidth * fingerscale;
|
|
51556
|
+
node.imgHeight = Math.floor(Math.max(fingerHeight * fingerscale, hitHeight * scale));
|
|
51557
|
+
_this2._dHeight = node.imgHeight;
|
|
51558
|
+
}
|
|
51559
|
+
|
|
51560
|
+
node.imgWidth = _this2._dWidth;
|
|
51561
|
+
|
|
51562
|
+
if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_5__/* .FingerPosition.center */ .d.center) {
|
|
51563
|
+
_this2._dWidth = 0;
|
|
51564
|
+
_this2._dHeight = 0;
|
|
51565
|
+
}
|
|
51566
|
+
|
|
51567
|
+
bitmap.setTransform(bitmap.x, bitmap.y, scale, scale);
|
|
51568
|
+
|
|
51569
|
+
_fingerBitmap.setTransform(_fingerBitmap.x, _fingerBitmap.y, fingerscale, fingerscale);
|
|
51570
|
+
|
|
51571
|
+
var hitArea = new createjs.Shape();
|
|
51572
|
+
hitArea.graphics.beginFill('#000000').drawRect(_fingerBitmap.x, 0, fingerWidth * fingerscale, fingerHeight * fingerscale); //这里是图片大小
|
|
51573
|
+
|
|
51574
|
+
bitmap.hitArea = hitArea;
|
|
51575
|
+
_fingerBitmap.hitArea = hitArea;
|
|
51576
|
+
updateSign();
|
|
51577
|
+
};
|
|
51578
|
+
} else {
|
|
51579
|
+
_this2._dWidth = hitWidth * scale;
|
|
51580
|
+
node.imgWidth = _this2._dWidth;
|
|
51581
|
+
node.imgHeight = hoEditorFactory.signHeight;
|
|
51582
|
+
bitmap.setTransform(0, -(hitHeight * scale + currentLineHeight) / 2, scale, scale);
|
|
51583
|
+
updateSign();
|
|
51584
|
+
}
|
|
51585
|
+
};
|
|
51586
|
+
}
|
|
51548
51587
|
}
|
|
51549
51588
|
};
|
|
51550
51589
|
|
|
@@ -51563,12 +51602,14 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51563
51602
|
} // hoEditorFactory.drawTree.updateDrawTreeFirstLine();
|
|
51564
51603
|
|
|
51565
51604
|
|
|
51566
|
-
hoEditorFactory.drawTree.rebuildArea(
|
|
51605
|
+
hoEditorFactory.drawTree.rebuildArea('main', false);
|
|
51567
51606
|
}
|
|
51568
51607
|
|
|
51569
|
-
|
|
51608
|
+
if (drawNode.imgSrc) {
|
|
51609
|
+
hoEditorFactory.loadImageCount--;
|
|
51610
|
+
}
|
|
51570
51611
|
|
|
51571
|
-
if (drawNode.fingerPrintSrc
|
|
51612
|
+
if (drawNode.fingerPrintSrc) {
|
|
51572
51613
|
hoEditorFactory.loadImageCount--;
|
|
51573
51614
|
}
|
|
51574
51615
|
};
|
|
@@ -51617,19 +51658,19 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51617
51658
|
|
|
51618
51659
|
bitmap.setTransform(0, -hoEditorFactory.signHeight, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
51619
51660
|
var hitArea = new createjs.Shape();
|
|
51620
|
-
hitArea.graphics.beginFill(
|
|
51661
|
+
hitArea.graphics.beginFill('#000').drawRect(0, 0, drawNode.dWidth, drawNode.dHeight); //这里是图片大小
|
|
51621
51662
|
|
|
51622
51663
|
bitmap.hitArea = hitArea;
|
|
51623
51664
|
|
|
51624
|
-
if (_this3.imgSrc.indexOf(
|
|
51625
|
-
var canvas = document.createElement(
|
|
51665
|
+
if (_this3.imgSrc.indexOf('data:image/') != -1 && _this3.imgSrc.indexOf('data:image/png') == -1) {
|
|
51666
|
+
var canvas = document.createElement('canvas');
|
|
51626
51667
|
canvas.width = image.naturalWidth;
|
|
51627
51668
|
canvas.height = image.naturalHeight;
|
|
51628
|
-
var ctx = canvas.getContext(
|
|
51629
|
-
ctx.fillStyle =
|
|
51669
|
+
var ctx = canvas.getContext('2d');
|
|
51670
|
+
ctx.fillStyle = '#FFFFFF';
|
|
51630
51671
|
ctx.fillRect(0, 0, image.naturalWidth, image.naturalHeight);
|
|
51631
51672
|
ctx.drawImage(image, 0, 0, image.naturalWidth, image.naturalHeight);
|
|
51632
|
-
_this3.node.imgSrc = canvas.toDataURL(
|
|
51673
|
+
_this3.node.imgSrc = canvas.toDataURL('image/png');
|
|
51633
51674
|
_this3.node.PNGToJPG = 1;
|
|
51634
51675
|
}
|
|
51635
51676
|
|
|
@@ -51656,18 +51697,18 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51656
51697
|
return hoEditorFactory.loadImageCount--;
|
|
51657
51698
|
};
|
|
51658
51699
|
} else {
|
|
51659
|
-
var signArr = _this3.imgSrc.split(
|
|
51700
|
+
var signArr = _this3.imgSrc.split('\n');
|
|
51660
51701
|
|
|
51661
51702
|
if (signArr.length === 1) {
|
|
51662
|
-
var drawText2 = new createjs.Text(_this3.imgSrc, _this3.textStyle,
|
|
51663
|
-
drawText2.textBaseline =
|
|
51664
|
-
drawText2.textAlign =
|
|
51703
|
+
var drawText2 = new createjs.Text(_this3.imgSrc, _this3.textStyle, '#000000');
|
|
51704
|
+
drawText2.textBaseline = 'alphabetic';
|
|
51705
|
+
drawText2.textAlign = 'left';
|
|
51665
51706
|
var rect = drawText2.getBounds();
|
|
51666
51707
|
|
|
51667
51708
|
if (rect) {
|
|
51668
51709
|
drawText2.y = _this3.y;
|
|
51669
51710
|
|
|
51670
|
-
if (_this3.number === 1 || isFront && _this3.number > 1 || _this3.node.connectMode ===
|
|
51711
|
+
if (_this3.number === 1 || isFront && _this3.number > 1 || _this3.node.connectMode === '换行') {
|
|
51671
51712
|
drawText2.x = 0;
|
|
51672
51713
|
} else {
|
|
51673
51714
|
drawText2.x = _this3._drawText.getMeasuredWidth();
|
|
@@ -51677,16 +51718,16 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51677
51718
|
_this3.addChild(drawText2);
|
|
51678
51719
|
} else {
|
|
51679
51720
|
for (var i = 0; i < signArr.length; i++) {
|
|
51680
|
-
var aText = new createjs.Text(signArr[i], _this3.textStyle,
|
|
51681
|
-
aText.textBaseline =
|
|
51682
|
-
aText.textAlign =
|
|
51721
|
+
var aText = new createjs.Text(signArr[i], _this3.textStyle, '#000000');
|
|
51722
|
+
aText.textBaseline = 'alphabetic';
|
|
51723
|
+
aText.textAlign = 'left';
|
|
51683
51724
|
|
|
51684
51725
|
var _rect = aText.getBounds();
|
|
51685
51726
|
|
|
51686
51727
|
if (_rect) {
|
|
51687
51728
|
aText.y = _this3.dHeight / signArr.length * (i + 1) - _this3.dHeight; //aText.y = -this.dHeight / (i + 1);
|
|
51688
51729
|
|
|
51689
|
-
if (_this3.number === 1 || isFront && _this3.number > 1 || _this3.node.connectMode ===
|
|
51730
|
+
if (_this3.number === 1 || isFront && _this3.number > 1 || _this3.node.connectMode === '换行') {
|
|
51690
51731
|
aText.x = 0;
|
|
51691
51732
|
} else {
|
|
51692
51733
|
aText.x = _this3._drawText.getMeasuredWidth();
|
|
@@ -51700,9 +51741,9 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51700
51741
|
};
|
|
51701
51742
|
|
|
51702
51743
|
if (this.number === 0) {
|
|
51703
|
-
var drawText1 = new createjs.Text(this.signName, this.textStyle,
|
|
51704
|
-
drawText1.textBaseline =
|
|
51705
|
-
drawText1.textAlign =
|
|
51744
|
+
var drawText1 = new createjs.Text(this.signName, this.textStyle, '#838586');
|
|
51745
|
+
drawText1.textBaseline = 'alphabetic';
|
|
51746
|
+
drawText1.textAlign = 'left';
|
|
51706
51747
|
var rect = drawText1.getBounds();
|
|
51707
51748
|
|
|
51708
51749
|
if (rect) {
|
|
@@ -51730,37 +51771,37 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51730
51771
|
var connectMode = this.node.connectMode;
|
|
51731
51772
|
var line = new createjs.Shape();
|
|
51732
51773
|
|
|
51733
|
-
if (connectMode ===
|
|
51774
|
+
if (connectMode === '/') {
|
|
51734
51775
|
if (this.type === 1) {
|
|
51735
51776
|
if (isFront) {
|
|
51736
|
-
line.graphics.beginStroke(
|
|
51777
|
+
line.graphics.beginStroke('#000000').moveTo(this.dWidth - this._drawText.getMeasuredWidth(), 0).lineTo(this.dWidth, -this.dHeight);
|
|
51737
51778
|
} else {
|
|
51738
|
-
line.graphics.beginStroke(
|
|
51779
|
+
line.graphics.beginStroke('#000000').moveTo(0, 0).lineTo(this._drawText.getMeasuredWidth(), -this.dHeight);
|
|
51739
51780
|
}
|
|
51740
51781
|
} else {
|
|
51741
|
-
var signArr = this.imgSrc.split(
|
|
51742
|
-
var theHeight = new createjs.Text(this.imgSrc, this.textStyle,
|
|
51782
|
+
var signArr = this.imgSrc.split('\n');
|
|
51783
|
+
var theHeight = new createjs.Text(this.imgSrc, this.textStyle, '#000000').getMeasuredHeight();
|
|
51743
51784
|
|
|
51744
51785
|
if (signArr.length > 1) {
|
|
51745
51786
|
for (var i = 1; i < signArr.length; i++) {
|
|
51746
|
-
var aText = new createjs.Text(signArr[i], this.textStyle,
|
|
51787
|
+
var aText = new createjs.Text(signArr[i], this.textStyle, '#000000');
|
|
51747
51788
|
theHeight = theHeight + aText.getMeasuredHeight();
|
|
51748
51789
|
}
|
|
51749
51790
|
}
|
|
51750
51791
|
|
|
51751
51792
|
if (isFront) {
|
|
51752
|
-
line.graphics.beginStroke(
|
|
51793
|
+
line.graphics.beginStroke('#000000').moveTo(this.dWidth - this._drawText.getMeasuredWidth(), 2).lineTo(this.dWidth, -theHeight - 2);
|
|
51753
51794
|
} else {
|
|
51754
|
-
line.graphics.beginStroke(
|
|
51795
|
+
line.graphics.beginStroke('#000000').moveTo(0, 2).lineTo(this._drawText.getMeasuredWidth(), -theHeight - 2);
|
|
51755
51796
|
}
|
|
51756
51797
|
}
|
|
51757
51798
|
|
|
51758
51799
|
this.addChildAt(line);
|
|
51759
|
-
} else if (connectMode ===
|
|
51800
|
+
} else if (connectMode === '换行') {
|
|
51760
51801
|
return;
|
|
51761
51802
|
} else {
|
|
51762
|
-
this._drawText.textBaseline =
|
|
51763
|
-
this._drawText.textAlign =
|
|
51803
|
+
this._drawText.textBaseline = 'alphabetic';
|
|
51804
|
+
this._drawText.textAlign = 'left';
|
|
51764
51805
|
|
|
51765
51806
|
var rect = this._drawText.getBounds();
|
|
51766
51807
|
|
|
@@ -54776,6 +54817,11 @@ var Caret = /*#__PURE__*/function () {
|
|
|
54776
54817
|
this.div_cursor.style.height = Math.max(val, 12) * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY + "px"; // this.updateCaret();
|
|
54777
54818
|
}
|
|
54778
54819
|
}
|
|
54820
|
+
}, {
|
|
54821
|
+
key: "X",
|
|
54822
|
+
get: function get() {
|
|
54823
|
+
return this.x;
|
|
54824
|
+
}
|
|
54779
54825
|
}, {
|
|
54780
54826
|
key: "Y",
|
|
54781
54827
|
get: function get() {
|
|
@@ -62479,7 +62525,7 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
62479
62525
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39873);
|
|
62480
62526
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37174);
|
|
62481
62527
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(35671);
|
|
62482
|
-
/* harmony import */ var
|
|
62528
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(22342);
|
|
62483
62529
|
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(66992);
|
|
62484
62530
|
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
62485
62531
|
/* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(51532);
|
|
@@ -62494,28 +62540,34 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
62494
62540
|
/* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
62495
62541
|
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(21703);
|
|
62496
62542
|
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
62497
|
-
/* harmony import */ var
|
|
62498
|
-
/* harmony import */ var
|
|
62499
|
-
/* harmony import */ var
|
|
62500
|
-
/* harmony import */ var
|
|
62501
|
-
/* harmony import */ var
|
|
62502
|
-
/* harmony import */ var
|
|
62503
|
-
/* harmony import */ var
|
|
62504
|
-
/* harmony import */ var
|
|
62505
|
-
/* harmony import */ var
|
|
62506
|
-
/* harmony import */ var
|
|
62507
|
-
/* harmony import */ var
|
|
62508
|
-
/* harmony import */ var
|
|
62509
|
-
/* harmony import */ var
|
|
62510
|
-
/* harmony import */ var
|
|
62511
|
-
/* harmony import */ var
|
|
62512
|
-
/* harmony import */ var
|
|
62513
|
-
/* harmony import */ var
|
|
62514
|
-
/* harmony import */ var
|
|
62515
|
-
/* harmony import */ var
|
|
62516
|
-
/* harmony import */ var
|
|
62517
|
-
/* harmony import */ var
|
|
62518
|
-
/* harmony import */ var
|
|
62543
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(26699);
|
|
62544
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_12__);
|
|
62545
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(32023);
|
|
62546
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_13__);
|
|
62547
|
+
/* harmony import */ var _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(23375);
|
|
62548
|
+
/* harmony import */ var _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(91538);
|
|
62549
|
+
/* harmony import */ var _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(34534);
|
|
62550
|
+
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(98199);
|
|
62551
|
+
/* harmony import */ var _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(66828);
|
|
62552
|
+
/* harmony import */ var _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(58416);
|
|
62553
|
+
/* harmony import */ var _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(13113);
|
|
62554
|
+
/* harmony import */ var _UndoService__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(48508);
|
|
62555
|
+
/* harmony import */ var _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(34565);
|
|
62556
|
+
/* harmony import */ var _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(15868);
|
|
62557
|
+
/* harmony import */ var _events_Exception__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(88702);
|
|
62558
|
+
/* harmony import */ var _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(14208);
|
|
62559
|
+
/* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(15798);
|
|
62560
|
+
/* harmony import */ var _draw_SelectRange__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(1470);
|
|
62561
|
+
/* harmony import */ var _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(95883);
|
|
62562
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(41005);
|
|
62563
|
+
/* harmony import */ var _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(8395);
|
|
62564
|
+
/* harmony import */ var _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(89050);
|
|
62565
|
+
/* harmony import */ var _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(36395);
|
|
62566
|
+
/* harmony import */ var _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(98390);
|
|
62567
|
+
/* harmony import */ var _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(12019);
|
|
62568
|
+
/* harmony import */ var _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(34450);
|
|
62569
|
+
|
|
62570
|
+
|
|
62519
62571
|
|
|
62520
62572
|
|
|
62521
62573
|
|
|
@@ -62574,10 +62626,10 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62574
62626
|
this._startPath = startPath;
|
|
62575
62627
|
this._endPath = endPath;
|
|
62576
62628
|
this._isForceDelete = isForceDelete;
|
|
62577
|
-
this._undo = new
|
|
62629
|
+
this._undo = new _UndoService__WEBPACK_IMPORTED_MODULE_21__/* .UndoService */ .O(this._hoEditorFactoryID); //hoEditorFactory.undoService;
|
|
62578
62630
|
|
|
62579
62631
|
this._undoNodes = new Map();
|
|
62580
|
-
var aDomRange = new
|
|
62632
|
+
var aDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(hoEditorFactoryID, startPath, endPath).normalize();
|
|
62581
62633
|
|
|
62582
62634
|
var _aDomRange$inSameTabl = aDomRange.inSameTable(),
|
|
62583
62635
|
_aDomRange$inSameTabl2 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_aDomRange$inSameTabl, 2),
|
|
@@ -62586,10 +62638,10 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62586
62638
|
|
|
62587
62639
|
this._bSameTable = bSametable;
|
|
62588
62640
|
this._opTime = new Date();
|
|
62589
|
-
this._affectText =
|
|
62641
|
+
this._affectText = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).vueController.getRangeText(aDomRange);
|
|
62590
62642
|
}
|
|
62591
62643
|
|
|
62592
|
-
(0,
|
|
62644
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_36__/* ["default"] */ .Z)(NodesDeleteUndoUnit, [{
|
|
62593
62645
|
key: "undo",
|
|
62594
62646
|
value: function undo() {
|
|
62595
62647
|
//2.插入删除的节点
|
|
@@ -62601,12 +62653,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62601
62653
|
var arr = Array.from(this._undoNodes).reverse();
|
|
62602
62654
|
var i = 0;
|
|
62603
62655
|
var prevIsTable = false;
|
|
62604
|
-
var hoEditorFactory =
|
|
62656
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
62605
62657
|
|
|
62606
62658
|
while (i < arr.length) {
|
|
62607
62659
|
var value = arr[i];
|
|
62608
62660
|
|
|
62609
|
-
if (value[1] instanceof
|
|
62661
|
+
if (value[1] instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_26__/* .CellNode */ .D) {// (value[1] as CellNode).redrawCell(true, DocAction.daInsert);
|
|
62610
62662
|
} else {
|
|
62611
62663
|
if (prevIsTable) {
|
|
62612
62664
|
hoEditorFactory.docTree.insertNodeAfterNode(arr[i - 1][1], arr[i][1]);
|
|
@@ -62614,12 +62666,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62614
62666
|
hoEditorFactory.docTree.insertNodeAfterPath(value[0], value[1]);
|
|
62615
62667
|
}
|
|
62616
62668
|
|
|
62617
|
-
if (value[1] instanceof
|
|
62669
|
+
if (value[1] instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_28__/* .TableNode */ .Fh) {
|
|
62618
62670
|
prevIsTable = true; // value[1].clearDrawNodes();
|
|
62619
62671
|
// value[1].drawTable.drawPageTables.length = 0;
|
|
62620
62672
|
|
|
62621
62673
|
var np = hoEditorFactory.docTree.findNodePositionByPath(value[0]);
|
|
62622
|
-
if (np && np.node && np.node instanceof
|
|
62674
|
+
if (np && np.node && np.node instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_25__/* .ParagraphNode */ .C) value[1].drawTable.paragraphNode = np.node;
|
|
62623
62675
|
} else {
|
|
62624
62676
|
prevIsTable = false;
|
|
62625
62677
|
}
|
|
@@ -62629,7 +62681,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62629
62681
|
}
|
|
62630
62682
|
|
|
62631
62683
|
var aendPaht = hoEditorFactory.docTree.getNodeLastPath(arr[arr.length - 1][1]);
|
|
62632
|
-
var changeEvent = new
|
|
62684
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_16__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_14__/* .DocAction.daInsert */ .gk.daInsert, arr[0][0], aendPaht);
|
|
62633
62685
|
hoEditorFactory.docTree.change(changeEvent); //3.合并拆分节点
|
|
62634
62686
|
|
|
62635
62687
|
while (!this._undo.atBottom()) {
|
|
@@ -62657,9 +62709,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62657
62709
|
//选中范围变化事件
|
|
62658
62710
|
|
|
62659
62711
|
|
|
62660
|
-
var newRange = new
|
|
62712
|
+
var newRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
|
|
62661
62713
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
62662
|
-
var cgEvent = new
|
|
62714
|
+
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_20__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, newRange);
|
|
62663
62715
|
hoEditorFactory.docTree.selectChange(cgEvent); //光标定位
|
|
62664
62716
|
|
|
62665
62717
|
hoEditorFactory.drawTree.moveCaretToPath(newRange.endPath);
|
|
@@ -62678,7 +62730,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62678
62730
|
}, {
|
|
62679
62731
|
key: "MoveCaret",
|
|
62680
62732
|
value: function MoveCaret(path) {
|
|
62681
|
-
|
|
62733
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.moveCaretToPath(path);
|
|
62682
62734
|
}
|
|
62683
62735
|
/**
|
|
62684
62736
|
* @description 返回前面一个node的开始结束选中范围 文本节点时候返回文本中单个文字的选中范围
|
|
@@ -62689,30 +62741,30 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62689
62741
|
key: "getPrevNodeDomRange",
|
|
62690
62742
|
value: function getPrevNodeDomRange(Anode) {
|
|
62691
62743
|
var spath;
|
|
62692
|
-
var hoEditorFactory =
|
|
62744
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
62693
62745
|
var prev = Anode.prevSibling();
|
|
62694
62746
|
|
|
62695
62747
|
if (!prev) {
|
|
62696
|
-
throw
|
|
62748
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
62697
62749
|
}
|
|
62698
62750
|
|
|
62699
62751
|
var epath = hoEditorFactory.docTree.getNodeLastPath(prev);
|
|
62700
62752
|
|
|
62701
|
-
if (prev instanceof
|
|
62753
|
+
if (prev instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__/* .TextNode */ .R) {
|
|
62702
62754
|
spath = prev.prevPath(epath);
|
|
62703
|
-
} else if (prev instanceof
|
|
62755
|
+
} else if (prev instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_25__/* .ParagraphNode */ .C) {
|
|
62704
62756
|
spath = epath;
|
|
62705
62757
|
} else {
|
|
62706
62758
|
var prev1 = prev.previousLeaf();
|
|
62707
62759
|
|
|
62708
62760
|
if (!prev1) {
|
|
62709
|
-
throw
|
|
62761
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
62710
62762
|
}
|
|
62711
62763
|
|
|
62712
62764
|
spath = hoEditorFactory.docTree.getNodeLastPath(prev1);
|
|
62713
62765
|
}
|
|
62714
62766
|
|
|
62715
|
-
return new
|
|
62767
|
+
return new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, spath, epath);
|
|
62716
62768
|
}
|
|
62717
62769
|
/**
|
|
62718
62770
|
*
|
|
@@ -62726,23 +62778,23 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62726
62778
|
}, {
|
|
62727
62779
|
key: "deleteRange",
|
|
62728
62780
|
value: function deleteRange(endpath, startpath) {
|
|
62729
|
-
var currRange = new
|
|
62781
|
+
var currRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, startpath, endpath).normalize(); //拆分更新节点,更新删除范围 this._tmp
|
|
62730
62782
|
|
|
62731
62783
|
if (!this.spliteNode(currRange)) {
|
|
62732
62784
|
return 0;
|
|
62733
62785
|
}
|
|
62734
62786
|
|
|
62735
|
-
var newDomRange = new
|
|
62736
|
-
if (!newDomRange.npStart.node) throw
|
|
62737
|
-
if (!newDomRange.npEnd.node) throw
|
|
62787
|
+
var newDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.end);
|
|
62788
|
+
if (!newDomRange.npStart.node) throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
62789
|
+
if (!newDomRange.npEnd.node) throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
62738
62790
|
var aStart = newDomRange.npStart.node;
|
|
62739
62791
|
|
|
62740
62792
|
if (currRange.startMainNode) {
|
|
62741
62793
|
aStart = currRange.startMainNode;
|
|
62742
62794
|
}
|
|
62743
62795
|
|
|
62744
|
-
var nodes =
|
|
62745
|
-
var hoEditorFactory =
|
|
62796
|
+
var nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange.getSelectDomNodesForDelete */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._tmp.start, this._tmp.end);
|
|
62797
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID); // this.DeleteBaseCombineNodeContent(
|
|
62746
62798
|
// newDomRange,
|
|
62747
62799
|
// newDomRange.npEnd.node,
|
|
62748
62800
|
// aStart,
|
|
@@ -62867,7 +62919,8 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62867
62919
|
}, {
|
|
62868
62920
|
key: "spliteNode",
|
|
62869
62921
|
value: function spliteNode(Arange) {
|
|
62870
|
-
var _this = this
|
|
62922
|
+
var _this = this,
|
|
62923
|
+
_s$parentNode$downLis;
|
|
62871
62924
|
|
|
62872
62925
|
var s = Arange.npStart.node;
|
|
62873
62926
|
var e = Arange.npEnd.node;
|
|
@@ -62877,10 +62930,10 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62877
62930
|
* @param Anode
|
|
62878
62931
|
*/
|
|
62879
62932
|
|
|
62880
|
-
var hoEditorFactory =
|
|
62933
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
62881
62934
|
|
|
62882
62935
|
var forMarkNode = function forMarkNode(Anode) {
|
|
62883
|
-
if (Anode.parentNode instanceof
|
|
62936
|
+
if (Anode.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re) {
|
|
62884
62937
|
var pTINode = Anode.parentNode;
|
|
62885
62938
|
|
|
62886
62939
|
if (pTINode.isEmpty() || !pTINode.canModifyContent) {
|
|
@@ -62888,11 +62941,11 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62888
62941
|
var tmp = pTINode.previousLeaf();
|
|
62889
62942
|
|
|
62890
62943
|
if (!tmp) {
|
|
62891
|
-
throw
|
|
62944
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
62892
62945
|
}
|
|
62893
62946
|
|
|
62894
62947
|
info[0] = 0;
|
|
62895
|
-
info[1] = new
|
|
62948
|
+
info[1] = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(_this._hoEditorFactoryID, hoEditorFactory.docTree.getNodeLastPath(tmp), hoEditorFactory.docTree.getNodeLastPath(pTINode));
|
|
62896
62949
|
} else {
|
|
62897
62950
|
if (Anode == pTINode.last()) {
|
|
62898
62951
|
//递归调用删除
|
|
@@ -62918,18 +62971,20 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62918
62971
|
};
|
|
62919
62972
|
|
|
62920
62973
|
if (!(s && e)) {
|
|
62921
|
-
throw
|
|
62974
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
62922
62975
|
}
|
|
62923
62976
|
|
|
62924
62977
|
this._tmp.start = Arange.startPath;
|
|
62925
|
-
this._tmp.end = Arange.endPath;
|
|
62926
|
-
|
|
62927
|
-
|
|
62978
|
+
this._tmp.end = Arange.endPath;
|
|
62979
|
+
|
|
62980
|
+
if (s instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j && s.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && s.parentNode.inputFieldType === 1 && (_s$parentNode$downLis = s.parentNode.downListProperty.listItems) !== null && _s$parentNode$downLis !== void 0 && _s$parentNode$downLis.includes("<元素>")) {
|
|
62981
|
+
return true;
|
|
62982
|
+
}
|
|
62928
62983
|
|
|
62929
62984
|
if (s === e) {
|
|
62930
|
-
if (s instanceof
|
|
62985
|
+
if (s instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__/* .TextNode */ .R) {
|
|
62931
62986
|
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange = Arange;
|
|
62932
|
-
var tmp = new
|
|
62987
|
+
var tmp = new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_19__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.startPath, s, Arange);
|
|
62933
62988
|
|
|
62934
62989
|
this._undo.begin();
|
|
62935
62990
|
|
|
@@ -62938,7 +62993,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62938
62993
|
this._undo.commit();
|
|
62939
62994
|
|
|
62940
62995
|
this._tmp.end = hoEditorFactory.docTree.getNodeLastPath(tmp.theNode);
|
|
62941
|
-
} else if (s instanceof
|
|
62996
|
+
} else if (s instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j) {
|
|
62942
62997
|
forMarkNode(s);
|
|
62943
62998
|
|
|
62944
62999
|
if (info[0] == 0 && info[1]) {
|
|
@@ -62955,8 +63010,8 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62955
63010
|
} else {
|
|
62956
63011
|
var _tmp3 = null;
|
|
62957
63012
|
|
|
62958
|
-
if (e instanceof
|
|
62959
|
-
_tmp3 = new
|
|
63013
|
+
if (e instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__/* .TextNode */ .R && Arange.npEnd.childIndex >= 0 && Arange.npEnd.childIndex < e.getLength() - 1) {
|
|
63014
|
+
_tmp3 = new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_19__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.endPath, e, Arange);
|
|
62960
63015
|
|
|
62961
63016
|
this._undo.begin();
|
|
62962
63017
|
|
|
@@ -62965,22 +63020,22 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62965
63020
|
this._undo.commit();
|
|
62966
63021
|
}
|
|
62967
63022
|
|
|
62968
|
-
if (s instanceof
|
|
63023
|
+
if (s instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__/* .TextNode */ .R && Arange.npStart.childIndex >= 0 && Arange.npStart.childIndex < s.getLength() - 1) {
|
|
62969
63024
|
this._undo.begin();
|
|
62970
63025
|
|
|
62971
|
-
this._undo.add(new
|
|
63026
|
+
this._undo.add(new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_19__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, Arange.startPath, s, Arange));
|
|
62972
63027
|
|
|
62973
63028
|
this._undo.commit();
|
|
62974
63029
|
}
|
|
62975
63030
|
|
|
62976
|
-
if (e instanceof
|
|
63031
|
+
if (e instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j) {
|
|
62977
63032
|
forMarkNode(e);
|
|
62978
63033
|
|
|
62979
63034
|
if (info[0] == 0 && info[1]) {
|
|
62980
63035
|
this._tmp.end = info[1].endPath; // return this.spliteNode(new DomRange(this._tmp.start, this._tmp.end));
|
|
62981
63036
|
} else if ((info[0] == 1 || info[0] == 2) && info[1]) {
|
|
62982
63037
|
this._tmp.end = info[1].endPath;
|
|
62983
|
-
return this.spliteNode(new
|
|
63038
|
+
return this.spliteNode(new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.end));
|
|
62984
63039
|
}
|
|
62985
63040
|
}
|
|
62986
63041
|
|
|
@@ -62996,15 +63051,15 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62996
63051
|
}, {
|
|
62997
63052
|
key: "ParentRepaint",
|
|
62998
63053
|
value: function ParentRepaint(Anode) {
|
|
62999
|
-
if (Anode && Anode instanceof
|
|
63000
|
-
var hoEditorFactory =
|
|
63054
|
+
if (Anode && Anode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re) {
|
|
63055
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
63001
63056
|
|
|
63002
63057
|
if (Anode.childNodes.length === 2) {
|
|
63003
63058
|
var contentMarkNode = Anode.childNodes2[1];
|
|
63004
63059
|
contentMarkNode.styleIndex = Anode.childNodes[0].styleIndex;
|
|
63005
63060
|
var insertPath = hoEditorFactory.docTree.getNodeLastPath(Anode.childNodes[0]);
|
|
63006
63061
|
hoEditorFactory.undoService.begin();
|
|
63007
|
-
hoEditorFactory.undoService.add(new
|
|
63062
|
+
hoEditorFactory.undoService.add(new _NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, insertPath, contentMarkNode));
|
|
63008
63063
|
hoEditorFactory.undoService.commit();
|
|
63009
63064
|
}
|
|
63010
63065
|
|
|
@@ -63029,16 +63084,16 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63029
63084
|
switch (_context.prev = _context.next) {
|
|
63030
63085
|
case 0:
|
|
63031
63086
|
this.initParam();
|
|
63032
|
-
currRange = new
|
|
63033
|
-
hoEditorFactory =
|
|
63087
|
+
currRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
|
|
63088
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
63034
63089
|
hoEditorFactory.docTree.curDomRange = currRange;
|
|
63035
63090
|
|
|
63036
|
-
if (!(hoEditorFactory.drawTree.paintStatus ===
|
|
63091
|
+
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psReview */ .Dh.psReview)) {
|
|
63037
63092
|
_context.next = 10;
|
|
63038
63093
|
break;
|
|
63039
63094
|
}
|
|
63040
63095
|
|
|
63041
|
-
if (!(currRange.npEnd.node && currRange.npEnd.node instanceof
|
|
63096
|
+
if (!(currRange.npEnd.node && currRange.npEnd.node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__/* .TextNode */ .R)) {
|
|
63042
63097
|
_context.next = 10;
|
|
63043
63098
|
break;
|
|
63044
63099
|
}
|
|
@@ -63055,7 +63110,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63055
63110
|
return _context.abrupt("return");
|
|
63056
63111
|
|
|
63057
63112
|
case 10:
|
|
63058
|
-
nodes =
|
|
63113
|
+
nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange.getSelectDomNodesForDelete */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._startPath, this._endPath); // const npFirst = hoEditorFactory.docTree.findNodePositionByPath(this._startPath);
|
|
63059
63114
|
// if (npFirst && npFirst.node) {
|
|
63060
63115
|
// //const parentNode = hoEditorFactory.docTree.getParentNode(this._startPath);
|
|
63061
63116
|
// //if (parentNode) {
|
|
@@ -63066,7 +63121,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63066
63121
|
// }
|
|
63067
63122
|
//if(nodes.length == 0) return;
|
|
63068
63123
|
|
|
63069
|
-
if (!(hoEditorFactory.drawTree.paintStatus !==
|
|
63124
|
+
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psDesign */ .Dh.psDesign && !this._isForceDelete)) {
|
|
63070
63125
|
_context.next = 33;
|
|
63071
63126
|
break;
|
|
63072
63127
|
}
|
|
@@ -63081,7 +63136,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63081
63136
|
|
|
63082
63137
|
node = nodes[n];
|
|
63083
63138
|
|
|
63084
|
-
if (!(node instanceof
|
|
63139
|
+
if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j && node.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && node.MarkNodeType === 1 && !node.parentNode.isAllowDelete)) {
|
|
63085
63140
|
_context.next = 18;
|
|
63086
63141
|
break;
|
|
63087
63142
|
}
|
|
@@ -63091,7 +63146,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63091
63146
|
return _context.abrupt("return", 0);
|
|
63092
63147
|
|
|
63093
63148
|
case 18:
|
|
63094
|
-
if (!(node instanceof
|
|
63149
|
+
if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_30__/* .ControlNode */ .w || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re)) {
|
|
63095
63150
|
_context.next = 27;
|
|
63096
63151
|
break;
|
|
63097
63152
|
}
|
|
@@ -63103,19 +63158,19 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63103
63158
|
|
|
63104
63159
|
tip = "";
|
|
63105
63160
|
|
|
63106
|
-
if (node instanceof
|
|
63161
|
+
if (node instanceof _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_31__/* .RadioAndCheckBoxNode */ .Yh && node.controlStyle === "RadioBox") {
|
|
63107
63162
|
tip = "单选框";
|
|
63108
63163
|
}
|
|
63109
63164
|
|
|
63110
|
-
if (node instanceof
|
|
63165
|
+
if (node instanceof _dom_treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_31__/* .RadioAndCheckBoxNode */ .Yh && node.controlStyle === "CheckBox") {
|
|
63111
63166
|
tip = "复选框";
|
|
63112
63167
|
}
|
|
63113
63168
|
|
|
63114
|
-
if (node instanceof
|
|
63169
|
+
if (node instanceof _dom_treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_32__/* .DateTimeNode */ .Z) {
|
|
63115
63170
|
tip = "日期时间";
|
|
63116
63171
|
}
|
|
63117
63172
|
|
|
63118
|
-
if (node instanceof
|
|
63173
|
+
if (node instanceof _dom_treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_33__/* .DownListNode */ .yF) {
|
|
63119
63174
|
tip = "下拉列表";
|
|
63120
63175
|
}
|
|
63121
63176
|
|
|
@@ -63124,7 +63179,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63124
63179
|
return _context.abrupt("return", 0);
|
|
63125
63180
|
|
|
63126
63181
|
case 27:
|
|
63127
|
-
if (!(node instanceof
|
|
63182
|
+
if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
63128
63183
|
_context.next = 30;
|
|
63129
63184
|
break;
|
|
63130
63185
|
}
|
|
@@ -63141,7 +63196,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63141
63196
|
case 33:
|
|
63142
63197
|
pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
|
|
63143
63198
|
|
|
63144
|
-
if (!(pnode && pnode instanceof
|
|
63199
|
+
if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
|
|
63145
63200
|
_context.next = 39;
|
|
63146
63201
|
break;
|
|
63147
63202
|
}
|
|
@@ -63162,7 +63217,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63162
63217
|
return _context.abrupt("return");
|
|
63163
63218
|
|
|
63164
63219
|
case 39:
|
|
63165
|
-
changeEvent = new
|
|
63220
|
+
changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_16__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_14__/* .DocAction.daUndoInsert */ .gk.daUndoInsert, currRange.startPath, ""); //FIXME:deleteRange函数完成后调用这个
|
|
63166
63221
|
// hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
|
|
63167
63222
|
|
|
63168
63223
|
if (currRange.npStart.node && currRange.npEnd.node) {
|
|
@@ -63170,7 +63225,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63170
63225
|
break;
|
|
63171
63226
|
}
|
|
63172
63227
|
|
|
63173
|
-
throw
|
|
63228
|
+
throw _events_Exception__WEBPACK_IMPORTED_MODULE_24__/* .Exception.NodeNotFound */ .P.NodeNotFound();
|
|
63174
63229
|
|
|
63175
63230
|
case 42:
|
|
63176
63231
|
// const [startPath, endPath] = DomRange.skipStartEndTablePath(
|
|
@@ -63181,7 +63236,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63181
63236
|
startPath = currRange.startPath;
|
|
63182
63237
|
endPath = currRange.endPath;
|
|
63183
63238
|
changeEvent.oldEndPath = endPath;
|
|
63184
|
-
changeEvent.oldDrawTreeLines = new
|
|
63239
|
+
changeEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_27__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(startPath, endPath);
|
|
63185
63240
|
res = this.deleteRange(currRange.endPath, currRange.startPath);
|
|
63186
63241
|
|
|
63187
63242
|
if (!(res == 1)) {
|
|
@@ -63195,7 +63250,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63195
63250
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
63196
63251
|
|
|
63197
63252
|
case 52:
|
|
63198
|
-
cgEvent = new
|
|
63253
|
+
cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_20__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._tmp.start, this._tmp.start));
|
|
63199
63254
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
63200
63255
|
|
|
63201
63256
|
case 54:
|
|
@@ -199103,8 +199158,8 @@ var es_function_name = __webpack_require__(68309);
|
|
|
199103
199158
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
199104
199159
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(13797);
|
|
199105
199160
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
199106
|
-
;// 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=
|
|
199107
|
-
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()
|
|
199161
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=83a638fc&
|
|
199162
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.hoEditorFactoryIdList.length > 0)?_c('div',{staticClass:"ho-docs"},[_c('section',{class:_vm.defaultEditJson.isFooter ? 'ho-editor-list' : 'ho-editor-list editor-no-footer',on:{"contextmenu":function($event){return _vm.blankAreaRightClick.apply(null, arguments)}}},[_vm._l((_vm.hoEditorFactoryIdList),function(hoEditorId,index){return [_c('HoDoc',{key:index,attrs:{"docIndex":index,"hoEditorId":hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"activeDocId":_vm.activeDocId,"editJson":_vm.defaultEditJson,"isUseTipText":_vm.isUseTipText,"textStyle":_vm.textStyle},on:{"dblNodeClick":_vm.dblNodeClick,"setFontStyles":_vm.setFontStyles,"rightClickEvent":_vm.rightClickEvent,"setActiveDocIndex":_vm.setActiveDocIndex,"setActivePageIndex":_vm.setActivePageIndex,"drawPagesLengthChange":_vm.drawPagesLengthChange},scopedSlots:_vm._u([{key:"hoDocHead",fn:function(){return [_vm._t("hoHead")]},proxy:true},{key:"hoDocFoot",fn:function(){return [_vm._t("hoFoot")]},proxy:true}],null,true)})]})],2),(_vm.notUseModal)?_c('ControlModal',{attrs:{"hoEditorFactoryId":_vm.activeDocId,"controlProperty":_vm.controlProperty,"isDataSource":_vm.isDataSource,"isCustoms":_vm.isCustoms,"isTableProperty":_vm.isTableProperty,"isListStyle":_vm.isListStyle,"uploadImageParams":_vm.uploadImageParams},on:{"insertComments":_vm.insertComments,"closeControlmodal":_vm.closeControlModal},scopedSlots:_vm._u([{key:"hoTextModal",fn:function(){return [_vm._t("hoTextField")]},proxy:true},{key:"hoParagraphModal",fn:function(){return [_vm._t("hoParagraphField")]},proxy:true},{key:"hoComment",fn:function(){return [_vm._t("hoTextComment")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlFindType)?_c('FindReplaceDialog',{attrs:{"hoEditorFactoryId":_vm.activeDocId}}):_vm._e(),(_vm.defaultEditJson.isFooter)?_c('HoFooter',{attrs:{"docProperty":_vm.defaultDocProperty,"hoEditorFactoryId":_vm.activeDocId,"drawPages":_vm.drawPageLength,"currentActivePages":_vm.activePageIndex}}):_vm._e()],1):_vm._e()}
|
|
199108
199163
|
var staticRenderFns = []
|
|
199109
199164
|
|
|
199110
199165
|
|
|
@@ -200029,9 +200084,9 @@ function isPromise(obj) {
|
|
|
200029
200084
|
return obj instanceof Promise || (obj && typeof obj.then === 'function');
|
|
200030
200085
|
}
|
|
200031
200086
|
|
|
200032
|
-
;// 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=
|
|
200033
|
-
var
|
|
200034
|
-
var
|
|
200087
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=4a9748a4&
|
|
200088
|
+
var HoDocvue_type_template_id_4a9748a4_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.docClassNames},[_c('div',{ref:"editorArea",staticClass:"editors"},[(_vm.drawPageLength > 0)?_c('div',{staticClass:"editor",on:{"click":function($event){return _vm.setActiveDocIndex(_vm.hoEditorId)}}},[_vm._l((_vm.drawPageCount.count),function(pgIndex){return [_c('HoPage',{key:pgIndex - 1,attrs:{"data-id":pgIndex - 1,"index":pgIndex - 1,"docIndex":_vm.docIndex,"canvasWidth":_vm.canvasParams.width,"canvasHeight":_vm.canvasParams.height,"currentActivePages":_vm.activePageIndex.index,"hoEditorId":_vm.hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"mouseMoveNodes":_vm.mouseMoveNodes,"viewableAreaObserver":_vm.viewableAreaObserver,"inViewPages":_vm.inViewPages,"canvasHeadFootPos":_vm.canvasHeadFootPos,"poperTipPos":_vm.poperTipPos,"textStyle":_vm.textStyle,"aiInfo":_vm.aiInfo},on:{"pageReady":_vm.pageReady,"canvasRightClick":_vm.mouseRightClickEvent},scopedSlots:_vm._u([{key:"hoPageHead",fn:function(){return [_vm._t("hoDocHead")]},proxy:true},{key:"hoPageFoot",fn:function(){return [_vm._t("hoDocFoot")]},proxy:true}],null,true)})]})],2):_vm._e()]),(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper')?_c('PoperSelectModal',{attrs:{"poperType":_vm.poperType,"poperSelectList":_vm.poperSelectList,"poperPos":_vm.poperPos,"hoEditorId":_vm.hoEditorId},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('PoperMark',{directives:[{name:"show",rawName:"v-show",value:(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper' || _vm.poperType === 'table-cell-poper'),expression:"poperType === 'datePoper' || poperType === 'selectPoper' || poperType === 'table-cell-poper'"}]}),(_vm.poperType === 'table-cell-poper')?_c('TableCellPoper',{attrs:{"poperNode":_vm.nodeValue,"poperPos":_vm.poperPos},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('HoToPage',{attrs:{"hoEditorId":_vm.hoEditorId,"inViewPages":_vm.inViewPages}}),_c('PoperTipText',{attrs:{"isPoperText":_vm.isPoperText,"poperText":_vm.poperText,"poperPos":_vm.poperTextPos},on:{"poperTextClose":_vm.poperTextClose}}),_c('ul',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(function () { return (_vm.isCreateRightMenuModal = false); }),expression:"() => (isCreateRightMenuModal = false)"},{name:"show",rawName:"v-show",value:(_vm.isCreateRightMenuModal),expression:"isCreateRightMenuModal"}],ref:"rightMenuModal",staticClass:"create-right-menu"},[(_vm.showCommentsBtn)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.hideComments}},[_vm._v(_vm._s(_vm.isHideComments ? '显示' : '隐藏')+"批注")]):_vm._e(),_c('li',{staticClass:"mouse-menu-item"},[_vm._v(" 编辑器内核版本: "),_c('span',{staticStyle:{"font-size":"14px","color":"#0a77e3"}},[_vm._v("v "+_vm._s(_vm.version))])])])],1)}
|
|
200089
|
+
var HoDocvue_type_template_id_4a9748a4_staticRenderFns = []
|
|
200035
200090
|
|
|
200036
200091
|
|
|
200037
200092
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
@@ -207086,7 +207141,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
207086
207141
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207087
207142
|
var ParagraphNode = __webpack_require__(14208);
|
|
207088
207143
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207089
|
-
/* harmony default export */ var version = ('2.0.
|
|
207144
|
+
/* harmony default export */ var version = ('2.0.63');
|
|
207090
207145
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperTipText/PoperTipText.vue?vue&type=template&id=3fa4e4d3&scoped=true&
|
|
207091
207146
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShow),expression:"isShow"},{name:"click-outside",rawName:"v-click-outside",value:(_vm.handleClose),expression:"handleClose"}],ref:"poperTextNode",staticClass:"poper-text-modal animation-in",style:(_vm.posStyle),on:{"mouseenter":_vm.mouseEnter,"mouseleave":_vm.mouseLeave}},_vm._l((_vm.poperText),function(text){return _c('div',{key:text + Math.random(0, 1),staticClass:"poper-text"},[_vm._v(" "+_vm._s(text)+" ")])}),0)}
|
|
207092
207147
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -207627,6 +207682,14 @@ var HoDoc = /*#__PURE__*/function (_Vue) {
|
|
|
207627
207682
|
|
|
207628
207683
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
207629
207684
|
if (!e.clickType || e.clickType === 'move') return false;
|
|
207685
|
+
var hoParagrapghTipElementNode = document.querySelector('#ho_paragrapgh_tip');
|
|
207686
|
+
|
|
207687
|
+
if (hoParagrapghTipElementNode) {
|
|
207688
|
+
var _hoParagrapghTipEleme;
|
|
207689
|
+
|
|
207690
|
+
(_hoParagrapghTipEleme = hoParagrapghTipElementNode.parentNode) === null || _hoParagrapghTipEleme === void 0 ? void 0 : _hoParagrapghTipEleme.removeChild(hoParagrapghTipElementNode);
|
|
207691
|
+
}
|
|
207692
|
+
|
|
207630
207693
|
var node = e.node;
|
|
207631
207694
|
this.poperClose();
|
|
207632
207695
|
|
|
@@ -208018,8 +208081,8 @@ HoDoc = __decorate([vue_class_component_esm({
|
|
|
208018
208081
|
|
|
208019
208082
|
var HoDoc_component = normalizeComponent(
|
|
208020
208083
|
components_HoDocvue_type_script_lang_ts_,
|
|
208021
|
-
|
|
208022
|
-
|
|
208084
|
+
HoDocvue_type_template_id_4a9748a4_render,
|
|
208085
|
+
HoDocvue_type_template_id_4a9748a4_staticRenderFns,
|
|
208023
208086
|
false,
|
|
208024
208087
|
null,
|
|
208025
208088
|
null,
|
|
@@ -209312,6 +209375,8 @@ var NodeClickEvent = __webpack_require__(25445);
|
|
|
209312
209375
|
|
|
209313
209376
|
|
|
209314
209377
|
|
|
209378
|
+
|
|
209379
|
+
|
|
209315
209380
|
var DmouseEventType;
|
|
209316
209381
|
|
|
209317
209382
|
(function (DmouseEventType) {
|
|
@@ -209499,6 +209564,8 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
|
209499
209564
|
}, {
|
|
209500
209565
|
key: "NodeClick",
|
|
209501
209566
|
value: function NodeClick(node, moveType) {
|
|
209567
|
+
var _this = this;
|
|
209568
|
+
|
|
209502
209569
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
209503
209570
|
|
|
209504
209571
|
if (node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh && moveType === DmouseEventType.detClick) {
|
|
@@ -209507,6 +209574,44 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
|
209507
209574
|
hoEditorFactory.docTree.nodeClick(nodeClickEvent);
|
|
209508
209575
|
node.drawNodes[0].parent = drawLine;
|
|
209509
209576
|
}
|
|
209577
|
+
|
|
209578
|
+
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psDesign */.Dh.psDesign) {
|
|
209579
|
+
var paragraphNode = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]).paragraphNode;
|
|
209580
|
+
|
|
209581
|
+
if (paragraphNode && paragraphNode.customProperty) {
|
|
209582
|
+
var customProperty = paragraphNode.customProperty;
|
|
209583
|
+
var paragraphTip = ['男', '女'].includes(customProperty.sex) || customProperty.age && customProperty.age.select == '隐藏';
|
|
209584
|
+
var arr = [];
|
|
209585
|
+
|
|
209586
|
+
if (paragraphTip) {
|
|
209587
|
+
if (['男', '女'].includes(customProperty.sex)) {
|
|
209588
|
+
arr.push("\u60A3\u8005\u4E3A<span style=\"color:#f00\"> ".concat(customProperty.sex, " </span>\u6027\u65F6\uFF0C\u9690\u85CF\u5F53\u524D\u6BB5\u843D"));
|
|
209589
|
+
}
|
|
209590
|
+
|
|
209591
|
+
if (customProperty.age && customProperty.age.select == '隐藏') {
|
|
209592
|
+
arr.push("\u60A3\u8005\u5E74\u9F84\u5728<span style=\"color:#f00\"> ".concat(customProperty.age.minAge, " </span>\u5C81\u5230<span style=\"color:#f00\"> ").concat(customProperty.age.maxAge, " </span>\u4E4B\u95F4\u65F6\uFF0C\u9690\u85CF\u5F53\u524D\u6BB5\u843D"));
|
|
209593
|
+
}
|
|
209594
|
+
|
|
209595
|
+
if (arr.length > 0) {
|
|
209596
|
+
setTimeout(function () {
|
|
209597
|
+
_this.createParagraphTipHTML(hoEditorFactory.drawTree.caret, arr);
|
|
209598
|
+
}, 0);
|
|
209599
|
+
}
|
|
209600
|
+
}
|
|
209601
|
+
}
|
|
209602
|
+
}
|
|
209603
|
+
}
|
|
209604
|
+
}, {
|
|
209605
|
+
key: "createParagraphTipHTML",
|
|
209606
|
+
value: function createParagraphTipHTML(caret, text) {
|
|
209607
|
+
var _caret$cursor$parentN;
|
|
209608
|
+
|
|
209609
|
+
var tipdiv = document.createElement('div');
|
|
209610
|
+
tipdiv.id = "ho_paragrapgh_tip";
|
|
209611
|
+
tipdiv.style.left = caret.X + "px";
|
|
209612
|
+
tipdiv.style.top = caret.Y + caret.height + "px";
|
|
209613
|
+
tipdiv.innerHTML = text.join("<br />");
|
|
209614
|
+
(_caret$cursor$parentN = caret.cursor.parentNode) === null || _caret$cursor$parentN === void 0 ? void 0 : _caret$cursor$parentN.appendChild(tipdiv);
|
|
209510
209615
|
}
|
|
209511
209616
|
/**
|
|
209512
209617
|
* @param node moveNode
|
|
@@ -213062,8 +213167,14 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213062
213167
|
var insertNode = function insertNode(array, prevNode) {
|
|
213063
213168
|
var firstNode = array[0];
|
|
213064
213169
|
|
|
213065
|
-
if (firstNode instanceof ParagraphNode/* ParagraphNode */.C &&
|
|
213066
|
-
|
|
213170
|
+
if (firstNode instanceof ParagraphNode/* ParagraphNode */.C && prevNode instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
213171
|
+
if (firstNode.paraNo !== 0) {
|
|
213172
|
+
prevNode.paraNo = firstNode.paraNo;
|
|
213173
|
+
}
|
|
213174
|
+
|
|
213175
|
+
if (firstNode.customProperty) {
|
|
213176
|
+
prevNode.customProperty = firstNode.customProperty;
|
|
213177
|
+
}
|
|
213067
213178
|
}
|
|
213068
213179
|
|
|
213069
213180
|
for (var j = 1; j < array.length; j++) {
|
|
@@ -220112,7 +220223,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220112
220223
|
|
|
220113
220224
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
220114
220225
|
if (node.isTemplate) {
|
|
220115
|
-
if (node.imgSrc) {
|
|
220226
|
+
if (node.imgSrc || node.fingerPrintSrc) {
|
|
220116
220227
|
this.deleteNode(node);
|
|
220117
220228
|
setTimeout(function () {
|
|
220118
220229
|
var newcurDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
@@ -220146,7 +220257,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220146
220257
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
|
|
220147
220258
|
|
|
220148
220259
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
220149
|
-
Promise.all([hoEditorFactory.docController.insertSignNode(curDomRange,
|
|
220260
|
+
Promise.all([hoEditorFactory.docController.insertSignNode(curDomRange, 3, "患者签名", "", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220150
220261
|
setTimeout(function () {
|
|
220151
220262
|
callback && callback();
|
|
220152
220263
|
}, 0);
|
|
@@ -220840,6 +220951,26 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220840
220951
|
}
|
|
220841
220952
|
});
|
|
220842
220953
|
}
|
|
220954
|
+
}, {
|
|
220955
|
+
key: "clearEditRecords",
|
|
220956
|
+
value: function clearEditRecords() {
|
|
220957
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220958
|
+
var drawMainDocs = hoEditorFactory.drawPageTree.drawMainDocs;
|
|
220959
|
+
|
|
220960
|
+
for (var j = drawMainDocs.length - 1; j >= 0; j--) {
|
|
220961
|
+
var children = drawMainDocs[j].children;
|
|
220962
|
+
|
|
220963
|
+
for (var i = children.length - 1; i >= 0; i--) {
|
|
220964
|
+
var child = children[i];
|
|
220965
|
+
|
|
220966
|
+
if (child.name && child.name.indexOf("recordC") >= 0) {
|
|
220967
|
+
children.splice(i, 1);
|
|
220968
|
+
}
|
|
220969
|
+
}
|
|
220970
|
+
|
|
220971
|
+
hoEditorFactory.drawPageTree.updateDrawPage(j);
|
|
220972
|
+
}
|
|
220973
|
+
}
|
|
220843
220974
|
}, {
|
|
220844
220975
|
key: "updateImageSrc",
|
|
220845
220976
|
value: function updateImageSrc(node, src) {
|
|
@@ -224532,7 +224663,8 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
224532
224663
|
this._lastSaveTime = new Date(Date.now());
|
|
224533
224664
|
this._superiorSigns = []; //上级医生签名
|
|
224534
224665
|
|
|
224535
|
-
this._isEnabledGlobalColor = false;
|
|
224666
|
+
this._isEnabledGlobalColor = false; //是否启用全局颜色
|
|
224667
|
+
|
|
224536
224668
|
this._hoEditorFactoryId = id;
|
|
224537
224669
|
}
|
|
224538
224670
|
/**
|
|
@@ -229742,9 +229874,9 @@ var CanvasImageDialog_component = normalizeComponent(
|
|
|
229742
229874
|
|
|
229743
229875
|
|
|
229744
229876
|
|
|
229745
|
-
;// 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=
|
|
229746
|
-
var
|
|
229747
|
-
var
|
|
229877
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/paragraph/ParagraphDialog.vue?vue&type=template&id=461dae42&
|
|
229878
|
+
var ParagraphDialogvue_type_template_id_461dae42_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("段落属性设置")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_vm._t("hoParagraph")],2)]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
229879
|
+
var ParagraphDialogvue_type_template_id_461dae42_staticRenderFns = []
|
|
229748
229880
|
|
|
229749
229881
|
|
|
229750
229882
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/paragraph/ParagraphDialog.vue?vue&type=script&lang=js&
|
|
@@ -229767,7 +229899,7 @@ var ParagraphDialogvue_type_template_id_2a071484_staticRenderFns = []
|
|
|
229767
229899
|
//
|
|
229768
229900
|
//
|
|
229769
229901
|
//
|
|
229770
|
-
|
|
229902
|
+
|
|
229771
229903
|
/* harmony default export */ var ParagraphDialogvue_type_script_lang_js_ = ({
|
|
229772
229904
|
name: 'ParagraphDialog',
|
|
229773
229905
|
props: {
|
|
@@ -229784,16 +229916,26 @@ var ParagraphDialogvue_type_template_id_2a071484_staticRenderFns = []
|
|
|
229784
229916
|
required: true
|
|
229785
229917
|
}
|
|
229786
229918
|
},
|
|
229919
|
+
inject: ['getParagraphCustomProperty'],
|
|
229787
229920
|
data: function data() {
|
|
229788
229921
|
return {
|
|
229789
229922
|
textActiveName: 'first',
|
|
229790
229923
|
animationClassNames: 'control-modal-contents paragraph-modal animation-in'
|
|
229791
229924
|
};
|
|
229792
229925
|
},
|
|
229793
|
-
|
|
229794
|
-
|
|
229926
|
+
computed: {
|
|
229927
|
+
domRange: function domRange() {
|
|
229928
|
+
return this.controlProperty.domRange;
|
|
229929
|
+
}
|
|
229930
|
+
},
|
|
229795
229931
|
methods: {
|
|
229796
229932
|
sure: function sure() {
|
|
229933
|
+
var _hoEditorFactory$vueC;
|
|
229934
|
+
|
|
229935
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
229936
|
+
var node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(this.domRange.endPath)) === null || _hoEditorFactory$vueC === void 0 ? void 0 : _hoEditorFactory$vueC.node;
|
|
229937
|
+
var paragraphNode = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]).paragraphNode;
|
|
229938
|
+
paragraphNode.setCustomProperty(this.getParagraphCustomProperty());
|
|
229797
229939
|
this.handleClose();
|
|
229798
229940
|
},
|
|
229799
229941
|
handleClose: function handleClose() {
|
|
@@ -229820,8 +229962,8 @@ var ParagraphDialogvue_type_template_id_2a071484_staticRenderFns = []
|
|
|
229820
229962
|
|
|
229821
229963
|
var ParagraphDialog_component = normalizeComponent(
|
|
229822
229964
|
paragraph_ParagraphDialogvue_type_script_lang_js_,
|
|
229823
|
-
|
|
229824
|
-
|
|
229965
|
+
ParagraphDialogvue_type_template_id_461dae42_render,
|
|
229966
|
+
ParagraphDialogvue_type_template_id_461dae42_staticRenderFns,
|
|
229825
229967
|
false,
|
|
229826
229968
|
null,
|
|
229827
229969
|
null,
|
|
@@ -232884,6 +233026,11 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
232884
233026
|
value: function getCustomProperty() {
|
|
232885
233027
|
return this.customProperty;
|
|
232886
233028
|
}
|
|
233029
|
+
}, {
|
|
233030
|
+
key: "getParagraphCustomProperty",
|
|
233031
|
+
value: function getParagraphCustomProperty() {
|
|
233032
|
+
return this.paragraphCustomProperty;
|
|
233033
|
+
}
|
|
232887
233034
|
}, {
|
|
232888
233035
|
key: "textStyleChange",
|
|
232889
233036
|
value: function textStyleChange(val) {
|
|
@@ -232901,7 +233048,7 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
232901
233048
|
}, {
|
|
232902
233049
|
key: "controlTypeChange",
|
|
232903
233050
|
value: function controlTypeChange(newValue, oldValue) {
|
|
232904
|
-
if (newValue === '' && ['text', 'date', 'comment'].includes(oldValue)) {
|
|
233051
|
+
if (newValue === '' && ['text', 'date', 'comment', 'paragraph'].includes(oldValue)) {
|
|
232905
233052
|
this.$emit('closeTextModal');
|
|
232906
233053
|
this.customPropertyValue = {};
|
|
232907
233054
|
}
|
|
@@ -233395,6 +233542,8 @@ __decorate([Prop()], HoDocs.prototype, "uploadImageParams", void 0);
|
|
|
233395
233542
|
|
|
233396
233543
|
__decorate([Prop()], HoDocs.prototype, "customProperty", void 0);
|
|
233397
233544
|
|
|
233545
|
+
__decorate([Prop()], HoDocs.prototype, "paragraphCustomProperty", void 0);
|
|
233546
|
+
|
|
233398
233547
|
__decorate([Prop()], HoDocs.prototype, "deleteImageNodeList", void 0);
|
|
233399
233548
|
|
|
233400
233549
|
__decorate([Prop()], HoDocs.prototype, "pageProperty", void 0);
|
|
@@ -233441,6 +233590,8 @@ __decorate([Watch('editJson')], HoDocs.prototype, "editJsonChange", null);
|
|
|
233441
233590
|
|
|
233442
233591
|
__decorate([Provide()], HoDocs.prototype, "getCustomProperty", null);
|
|
233443
233592
|
|
|
233593
|
+
__decorate([Provide()], HoDocs.prototype, "getParagraphCustomProperty", null);
|
|
233594
|
+
|
|
233444
233595
|
__decorate([Watch('textStyle', {
|
|
233445
233596
|
deep: true
|
|
233446
233597
|
})], HoDocs.prototype, "textStyleChange", null);
|