devexpress-diagram 2.2.11 → 2.2.12
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/dist/dx-diagram.css +2 -2
- package/dist/dx-diagram.js +16 -4
- package/dist/dx-diagram.min.css +2 -2
- package/dist/dx-diagram.min.js +1 -1
- package/dist/dx-diagram.min.js.LICENSE.txt +2 -2
- package/dist/lib/package.json +1 -1
- package/dist/lib/src/Commands/Clipboard/PasteSelectionCommandBase.ts +3 -1
- package/dist/lib/src/Commands/Keyboard/MoveCommands.ts +1 -0
- package/dist/lib/src/Events/MouseStates/MouseHandlerDragDiagramItemStateBase.ts +1 -0
- package/dist/lib/src/Layout/Builders/Sugiyama.ts +5 -3
- package/dist/lib/src/Model/Connectors/Connector.ts +3 -0
- package/dist/lib/src/Model/Helpers/DragHelper.ts +3 -0
- package/package.json +1 -1
package/dist/dx-diagram.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* DevExpress Diagram (dx-diagram)
|
|
3
|
-
* Version: 2.2.
|
|
4
|
-
* Build date: Thu
|
|
3
|
+
* Version: 2.2.12
|
|
4
|
+
* Build date: Thu Oct 10 2024
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
|
package/dist/dx-diagram.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* DevExpress Diagram (dx-diagram)
|
|
3
|
-
* Version: 2.2.
|
|
4
|
-
* Build date: Thu
|
|
3
|
+
* Version: 2.2.12
|
|
4
|
+
* Build date: Thu Oct 10 2024
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
|
|
@@ -4926,8 +4926,10 @@ var PasteSelectionCommandBase = (function (_super) {
|
|
|
4926
4926
|
var item = items[i];
|
|
4927
4927
|
if (item instanceof Shape_1.Shape)
|
|
4928
4928
|
item.position.offsetByPoint(offset);
|
|
4929
|
-
else if (item instanceof Connector_1.Connector)
|
|
4929
|
+
else if (item instanceof Connector_1.Connector) {
|
|
4930
4930
|
item.points.forEach(function (p) { return p.offsetByPoint(offset); });
|
|
4931
|
+
item.clearRenderPoints();
|
|
4932
|
+
}
|
|
4931
4933
|
}
|
|
4932
4934
|
return items;
|
|
4933
4935
|
};
|
|
@@ -6361,6 +6363,7 @@ var MoveCommand = (function (_super) {
|
|
|
6361
6363
|
helper.initDraggingShapes(selection.getSelectedShapes(false, true), false);
|
|
6362
6364
|
helper.initDraggingConnectors(selection.getSelectedConnectors(false, true), false);
|
|
6363
6365
|
helper.move(false, function (p) { return _this.getPosition(p); }, function () { }, function () { });
|
|
6366
|
+
helper.finish();
|
|
6364
6367
|
ModelUtils_1.ModelUtils.tryUpdateModelRectangle(this.control.history, function (offsetLeft, offsetTop) { return helper.onTryUpdateModelSize(offsetLeft, offsetTop); });
|
|
6365
6368
|
this.control.history.endTransaction();
|
|
6366
6369
|
return true;
|
|
@@ -12908,6 +12911,8 @@ var MouseHandlerDragDiagramItemStateBase = (function (_super) {
|
|
|
12908
12911
|
return _this;
|
|
12909
12912
|
}
|
|
12910
12913
|
MouseHandlerDragDiagramItemStateBase.prototype.finish = function () {
|
|
12914
|
+
var _a;
|
|
12915
|
+
(_a = this.dragHelper) === null || _a === void 0 ? void 0 : _a.finish();
|
|
12911
12916
|
this.visualizerManager.resetExtensionLines();
|
|
12912
12917
|
this.visualizerManager.resetContainerTarget();
|
|
12913
12918
|
this.visualizerManager.resetConnectionTarget();
|
|
@@ -19312,9 +19317,10 @@ var SugiyamaNodesOrderer = (function () {
|
|
|
19312
19317
|
var blocks = [];
|
|
19313
19318
|
var isBottom = alignment === MedianAlignmentMode.BottomLeft || alignment === MedianAlignmentMode.BottomRight;
|
|
19314
19319
|
var allNodesInfo = new ListUtils_1.HashSet(nodeInfos.slice(0).sort(function (a, b) { return isBottom ? (a.layer - b.layer) : (b.layer - a.layer); }), function (n) { return n.key; });
|
|
19320
|
+
var knownNodes = new ListUtils_1.HashSet();
|
|
19315
19321
|
while (allNodesInfo.length) {
|
|
19316
19322
|
var firstNode = allNodesInfo.item(0);
|
|
19317
|
-
var block = this.getBlock(graph, firstNode, medians, alignment);
|
|
19323
|
+
var block = this.getBlock(graph, firstNode, medians, alignment).filter(function (n) { return knownNodes.tryPush(n.key); });
|
|
19318
19324
|
blocks.push(block);
|
|
19319
19325
|
block.forEach(function (n) { return allNodesInfo.remove(n); });
|
|
19320
19326
|
}
|
|
@@ -22503,6 +22509,9 @@ var Connector = (function (_super) {
|
|
|
22503
22509
|
this.actualRoutingMode = undefined;
|
|
22504
22510
|
this.invalidateRenderPoints();
|
|
22505
22511
|
};
|
|
22512
|
+
Connector.prototype.unlockCreateRenderPoints = function () {
|
|
22513
|
+
this.lockCreateRenderPoints = false;
|
|
22514
|
+
};
|
|
22506
22515
|
Connector.prototype.replaceRenderPointsCore = function (renderPoints, lockCreateRenderPoints, mode) {
|
|
22507
22516
|
this.changeRenderPoints(renderPoints);
|
|
22508
22517
|
this.lockCreateRenderPoints = lockCreateRenderPoints;
|
|
@@ -24693,6 +24702,9 @@ var SelectionDragHelper = (function () {
|
|
|
24693
24702
|
pi.point.y += offsetTop;
|
|
24694
24703
|
});
|
|
24695
24704
|
};
|
|
24705
|
+
SelectionDragHelper.prototype.finish = function () {
|
|
24706
|
+
this.draggingConnectors.forEach(function (c) { return c.connector.unlockCreateRenderPoints(); });
|
|
24707
|
+
};
|
|
24696
24708
|
SelectionDragHelper.prototype.moveConnector = function (dc, shouldClone, getMovePoint) {
|
|
24697
24709
|
var startPoints = dc.startPoints;
|
|
24698
24710
|
var offset = vector_1.Vector.fromPoints(startPoints[0].clone(), getMovePoint(startPoints[0]).clone());
|
package/dist/dx-diagram.min.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* DevExpress Diagram (dx-diagram.min)
|
|
3
|
-
* Version: 2.2.
|
|
4
|
-
* Build date: Thu
|
|
3
|
+
* Version: 2.2.12
|
|
4
|
+
* Build date: Thu Oct 10 2024
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
|