devexpress-diagram 2.2.19 → 2.2.21

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.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * DevExpress Diagram (dx-diagram)
3
- * Version: 2.2.19
4
- * Build date: Mon Jun 30 2025
3
+ * Version: 2.2.21
4
+ * Build date: Wed Aug 20 2025
5
5
  *
6
6
  * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * DevExpress Diagram (dx-diagram)
3
- * Version: 2.2.19
4
- * Build date: Mon Jun 30 2025
3
+ * Version: 2.2.21
4
+ * Build date: Wed Aug 20 2025
5
5
  *
6
6
  * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
@@ -15393,10 +15393,11 @@ var VisualizerManager = (function (_super) {
15393
15393
  y1 = y1nc - CanvasSelectionManager_1.CanvasSelectionManager.extensionLineOffset;
15394
15394
  y2 = y2nc + lwCor + CanvasSelectionManager_1.CanvasSelectionManager.extensionLineOffset;
15395
15395
  }
15396
+ var eps = this.settings.gridSize / 2;
15396
15397
  if (x1 !== undefined && x2 !== undefined) {
15397
15398
  var distanceText = this.getViewUnitText(Math.abs(x1nc - x2nc));
15398
- if (rect.center.y === sRect.center.y) {
15399
- var segment = new segment_1.Segment(new point_1.Point(x1, rect.center.y), new point_1.Point(x2, sRect.center.y));
15399
+ if (Math.abs(rect.center.y - sRect.center.y) < eps) {
15400
+ var segment = new segment_1.Segment(new point_1.Point(x1, rect.center.y), new point_1.Point(x2, rect.center.y));
15400
15401
  this.extensionLinesVisualizer.addSegment(x1 > x2 ? ExtensionLinesVisualizer_1.ExtensionLineType.VerticalCenterAfter : ExtensionLinesVisualizer_1.ExtensionLineType.VerticalCenterBefore, segment, showDistance ? distanceText : "");
15401
15402
  showDistance = false;
15402
15403
  }
@@ -15419,8 +15420,8 @@ var VisualizerManager = (function (_super) {
15419
15420
  }
15420
15421
  if (y1 !== undefined && y2 !== undefined) {
15421
15422
  var distanceText = this.getViewUnitText(Math.abs(y1nc - y2nc));
15422
- if (rect.center.x === sRect.center.x) {
15423
- var segment = new segment_1.Segment(new point_1.Point(rect.center.x, y1), new point_1.Point(sRect.center.x, y2));
15423
+ if (Math.abs(rect.center.x - sRect.center.x) < eps) {
15424
+ var segment = new segment_1.Segment(new point_1.Point(rect.center.x, y1), new point_1.Point(rect.center.x, y2));
15424
15425
  this.extensionLinesVisualizer.addSegment(y1 > y2 ? ExtensionLinesVisualizer_1.ExtensionLineType.HorizontalCenterBelow : ExtensionLinesVisualizer_1.ExtensionLineType.HorizontalCenterAbove, segment, showDistance ? distanceText : "");
15425
15426
  showDistance = false;
15426
15427
  }
@@ -24843,11 +24844,11 @@ var Enums_1 = __webpack_require__(5383);
24843
24844
  var ModelUtils_1 = __webpack_require__(4867);
24844
24845
  var DiagramModel = (function () {
24845
24846
  function DiagramModel(pageSize) {
24846
- if (pageSize === void 0) { pageSize = new size_1.Size(8391, 11906); }
24847
+ if (pageSize === void 0) { pageSize = new size_1.Size(8400, 11910); }
24847
24848
  this.items = [];
24848
24849
  this.itemIndexByKey = {};
24849
24850
  this.keyCounter = 0;
24850
- this.pageSize = new size_1.Size(8391, 11906);
24851
+ this.pageSize = new size_1.Size(8400, 11910);
24851
24852
  this.pageLandscape = false;
24852
24853
  this.pageColor = DiagramModel.defaultPageColor;
24853
24854
  this.units = Enums_1.DiagramUnit.In;
@@ -39194,14 +39195,14 @@ var DiagramSettings = (function () {
39194
39195
  { size: new size_1.Size(12240, 15840), text: "US-Letter ({width} x {height})" },
39195
39196
  { size: new size_1.Size(12240, 20160), text: "US-Legal ({width} x {height})" },
39196
39197
  { size: new size_1.Size(15817, 24491), text: "US-Tabloid ({width} x {height})" },
39197
- { size: new size_1.Size(47679, 67408), text: "A0 ({width} x {height})" },
39198
- { size: new size_1.Size(33676, 47679), text: "A1 ({width} x {height})" },
39199
- { size: new size_1.Size(23811, 33676), text: "A2 ({width} x {height})" },
39200
- { size: new size_1.Size(16838, 23811), text: "A3 ({width} x {height})" },
39201
- { size: new size_1.Size(11906, 16838), text: "A4 ({width} x {height})" },
39202
- { size: new size_1.Size(8391, 11906), text: "A5 ({width} x {height})" },
39203
- { size: new size_1.Size(5953, 8391), text: "A6 ({width} x {height})" },
39204
- { size: new size_1.Size(4195, 5953), text: "A7 ({width} x {height})" }
39198
+ { size: new size_1.Size(47685, 67410), text: "A0 ({width} x {height})" },
39199
+ { size: new size_1.Size(33675, 47685), text: "A1 ({width} x {height})" },
39200
+ { size: new size_1.Size(23805, 33675), text: "A2 ({width} x {height})" },
39201
+ { size: new size_1.Size(16830, 23805), text: "A3 ({width} x {height})" },
39202
+ { size: new size_1.Size(11910, 16830), text: "A4 ({width} x {height})" },
39203
+ { size: new size_1.Size(8400, 11910), text: "A5 ({width} x {height})" },
39204
+ { size: new size_1.Size(5955, 8400), text: "A6 ({width} x {height})" },
39205
+ { size: new size_1.Size(4200, 5955), text: "A7 ({width} x {height})" }
39205
39206
  ];
39206
39207
  this._viewUnits = Enums_1.DiagramUnit.In;
39207
39208
  this._connectorRoutingMode = ConnectorRoutingMode.AllShapesOnly;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * DevExpress Diagram (dx-diagram.min)
3
- * Version: 2.2.19
4
- * Build date: Mon Jun 30 2025
3
+ * Version: 2.2.21
4
+ * Build date: Wed Aug 20 2025
5
5
  *
6
6
  * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs