devexpress-diagram 2.2.5 → 2.2.7
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 +103 -57
- 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 +2 -2
- package/dist/lib/src/Data/DataSource.ts +6 -4
- package/dist/lib/src/Model/ModelUtils.ts +11 -5
- package/dist/lib/src/Model/Shapes/Descriptions/CustomShapeDescription.ts +1 -1
- package/package.json +2 -2
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:
|
|
3
|
+
* Version: 2.2.7
|
|
4
|
+
* Build date: Wed May 08 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:
|
|
3
|
+
* Version: 2.2.7
|
|
4
|
+
* Build date: Wed May 08 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
|
|
@@ -25,6 +25,7 @@ return /******/ (() => { // webpackBootstrap
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
28
|
+
exports.Browser = void 0;
|
|
28
29
|
var Browser = (function () {
|
|
29
30
|
function Browser() {
|
|
30
31
|
}
|
|
@@ -248,6 +249,7 @@ exports.Browser = Browser;
|
|
|
248
249
|
|
|
249
250
|
|
|
250
251
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
252
|
+
exports.EmptyBatchUpdatableObject = exports.BatchUpdatableObject = void 0;
|
|
251
253
|
var BatchUpdatableObject = (function () {
|
|
252
254
|
function BatchUpdatableObject() {
|
|
253
255
|
this.suspendUpdateCount = 0;
|
|
@@ -317,6 +319,7 @@ exports.EmptyBatchUpdatableObject = EmptyBatchUpdatableObject;
|
|
|
317
319
|
|
|
318
320
|
|
|
319
321
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
322
|
+
exports.Flag = void 0;
|
|
320
323
|
var Flag = (function () {
|
|
321
324
|
function Flag(initValue) {
|
|
322
325
|
if (initValue === void 0) { initValue = 0; }
|
|
@@ -368,6 +371,7 @@ exports.Flag = Flag;
|
|
|
368
371
|
|
|
369
372
|
|
|
370
373
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
374
|
+
exports.ExtendedMinMax = exports.ExtendedMax = exports.ExtendedMin = exports.MinMaxNumber = exports.MinMax = void 0;
|
|
371
375
|
var tslib_1 = __webpack_require__(655);
|
|
372
376
|
var MinMax = (function () {
|
|
373
377
|
function MinMax(minElement, maxElement) {
|
|
@@ -386,7 +390,7 @@ var MinMaxNumber = (function (_super) {
|
|
|
386
390
|
get: function () {
|
|
387
391
|
return this.maxElement - this.minElement;
|
|
388
392
|
},
|
|
389
|
-
enumerable:
|
|
393
|
+
enumerable: false,
|
|
390
394
|
configurable: true
|
|
391
395
|
});
|
|
392
396
|
return MinMaxNumber;
|
|
@@ -428,6 +432,7 @@ exports.ExtendedMinMax = ExtendedMinMax;
|
|
|
428
432
|
|
|
429
433
|
|
|
430
434
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
435
|
+
exports.UnitConverter = void 0;
|
|
431
436
|
var UnitConverter = (function () {
|
|
432
437
|
function UnitConverter() {
|
|
433
438
|
}
|
|
@@ -572,6 +577,7 @@ exports.UnitConverter = UnitConverter;
|
|
|
572
577
|
|
|
573
578
|
|
|
574
579
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
580
|
+
exports.Metrics = void 0;
|
|
575
581
|
var Metrics = (function () {
|
|
576
582
|
function Metrics() {
|
|
577
583
|
}
|
|
@@ -595,6 +601,7 @@ exports.Metrics = Metrics;
|
|
|
595
601
|
|
|
596
602
|
|
|
597
603
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
604
|
+
exports.Offsets = void 0;
|
|
598
605
|
var Offsets = (function () {
|
|
599
606
|
function Offsets(left, right, top, bottom) {
|
|
600
607
|
this.left = left;
|
|
@@ -609,14 +616,14 @@ var Offsets = (function () {
|
|
|
609
616
|
get: function () {
|
|
610
617
|
return this.left + this.right;
|
|
611
618
|
},
|
|
612
|
-
enumerable:
|
|
619
|
+
enumerable: false,
|
|
613
620
|
configurable: true
|
|
614
621
|
});
|
|
615
622
|
Object.defineProperty(Offsets.prototype, "vertical", {
|
|
616
623
|
get: function () {
|
|
617
624
|
return this.top + this.bottom;
|
|
618
625
|
},
|
|
619
|
-
enumerable:
|
|
626
|
+
enumerable: false,
|
|
620
627
|
configurable: true
|
|
621
628
|
});
|
|
622
629
|
Offsets.fromNumber = function (offset) {
|
|
@@ -708,6 +715,7 @@ exports.Offsets = Offsets;
|
|
|
708
715
|
|
|
709
716
|
|
|
710
717
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
718
|
+
exports.Point = void 0;
|
|
711
719
|
var Point = (function () {
|
|
712
720
|
function Point(x, y) {
|
|
713
721
|
this.x = x;
|
|
@@ -787,6 +795,7 @@ exports.Point = Point;
|
|
|
787
795
|
|
|
788
796
|
|
|
789
797
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
798
|
+
exports.RectangleDeviation = exports.HitTestDeviation = exports.Rectangle = void 0;
|
|
790
799
|
var flag_1 = __webpack_require__(7820);
|
|
791
800
|
var algorithms_1 = __webpack_require__(1104);
|
|
792
801
|
var fixed_1 = __webpack_require__(8860);
|
|
@@ -803,21 +812,21 @@ var Rectangle = (function () {
|
|
|
803
812
|
get: function () {
|
|
804
813
|
return this.x + this.width;
|
|
805
814
|
},
|
|
806
|
-
enumerable:
|
|
815
|
+
enumerable: false,
|
|
807
816
|
configurable: true
|
|
808
817
|
});
|
|
809
818
|
Object.defineProperty(Rectangle.prototype, "bottom", {
|
|
810
819
|
get: function () {
|
|
811
820
|
return this.y + this.height;
|
|
812
821
|
},
|
|
813
|
-
enumerable:
|
|
822
|
+
enumerable: false,
|
|
814
823
|
configurable: true
|
|
815
824
|
});
|
|
816
825
|
Object.defineProperty(Rectangle.prototype, "center", {
|
|
817
826
|
get: function () {
|
|
818
827
|
return Rectangle.center(this);
|
|
819
828
|
},
|
|
820
|
-
enumerable:
|
|
829
|
+
enumerable: false,
|
|
821
830
|
configurable: true
|
|
822
831
|
});
|
|
823
832
|
Rectangle.prototype.createRectangle = function () {
|
|
@@ -1106,6 +1115,7 @@ exports.RectangleDeviation = RectangleDeviation;
|
|
|
1106
1115
|
|
|
1107
1116
|
|
|
1108
1117
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1118
|
+
exports.Segment = void 0;
|
|
1109
1119
|
var math_1 = __webpack_require__(8679);
|
|
1110
1120
|
var metrics_1 = __webpack_require__(5596);
|
|
1111
1121
|
var point_1 = __webpack_require__(8900);
|
|
@@ -1119,28 +1129,28 @@ var Segment = (function () {
|
|
|
1119
1129
|
get: function () {
|
|
1120
1130
|
return metrics_1.Metrics.euclideanDistance(this.startPoint, this.endPoint);
|
|
1121
1131
|
},
|
|
1122
|
-
enumerable:
|
|
1132
|
+
enumerable: false,
|
|
1123
1133
|
configurable: true
|
|
1124
1134
|
});
|
|
1125
1135
|
Object.defineProperty(Segment.prototype, "xLength", {
|
|
1126
1136
|
get: function () {
|
|
1127
1137
|
return Math.abs(this.endPoint.x - this.startPoint.x);
|
|
1128
1138
|
},
|
|
1129
|
-
enumerable:
|
|
1139
|
+
enumerable: false,
|
|
1130
1140
|
configurable: true
|
|
1131
1141
|
});
|
|
1132
1142
|
Object.defineProperty(Segment.prototype, "yLength", {
|
|
1133
1143
|
get: function () {
|
|
1134
1144
|
return Math.abs(this.endPoint.y - this.startPoint.y);
|
|
1135
1145
|
},
|
|
1136
|
-
enumerable:
|
|
1146
|
+
enumerable: false,
|
|
1137
1147
|
configurable: true
|
|
1138
1148
|
});
|
|
1139
1149
|
Object.defineProperty(Segment.prototype, "center", {
|
|
1140
1150
|
get: function () {
|
|
1141
1151
|
return new point_1.Point(this.startPoint.x + (this.endPoint.x - this.startPoint.x) / 2, this.startPoint.y + (this.endPoint.y - this.startPoint.y) / 2);
|
|
1142
1152
|
},
|
|
1143
|
-
enumerable:
|
|
1153
|
+
enumerable: false,
|
|
1144
1154
|
configurable: true
|
|
1145
1155
|
});
|
|
1146
1156
|
Segment.prototype.isIntersected = function (segment) {
|
|
@@ -1201,6 +1211,7 @@ exports.Segment = Segment;
|
|
|
1201
1211
|
|
|
1202
1212
|
|
|
1203
1213
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1214
|
+
exports.Size = void 0;
|
|
1204
1215
|
var Size = (function () {
|
|
1205
1216
|
function Size(width, height) {
|
|
1206
1217
|
this.width = width;
|
|
@@ -1270,6 +1281,7 @@ exports.Size = Size;
|
|
|
1270
1281
|
|
|
1271
1282
|
|
|
1272
1283
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1284
|
+
exports.Vector = void 0;
|
|
1273
1285
|
var Vector = (function () {
|
|
1274
1286
|
function Vector(x, y) {
|
|
1275
1287
|
if (x === void 0) { x = 0; }
|
|
@@ -1281,7 +1293,7 @@ var Vector = (function () {
|
|
|
1281
1293
|
get: function () {
|
|
1282
1294
|
return Math.sqrt(this.x * this.x + this.y * this.y);
|
|
1283
1295
|
},
|
|
1284
|
-
enumerable:
|
|
1296
|
+
enumerable: false,
|
|
1285
1297
|
configurable: true
|
|
1286
1298
|
});
|
|
1287
1299
|
Vector.fromPoints = function (begin, end) {
|
|
@@ -1307,14 +1319,14 @@ var Vector = (function () {
|
|
|
1307
1319
|
get: function () {
|
|
1308
1320
|
return new Vector(1, 0);
|
|
1309
1321
|
},
|
|
1310
|
-
enumerable:
|
|
1322
|
+
enumerable: false,
|
|
1311
1323
|
configurable: true
|
|
1312
1324
|
});
|
|
1313
1325
|
Object.defineProperty(Vector, "axisY", {
|
|
1314
1326
|
get: function () {
|
|
1315
1327
|
return new Vector(0, 1);
|
|
1316
1328
|
},
|
|
1317
|
-
enumerable:
|
|
1329
|
+
enumerable: false,
|
|
1318
1330
|
configurable: true
|
|
1319
1331
|
});
|
|
1320
1332
|
Vector.angleBetween = function (a, b) {
|
|
@@ -1336,6 +1348,7 @@ exports.Vector = Vector;
|
|
|
1336
1348
|
|
|
1337
1349
|
|
|
1338
1350
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1351
|
+
exports.IntervalAlgorithms = void 0;
|
|
1339
1352
|
var list_1 = __webpack_require__(2940);
|
|
1340
1353
|
var search_1 = __webpack_require__(2400);
|
|
1341
1354
|
var fixed_1 = __webpack_require__(8860);
|
|
@@ -1504,6 +1517,7 @@ exports.IntervalAlgorithms = IntervalAlgorithms;
|
|
|
1504
1517
|
|
|
1505
1518
|
|
|
1506
1519
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1520
|
+
exports.ConstInterval = void 0;
|
|
1507
1521
|
var ConstInterval = (function () {
|
|
1508
1522
|
function ConstInterval() {
|
|
1509
1523
|
}
|
|
@@ -1511,7 +1525,7 @@ var ConstInterval = (function () {
|
|
|
1511
1525
|
get: function () {
|
|
1512
1526
|
return this.start + (this.length / 2);
|
|
1513
1527
|
},
|
|
1514
|
-
enumerable:
|
|
1528
|
+
enumerable: false,
|
|
1515
1529
|
configurable: true
|
|
1516
1530
|
});
|
|
1517
1531
|
ConstInterval.prototype.isNormalized = function () {
|
|
@@ -1553,6 +1567,7 @@ exports.ConstInterval = ConstInterval;
|
|
|
1553
1567
|
|
|
1554
1568
|
|
|
1555
1569
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1570
|
+
exports.FixedInterval = void 0;
|
|
1556
1571
|
var tslib_1 = __webpack_require__(655);
|
|
1557
1572
|
var mutable_1 = __webpack_require__(8678);
|
|
1558
1573
|
var FixedInterval = (function (_super) {
|
|
@@ -1570,14 +1585,14 @@ var FixedInterval = (function (_super) {
|
|
|
1570
1585
|
set: function (newEnd) {
|
|
1571
1586
|
this.length = newEnd - this.start;
|
|
1572
1587
|
},
|
|
1573
|
-
enumerable:
|
|
1588
|
+
enumerable: false,
|
|
1574
1589
|
configurable: true
|
|
1575
1590
|
});
|
|
1576
1591
|
Object.defineProperty(FixedInterval.prototype, "center", {
|
|
1577
1592
|
get: function () {
|
|
1578
1593
|
return this.start + this.length / 2;
|
|
1579
1594
|
},
|
|
1580
|
-
enumerable:
|
|
1595
|
+
enumerable: false,
|
|
1581
1596
|
configurable: true
|
|
1582
1597
|
});
|
|
1583
1598
|
FixedInterval.prototype.copyFrom = function (obj) {
|
|
@@ -1623,6 +1638,7 @@ exports.FixedInterval = FixedInterval;
|
|
|
1623
1638
|
|
|
1624
1639
|
|
|
1625
1640
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1641
|
+
exports.MutableInterval = void 0;
|
|
1626
1642
|
var tslib_1 = __webpack_require__(655);
|
|
1627
1643
|
var const_1 = __webpack_require__(7814);
|
|
1628
1644
|
var MutableInterval = (function (_super) {
|
|
@@ -1647,6 +1663,7 @@ exports.MutableInterval = MutableInterval;
|
|
|
1647
1663
|
|
|
1648
1664
|
|
|
1649
1665
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1666
|
+
exports.SparseIntervalsCollector = void 0;
|
|
1650
1667
|
var intervals_1 = __webpack_require__(448);
|
|
1651
1668
|
var SparseIntervalsCollector = (function () {
|
|
1652
1669
|
function SparseIntervalsCollector(template) {
|
|
@@ -1676,6 +1693,7 @@ exports.SparseIntervalsCollector = SparseIntervalsCollector;
|
|
|
1676
1693
|
|
|
1677
1694
|
|
|
1678
1695
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1696
|
+
exports.SparseIntervals = void 0;
|
|
1679
1697
|
var iterator_1 = __webpack_require__(8094);
|
|
1680
1698
|
var objects_iterator_1 = __webpack_require__(510);
|
|
1681
1699
|
var SparseIntervals = (function () {
|
|
@@ -1694,14 +1712,14 @@ var SparseIntervals = (function () {
|
|
|
1694
1712
|
get: function () {
|
|
1695
1713
|
return this._count;
|
|
1696
1714
|
},
|
|
1697
|
-
enumerable:
|
|
1715
|
+
enumerable: false,
|
|
1698
1716
|
configurable: true
|
|
1699
1717
|
});
|
|
1700
1718
|
Object.defineProperty(SparseIntervals.prototype, "numIntervals", {
|
|
1701
1719
|
get: function () {
|
|
1702
1720
|
return this._numIntervals;
|
|
1703
1721
|
},
|
|
1704
|
-
enumerable:
|
|
1722
|
+
enumerable: false,
|
|
1705
1723
|
configurable: true
|
|
1706
1724
|
});
|
|
1707
1725
|
SparseIntervals.prototype.getInterval = function (index) {
|
|
@@ -1725,6 +1743,7 @@ exports.SparseIntervals = SparseIntervals;
|
|
|
1725
1743
|
|
|
1726
1744
|
|
|
1727
1745
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1746
|
+
exports.SparseIntervalsIterator = void 0;
|
|
1728
1747
|
var SparseIntervalsIterator = (function () {
|
|
1729
1748
|
function SparseIntervalsIterator(sparseIntervals) {
|
|
1730
1749
|
this.sparseIntervals = sparseIntervals;
|
|
@@ -1734,7 +1753,7 @@ var SparseIntervalsIterator = (function () {
|
|
|
1734
1753
|
get: function () {
|
|
1735
1754
|
return !!this.curr;
|
|
1736
1755
|
},
|
|
1737
|
-
enumerable:
|
|
1756
|
+
enumerable: false,
|
|
1738
1757
|
configurable: true
|
|
1739
1758
|
});
|
|
1740
1759
|
SparseIntervalsIterator.prototype.moveNext = function () {
|
|
@@ -1788,6 +1807,7 @@ exports.SparseIntervalsIterator = SparseIntervalsIterator;
|
|
|
1788
1807
|
|
|
1789
1808
|
|
|
1790
1809
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1810
|
+
exports.SparseObjectsIterator = void 0;
|
|
1791
1811
|
var tslib_1 = __webpack_require__(655);
|
|
1792
1812
|
var iterator_1 = __webpack_require__(8094);
|
|
1793
1813
|
var SparseObjectsIterator = (function (_super) {
|
|
@@ -1812,6 +1832,7 @@ exports.SparseObjectsIterator = SparseObjectsIterator;
|
|
|
1812
1832
|
|
|
1813
1833
|
|
|
1814
1834
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1835
|
+
exports.Base64Utils = void 0;
|
|
1815
1836
|
var file_1 = __webpack_require__(2674);
|
|
1816
1837
|
var mime_type_1 = __webpack_require__(4633);
|
|
1817
1838
|
var Base64Utils = (function () {
|
|
@@ -1883,6 +1904,7 @@ exports.Base64Utils = Base64Utils;
|
|
|
1883
1904
|
|
|
1884
1905
|
|
|
1885
1906
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1907
|
+
exports.ColorUtils = void 0;
|
|
1886
1908
|
var string_1 = __webpack_require__(49);
|
|
1887
1909
|
var ColorUtils = (function () {
|
|
1888
1910
|
function ColorUtils() {
|
|
@@ -2041,6 +2063,7 @@ exports.ColorUtils = ColorUtils;
|
|
|
2041
2063
|
|
|
2042
2064
|
|
|
2043
2065
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2066
|
+
exports.numberToStringHex = exports.numberToStringBin = exports.isOdd = exports.isEven = exports.isNonNullString = exports.isString = exports.isNumber = exports.boolToString = exports.boolToInt = exports.isDefined = void 0;
|
|
2044
2067
|
var string_1 = __webpack_require__(49);
|
|
2045
2068
|
function isDefined(value) {
|
|
2046
2069
|
return value !== undefined && value !== null;
|
|
@@ -2093,6 +2116,7 @@ exports.numberToStringHex = numberToStringHex;
|
|
|
2093
2116
|
|
|
2094
2117
|
|
|
2095
2118
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2119
|
+
exports.Equals = exports.Comparers = void 0;
|
|
2096
2120
|
var Comparers = (function () {
|
|
2097
2121
|
function Comparers() {
|
|
2098
2122
|
}
|
|
@@ -2131,6 +2155,7 @@ exports.Equals = Equals;
|
|
|
2131
2155
|
|
|
2132
2156
|
|
|
2133
2157
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2158
|
+
exports.DomUtils = void 0;
|
|
2134
2159
|
var browser_1 = __webpack_require__(9279);
|
|
2135
2160
|
var common_1 = __webpack_require__(2491);
|
|
2136
2161
|
var math_1 = __webpack_require__(8679);
|
|
@@ -2324,21 +2349,6 @@ var DomUtils = (function () {
|
|
|
2324
2349
|
function getAbsolutePositionY_FF3(element) {
|
|
2325
2350
|
return Math.round(element.getBoundingClientRect().top + DomUtils.getDocumentScrollTop());
|
|
2326
2351
|
}
|
|
2327
|
-
function getAbsolutePositionY_Opera(curEl) {
|
|
2328
|
-
var isFirstCycle = true;
|
|
2329
|
-
if (curEl && DomUtils.isHTMLTableRowElement(curEl) && curEl.cells.length > 0)
|
|
2330
|
-
curEl = curEl.cells[0];
|
|
2331
|
-
var pos = getAbsoluteScrollOffset_OperaFF(curEl, false);
|
|
2332
|
-
while (curEl != null) {
|
|
2333
|
-
pos += curEl.offsetTop;
|
|
2334
|
-
if (!isFirstCycle)
|
|
2335
|
-
pos -= curEl.scrollTop;
|
|
2336
|
-
curEl = curEl.offsetParent;
|
|
2337
|
-
isFirstCycle = false;
|
|
2338
|
-
}
|
|
2339
|
-
pos += document.body.scrollTop;
|
|
2340
|
-
return pos;
|
|
2341
|
-
}
|
|
2342
2352
|
function getAbsolutePositionY_NS(curEl) {
|
|
2343
2353
|
var pos = getAbsoluteScrollOffset_OperaFF(curEl, false);
|
|
2344
2354
|
var isFirstCycle = true;
|
|
@@ -2374,8 +2384,6 @@ var DomUtils = (function () {
|
|
|
2374
2384
|
return getAbsolutePositionY_IE(element);
|
|
2375
2385
|
else if (browser_1.Browser.Firefox && browser_1.Browser.Version >= 3)
|
|
2376
2386
|
return getAbsolutePositionY_FF3(element);
|
|
2377
|
-
else if (browser_1.Browser.Opera)
|
|
2378
|
-
return getAbsolutePositionY_Opera(element);
|
|
2379
2387
|
else if (browser_1.Browser.NetscapeFamily && (!browser_1.Browser.Firefox || browser_1.Browser.Version < 3))
|
|
2380
2388
|
return getAbsolutePositionY_NS(element);
|
|
2381
2389
|
else if (browser_1.Browser.WebKitFamily || browser_1.Browser.Edge)
|
|
@@ -2624,6 +2632,7 @@ function getAbsoluteScrollOffset_OperaFF(curEl, isX) {
|
|
|
2624
2632
|
|
|
2625
2633
|
|
|
2626
2634
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2635
|
+
exports.EncodeUtils = void 0;
|
|
2627
2636
|
var EncodeUtils = (function () {
|
|
2628
2637
|
function EncodeUtils() {
|
|
2629
2638
|
}
|
|
@@ -2672,6 +2681,7 @@ exports.EncodeUtils = EncodeUtils;
|
|
|
2672
2681
|
|
|
2673
2682
|
|
|
2674
2683
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2684
|
+
exports.EvtUtils = void 0;
|
|
2675
2685
|
var browser_1 = __webpack_require__(9279);
|
|
2676
2686
|
var common_1 = __webpack_require__(2491);
|
|
2677
2687
|
var dom_1 = __webpack_require__(6907);
|
|
@@ -2779,6 +2789,7 @@ exports.EvtUtils = EvtUtils;
|
|
|
2779
2789
|
|
|
2780
2790
|
|
|
2781
2791
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2792
|
+
exports.FileUtils = void 0;
|
|
2782
2793
|
var browser_1 = __webpack_require__(9279);
|
|
2783
2794
|
var base64_1 = __webpack_require__(6477);
|
|
2784
2795
|
var common_1 = __webpack_require__(2491);
|
|
@@ -2848,6 +2859,7 @@ exports.FileUtils = FileUtils;
|
|
|
2848
2859
|
|
|
2849
2860
|
|
|
2850
2861
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2862
|
+
exports.KeyCode = exports.ModifierKey = exports.KeyUtils = void 0;
|
|
2851
2863
|
var browser_1 = __webpack_require__(9279);
|
|
2852
2864
|
var encode_1 = __webpack_require__(9712);
|
|
2853
2865
|
var string_1 = __webpack_require__(49);
|
|
@@ -3128,6 +3140,7 @@ var KeyCode;
|
|
|
3128
3140
|
|
|
3129
3141
|
|
|
3130
3142
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3143
|
+
exports.ListUtils = void 0;
|
|
3131
3144
|
var min_max_1 = __webpack_require__(6799);
|
|
3132
3145
|
var comparers_1 = __webpack_require__(4170);
|
|
3133
3146
|
var ListUtils = (function () {
|
|
@@ -3582,6 +3595,7 @@ exports.ListUtils = ListUtils;
|
|
|
3582
3595
|
|
|
3583
3596
|
|
|
3584
3597
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3598
|
+
exports.MathUtils = void 0;
|
|
3585
3599
|
var list_1 = __webpack_require__(2940);
|
|
3586
3600
|
var MathUtils = (function () {
|
|
3587
3601
|
function MathUtils() {
|
|
@@ -3643,9 +3657,11 @@ exports.MathUtils = MathUtils;
|
|
|
3643
3657
|
|
|
3644
3658
|
var _a, _b, _c;
|
|
3645
3659
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3660
|
+
exports.MimeTypeUtils = exports.DxMimeType = exports.ImageWebpMimeType = exports.ImageWbmpMimeType = exports.ImageIcoMimeType = exports.ImageTiffMimeType = exports.ImageSvgMimeType = exports.ImagePjpegMimeType = exports.ImageJpegMimeType = exports.ImageGifMimeType = exports.ImagePngMimeType = exports.DocmMimeType = exports.HtmlMimeType = exports.PlainTextMimeType = exports.RtfMimeType = exports.OpenXmlMimeType = void 0;
|
|
3646
3661
|
exports.OpenXmlMimeType = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document';
|
|
3647
3662
|
exports.RtfMimeType = 'application/rtf';
|
|
3648
3663
|
exports.PlainTextMimeType = 'text/plain';
|
|
3664
|
+
exports.HtmlMimeType = 'text/html';
|
|
3649
3665
|
exports.DocmMimeType = 'application/vnd.ms-word.document.macroEnabled.12';
|
|
3650
3666
|
exports.ImagePngMimeType = 'image/png';
|
|
3651
3667
|
exports.ImageGifMimeType = 'image/gif';
|
|
@@ -3672,6 +3688,7 @@ var DxMimeType;
|
|
|
3672
3688
|
DxMimeType[DxMimeType["Ico"] = 11] = "Ico";
|
|
3673
3689
|
DxMimeType[DxMimeType["Wbmp"] = 12] = "Wbmp";
|
|
3674
3690
|
DxMimeType[DxMimeType["Webp"] = 13] = "Webp";
|
|
3691
|
+
DxMimeType[DxMimeType["Html"] = 14] = "Html";
|
|
3675
3692
|
})(DxMimeType = exports.DxMimeType || (exports.DxMimeType = {}));
|
|
3676
3693
|
var MimeTypeUtils = (function () {
|
|
3677
3694
|
function MimeTypeUtils() {
|
|
@@ -3704,6 +3721,7 @@ var MimeTypeUtils = (function () {
|
|
|
3704
3721
|
_a[exports.RtfMimeType] = DxMimeType.Rtf,
|
|
3705
3722
|
_a[exports.PlainTextMimeType] = DxMimeType.PlainText,
|
|
3706
3723
|
_a[exports.DocmMimeType] = DxMimeType.Docm,
|
|
3724
|
+
_a[exports.HtmlMimeType] = DxMimeType.Html,
|
|
3707
3725
|
_a[exports.ImagePngMimeType] = DxMimeType.Png,
|
|
3708
3726
|
_a[exports.ImageGifMimeType] = DxMimeType.Gif,
|
|
3709
3727
|
_a[exports.ImageJpegMimeType] = DxMimeType.Jpeg,
|
|
@@ -3720,6 +3738,7 @@ var MimeTypeUtils = (function () {
|
|
|
3720
3738
|
_b[DxMimeType.Rtf] = exports.RtfMimeType,
|
|
3721
3739
|
_b[DxMimeType.PlainText] = exports.PlainTextMimeType,
|
|
3722
3740
|
_b[DxMimeType.Docm] = exports.DocmMimeType,
|
|
3741
|
+
_b[DxMimeType.Html] = exports.HtmlMimeType,
|
|
3723
3742
|
_b[DxMimeType.Png] = exports.ImagePngMimeType,
|
|
3724
3743
|
_b[DxMimeType.Gif] = exports.ImageGifMimeType,
|
|
3725
3744
|
_b[DxMimeType.Jpeg] = exports.ImageJpegMimeType,
|
|
@@ -3736,6 +3755,7 @@ var MimeTypeUtils = (function () {
|
|
|
3736
3755
|
_c[DxMimeType.Rtf] = '.rtf',
|
|
3737
3756
|
_c[DxMimeType.PlainText] = '.txt',
|
|
3738
3757
|
_c[DxMimeType.Docm] = '.docm',
|
|
3758
|
+
_c[DxMimeType.Html] = '.html',
|
|
3739
3759
|
_c[DxMimeType.Png] = '.png',
|
|
3740
3760
|
_c[DxMimeType.Gif] = '.gif',
|
|
3741
3761
|
_c[DxMimeType.Jpeg] = '.jpeg',
|
|
@@ -3751,6 +3771,8 @@ var MimeTypeUtils = (function () {
|
|
|
3751
3771
|
'.rtf': DxMimeType.Rtf,
|
|
3752
3772
|
'.txt': DxMimeType.PlainText,
|
|
3753
3773
|
'.docm': DxMimeType.Docm,
|
|
3774
|
+
'.html': DxMimeType.Html,
|
|
3775
|
+
'.htm': DxMimeType.Html,
|
|
3754
3776
|
'.png': DxMimeType.Png,
|
|
3755
3777
|
'.gif': DxMimeType.Gif,
|
|
3756
3778
|
'.jpeg': DxMimeType.Jpeg,
|
|
@@ -3773,6 +3795,7 @@ exports.MimeTypeUtils = MimeTypeUtils;
|
|
|
3773
3795
|
|
|
3774
3796
|
|
|
3775
3797
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3798
|
+
exports.SearchUtils = void 0;
|
|
3776
3799
|
var SearchUtils = (function () {
|
|
3777
3800
|
function SearchUtils() {
|
|
3778
3801
|
}
|
|
@@ -3846,6 +3869,7 @@ exports.SearchUtils = SearchUtils;
|
|
|
3846
3869
|
|
|
3847
3870
|
|
|
3848
3871
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3872
|
+
exports.StringUtils = void 0;
|
|
3849
3873
|
var StringUtils = (function () {
|
|
3850
3874
|
function StringUtils() {
|
|
3851
3875
|
}
|
|
@@ -3970,6 +3994,7 @@ exports.StringUtils = StringUtils;
|
|
|
3970
3994
|
|
|
3971
3995
|
|
|
3972
3996
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3997
|
+
exports.TouchUtils = void 0;
|
|
3973
3998
|
var browser_1 = __webpack_require__(9279);
|
|
3974
3999
|
var common_1 = __webpack_require__(2491);
|
|
3975
4000
|
var TouchUtils = (function () {
|
|
@@ -9490,20 +9515,22 @@ var DataSource = (function () {
|
|
|
9490
9515
|
return shape;
|
|
9491
9516
|
};
|
|
9492
9517
|
DataSource.prototype.changeShapeByDataItem = function (history, model, shape, node, point) {
|
|
9518
|
+
var updated = false;
|
|
9493
9519
|
if (node.left !== undefined)
|
|
9494
9520
|
point.x = ModelUtils_1.ModelUtils.getTwipsValue(model.units, node.left);
|
|
9495
9521
|
if (node.top !== undefined)
|
|
9496
9522
|
point.y = ModelUtils_1.ModelUtils.getTwipsValue(model.units, node.top);
|
|
9497
|
-
ModelUtils_1.ModelUtils.setShapePosition(history, model, shape, point, false);
|
|
9523
|
+
updated = ModelUtils_1.ModelUtils.setShapePosition(history, model, shape, point, false) || updated;
|
|
9498
9524
|
if (node.type !== undefined)
|
|
9499
|
-
ModelUtils_1.ModelUtils.changeShapeType(history, model, shape, node.type);
|
|
9525
|
+
updated = ModelUtils_1.ModelUtils.changeShapeType(history, model, shape, node.type) || updated;
|
|
9500
9526
|
var size = shape.size.clone();
|
|
9501
9527
|
if (node.width !== undefined)
|
|
9502
9528
|
size.width = ModelUtils_1.ModelUtils.getTwipsValue(model.units, node.width);
|
|
9503
9529
|
if (node.height !== undefined)
|
|
9504
9530
|
size.height = ModelUtils_1.ModelUtils.getTwipsValue(model.units, node.height);
|
|
9505
|
-
ModelUtils_1.ModelUtils.setShapeSize(history, model, shape, point, size);
|
|
9506
|
-
|
|
9531
|
+
updated = ModelUtils_1.ModelUtils.setShapeSize(history, model, shape, point, size) || updated;
|
|
9532
|
+
if (updated)
|
|
9533
|
+
ModelUtils_1.ModelUtils.updateShapeAttachedConnectors(history, model, shape);
|
|
9507
9534
|
if (node.text !== undefined && node.text !== shape.text)
|
|
9508
9535
|
history.addAndRedo(new ChangeShapeTextHistoryItem_1.ChangeShapeTextHistoryItem(shape, node.text));
|
|
9509
9536
|
if (node.image !== undefined && node.image !== shape.image.actualUrl)
|
|
@@ -25316,11 +25343,16 @@ var ModelUtils = (function () {
|
|
|
25316
25343
|
ModelUtils.setShapePosition(history, model, child, childPosition);
|
|
25317
25344
|
}
|
|
25318
25345
|
});
|
|
25346
|
+
return true;
|
|
25319
25347
|
}
|
|
25348
|
+
return false;
|
|
25320
25349
|
};
|
|
25321
25350
|
ModelUtils.setShapeSize = function (history, model, shape, newPosition, newSize) {
|
|
25322
|
-
if (!shape.size.equals(newSize) || !shape.position.equals(newPosition))
|
|
25351
|
+
if (!shape.size.equals(newSize) || !shape.position.equals(newPosition)) {
|
|
25323
25352
|
history.addAndRedo(new ResizeShapeHistoryItem_1.ResizeShapeHistoryItem(shape.key, newPosition, newSize));
|
|
25353
|
+
return true;
|
|
25354
|
+
}
|
|
25355
|
+
return false;
|
|
25324
25356
|
};
|
|
25325
25357
|
ModelUtils.addConnectorPoint = function (history, connectorKey, pointIndex, position) {
|
|
25326
25358
|
history.addAndRedo(new AddConnectorPointHistoryItem_1.AddConnectorPointHistoryItem(connectorKey, pointIndex, position));
|
|
@@ -26186,7 +26218,7 @@ var ModelUtils = (function () {
|
|
|
26186
26218
|
};
|
|
26187
26219
|
ModelUtils.changeShapeType = function (history, model, shape, shapeType) {
|
|
26188
26220
|
if (shape.description.key === shapeType)
|
|
26189
|
-
return;
|
|
26221
|
+
return false;
|
|
26190
26222
|
history.beginTransaction();
|
|
26191
26223
|
var oldConPts = shape.getConnectionPoints();
|
|
26192
26224
|
var oldConPtsSides = oldConPts.map(function (p) { return shape.getConnectionPointSide(p); });
|
|
@@ -26201,6 +26233,7 @@ var ModelUtils = (function () {
|
|
|
26201
26233
|
this.updateConnectorAttachedPoints(history, model, connector);
|
|
26202
26234
|
}
|
|
26203
26235
|
history.endTransaction();
|
|
26236
|
+
return true;
|
|
26204
26237
|
};
|
|
26205
26238
|
ModelUtils.updateConnectionIndexByNewShapeType = function (history, connector, position, oldPointIndex, oldConPts, oldConPtsSides, newConPts, newConPtsSides) {
|
|
26206
26239
|
if (oldPointIndex < 0)
|
|
@@ -28035,7 +28068,7 @@ var CustomShapeDescription = (function (_super) {
|
|
|
28035
28068
|
return new rectangle_1.Rectangle(left + (this.properties.imageLeft && !forToolbox ? this.properties.imageLeft * width : 0), top + (this.properties.imageTop && !forToolbox ? this.properties.imageTop * height : 0), this.properties.imageWidth && !forToolbox ? this.properties.imageWidth * width : width, this.properties.imageHeight && !forToolbox ? this.properties.imageHeight * height : height);
|
|
28036
28069
|
};
|
|
28037
28070
|
CustomShapeDescription.prototype.updateSvgImage = function (cacheImageInfo) {
|
|
28038
|
-
var isToolboxImage = cacheImageInfo.imageUrl && cacheImageInfo.imageUrl === this.properties.svgToolboxUrl;
|
|
28071
|
+
var isToolboxImage = this.svgToolboxImage && cacheImageInfo.imageUrl && cacheImageInfo.imageUrl === this.properties.svgToolboxUrl;
|
|
28039
28072
|
var svgImage = isToolboxImage ? this.svgToolboxImage : this.svgImage;
|
|
28040
28073
|
if (cacheImageInfo.base64)
|
|
28041
28074
|
svgImage.loadBase64Content(cacheImageInfo.base64);
|
|
@@ -40630,6 +40663,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
40630
40663
|
/* harmony export */ __read: () => (/* binding */ __read),
|
|
40631
40664
|
/* harmony export */ __rest: () => (/* binding */ __rest),
|
|
40632
40665
|
/* harmony export */ __spread: () => (/* binding */ __spread),
|
|
40666
|
+
/* harmony export */ __spreadArray: () => (/* binding */ __spreadArray),
|
|
40633
40667
|
/* harmony export */ __spreadArrays: () => (/* binding */ __spreadArrays),
|
|
40634
40668
|
/* harmony export */ __values: () => (/* binding */ __values)
|
|
40635
40669
|
/* harmony export */ });
|
|
@@ -40657,6 +40691,8 @@ var extendStatics = function(d, b) {
|
|
|
40657
40691
|
};
|
|
40658
40692
|
|
|
40659
40693
|
function __extends(d, b) {
|
|
40694
|
+
if (typeof b !== "function" && b !== null)
|
|
40695
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
40660
40696
|
extendStatics(d, b);
|
|
40661
40697
|
function __() { this.constructor = d; }
|
|
40662
40698
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -40779,19 +40815,31 @@ function __read(o, n) {
|
|
|
40779
40815
|
return ar;
|
|
40780
40816
|
}
|
|
40781
40817
|
|
|
40818
|
+
/** @deprecated */
|
|
40782
40819
|
function __spread() {
|
|
40783
40820
|
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
40784
40821
|
ar = ar.concat(__read(arguments[i]));
|
|
40785
40822
|
return ar;
|
|
40786
40823
|
}
|
|
40787
40824
|
|
|
40825
|
+
/** @deprecated */
|
|
40788
40826
|
function __spreadArrays() {
|
|
40789
40827
|
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
40790
40828
|
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
40791
40829
|
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
40792
40830
|
r[k] = a[j];
|
|
40793
40831
|
return r;
|
|
40794
|
-
}
|
|
40832
|
+
}
|
|
40833
|
+
|
|
40834
|
+
function __spreadArray(to, from, pack) {
|
|
40835
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
40836
|
+
if (ar || !(i in from)) {
|
|
40837
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
40838
|
+
ar[i] = from[i];
|
|
40839
|
+
}
|
|
40840
|
+
}
|
|
40841
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
40842
|
+
}
|
|
40795
40843
|
|
|
40796
40844
|
function __await(v) {
|
|
40797
40845
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -40846,19 +40894,17 @@ function __importDefault(mod) {
|
|
|
40846
40894
|
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
40847
40895
|
}
|
|
40848
40896
|
|
|
40849
|
-
function __classPrivateFieldGet(receiver,
|
|
40850
|
-
if (!
|
|
40851
|
-
|
|
40852
|
-
|
|
40853
|
-
return privateMap.get(receiver);
|
|
40897
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
40898
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
40899
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
40900
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
40854
40901
|
}
|
|
40855
40902
|
|
|
40856
|
-
function __classPrivateFieldSet(receiver,
|
|
40857
|
-
if (
|
|
40858
|
-
|
|
40859
|
-
|
|
40860
|
-
|
|
40861
|
-
return value;
|
|
40903
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
40904
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
40905
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
40906
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
40907
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
40862
40908
|
}
|
|
40863
40909
|
|
|
40864
40910
|
|
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:
|
|
3
|
+
* Version: 2.2.7
|
|
4
|
+
* Build date: Wed May 08 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
|