devexpress-diagram 2.2.14 → 2.2.16

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.14
4
- * Build date: Tue Jan 07 2025
3
+ * Version: 2.2.16
4
+ * Build date: Fri Apr 04 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.14
4
- * Build date: Tue Jan 07 2025
3
+ * Version: 2.2.16
4
+ * Build date: Fri Apr 04 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
@@ -33447,11 +33447,11 @@ var CanvasItemsManager = (function (_super) {
33447
33447
  };
33448
33448
  CanvasItemsManager.prototype.notifyDragScrollStart = function () { };
33449
33449
  CanvasItemsManager.prototype.notifyDragScrollEnd = function () { };
33450
- CanvasItemsManager.prototype.notifyTextInputStart = function (item, text, position, size) {
33450
+ CanvasItemsManager.prototype.notifyTextInputStart = function (item, _text, _position, _size) {
33451
33451
  var element = this.itemElements[item.key];
33452
33452
  dom_1.DomUtils.addClassName(element, "text-input");
33453
33453
  };
33454
- CanvasItemsManager.prototype.notifyTextInputEnd = function (item, captureFocus) {
33454
+ CanvasItemsManager.prototype.notifyTextInputEnd = function (item, _captureFocus) {
33455
33455
  var element = this.itemElements[item.key];
33456
33456
  dom_1.DomUtils.removeClassName(element, "text-input");
33457
33457
  };
@@ -33468,7 +33468,7 @@ var CanvasItemsManager = (function (_super) {
33468
33468
  this.dom.changeByFunc(this.itemSelectorsContainer, function (e) { return e.setAttribute("transform", scale); });
33469
33469
  this.actualZoom = actualZoom;
33470
33470
  };
33471
- CanvasItemsManager.prototype.notifyViewAdjusted = function (canvasOffset) { };
33471
+ CanvasItemsManager.prototype.notifyViewAdjusted = function (_canvasOffset) { };
33472
33472
  CanvasItemsManager.prototype.invalidatePrimitives = function (item) {
33473
33473
  if (this.primitives[item.key]) {
33474
33474
  this.primitives[item.key].forEach(function (primitive) {
@@ -33659,7 +33659,7 @@ var CanvasItemsManager = (function (_super) {
33659
33659
  if (this.itemGroupContainers[key] === undefined || this.itemGroupContainers[key][zIndex] === undefined) {
33660
33660
  if (this.itemGroupContainers[key] === undefined)
33661
33661
  this.itemGroupContainers[key] = [];
33662
- var nextSiblingZIndex = Object.keys(this.itemGroupContainers[key]).map(function (z) { return +z; }).sort().filter(function (z) { return z > zIndex; })[0];
33662
+ var nextSiblingZIndex = Object.keys(this.itemGroupContainers[key]).map(function (z) { return +z; }).sort(function (a, b) { return a - b; }).filter(function (z) { return z > zIndex; })[0];
33663
33663
  this.itemGroupContainers[key][zIndex] = this.createAndChangePrimitiveElement(new GroupPrimitive_1.GroupPrimitive([], null, zIndex), parent, this.itemGroupContainers[key][nextSiblingZIndex]);
33664
33664
  }
33665
33665
  return this.itemGroupContainers[key][zIndex];
@@ -33670,7 +33670,7 @@ var CanvasItemsManager = (function (_super) {
33670
33670
  if (this.itemSelectorGroupContainers[key] === undefined || this.itemSelectorGroupContainers[key][zIndex] === undefined) {
33671
33671
  if (this.itemSelectorGroupContainers[key] === undefined)
33672
33672
  this.itemSelectorGroupContainers[key] = [];
33673
- var nextSiblingZIndex = Object.keys(this.itemSelectorGroupContainers[key]).map(function (z) { return +z; }).sort().filter(function (z) { return z > zIndex; })[0];
33673
+ var nextSiblingZIndex = Object.keys(this.itemSelectorGroupContainers[key]).map(function (z) { return +z; }).sort(function (a, b) { return a - b; }).filter(function (z) { return z > zIndex; })[0];
33674
33674
  this.itemSelectorGroupContainers[key][zIndex] = this.createAndChangePrimitiveElement(new GroupPrimitive_1.GroupPrimitive([], null, zIndex), parent, this.itemSelectorGroupContainers[key][nextSiblingZIndex]);
33675
33675
  }
33676
33676
  return this.itemSelectorGroupContainers[key][zIndex];
@@ -35347,7 +35347,7 @@ var CanvasViewManager = (function (_super) {
35347
35347
  }
35348
35348
  }
35349
35349
  else
35350
- this.resizeView(actualModelSizeWithoutZoom, this.actualZoom, containerSize, simpleView, crop, offset);
35350
+ this.resizeView(actualModelSizeWithoutZoom, this.actualZoom, containerSize, simpleView, crop, offset || offsets_1.Offsets.empty());
35351
35351
  };
35352
35352
  CanvasViewManager.prototype.resetView = function (actualModelSizeWithoutZoom, actualZoom, containerSize, simpleView, cropWithoutZoom, toReset) {
35353
35353
  var actualModelSize = actualModelSizeWithoutZoom.clone().multiply(actualZoom, actualZoom);
@@ -37646,12 +37646,8 @@ var RenderManager = (function () {
37646
37646
  this.input.captureFocus();
37647
37647
  if (Utils_2.EventUtils.isTouchEvent(evt))
37648
37648
  this.processTouchDown(evt);
37649
- var srcElement = evt_1.EvtUtils.getEventSource(evt);
37650
- var tagName = srcElement && srcElement.tagName;
37651
- if (browser_1.Browser.TouchUI || tagName.toLowerCase() === "img" || tagName.toLowerCase() === "image") {
37652
- evt_1.EvtUtils.preventEventAndBubble(evt);
37653
- return false;
37654
- }
37649
+ evt_1.EvtUtils.preventEventAndBubble(evt);
37650
+ return false;
37655
37651
  };
37656
37652
  RenderManager.prototype.onMouseMove = function (evt) {
37657
37653
  var _this = this;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * DevExpress Diagram (dx-diagram.min)
3
- * Version: 2.2.14
4
- * Build date: Tue Jan 07 2025
3
+ * Version: 2.2.16
4
+ * Build date: Fri Apr 04 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