devexpress-diagram 2.1.74 → 2.1.76

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.1.74
4
- * Build date: Tue May 02 2023
3
+ * Version: 2.1.76
4
+ * Build date: Wed Jul 26 2023
5
5
  *
6
6
  * Copyright (c) 2012 - 2023 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.1.74
4
- * Build date: Tue May 02 2023
3
+ * Version: 2.1.76
4
+ * Build date: Wed Jul 26 2023
5
5
  *
6
6
  * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
@@ -13308,11 +13308,11 @@ var ExportImageCommand = (function (_super) {
13308
13308
  ExportImageCommand.prototype.getExportManager = function () {
13309
13309
  var measurer = this.getOrCreateMeasurer();
13310
13310
  var itemsManager = (this.control.render && this.control.render.items) || this.createItemsManager(measurer);
13311
- return this.exportManager || (this.exportManager = new CanvasExportManager_1.CanvasExportManager(itemsManager.itemsContainer, measurer));
13311
+ return this.exportManager || (this.exportManager = new CanvasExportManager_1.CanvasExportManager(itemsManager.itemsContainer, measurer, this.control.instanceId));
13312
13312
  };
13313
13313
  ExportImageCommand.prototype.createItemsManager = function (measurer) {
13314
13314
  this.svgElement = RenderHelper_1.RenderHelper.createSvgElement(document.body, true);
13315
- var canvasManager = new CanvasItemsManager_1.CanvasItemsManager(this.svgElement, 1, new DOMManipulator_1.ExportDOMManipulator(measurer), "");
13315
+ var canvasManager = new CanvasItemsManager_1.CanvasItemsManager(this.svgElement, 1, new DOMManipulator_1.ExportDOMManipulator(measurer), this.control.instanceId);
13316
13316
  this.control.modelManipulator.onModelChanged.add(canvasManager);
13317
13317
  this.control.modelManipulator.commitItemsCreateChanges();
13318
13318
  return canvasManager;
@@ -26965,8 +26965,8 @@ var color_1 = __webpack_require__(22);
26965
26965
  var EXPORT_IMAGE_QUALITY = 1;
26966
26966
  var CanvasExportManager = (function (_super) {
26967
26967
  __extends(CanvasExportManager, _super);
26968
- function CanvasExportManager(itemsContainer, measurer) {
26969
- var _this = _super.call(this, 1, new DOMManipulator_1.ExportDOMManipulator(measurer), "") || this;
26968
+ function CanvasExportManager(itemsContainer, measurer, instanceId) {
26969
+ var _this = _super.call(this, 1, new DOMManipulator_1.ExportDOMManipulator(measurer), instanceId) || this;
26970
26970
  _this.itemsContainer = itemsContainer;
26971
26971
  return _this;
26972
26972
  }
@@ -37297,7 +37297,7 @@ var DataSource = (function () {
37297
37297
  history.beginTransaction();
37298
37298
  ModelUtils_1.ModelUtils.deleteAllItems(history, model, selection);
37299
37299
  model.initializeKeyCounter();
37300
- var DEFAULT_STEP = 2000;
37300
+ var DEFAULT_STEP = snapToGrid ? Math.max(1, Math.floor(2000 / gridSize)) * gridSize : 2000;
37301
37301
  var rowIndex = 0;
37302
37302
  var colIndex = 0;
37303
37303
  var externalToInnerMap = {};
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * DevExpress Diagram (dx-diagram.min)
3
- * Version: 2.1.74
4
- * Build date: Tue May 02 2023
3
+ * Version: 2.1.76
4
+ * Build date: Wed Jul 26 2023
5
5
  *
6
6
  * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
7
7
  * Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs