devexpress-diagram 2.0.40 → 2.0.41
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 -25
- package/dist/dx-diagram.min.css +2 -2
- package/dist/dx-diagram.min.js +3 -3
- 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.0.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 2.0.41
|
|
4
|
+
* Build date: Fri Oct 08 2021
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2021 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.0.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 2.0.41
|
|
4
|
+
* Build date: Fri Oct 08 2021
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
|
|
@@ -14156,7 +14156,7 @@ var RenderManagerDragEventsHandlerBase = /** @class */ (function () {
|
|
|
14156
14156
|
this.manager.input.lockFocus();
|
|
14157
14157
|
this.manager.onAutoScrollMouseDown(evt);
|
|
14158
14158
|
Utils_1.raiseEvent(evt, this.manager.createDiagramMouseEvent(evt, element), function (e) { return _this.manager.events.onMouseDown(e); });
|
|
14159
|
-
this.manager.
|
|
14159
|
+
this.manager.input.captureFocus();
|
|
14160
14160
|
};
|
|
14161
14161
|
RenderManagerDragEventsHandlerBase.prototype.onMoveCore = function (evt, element) {
|
|
14162
14162
|
var _this = this;
|
|
@@ -14169,7 +14169,8 @@ var RenderManagerDragEventsHandlerBase = /** @class */ (function () {
|
|
|
14169
14169
|
var diagramEvent = this.manager.createDiagramMouseEvent(evt, element);
|
|
14170
14170
|
Utils_1.raiseEvent(evt, diagramEvent, function (e) { return _this.manager.events.onMouseUp(e); });
|
|
14171
14171
|
this.manager.onAutoScrollMouseUp(evt);
|
|
14172
|
-
|
|
14172
|
+
if (diagramEvent.source.type !== Event_1.MouseEventElementType.Undefined)
|
|
14173
|
+
this.manager.input.captureFocus();
|
|
14173
14174
|
};
|
|
14174
14175
|
RenderManagerDragEventsHandlerBase.prototype.getEventSource = function (evt) {
|
|
14175
14176
|
return this.isTouchEvent(evt) ? evt_1.EvtUtils.getEventSourceByPosition(evt) : evt_1.EvtUtils.getEventSource(evt);
|
|
@@ -29583,14 +29584,6 @@ var DiagramControl = /** @class */ (function () {
|
|
|
29583
29584
|
var item = this.model.findItemByDataKey(dataKey);
|
|
29584
29585
|
return item && this.apiController.createNativeItem(item);
|
|
29585
29586
|
};
|
|
29586
|
-
DiagramControl.prototype.getBoundingClientRectangle = function () {
|
|
29587
|
-
if (!this.render)
|
|
29588
|
-
return undefined;
|
|
29589
|
-
var scrollContainer = this.render.getScrollContainer();
|
|
29590
|
-
if (!scrollContainer || scrollContainer.getBoundingClientRect === undefined)
|
|
29591
|
-
return undefined;
|
|
29592
|
-
return scrollContainer.getBoundingClientRect();
|
|
29593
|
-
};
|
|
29594
29587
|
DiagramControl.prototype.setInitialStyleProperties = function (style) {
|
|
29595
29588
|
this.selection.inputPosition.setInitialStyleProperties(style);
|
|
29596
29589
|
};
|
|
@@ -34321,10 +34314,6 @@ var RenderManager = /** @class */ (function () {
|
|
|
34321
34314
|
RenderManager.prototype.onAutoScrollMouseEnter = function (evt) {
|
|
34322
34315
|
this.autoScroll.onMouseEnter(evt);
|
|
34323
34316
|
};
|
|
34324
|
-
RenderManager.prototype.captureInputFocus = function (shouldCapture) {
|
|
34325
|
-
if (shouldCapture)
|
|
34326
|
-
this.input.captureFocus();
|
|
34327
|
-
};
|
|
34328
34317
|
RenderManager.prototype.onOrientationChange = function () {
|
|
34329
34318
|
var _this = this;
|
|
34330
34319
|
setTimeout(function () { return _this.onWindowResize(); }, 100);
|
|
@@ -34420,14 +34409,16 @@ var RenderManager = /** @class */ (function () {
|
|
|
34420
34409
|
RenderManager.prototype.isDocumentContainer = function (element) {
|
|
34421
34410
|
return element === this.mainElement;
|
|
34422
34411
|
};
|
|
34423
|
-
RenderManager.prototype.createDiagramMouseEventTouches = function (
|
|
34424
|
-
|
|
34425
|
-
|
|
34426
|
-
|
|
34427
|
-
|
|
34428
|
-
|
|
34429
|
-
|
|
34430
|
-
|
|
34412
|
+
RenderManager.prototype.createDiagramMouseEventTouches = function (source) {
|
|
34413
|
+
if (!source)
|
|
34414
|
+
return [];
|
|
34415
|
+
var result = [];
|
|
34416
|
+
for (var i = 0; i < source.length; i++) {
|
|
34417
|
+
var sourceItem = source[i];
|
|
34418
|
+
var offsetPoint = this.getOffsetPointByEventPoint(sourceItem.clientX, sourceItem.clientY);
|
|
34419
|
+
result.push(new Event_1.DiagramMouseEventTouch(offsetPoint, this.view.getModelPoint(offsetPoint)));
|
|
34420
|
+
}
|
|
34421
|
+
return result;
|
|
34431
34422
|
};
|
|
34432
34423
|
RenderManager.prototype.cloneDiagramMouseEventTouches = function (touches) {
|
|
34433
34424
|
if (touches)
|
|
@@ -35196,7 +35187,7 @@ var CanvasViewManager = /** @class */ (function (_super) {
|
|
|
35196
35187
|
this.lockAutoZoom = false;
|
|
35197
35188
|
dom_1.DomUtils.removeClassName(this.svgElement, DRAG_ITEM_CSSCLASS);
|
|
35198
35189
|
if (this.autoZoom)
|
|
35199
|
-
this.adjust({ horizontal: true, vertical:
|
|
35190
|
+
this.adjust({ horizontal: true, vertical: this.autoZoom === Settings_1.AutoZoomMode.FitContent });
|
|
35200
35191
|
};
|
|
35201
35192
|
CanvasViewManager.prototype.notifyDragScrollStart = function () {
|
|
35202
35193
|
dom_1.DomUtils.addClassName(this.svgElement, DRAG_SCROLL_CSSCLASS);
|
package/dist/dx-diagram.min.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* DevExpress Diagram (dx-diagram.min)
|
|
3
|
-
* Version: 2.0.
|
|
4
|
-
* Build date:
|
|
3
|
+
* Version: 2.0.41
|
|
4
|
+
* Build date: Fri Oct 08 2021
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExpress licensing here: https://www.devexpress.com/Support/EULAs
|