bpmn-js 9.3.0 → 9.4.0
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/CHANGELOG.md +27 -1
- package/dist/assets/bpmn-js.css +4 -5
- package/dist/bpmn-modeler.development.js +3416 -3163
- package/dist/bpmn-modeler.production.min.js +8 -8
- package/dist/bpmn-navigated-viewer.development.js +357 -283
- package/dist/bpmn-navigated-viewer.production.min.js +6 -6
- package/dist/bpmn-viewer.development.js +323 -269
- package/dist/bpmn-viewer.production.min.js +6 -6
- package/lib/draw/BpmnRenderUtil.js +25 -25
- package/lib/draw/BpmnRenderer.js +4 -4
- package/lib/draw/PathMap.js +42 -42
- package/lib/features/align-elements/index.js +1 -1
- package/lib/features/copy-paste/BpmnCopyPaste.js +75 -69
- package/lib/features/copy-paste/ModdleCopy.js +26 -13
- package/lib/features/drilldown/DrilldownOverlayBehavior.js +2 -2
- package/lib/features/drilldown/SubprocessCompatibility.js +1 -1
- package/lib/features/drilldown/index.js +1 -1
- package/lib/features/grid-snapping/behavior/{AutoPlaceBehavior.js → GridSnappingAutoPlaceBehavior.js} +2 -2
- package/lib/features/grid-snapping/behavior/{LayoutConnectionBehavior.js → GridSnappingLayoutConnectionBehavior.js} +4 -4
- package/lib/features/grid-snapping/behavior/{CreateParticipantBehavior.js → GridSnappingParticipantBehavior.js} +2 -2
- package/lib/features/grid-snapping/behavior/index.js +7 -7
- package/lib/features/keyboard/BpmnKeyboardBindings.js +7 -7
- package/lib/features/label-editing/LabelEditingProvider.js +1 -23
- package/lib/features/modeling/ElementFactory.js +18 -8
- package/lib/features/modeling/behavior/BoundaryEventBehavior.js +1 -16
- package/lib/features/modeling/behavior/DropOnFlowBehavior.js +1 -1
- package/lib/features/modeling/behavior/GroupBehavior.js +205 -93
- package/lib/features/modeling/behavior/ReplaceElementBehaviour.js +8 -4
- package/lib/features/modeling/behavior/ResizeBehavior.js +2 -0
- package/lib/features/modeling/behavior/RootElementReferenceBehavior.js +7 -8
- package/lib/features/modeling/behavior/SpaceToolBehavior.js +5 -0
- package/lib/features/modeling/behavior/SubProcessPlaneBehavior.js +9 -0
- package/lib/features/modeling/behavior/index.js +1 -1
- package/lib/features/modeling/behavior/util/CategoryUtil.js +66 -13
- package/lib/features/modeling/behavior/util/LayoutUtil.js +6 -6
- package/lib/features/modeling/cmd/UpdateModdlePropertiesHandler.js +4 -1
- package/lib/features/ordering/BpmnOrderingProvider.js +3 -1
- package/lib/features/replace/BpmnReplace.js +12 -0
- package/lib/features/search/index.js +1 -1
- package/lib/import/BpmnImporter.js +0 -5
- package/lib/util/CompatibilityUtil.js +1 -0
- package/package.json +21 -24
- package/test/helper/index.js +26 -1
- package/.babelrc +0 -3
- package/lib/features/.DS_Store +0 -0
- package/lib/features/align-elements/.DS_Store +0 -0
- package/lib/features/distribute-elements/.DS_Store +0 -0
- package/lib/features/distribute-elements/dist/distribute-horizontally-tool.svg +0 -1
- package/lib/features/distribute-elements/dist/distribute-vertically-tool.svg +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-viewer v9.
|
|
2
|
+
* bpmn-js - bpmn-viewer v9.4.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2014-present, camunda Services GmbH
|
|
5
5
|
*
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
*
|
|
9
9
|
* Source Code: https://github.com/bpmn-io/bpmn-js
|
|
10
10
|
*
|
|
11
|
-
* Date: 2022-
|
|
11
|
+
* Date: 2022-08-22
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
15
15
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
16
16
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.BpmnJS = factory());
|
|
17
|
-
}(this, (function () { 'use strict';
|
|
17
|
+
})(this, (function () { 'use strict';
|
|
18
18
|
|
|
19
19
|
function e(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}));}
|
|
20
20
|
|
|
@@ -83,6 +83,26 @@
|
|
|
83
83
|
});
|
|
84
84
|
return match;
|
|
85
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* Find element index in collection.
|
|
88
|
+
*
|
|
89
|
+
* @param {Array|Object} collection
|
|
90
|
+
* @param {Function} matcher
|
|
91
|
+
*
|
|
92
|
+
* @return {Object}
|
|
93
|
+
*/
|
|
94
|
+
|
|
95
|
+
function findIndex(collection, matcher) {
|
|
96
|
+
matcher = toMatcher(matcher);
|
|
97
|
+
var idx = isArray$2(collection) ? -1 : undefined;
|
|
98
|
+
forEach$1(collection, function (val, key) {
|
|
99
|
+
if (matcher(val, key)) {
|
|
100
|
+
idx = key;
|
|
101
|
+
return false;
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
return idx;
|
|
105
|
+
}
|
|
86
106
|
/**
|
|
87
107
|
* Find element in collection.
|
|
88
108
|
*
|
|
@@ -1094,7 +1114,15 @@
|
|
|
1094
1114
|
*/
|
|
1095
1115
|
|
|
1096
1116
|
// fake node used to instantiate svg geometry elements
|
|
1097
|
-
var node =
|
|
1117
|
+
var node = null;
|
|
1118
|
+
|
|
1119
|
+
function getNode() {
|
|
1120
|
+
if (node === null) {
|
|
1121
|
+
node = create$1('svg');
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
return node;
|
|
1125
|
+
}
|
|
1098
1126
|
|
|
1099
1127
|
function extend$1(object, props) {
|
|
1100
1128
|
var i, k, keys = Object.keys(props);
|
|
@@ -1118,7 +1146,7 @@
|
|
|
1118
1146
|
* @return {SVGMatrix}
|
|
1119
1147
|
*/
|
|
1120
1148
|
function createMatrix(a, b, c, d, e, f) {
|
|
1121
|
-
var matrix =
|
|
1149
|
+
var matrix = getNode().createSVGMatrix();
|
|
1122
1150
|
|
|
1123
1151
|
switch (arguments.length) {
|
|
1124
1152
|
case 0:
|
|
@@ -1139,9 +1167,9 @@
|
|
|
1139
1167
|
|
|
1140
1168
|
function createTransform(matrix) {
|
|
1141
1169
|
if (matrix) {
|
|
1142
|
-
return
|
|
1170
|
+
return getNode().createSVGTransformFromMatrix(matrix);
|
|
1143
1171
|
} else {
|
|
1144
|
-
return
|
|
1172
|
+
return getNode().createSVGTransform();
|
|
1145
1173
|
}
|
|
1146
1174
|
}
|
|
1147
1175
|
|
|
@@ -1438,11 +1466,11 @@
|
|
|
1438
1466
|
radius = shape.width / 2;
|
|
1439
1467
|
|
|
1440
1468
|
var circlePath = [
|
|
1441
|
-
['M', cx, cy],
|
|
1442
|
-
['m', 0, -radius],
|
|
1443
|
-
['a', radius, radius, 0, 1, 1, 0, 2 * radius],
|
|
1444
|
-
['a', radius, radius, 0, 1, 1, 0, -2 * radius],
|
|
1445
|
-
['z']
|
|
1469
|
+
[ 'M', cx, cy ],
|
|
1470
|
+
[ 'm', 0, -radius ],
|
|
1471
|
+
[ 'a', radius, radius, 0, 1, 1, 0, 2 * radius ],
|
|
1472
|
+
[ 'a', radius, radius, 0, 1, 1, 0, -2 * radius ],
|
|
1473
|
+
[ 'z' ]
|
|
1446
1474
|
];
|
|
1447
1475
|
|
|
1448
1476
|
return componentsToPath(circlePath);
|
|
@@ -1456,16 +1484,16 @@
|
|
|
1456
1484
|
height = shape.height;
|
|
1457
1485
|
|
|
1458
1486
|
var roundRectPath = [
|
|
1459
|
-
['M', x + borderRadius, y],
|
|
1460
|
-
['l', width - borderRadius * 2, 0],
|
|
1461
|
-
['a', borderRadius, borderRadius, 0, 0, 1, borderRadius, borderRadius],
|
|
1462
|
-
['l', 0, height - borderRadius * 2],
|
|
1463
|
-
['a', borderRadius, borderRadius, 0, 0, 1, -borderRadius, borderRadius],
|
|
1464
|
-
['l', borderRadius * 2 - width, 0],
|
|
1465
|
-
['a', borderRadius, borderRadius, 0, 0, 1, -borderRadius, -borderRadius],
|
|
1466
|
-
['l', 0, borderRadius * 2 - height],
|
|
1467
|
-
['a', borderRadius, borderRadius, 0, 0, 1, borderRadius, -borderRadius],
|
|
1468
|
-
['z']
|
|
1487
|
+
[ 'M', x + borderRadius, y ],
|
|
1488
|
+
[ 'l', width - borderRadius * 2, 0 ],
|
|
1489
|
+
[ 'a', borderRadius, borderRadius, 0, 0, 1, borderRadius, borderRadius ],
|
|
1490
|
+
[ 'l', 0, height - borderRadius * 2 ],
|
|
1491
|
+
[ 'a', borderRadius, borderRadius, 0, 0, 1, -borderRadius, borderRadius ],
|
|
1492
|
+
[ 'l', borderRadius * 2 - width, 0 ],
|
|
1493
|
+
[ 'a', borderRadius, borderRadius, 0, 0, 1, -borderRadius, -borderRadius ],
|
|
1494
|
+
[ 'l', 0, borderRadius * 2 - height ],
|
|
1495
|
+
[ 'a', borderRadius, borderRadius, 0, 0, 1, borderRadius, -borderRadius ],
|
|
1496
|
+
[ 'z' ]
|
|
1469
1497
|
];
|
|
1470
1498
|
|
|
1471
1499
|
return componentsToPath(roundRectPath);
|
|
@@ -1481,11 +1509,11 @@
|
|
|
1481
1509
|
halfHeight = height / 2;
|
|
1482
1510
|
|
|
1483
1511
|
var diamondPath = [
|
|
1484
|
-
['M', x + halfWidth, y],
|
|
1485
|
-
['l', halfWidth, halfHeight],
|
|
1486
|
-
['l', -halfWidth, halfHeight],
|
|
1487
|
-
['l', -halfWidth, -halfHeight],
|
|
1488
|
-
['z']
|
|
1512
|
+
[ 'M', x + halfWidth, y ],
|
|
1513
|
+
[ 'l', halfWidth, halfHeight ],
|
|
1514
|
+
[ 'l', -halfWidth, halfHeight ],
|
|
1515
|
+
[ 'l', -halfWidth, -halfHeight ],
|
|
1516
|
+
[ 'z' ]
|
|
1489
1517
|
];
|
|
1490
1518
|
|
|
1491
1519
|
return componentsToPath(diamondPath);
|
|
@@ -1498,11 +1526,11 @@
|
|
|
1498
1526
|
height = shape.height;
|
|
1499
1527
|
|
|
1500
1528
|
var rectPath = [
|
|
1501
|
-
['M', x, y],
|
|
1502
|
-
['l', width, 0],
|
|
1503
|
-
['l', 0, height],
|
|
1504
|
-
['l', -width, 0],
|
|
1505
|
-
['z']
|
|
1529
|
+
[ 'M', x, y ],
|
|
1530
|
+
[ 'l', width, 0 ],
|
|
1531
|
+
[ 'l', 0, height ],
|
|
1532
|
+
[ 'l', -width, 0 ],
|
|
1533
|
+
[ 'z' ]
|
|
1506
1534
|
];
|
|
1507
1535
|
|
|
1508
1536
|
return componentsToPath(rectPath);
|
|
@@ -2365,7 +2393,7 @@
|
|
|
2365
2393
|
// fix for safari / chrome / firefox bug not correctly
|
|
2366
2394
|
// resetting stroke dash array
|
|
2367
2395
|
if (attrs.strokeDasharray === 'none') {
|
|
2368
|
-
attrs.strokeDasharray = [10000, 1];
|
|
2396
|
+
attrs.strokeDasharray = [ 10000, 1 ];
|
|
2369
2397
|
}
|
|
2370
2398
|
|
|
2371
2399
|
var marker = create$1('marker');
|
|
@@ -2592,7 +2620,7 @@
|
|
|
2592
2620
|
var x_2 = width / 2;
|
|
2593
2621
|
var y_2 = height / 2;
|
|
2594
2622
|
|
|
2595
|
-
var points = [{ x: x_2, y: 0 }, { x: width, y: y_2 }, { x: x_2, y: height }, { x: 0, y: y_2 }];
|
|
2623
|
+
var points = [ { x: x_2, y: 0 }, { x: width, y: y_2 }, { x: x_2, y: height }, { x: 0, y: y_2 } ];
|
|
2596
2624
|
|
|
2597
2625
|
var pointsString = points.map(function(point) {
|
|
2598
2626
|
return point.x + ',' + point.y;
|
|
@@ -2664,7 +2692,7 @@
|
|
|
2664
2692
|
var event = getSemantic(element);
|
|
2665
2693
|
var isThrowing = isThrowEvent(event);
|
|
2666
2694
|
|
|
2667
|
-
if (event.eventDefinitions && event.eventDefinitions.length>1) {
|
|
2695
|
+
if (event.eventDefinitions && event.eventDefinitions.length > 1) {
|
|
2668
2696
|
if (event.parallelMultiple) {
|
|
2669
2697
|
return renderer('bpmn:ParallelMultipleEventDefinition')(parentGfx, element, isThrowing);
|
|
2670
2698
|
}
|
|
@@ -3380,7 +3408,7 @@
|
|
|
3380
3408
|
if (expanded) {
|
|
3381
3409
|
attachTaskMarkers(parentGfx, element);
|
|
3382
3410
|
} else {
|
|
3383
|
-
attachTaskMarkers(parentGfx, element, ['SubProcessMarker']);
|
|
3411
|
+
attachTaskMarkers(parentGfx, element, [ 'SubProcessMarker' ]);
|
|
3384
3412
|
}
|
|
3385
3413
|
|
|
3386
3414
|
return rect;
|
|
@@ -4374,11 +4402,14 @@
|
|
|
4374
4402
|
helperSvg = create$1('svg');
|
|
4375
4403
|
|
|
4376
4404
|
attr$1(helperSvg, {
|
|
4377
|
-
id: 'helper-svg'
|
|
4378
|
-
|
|
4379
|
-
|
|
4405
|
+
id: 'helper-svg'
|
|
4406
|
+
});
|
|
4407
|
+
|
|
4408
|
+
assign$1(helperSvg, {
|
|
4380
4409
|
visibility: 'hidden',
|
|
4381
|
-
position: 'fixed'
|
|
4410
|
+
position: 'fixed',
|
|
4411
|
+
width: 0,
|
|
4412
|
+
height: 0
|
|
4382
4413
|
});
|
|
4383
4414
|
|
|
4384
4415
|
document.body.appendChild(helperSvg);
|
|
@@ -4711,22 +4742,22 @@
|
|
|
4711
4742
|
d: 'm {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}',
|
|
4712
4743
|
height: 36,
|
|
4713
4744
|
width: 36,
|
|
4714
|
-
heightElements: [6, 14],
|
|
4715
|
-
widthElements: [10.5, 21]
|
|
4745
|
+
heightElements: [ 6, 14 ],
|
|
4746
|
+
widthElements: [ 10.5, 21 ]
|
|
4716
4747
|
},
|
|
4717
4748
|
'EVENT_SIGNAL': {
|
|
4718
4749
|
d: 'M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z',
|
|
4719
4750
|
height: 36,
|
|
4720
4751
|
width: 36,
|
|
4721
|
-
heightElements: [18],
|
|
4722
|
-
widthElements: [10, 20]
|
|
4752
|
+
heightElements: [ 18 ],
|
|
4753
|
+
widthElements: [ 10, 20 ]
|
|
4723
4754
|
},
|
|
4724
4755
|
'EVENT_ESCALATION': {
|
|
4725
4756
|
d: 'M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z',
|
|
4726
4757
|
height: 36,
|
|
4727
4758
|
width: 36,
|
|
4728
|
-
heightElements: [20, 7],
|
|
4729
|
-
widthElements: [8]
|
|
4759
|
+
heightElements: [ 20, 7 ],
|
|
4760
|
+
widthElements: [ 8 ]
|
|
4730
4761
|
},
|
|
4731
4762
|
'EVENT_CONDITIONAL': {
|
|
4732
4763
|
d: 'M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z ' +
|
|
@@ -4738,67 +4769,67 @@
|
|
|
4738
4769
|
'M {e.x2},{e.y8} l {e.x0},0 ',
|
|
4739
4770
|
height: 36,
|
|
4740
4771
|
width: 36,
|
|
4741
|
-
heightElements: [8.5, 14.5, 18, 11.5, 14.5, 17.5, 20.5, 23.5, 26.5],
|
|
4742
|
-
widthElements: [10.5, 14.5, 12.5]
|
|
4772
|
+
heightElements: [ 8.5, 14.5, 18, 11.5, 14.5, 17.5, 20.5, 23.5, 26.5 ],
|
|
4773
|
+
widthElements: [ 10.5, 14.5, 12.5 ]
|
|
4743
4774
|
},
|
|
4744
4775
|
'EVENT_LINK': {
|
|
4745
4776
|
d: 'm {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z',
|
|
4746
4777
|
height: 36,
|
|
4747
4778
|
width: 36,
|
|
4748
|
-
heightElements: [4.4375, 6.75, 7.8125],
|
|
4749
|
-
widthElements: [9.84375, 13.5]
|
|
4779
|
+
heightElements: [ 4.4375, 6.75, 7.8125 ],
|
|
4780
|
+
widthElements: [ 9.84375, 13.5 ]
|
|
4750
4781
|
},
|
|
4751
4782
|
'EVENT_ERROR': {
|
|
4752
4783
|
d: 'm {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z',
|
|
4753
4784
|
height: 36,
|
|
4754
4785
|
width: 36,
|
|
4755
|
-
heightElements: [0.023, 8.737, 8.151, 16.564, 10.591, 8.714],
|
|
4756
|
-
widthElements: [0.085, 6.672, 6.97, 4.273, 5.337, 6.636]
|
|
4786
|
+
heightElements: [ 0.023, 8.737, 8.151, 16.564, 10.591, 8.714 ],
|
|
4787
|
+
widthElements: [ 0.085, 6.672, 6.97, 4.273, 5.337, 6.636 ]
|
|
4757
4788
|
},
|
|
4758
4789
|
'EVENT_CANCEL_45': {
|
|
4759
4790
|
d: 'm {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 ' +
|
|
4760
4791
|
'0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z',
|
|
4761
4792
|
height: 36,
|
|
4762
4793
|
width: 36,
|
|
4763
|
-
heightElements: [4.75, 8.5],
|
|
4764
|
-
widthElements: [4.75, 8.5]
|
|
4794
|
+
heightElements: [ 4.75, 8.5 ],
|
|
4795
|
+
widthElements: [ 4.75, 8.5 ]
|
|
4765
4796
|
},
|
|
4766
4797
|
'EVENT_COMPENSATION': {
|
|
4767
4798
|
d: 'm {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z',
|
|
4768
4799
|
height: 36,
|
|
4769
4800
|
width: 36,
|
|
4770
|
-
heightElements: [6.5, 13, 0.4, 6.1],
|
|
4771
|
-
widthElements: [9, 9.3, 8.7]
|
|
4801
|
+
heightElements: [ 6.5, 13, 0.4, 6.1 ],
|
|
4802
|
+
widthElements: [ 9, 9.3, 8.7 ]
|
|
4772
4803
|
},
|
|
4773
4804
|
'EVENT_TIMER_WH': {
|
|
4774
4805
|
d: 'M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ',
|
|
4775
4806
|
height: 36,
|
|
4776
4807
|
width: 36,
|
|
4777
|
-
heightElements: [10, 2],
|
|
4778
|
-
widthElements: [3, 7]
|
|
4808
|
+
heightElements: [ 10, 2 ],
|
|
4809
|
+
widthElements: [ 3, 7 ]
|
|
4779
4810
|
},
|
|
4780
4811
|
'EVENT_TIMER_LINE': {
|
|
4781
4812
|
d: 'M {mx},{my} ' +
|
|
4782
4813
|
'm {e.x0},{e.y0} l -{e.x1},{e.y1} ',
|
|
4783
4814
|
height: 36,
|
|
4784
4815
|
width: 36,
|
|
4785
|
-
heightElements: [10, 3],
|
|
4786
|
-
widthElements: [0, 0]
|
|
4816
|
+
heightElements: [ 10, 3 ],
|
|
4817
|
+
widthElements: [ 0, 0 ]
|
|
4787
4818
|
},
|
|
4788
4819
|
'EVENT_MULTIPLE': {
|
|
4789
4820
|
d:'m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z',
|
|
4790
4821
|
height: 36,
|
|
4791
4822
|
width: 36,
|
|
4792
|
-
heightElements: [6.28099, 12.56199],
|
|
4793
|
-
widthElements: [3.1405, 9.42149, 12.56198]
|
|
4823
|
+
heightElements: [ 6.28099, 12.56199 ],
|
|
4824
|
+
widthElements: [ 3.1405, 9.42149, 12.56198 ]
|
|
4794
4825
|
},
|
|
4795
4826
|
'EVENT_PARALLEL_MULTIPLE': {
|
|
4796
4827
|
d:'m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} ' +
|
|
4797
4828
|
'-{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z',
|
|
4798
4829
|
height: 36,
|
|
4799
4830
|
width: 36,
|
|
4800
|
-
heightElements: [2.56228, 7.68683],
|
|
4801
|
-
widthElements: [2.56228, 7.68683]
|
|
4831
|
+
heightElements: [ 2.56228, 7.68683 ],
|
|
4832
|
+
widthElements: [ 2.56228, 7.68683 ]
|
|
4802
4833
|
},
|
|
4803
4834
|
'GATEWAY_EXCLUSIVE': {
|
|
4804
4835
|
d:'m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} ' +
|
|
@@ -4806,23 +4837,23 @@
|
|
|
4806
4837
|
'{e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z',
|
|
4807
4838
|
height: 17.5,
|
|
4808
4839
|
width: 17.5,
|
|
4809
|
-
heightElements: [8.5, 6.5312, -6.5312, -8.5],
|
|
4810
|
-
widthElements: [6.5, -6.5, 3, -3, 5, -5]
|
|
4840
|
+
heightElements: [ 8.5, 6.5312, -6.5312, -8.5 ],
|
|
4841
|
+
widthElements: [ 6.5, -6.5, 3, -3, 5, -5 ]
|
|
4811
4842
|
},
|
|
4812
4843
|
'GATEWAY_PARALLEL': {
|
|
4813
4844
|
d:'m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 ' +
|
|
4814
4845
|
'0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z',
|
|
4815
4846
|
height: 30,
|
|
4816
4847
|
width: 30,
|
|
4817
|
-
heightElements: [5, 12.5],
|
|
4818
|
-
widthElements: [5, 12.5]
|
|
4848
|
+
heightElements: [ 5, 12.5 ],
|
|
4849
|
+
widthElements: [ 5, 12.5 ]
|
|
4819
4850
|
},
|
|
4820
4851
|
'GATEWAY_EVENT_BASED': {
|
|
4821
4852
|
d:'m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z',
|
|
4822
4853
|
height: 11,
|
|
4823
4854
|
width: 11,
|
|
4824
|
-
heightElements: [-6, 6, 12, -12],
|
|
4825
|
-
widthElements: [9, -3, -12]
|
|
4855
|
+
heightElements: [ -6, 6, 12, -12 ],
|
|
4856
|
+
widthElements: [ 9, -3, -12 ]
|
|
4826
4857
|
},
|
|
4827
4858
|
'GATEWAY_COMPLEX': {
|
|
4828
4859
|
d:'m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} ' +
|
|
@@ -4831,15 +4862,15 @@
|
|
|
4831
4862
|
'-{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z',
|
|
4832
4863
|
height: 17.125,
|
|
4833
4864
|
width: 17.125,
|
|
4834
|
-
heightElements: [4.875, 3.4375, 2.125, 3],
|
|
4835
|
-
widthElements: [3.4375, 2.125, 4.875, 3]
|
|
4865
|
+
heightElements: [ 4.875, 3.4375, 2.125, 3 ],
|
|
4866
|
+
widthElements: [ 3.4375, 2.125, 4.875, 3 ]
|
|
4836
4867
|
},
|
|
4837
4868
|
'DATA_OBJECT_PATH': {
|
|
4838
4869
|
d:'m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0',
|
|
4839
4870
|
height: 61,
|
|
4840
4871
|
width: 51,
|
|
4841
|
-
heightElements: [10, 50, 60],
|
|
4842
|
-
widthElements: [10, 40, 50, 60]
|
|
4872
|
+
heightElements: [ 10, 50, 60 ],
|
|
4873
|
+
widthElements: [ 10, 40, 50, 60 ]
|
|
4843
4874
|
},
|
|
4844
4875
|
'DATA_OBJECT_COLLECTION_PATH': {
|
|
4845
4876
|
d: 'm{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10',
|
|
@@ -4868,15 +4899,15 @@
|
|
|
4868
4899
|
'c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0',
|
|
4869
4900
|
height: 61,
|
|
4870
4901
|
width: 61,
|
|
4871
|
-
heightElements: [7, 10, 45],
|
|
4872
|
-
widthElements: [2, 58, 60]
|
|
4902
|
+
heightElements: [ 7, 10, 45 ],
|
|
4903
|
+
widthElements: [ 2, 58, 60 ]
|
|
4873
4904
|
},
|
|
4874
4905
|
'TEXT_ANNOTATION': {
|
|
4875
4906
|
d: 'm {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0',
|
|
4876
4907
|
height: 30,
|
|
4877
4908
|
width: 10,
|
|
4878
|
-
heightElements: [30],
|
|
4879
|
-
widthElements: [10]
|
|
4909
|
+
heightElements: [ 30 ],
|
|
4910
|
+
widthElements: [ 10 ]
|
|
4880
4911
|
},
|
|
4881
4912
|
'MARKER_SUB_PROCESS': {
|
|
4882
4913
|
d: 'm{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0',
|
|
@@ -4931,8 +4962,8 @@
|
|
|
4931
4962
|
d: 'm {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}',
|
|
4932
4963
|
height: 14,
|
|
4933
4964
|
width: 21,
|
|
4934
|
-
heightElements: [6, 14],
|
|
4935
|
-
widthElements: [10.5, 21]
|
|
4965
|
+
heightElements: [ 6, 14 ],
|
|
4966
|
+
widthElements: [ 10.5, 21 ]
|
|
4936
4967
|
},
|
|
4937
4968
|
'TASK_TYPE_SCRIPT': {
|
|
4938
4969
|
d: 'm {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 ' +
|
|
@@ -4943,8 +4974,8 @@
|
|
|
4943
4974
|
'm -4,3 l 5,0',
|
|
4944
4975
|
height: 15,
|
|
4945
4976
|
width: 12.6,
|
|
4946
|
-
heightElements: [6, 14],
|
|
4947
|
-
widthElements: [10.5, 21]
|
|
4977
|
+
heightElements: [ 6, 14 ],
|
|
4978
|
+
widthElements: [ 10.5, 21 ]
|
|
4948
4979
|
},
|
|
4949
4980
|
'TASK_TYPE_USER_1': {
|
|
4950
4981
|
d: 'm {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 ' +
|
|
@@ -5317,6 +5348,10 @@
|
|
|
5317
5348
|
|
|
5318
5349
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
5319
5350
|
|
|
5351
|
+
function getDefaultExportFromCjs (x) {
|
|
5352
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
5353
|
+
}
|
|
5354
|
+
|
|
5320
5355
|
function roundPoint(point) {
|
|
5321
5356
|
|
|
5322
5357
|
return {
|
|
@@ -5627,11 +5662,6 @@
|
|
|
5627
5662
|
parentElement = this._canvas.findRoot(parentElement);
|
|
5628
5663
|
}
|
|
5629
5664
|
|
|
5630
|
-
// insert sequence flows behind other flow nodes (cf. #727)
|
|
5631
|
-
if (is$1(semantic, 'bpmn:SequenceFlow')) {
|
|
5632
|
-
parentIndex = 0;
|
|
5633
|
-
}
|
|
5634
|
-
|
|
5635
5665
|
this._canvas.addConnection(element, parentElement, parentIndex);
|
|
5636
5666
|
} else {
|
|
5637
5667
|
throw new Error(translate('unknown di {di} for element {semantic}', {
|
|
@@ -7800,105 +7830,105 @@
|
|
|
7800
7830
|
|
|
7801
7831
|
(function (module, exports) {
|
|
7802
7832
|
(function(root, factory) {
|
|
7803
|
-
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
|
|
7808
|
-
|
|
7809
|
-
|
|
7810
|
-
if (root.CSS && root.CSS.escape) {
|
|
7811
|
-
return root.CSS.escape;
|
|
7812
|
-
}
|
|
7833
|
+
// https://github.com/umdjs/umd/blob/master/returnExports.js
|
|
7834
|
+
{
|
|
7835
|
+
// For Node.js.
|
|
7836
|
+
module.exports = factory(root);
|
|
7837
|
+
}
|
|
7838
|
+
}(typeof commonjsGlobal != 'undefined' ? commonjsGlobal : commonjsGlobal, function(root) {
|
|
7813
7839
|
|
|
7814
|
-
|
|
7815
|
-
|
|
7816
|
-
if (arguments.length == 0) {
|
|
7817
|
-
throw new TypeError('`CSS.escape` requires an argument.');
|
|
7840
|
+
if (root.CSS && root.CSS.escape) {
|
|
7841
|
+
return root.CSS.escape;
|
|
7818
7842
|
}
|
|
7819
|
-
var string = String(value);
|
|
7820
|
-
var length = string.length;
|
|
7821
|
-
var index = -1;
|
|
7822
|
-
var codeUnit;
|
|
7823
|
-
var result = '';
|
|
7824
|
-
var firstCodeUnit = string.charCodeAt(0);
|
|
7825
|
-
while (++index < length) {
|
|
7826
|
-
codeUnit = string.charCodeAt(index);
|
|
7827
|
-
// Note: there’s no need to special-case astral symbols, surrogate
|
|
7828
|
-
// pairs, or lone surrogates.
|
|
7829
|
-
|
|
7830
|
-
// If the character is NULL (U+0000), then the REPLACEMENT CHARACTER
|
|
7831
|
-
// (U+FFFD).
|
|
7832
|
-
if (codeUnit == 0x0000) {
|
|
7833
|
-
result += '\uFFFD';
|
|
7834
|
-
continue;
|
|
7835
|
-
}
|
|
7836
7843
|
|
|
7837
|
-
|
|
7838
|
-
|
|
7839
|
-
|
|
7840
|
-
|
|
7841
|
-
// If the character is the first character and is in the range [0-9]
|
|
7842
|
-
// (U+0030 to U+0039), […]
|
|
7843
|
-
(index == 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039) ||
|
|
7844
|
-
// If the character is the second character and is in the range [0-9]
|
|
7845
|
-
// (U+0030 to U+0039) and the first character is a `-` (U+002D), […]
|
|
7846
|
-
(
|
|
7847
|
-
index == 1 &&
|
|
7848
|
-
codeUnit >= 0x0030 && codeUnit <= 0x0039 &&
|
|
7849
|
-
firstCodeUnit == 0x002D
|
|
7850
|
-
)
|
|
7851
|
-
) {
|
|
7852
|
-
// https://drafts.csswg.org/cssom/#escape-a-character-as-code-point
|
|
7853
|
-
result += '\\' + codeUnit.toString(16) + ' ';
|
|
7854
|
-
continue;
|
|
7844
|
+
// https://drafts.csswg.org/cssom/#serialize-an-identifier
|
|
7845
|
+
var cssEscape = function(value) {
|
|
7846
|
+
if (arguments.length == 0) {
|
|
7847
|
+
throw new TypeError('`CSS.escape` requires an argument.');
|
|
7855
7848
|
}
|
|
7849
|
+
var string = String(value);
|
|
7850
|
+
var length = string.length;
|
|
7851
|
+
var index = -1;
|
|
7852
|
+
var codeUnit;
|
|
7853
|
+
var result = '';
|
|
7854
|
+
var firstCodeUnit = string.charCodeAt(0);
|
|
7855
|
+
while (++index < length) {
|
|
7856
|
+
codeUnit = string.charCodeAt(index);
|
|
7857
|
+
// Note: there’s no need to special-case astral symbols, surrogate
|
|
7858
|
+
// pairs, or lone surrogates.
|
|
7859
|
+
|
|
7860
|
+
// If the character is NULL (U+0000), then the REPLACEMENT CHARACTER
|
|
7861
|
+
// (U+FFFD).
|
|
7862
|
+
if (codeUnit == 0x0000) {
|
|
7863
|
+
result += '\uFFFD';
|
|
7864
|
+
continue;
|
|
7865
|
+
}
|
|
7866
|
+
|
|
7867
|
+
if (
|
|
7868
|
+
// If the character is in the range [\1-\1F] (U+0001 to U+001F) or is
|
|
7869
|
+
// U+007F, […]
|
|
7870
|
+
(codeUnit >= 0x0001 && codeUnit <= 0x001F) || codeUnit == 0x007F ||
|
|
7871
|
+
// If the character is the first character and is in the range [0-9]
|
|
7872
|
+
// (U+0030 to U+0039), […]
|
|
7873
|
+
(index == 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039) ||
|
|
7874
|
+
// If the character is the second character and is in the range [0-9]
|
|
7875
|
+
// (U+0030 to U+0039) and the first character is a `-` (U+002D), […]
|
|
7876
|
+
(
|
|
7877
|
+
index == 1 &&
|
|
7878
|
+
codeUnit >= 0x0030 && codeUnit <= 0x0039 &&
|
|
7879
|
+
firstCodeUnit == 0x002D
|
|
7880
|
+
)
|
|
7881
|
+
) {
|
|
7882
|
+
// https://drafts.csswg.org/cssom/#escape-a-character-as-code-point
|
|
7883
|
+
result += '\\' + codeUnit.toString(16) + ' ';
|
|
7884
|
+
continue;
|
|
7885
|
+
}
|
|
7856
7886
|
|
|
7857
|
-
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
|
|
7887
|
+
if (
|
|
7888
|
+
// If the character is the first character and is a `-` (U+002D), and
|
|
7889
|
+
// there is no second character, […]
|
|
7890
|
+
index == 0 &&
|
|
7891
|
+
length == 1 &&
|
|
7892
|
+
codeUnit == 0x002D
|
|
7893
|
+
) {
|
|
7894
|
+
result += '\\' + string.charAt(index);
|
|
7895
|
+
continue;
|
|
7896
|
+
}
|
|
7897
|
+
|
|
7898
|
+
// If the character is not handled by one of the above rules and is
|
|
7899
|
+
// greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or
|
|
7900
|
+
// is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to
|
|
7901
|
+
// U+005A), or [a-z] (U+0061 to U+007A), […]
|
|
7902
|
+
if (
|
|
7903
|
+
codeUnit >= 0x0080 ||
|
|
7904
|
+
codeUnit == 0x002D ||
|
|
7905
|
+
codeUnit == 0x005F ||
|
|
7906
|
+
codeUnit >= 0x0030 && codeUnit <= 0x0039 ||
|
|
7907
|
+
codeUnit >= 0x0041 && codeUnit <= 0x005A ||
|
|
7908
|
+
codeUnit >= 0x0061 && codeUnit <= 0x007A
|
|
7909
|
+
) {
|
|
7910
|
+
// the character itself
|
|
7911
|
+
result += string.charAt(index);
|
|
7912
|
+
continue;
|
|
7913
|
+
}
|
|
7914
|
+
|
|
7915
|
+
// Otherwise, the escaped character.
|
|
7916
|
+
// https://drafts.csswg.org/cssom/#escape-a-character
|
|
7864
7917
|
result += '\\' + string.charAt(index);
|
|
7865
|
-
continue;
|
|
7866
|
-
}
|
|
7867
7918
|
|
|
7868
|
-
// If the character is not handled by one of the above rules and is
|
|
7869
|
-
// greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or
|
|
7870
|
-
// is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to
|
|
7871
|
-
// U+005A), or [a-z] (U+0061 to U+007A), […]
|
|
7872
|
-
if (
|
|
7873
|
-
codeUnit >= 0x0080 ||
|
|
7874
|
-
codeUnit == 0x002D ||
|
|
7875
|
-
codeUnit == 0x005F ||
|
|
7876
|
-
codeUnit >= 0x0030 && codeUnit <= 0x0039 ||
|
|
7877
|
-
codeUnit >= 0x0041 && codeUnit <= 0x005A ||
|
|
7878
|
-
codeUnit >= 0x0061 && codeUnit <= 0x007A
|
|
7879
|
-
) {
|
|
7880
|
-
// the character itself
|
|
7881
|
-
result += string.charAt(index);
|
|
7882
|
-
continue;
|
|
7883
7919
|
}
|
|
7920
|
+
return result;
|
|
7921
|
+
};
|
|
7884
7922
|
|
|
7885
|
-
|
|
7886
|
-
|
|
7887
|
-
result += '\\' + string.charAt(index);
|
|
7888
|
-
|
|
7923
|
+
if (!root.CSS) {
|
|
7924
|
+
root.CSS = {};
|
|
7889
7925
|
}
|
|
7890
|
-
return result;
|
|
7891
|
-
};
|
|
7892
|
-
|
|
7893
|
-
if (!root.CSS) {
|
|
7894
|
-
root.CSS = {};
|
|
7895
|
-
}
|
|
7896
7926
|
|
|
7897
|
-
|
|
7898
|
-
|
|
7927
|
+
root.CSS.escape = cssEscape;
|
|
7928
|
+
return cssEscape;
|
|
7899
7929
|
|
|
7900
|
-
|
|
7901
|
-
}(css_escape));
|
|
7930
|
+
}));
|
|
7931
|
+
} (css_escape));
|
|
7902
7932
|
|
|
7903
7933
|
var HTML_ESCAPE_MAP = {
|
|
7904
7934
|
'&': '&',
|
|
@@ -8378,7 +8408,7 @@
|
|
|
8378
8408
|
|
|
8379
8409
|
// dataAssociations are children of the subprocess but rendered on process level
|
|
8380
8410
|
// cf. https://github.com/bpmn-io/bpmn-js/issues/1619
|
|
8381
|
-
if (isAny(bo, ['bpmn:DataInputAssociation', 'bpmn:DataOutputAssociation'])) {
|
|
8411
|
+
if (isAny(bo, [ 'bpmn:DataInputAssociation', 'bpmn:DataOutputAssociation' ])) {
|
|
8382
8412
|
return false;
|
|
8383
8413
|
}
|
|
8384
8414
|
|
|
@@ -8426,7 +8456,7 @@
|
|
|
8426
8456
|
}, true);
|
|
8427
8457
|
|
|
8428
8458
|
|
|
8429
|
-
this.executed(['shape.create', 'shape.move', 'shape.delete'], LOW_PRIORITY,
|
|
8459
|
+
this.executed([ 'shape.create', 'shape.move', 'shape.delete' ], LOW_PRIORITY,
|
|
8430
8460
|
function(context) {
|
|
8431
8461
|
var oldParent = context.oldParent,
|
|
8432
8462
|
newParent = context.newParent || context.parent,
|
|
@@ -8443,7 +8473,7 @@
|
|
|
8443
8473
|
}, true);
|
|
8444
8474
|
|
|
8445
8475
|
|
|
8446
|
-
this.reverted(['shape.create', 'shape.move', 'shape.delete'], LOW_PRIORITY,
|
|
8476
|
+
this.reverted([ 'shape.create', 'shape.move', 'shape.delete' ], LOW_PRIORITY,
|
|
8447
8477
|
function(context) {
|
|
8448
8478
|
var oldParent = context.oldParent,
|
|
8449
8479
|
newParent = context.newParent || context.parent,
|
|
@@ -8562,7 +8592,7 @@
|
|
|
8562
8592
|
|
|
8563
8593
|
var DrilldownModdule = {
|
|
8564
8594
|
__depends__: [ OverlaysModule, ChangeSupportModule, RootElementsModule ],
|
|
8565
|
-
__init__: [ 'drilldownBreadcrumbs', 'drilldownOverlayBehavior', 'drilldownCentering', 'subprocessCompatibility'],
|
|
8595
|
+
__init__: [ 'drilldownBreadcrumbs', 'drilldownOverlayBehavior', 'drilldownCentering', 'subprocessCompatibility' ],
|
|
8566
8596
|
drilldownBreadcrumbs: [ 'type', DrilldownBreadcrumbs ],
|
|
8567
8597
|
drilldownCentering: [ 'type', DrilldownCentering ],
|
|
8568
8598
|
drilldownOverlayBehavior: [ 'type', DrilldownOverlayBehavior ],
|
|
@@ -8890,20 +8920,11 @@
|
|
|
8890
8920
|
return function() {
|
|
8891
8921
|
initializers.forEach(function(initializer) {
|
|
8892
8922
|
|
|
8893
|
-
|
|
8894
|
-
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
-
|
|
8898
|
-
} else {
|
|
8899
|
-
injector.invoke(initializer);
|
|
8900
|
-
}
|
|
8901
|
-
} catch (error) {
|
|
8902
|
-
if (typeof AggregateError !== 'undefined') {
|
|
8903
|
-
throw new AggregateError([ error ], 'Failed to initialize!');
|
|
8904
|
-
}
|
|
8905
|
-
|
|
8906
|
-
throw new Error('Failed to initialize! ' + error.message);
|
|
8923
|
+
// eagerly resolve component (fn or string)
|
|
8924
|
+
if (typeof initializer === 'string') {
|
|
8925
|
+
injector.get(initializer);
|
|
8926
|
+
} else {
|
|
8927
|
+
injector.invoke(initializer);
|
|
8907
8928
|
}
|
|
8908
8929
|
});
|
|
8909
8930
|
};
|
|
@@ -11265,11 +11286,13 @@
|
|
|
11265
11286
|
|
|
11266
11287
|
var refs = Refs$1;
|
|
11267
11288
|
|
|
11268
|
-
|
|
11289
|
+
(function (module) {
|
|
11290
|
+
module.exports = refs;
|
|
11269
11291
|
|
|
11270
|
-
|
|
11292
|
+
module.exports.Collection = collection;
|
|
11293
|
+
} (objectRefs));
|
|
11271
11294
|
|
|
11272
|
-
var Refs = objectRefs.exports;
|
|
11295
|
+
var Refs = /*@__PURE__*/getDefaultExportFromCjs(objectRefs.exports);
|
|
11273
11296
|
|
|
11274
11297
|
var parentRefs = new Refs({ name: 'children', enumerable: true, collection: true }, { name: 'parent' }),
|
|
11275
11298
|
labelRefs = new Refs({ name: 'labels', enumerable: true, collection: true }, { name: 'labelTarget' }),
|
|
@@ -13130,6 +13153,20 @@
|
|
|
13130
13153
|
* @param {Object} options
|
|
13131
13154
|
*/
|
|
13132
13155
|
Properties.prototype.define = function(target, name, options) {
|
|
13156
|
+
|
|
13157
|
+
if (!options.writable) {
|
|
13158
|
+
|
|
13159
|
+
var value = options.value;
|
|
13160
|
+
|
|
13161
|
+
// use getters for read-only variables to support ES6 proxies
|
|
13162
|
+
// cf. https://github.com/bpmn-io/internal-docs/issues/386
|
|
13163
|
+
options = assign({}, options, {
|
|
13164
|
+
get: function() { return value; }
|
|
13165
|
+
});
|
|
13166
|
+
|
|
13167
|
+
delete options.value;
|
|
13168
|
+
}
|
|
13169
|
+
|
|
13133
13170
|
Object.defineProperty(target, name, options);
|
|
13134
13171
|
};
|
|
13135
13172
|
|
|
@@ -16052,7 +16089,23 @@
|
|
|
16052
16089
|
value = escapeAttr(value);
|
|
16053
16090
|
}
|
|
16054
16091
|
|
|
16055
|
-
|
|
16092
|
+
// de-duplicate attributes
|
|
16093
|
+
// https://github.com/bpmn-io/moddle-xml/issues/66
|
|
16094
|
+
var idx = findIndex(attrs, function(element) {
|
|
16095
|
+
return (
|
|
16096
|
+
element.name.localName === name.localName &&
|
|
16097
|
+
element.name.uri === name.uri &&
|
|
16098
|
+
element.name.prefix === name.prefix
|
|
16099
|
+
);
|
|
16100
|
+
});
|
|
16101
|
+
|
|
16102
|
+
var attr = { name: name, value: value };
|
|
16103
|
+
|
|
16104
|
+
if (idx !== -1) {
|
|
16105
|
+
attrs.splice(idx, 1, attr);
|
|
16106
|
+
} else {
|
|
16107
|
+
attrs.push(attr);
|
|
16108
|
+
}
|
|
16056
16109
|
};
|
|
16057
16110
|
|
|
16058
16111
|
ElementSerializer.prototype.serializeAttributes = function(writer) {
|
|
@@ -16312,12 +16365,12 @@
|
|
|
16312
16365
|
});
|
|
16313
16366
|
};
|
|
16314
16367
|
|
|
16315
|
-
var name = "BPMN20";
|
|
16316
|
-
var uri = "http://www.omg.org/spec/BPMN/20100524/MODEL";
|
|
16317
|
-
var prefix = "bpmn";
|
|
16318
|
-
var associations = [
|
|
16368
|
+
var name$5 = "BPMN20";
|
|
16369
|
+
var uri$5 = "http://www.omg.org/spec/BPMN/20100524/MODEL";
|
|
16370
|
+
var prefix$5 = "bpmn";
|
|
16371
|
+
var associations$5 = [
|
|
16319
16372
|
];
|
|
16320
|
-
var types = [
|
|
16373
|
+
var types$5 = [
|
|
16321
16374
|
{
|
|
16322
16375
|
name: "Interface",
|
|
16323
16376
|
superClass: [
|
|
@@ -19135,7 +19188,7 @@
|
|
|
19135
19188
|
]
|
|
19136
19189
|
}
|
|
19137
19190
|
];
|
|
19138
|
-
var enumerations = [
|
|
19191
|
+
var enumerations$3 = [
|
|
19139
19192
|
{
|
|
19140
19193
|
name: "ProcessType",
|
|
19141
19194
|
literalValues: [
|
|
@@ -19266,24 +19319,24 @@
|
|
|
19266
19319
|
]
|
|
19267
19320
|
}
|
|
19268
19321
|
];
|
|
19269
|
-
var xml = {
|
|
19322
|
+
var xml$1 = {
|
|
19270
19323
|
tagAlias: "lowerCase",
|
|
19271
19324
|
typePrefix: "t"
|
|
19272
19325
|
};
|
|
19273
19326
|
var BpmnPackage = {
|
|
19274
|
-
name: name,
|
|
19275
|
-
uri: uri,
|
|
19276
|
-
prefix: prefix,
|
|
19277
|
-
associations: associations,
|
|
19278
|
-
types: types,
|
|
19279
|
-
enumerations: enumerations,
|
|
19280
|
-
xml: xml
|
|
19327
|
+
name: name$5,
|
|
19328
|
+
uri: uri$5,
|
|
19329
|
+
prefix: prefix$5,
|
|
19330
|
+
associations: associations$5,
|
|
19331
|
+
types: types$5,
|
|
19332
|
+
enumerations: enumerations$3,
|
|
19333
|
+
xml: xml$1
|
|
19281
19334
|
};
|
|
19282
19335
|
|
|
19283
|
-
var name$
|
|
19284
|
-
var uri$
|
|
19285
|
-
var prefix$
|
|
19286
|
-
var types$
|
|
19336
|
+
var name$4 = "BPMNDI";
|
|
19337
|
+
var uri$4 = "http://www.omg.org/spec/BPMN/20100524/DI";
|
|
19338
|
+
var prefix$4 = "bpmndi";
|
|
19339
|
+
var types$4 = [
|
|
19287
19340
|
{
|
|
19288
19341
|
name: "BPMNDiagram",
|
|
19289
19342
|
properties: [
|
|
@@ -19434,7 +19487,7 @@
|
|
|
19434
19487
|
]
|
|
19435
19488
|
}
|
|
19436
19489
|
];
|
|
19437
|
-
var enumerations$
|
|
19490
|
+
var enumerations$2 = [
|
|
19438
19491
|
{
|
|
19439
19492
|
name: "ParticipantBandKind",
|
|
19440
19493
|
literalValues: [
|
|
@@ -19470,21 +19523,21 @@
|
|
|
19470
19523
|
]
|
|
19471
19524
|
}
|
|
19472
19525
|
];
|
|
19473
|
-
var associations$
|
|
19526
|
+
var associations$4 = [
|
|
19474
19527
|
];
|
|
19475
19528
|
var BpmnDiPackage = {
|
|
19476
|
-
name: name$
|
|
19477
|
-
uri: uri$
|
|
19478
|
-
prefix: prefix$
|
|
19479
|
-
types: types$
|
|
19480
|
-
enumerations: enumerations$
|
|
19481
|
-
associations: associations$
|
|
19529
|
+
name: name$4,
|
|
19530
|
+
uri: uri$4,
|
|
19531
|
+
prefix: prefix$4,
|
|
19532
|
+
types: types$4,
|
|
19533
|
+
enumerations: enumerations$2,
|
|
19534
|
+
associations: associations$4
|
|
19482
19535
|
};
|
|
19483
19536
|
|
|
19484
|
-
var name$
|
|
19485
|
-
var uri$
|
|
19486
|
-
var prefix$
|
|
19487
|
-
var types$
|
|
19537
|
+
var name$3 = "DC";
|
|
19538
|
+
var uri$3 = "http://www.omg.org/spec/DD/20100524/DC";
|
|
19539
|
+
var prefix$3 = "dc";
|
|
19540
|
+
var types$3 = [
|
|
19488
19541
|
{
|
|
19489
19542
|
name: "Boolean"
|
|
19490
19543
|
},
|
|
@@ -19577,20 +19630,20 @@
|
|
|
19577
19630
|
]
|
|
19578
19631
|
}
|
|
19579
19632
|
];
|
|
19580
|
-
var associations$
|
|
19633
|
+
var associations$3 = [
|
|
19581
19634
|
];
|
|
19582
19635
|
var DcPackage = {
|
|
19583
|
-
name: name$
|
|
19584
|
-
uri: uri$
|
|
19585
|
-
prefix: prefix$
|
|
19586
|
-
types: types$
|
|
19587
|
-
associations: associations$
|
|
19636
|
+
name: name$3,
|
|
19637
|
+
uri: uri$3,
|
|
19638
|
+
prefix: prefix$3,
|
|
19639
|
+
types: types$3,
|
|
19640
|
+
associations: associations$3
|
|
19588
19641
|
};
|
|
19589
19642
|
|
|
19590
|
-
var name$
|
|
19591
|
-
var uri$
|
|
19592
|
-
var prefix$
|
|
19593
|
-
var types$
|
|
19643
|
+
var name$2 = "DI";
|
|
19644
|
+
var uri$2 = "http://www.omg.org/spec/DD/20100524/DI";
|
|
19645
|
+
var prefix$2 = "di";
|
|
19646
|
+
var types$2 = [
|
|
19594
19647
|
{
|
|
19595
19648
|
name: "DiagramElement",
|
|
19596
19649
|
isAbstract: true,
|
|
@@ -19819,24 +19872,24 @@
|
|
|
19819
19872
|
]
|
|
19820
19873
|
}
|
|
19821
19874
|
];
|
|
19822
|
-
var associations$
|
|
19875
|
+
var associations$2 = [
|
|
19823
19876
|
];
|
|
19824
|
-
var xml
|
|
19877
|
+
var xml = {
|
|
19825
19878
|
tagAlias: "lowerCase"
|
|
19826
19879
|
};
|
|
19827
19880
|
var DiPackage = {
|
|
19828
|
-
name: name$
|
|
19829
|
-
uri: uri$
|
|
19830
|
-
prefix: prefix$
|
|
19831
|
-
types: types$
|
|
19832
|
-
associations: associations$
|
|
19833
|
-
xml: xml
|
|
19881
|
+
name: name$2,
|
|
19882
|
+
uri: uri$2,
|
|
19883
|
+
prefix: prefix$2,
|
|
19884
|
+
types: types$2,
|
|
19885
|
+
associations: associations$2,
|
|
19886
|
+
xml: xml
|
|
19834
19887
|
};
|
|
19835
19888
|
|
|
19836
|
-
var name$
|
|
19837
|
-
var uri$
|
|
19838
|
-
var prefix$
|
|
19839
|
-
var types$
|
|
19889
|
+
var name$1 = "bpmn.io colors for BPMN";
|
|
19890
|
+
var uri$1 = "http://bpmn.io/schema/bpmn/biocolor/1.0";
|
|
19891
|
+
var prefix$1 = "bioc";
|
|
19892
|
+
var types$1 = [
|
|
19840
19893
|
{
|
|
19841
19894
|
name: "ColoredShape",
|
|
19842
19895
|
"extends": [
|
|
@@ -19874,23 +19927,23 @@
|
|
|
19874
19927
|
]
|
|
19875
19928
|
}
|
|
19876
19929
|
];
|
|
19877
|
-
var enumerations$
|
|
19930
|
+
var enumerations$1 = [
|
|
19878
19931
|
];
|
|
19879
|
-
var associations$
|
|
19932
|
+
var associations$1 = [
|
|
19880
19933
|
];
|
|
19881
19934
|
var BiocPackage = {
|
|
19882
|
-
name: name$
|
|
19883
|
-
uri: uri$
|
|
19884
|
-
prefix: prefix$
|
|
19885
|
-
types: types$
|
|
19886
|
-
enumerations: enumerations$
|
|
19887
|
-
associations: associations$
|
|
19935
|
+
name: name$1,
|
|
19936
|
+
uri: uri$1,
|
|
19937
|
+
prefix: prefix$1,
|
|
19938
|
+
types: types$1,
|
|
19939
|
+
enumerations: enumerations$1,
|
|
19940
|
+
associations: associations$1
|
|
19888
19941
|
};
|
|
19889
19942
|
|
|
19890
|
-
var name
|
|
19891
|
-
var uri
|
|
19892
|
-
var prefix
|
|
19893
|
-
var types
|
|
19943
|
+
var name = "BPMN in Color";
|
|
19944
|
+
var uri = "http://www.omg.org/spec/BPMN/non-normative/color/1.0";
|
|
19945
|
+
var prefix = "color";
|
|
19946
|
+
var types = [
|
|
19894
19947
|
{
|
|
19895
19948
|
name: "ColoredLabel",
|
|
19896
19949
|
"extends": [
|
|
@@ -19936,17 +19989,17 @@
|
|
|
19936
19989
|
]
|
|
19937
19990
|
}
|
|
19938
19991
|
];
|
|
19939
|
-
var enumerations
|
|
19992
|
+
var enumerations = [
|
|
19940
19993
|
];
|
|
19941
|
-
var associations
|
|
19994
|
+
var associations = [
|
|
19942
19995
|
];
|
|
19943
19996
|
var BpmnInColorPackage = {
|
|
19944
|
-
name: name
|
|
19945
|
-
uri: uri
|
|
19946
|
-
prefix: prefix
|
|
19947
|
-
types: types
|
|
19948
|
-
enumerations: enumerations
|
|
19949
|
-
associations: associations
|
|
19997
|
+
name: name,
|
|
19998
|
+
uri: uri,
|
|
19999
|
+
prefix: prefix,
|
|
20000
|
+
types: types,
|
|
20001
|
+
enumerations: enumerations,
|
|
20002
|
+
associations: associations
|
|
19950
20003
|
};
|
|
19951
20004
|
|
|
19952
20005
|
var packages = {
|
|
@@ -20026,6 +20079,7 @@
|
|
|
20026
20079
|
// bpmnElement can have multiple independent DIs
|
|
20027
20080
|
if (!has$1(businessObject, 'di')) {
|
|
20028
20081
|
Object.defineProperty(businessObject, 'di', {
|
|
20082
|
+
enumerable: false,
|
|
20029
20083
|
get: function() {
|
|
20030
20084
|
throw new Error(DI_ERROR_MESSAGE);
|
|
20031
20085
|
}
|
|
@@ -21597,4 +21651,4 @@
|
|
|
21597
21651
|
|
|
21598
21652
|
return Viewer;
|
|
21599
21653
|
|
|
21600
|
-
}))
|
|
21654
|
+
}));
|