camunda-bpmn-js 0.23.0 → 0.24.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/dist/assets/bpmn-js.css +7 -7
- package/dist/assets/diagram-js.css +205 -45
- package/dist/base-modeler.development.js +5701 -5951
- package/dist/base-modeler.production.min.js +149 -4
- package/dist/base-navigated-viewer.development.js +18 -19
- package/dist/base-navigated-viewer.production.min.js +1 -1
- package/dist/base-viewer.development.js +4 -4
- package/dist/base-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-modeler.development.js +16976 -18915
- package/dist/camunda-cloud-modeler.production.min.js +149 -4
- package/dist/camunda-cloud-navigated-viewer.development.js +197 -525
- package/dist/camunda-cloud-navigated-viewer.production.min.js +2 -2
- package/dist/camunda-cloud-viewer.development.js +183 -510
- package/dist/camunda-cloud-viewer.production.min.js +1 -1
- package/dist/camunda-platform-modeler.development.js +5944 -8635
- package/dist/camunda-platform-modeler.production.min.js +149 -4
- package/dist/camunda-platform-navigated-viewer.development.js +18 -19
- package/dist/camunda-platform-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-platform-viewer.development.js +4 -4
- package/dist/camunda-platform-viewer.production.min.js +1 -1
- package/lib/camunda-cloud/Modeler.js +3 -1
- package/lib/camunda-cloud/features/replace/ElementTemplatesReplaceProvider.js +249 -0
- package/lib/camunda-cloud/features/replace/ReplaceOptionsUtil.js +7 -0
- package/lib/camunda-cloud/features/replace/index.js +6 -0
- package/package.json +15 -12
|
@@ -469,7 +469,7 @@
|
|
|
469
469
|
return result;
|
|
470
470
|
}
|
|
471
471
|
|
|
472
|
-
var DEFAULT_RENDER_PRIORITY$
|
|
472
|
+
var DEFAULT_RENDER_PRIORITY$1 = 1000;
|
|
473
473
|
|
|
474
474
|
/**
|
|
475
475
|
* The base implementation of shape and connection renderers.
|
|
@@ -477,10 +477,10 @@
|
|
|
477
477
|
* @param {EventBus} eventBus
|
|
478
478
|
* @param {number} [renderPriority=1000]
|
|
479
479
|
*/
|
|
480
|
-
function BaseRenderer
|
|
480
|
+
function BaseRenderer(eventBus, renderPriority) {
|
|
481
481
|
var self = this;
|
|
482
482
|
|
|
483
|
-
renderPriority = renderPriority || DEFAULT_RENDER_PRIORITY$
|
|
483
|
+
renderPriority = renderPriority || DEFAULT_RENDER_PRIORITY$1;
|
|
484
484
|
|
|
485
485
|
eventBus.on([ 'render.shape', 'render.connection' ], renderPriority, function(evt, context) {
|
|
486
486
|
var type = evt.type,
|
|
@@ -516,7 +516,7 @@
|
|
|
516
516
|
*
|
|
517
517
|
* @returns {boolean}
|
|
518
518
|
*/
|
|
519
|
-
BaseRenderer
|
|
519
|
+
BaseRenderer.prototype.canRender = function() {};
|
|
520
520
|
|
|
521
521
|
/**
|
|
522
522
|
* Provides the shape's snap svg element to be drawn on the `canvas`.
|
|
@@ -526,7 +526,7 @@
|
|
|
526
526
|
*
|
|
527
527
|
* @returns {Snap.svg} [returns a Snap.svg paper element ]
|
|
528
528
|
*/
|
|
529
|
-
BaseRenderer
|
|
529
|
+
BaseRenderer.prototype.drawShape = function() {};
|
|
530
530
|
|
|
531
531
|
/**
|
|
532
532
|
* Provides the shape's snap svg element to be drawn on the `canvas`.
|
|
@@ -536,7 +536,7 @@
|
|
|
536
536
|
*
|
|
537
537
|
* @returns {Snap.svg} [returns a Snap.svg paper element ]
|
|
538
538
|
*/
|
|
539
|
-
BaseRenderer
|
|
539
|
+
BaseRenderer.prototype.drawConnection = function() {};
|
|
540
540
|
|
|
541
541
|
/**
|
|
542
542
|
* Gets the SVG path of a shape that represents it's visual bounds.
|
|
@@ -545,7 +545,7 @@
|
|
|
545
545
|
*
|
|
546
546
|
* @return {string} svg path
|
|
547
547
|
*/
|
|
548
|
-
BaseRenderer
|
|
548
|
+
BaseRenderer.prototype.getShapePath = function() {};
|
|
549
549
|
|
|
550
550
|
/**
|
|
551
551
|
* Gets the SVG path of a connection that represents it's visual bounds.
|
|
@@ -554,7 +554,7 @@
|
|
|
554
554
|
*
|
|
555
555
|
* @return {string} svg path
|
|
556
556
|
*/
|
|
557
|
-
BaseRenderer
|
|
557
|
+
BaseRenderer.prototype.getConnectionPath = function() {};
|
|
558
558
|
|
|
559
559
|
/**
|
|
560
560
|
* Is an element of the given BPMN type?
|
|
@@ -682,7 +682,7 @@
|
|
|
682
682
|
}
|
|
683
683
|
}
|
|
684
684
|
|
|
685
|
-
function ensureImported
|
|
685
|
+
function ensureImported(element, target) {
|
|
686
686
|
|
|
687
687
|
if (element.ownerDocument !== target.ownerDocument) {
|
|
688
688
|
try {
|
|
@@ -710,8 +710,8 @@
|
|
|
710
710
|
*
|
|
711
711
|
* @return {SVGElement} the appended node
|
|
712
712
|
*/
|
|
713
|
-
function appendTo
|
|
714
|
-
return target.appendChild(ensureImported
|
|
713
|
+
function appendTo(element, target) {
|
|
714
|
+
return target.appendChild(ensureImported(element, target));
|
|
715
715
|
}
|
|
716
716
|
|
|
717
717
|
/**
|
|
@@ -726,8 +726,8 @@
|
|
|
726
726
|
*
|
|
727
727
|
* @return {SVGElement} the element
|
|
728
728
|
*/
|
|
729
|
-
function append
|
|
730
|
-
appendTo
|
|
729
|
+
function append(target, node) {
|
|
730
|
+
appendTo(node, target);
|
|
731
731
|
return target;
|
|
732
732
|
}
|
|
733
733
|
|
|
@@ -735,9 +735,9 @@
|
|
|
735
735
|
* attribute accessor utility
|
|
736
736
|
*/
|
|
737
737
|
|
|
738
|
-
var LENGTH_ATTR
|
|
738
|
+
var LENGTH_ATTR = 2;
|
|
739
739
|
|
|
740
|
-
var CSS_PROPERTIES
|
|
740
|
+
var CSS_PROPERTIES = {
|
|
741
741
|
'alignment-baseline': 1,
|
|
742
742
|
'baseline-shift': 1,
|
|
743
743
|
'clip': 1,
|
|
@@ -761,7 +761,7 @@
|
|
|
761
761
|
'flood-opacity': 1,
|
|
762
762
|
'font': 1,
|
|
763
763
|
'font-family': 1,
|
|
764
|
-
'font-size': LENGTH_ATTR
|
|
764
|
+
'font-size': LENGTH_ATTR,
|
|
765
765
|
'font-size-adjust': 1,
|
|
766
766
|
'font-stretch': 1,
|
|
767
767
|
'font-style': 1,
|
|
@@ -791,7 +791,7 @@
|
|
|
791
791
|
'stroke-linejoin': 1,
|
|
792
792
|
'stroke-miterlimit': 1,
|
|
793
793
|
'stroke-opacity': 1,
|
|
794
|
-
'stroke-width': LENGTH_ATTR
|
|
794
|
+
'stroke-width': LENGTH_ATTR,
|
|
795
795
|
'text-anchor': 1,
|
|
796
796
|
'text-decoration': 1,
|
|
797
797
|
'text-rendering': 1,
|
|
@@ -802,23 +802,23 @@
|
|
|
802
802
|
};
|
|
803
803
|
|
|
804
804
|
|
|
805
|
-
function getAttribute
|
|
806
|
-
if (CSS_PROPERTIES
|
|
805
|
+
function getAttribute(node, name) {
|
|
806
|
+
if (CSS_PROPERTIES[name]) {
|
|
807
807
|
return node.style[name];
|
|
808
808
|
} else {
|
|
809
809
|
return node.getAttributeNS(null, name);
|
|
810
810
|
}
|
|
811
811
|
}
|
|
812
812
|
|
|
813
|
-
function setAttribute
|
|
813
|
+
function setAttribute(node, name, value) {
|
|
814
814
|
var hyphenated = name.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
|
|
815
815
|
|
|
816
|
-
var type = CSS_PROPERTIES
|
|
816
|
+
var type = CSS_PROPERTIES[hyphenated];
|
|
817
817
|
|
|
818
818
|
if (type) {
|
|
819
819
|
|
|
820
820
|
// append pixel unit, unless present
|
|
821
|
-
if (type === LENGTH_ATTR
|
|
821
|
+
if (type === LENGTH_ATTR && typeof value === 'number') {
|
|
822
822
|
value = String(value) + 'px';
|
|
823
823
|
}
|
|
824
824
|
|
|
@@ -828,12 +828,12 @@
|
|
|
828
828
|
}
|
|
829
829
|
}
|
|
830
830
|
|
|
831
|
-
function setAttributes
|
|
831
|
+
function setAttributes(node, attrs) {
|
|
832
832
|
|
|
833
833
|
var names = Object.keys(attrs), i, name;
|
|
834
834
|
|
|
835
835
|
for (i = 0, name; (name = names[i]); i++) {
|
|
836
|
-
setAttribute
|
|
836
|
+
setAttribute(node, name, attrs[name]);
|
|
837
837
|
}
|
|
838
838
|
}
|
|
839
839
|
|
|
@@ -847,15 +847,15 @@
|
|
|
847
847
|
*
|
|
848
848
|
* @return {String}
|
|
849
849
|
*/
|
|
850
|
-
function attr$
|
|
850
|
+
function attr$1(node, name, value) {
|
|
851
851
|
if (typeof name === 'string') {
|
|
852
852
|
if (value !== undefined) {
|
|
853
|
-
setAttribute
|
|
853
|
+
setAttribute(node, name, value);
|
|
854
854
|
} else {
|
|
855
|
-
return getAttribute
|
|
855
|
+
return getAttribute(node, name);
|
|
856
856
|
}
|
|
857
857
|
} else {
|
|
858
|
-
setAttributes
|
|
858
|
+
setAttributes(node, name);
|
|
859
859
|
}
|
|
860
860
|
|
|
861
861
|
return node;
|
|
@@ -1020,7 +1020,7 @@
|
|
|
1020
1020
|
return element;
|
|
1021
1021
|
}
|
|
1022
1022
|
|
|
1023
|
-
var ns
|
|
1023
|
+
var ns = {
|
|
1024
1024
|
svg: 'http://www.w3.org/2000/svg'
|
|
1025
1025
|
};
|
|
1026
1026
|
|
|
@@ -1028,25 +1028,25 @@
|
|
|
1028
1028
|
* DOM parsing utility
|
|
1029
1029
|
*/
|
|
1030
1030
|
|
|
1031
|
-
var SVG_START
|
|
1031
|
+
var SVG_START = '<svg xmlns="' + ns.svg + '"';
|
|
1032
1032
|
|
|
1033
|
-
function parse$
|
|
1033
|
+
function parse$1(svg) {
|
|
1034
1034
|
|
|
1035
1035
|
var unwrap = false;
|
|
1036
1036
|
|
|
1037
1037
|
// ensure we import a valid svg document
|
|
1038
1038
|
if (svg.substring(0, 4) === '<svg') {
|
|
1039
|
-
if (svg.indexOf(ns
|
|
1040
|
-
svg = SVG_START
|
|
1039
|
+
if (svg.indexOf(ns.svg) === -1) {
|
|
1040
|
+
svg = SVG_START + svg.substring(4);
|
|
1041
1041
|
}
|
|
1042
1042
|
} else {
|
|
1043
1043
|
|
|
1044
1044
|
// namespace svg
|
|
1045
|
-
svg = SVG_START
|
|
1045
|
+
svg = SVG_START + '>' + svg + '</svg>';
|
|
1046
1046
|
unwrap = true;
|
|
1047
1047
|
}
|
|
1048
1048
|
|
|
1049
|
-
var parsed = parseDocument
|
|
1049
|
+
var parsed = parseDocument(svg);
|
|
1050
1050
|
|
|
1051
1051
|
if (!unwrap) {
|
|
1052
1052
|
return parsed;
|
|
@@ -1063,7 +1063,7 @@
|
|
|
1063
1063
|
return fragment;
|
|
1064
1064
|
}
|
|
1065
1065
|
|
|
1066
|
-
function parseDocument
|
|
1066
|
+
function parseDocument(svg) {
|
|
1067
1067
|
|
|
1068
1068
|
var parser;
|
|
1069
1069
|
|
|
@@ -1087,18 +1087,18 @@
|
|
|
1087
1087
|
*
|
|
1088
1088
|
* @returns {SVGElement}
|
|
1089
1089
|
*/
|
|
1090
|
-
function create$
|
|
1090
|
+
function create$1(name, attrs) {
|
|
1091
1091
|
var element;
|
|
1092
1092
|
|
|
1093
1093
|
if (name.charAt(0) === '<') {
|
|
1094
|
-
element = parse$
|
|
1094
|
+
element = parse$1(name).firstChild;
|
|
1095
1095
|
element = document.importNode(element, true);
|
|
1096
1096
|
} else {
|
|
1097
|
-
element = document.createElementNS(ns
|
|
1097
|
+
element = document.createElementNS(ns.svg, name);
|
|
1098
1098
|
}
|
|
1099
1099
|
|
|
1100
1100
|
if (attrs) {
|
|
1101
|
-
attr$
|
|
1101
|
+
attr$1(element, attrs);
|
|
1102
1102
|
}
|
|
1103
1103
|
|
|
1104
1104
|
return element;
|
|
@@ -1113,7 +1113,7 @@
|
|
|
1113
1113
|
|
|
1114
1114
|
function getNode() {
|
|
1115
1115
|
if (node === null) {
|
|
1116
|
-
node = create$
|
|
1116
|
+
node = create$1('svg');
|
|
1117
1117
|
}
|
|
1118
1118
|
|
|
1119
1119
|
return node;
|
|
@@ -1253,7 +1253,7 @@
|
|
|
1253
1253
|
|
|
1254
1254
|
function set$1(element, svg) {
|
|
1255
1255
|
|
|
1256
|
-
var parsed = parse$
|
|
1256
|
+
var parsed = parse$1(svg);
|
|
1257
1257
|
|
|
1258
1258
|
// clear element contents
|
|
1259
1259
|
clear$1(element);
|
|
@@ -1272,7 +1272,7 @@
|
|
|
1272
1272
|
|
|
1273
1273
|
// import + append each node
|
|
1274
1274
|
for (var i = 0; i < nodes.length; i++) {
|
|
1275
|
-
appendTo
|
|
1275
|
+
appendTo(nodes[i], element);
|
|
1276
1276
|
}
|
|
1277
1277
|
|
|
1278
1278
|
}
|
|
@@ -1376,18 +1376,18 @@
|
|
|
1376
1376
|
|
|
1377
1377
|
function createLine(points, attrs) {
|
|
1378
1378
|
|
|
1379
|
-
var line = create$
|
|
1380
|
-
attr$
|
|
1379
|
+
var line = create$1('polyline');
|
|
1380
|
+
attr$1(line, { points: toSVGPoints(points) });
|
|
1381
1381
|
|
|
1382
1382
|
if (attrs) {
|
|
1383
|
-
attr$
|
|
1383
|
+
attr$1(line, attrs);
|
|
1384
1384
|
}
|
|
1385
1385
|
|
|
1386
1386
|
return line;
|
|
1387
1387
|
}
|
|
1388
1388
|
|
|
1389
1389
|
function updateLine(gfx, points) {
|
|
1390
|
-
attr$
|
|
1390
|
+
attr$1(gfx, { points: toSVGPoints(points) });
|
|
1391
1391
|
|
|
1392
1392
|
return gfx;
|
|
1393
1393
|
}
|
|
@@ -1656,7 +1656,7 @@
|
|
|
1656
1656
|
* @param {String} [val]
|
|
1657
1657
|
* @api public
|
|
1658
1658
|
*/
|
|
1659
|
-
function attr
|
|
1659
|
+
function attr(el, name, val) {
|
|
1660
1660
|
|
|
1661
1661
|
// get
|
|
1662
1662
|
if (arguments.length == 2) {
|
|
@@ -1965,7 +1965,7 @@
|
|
|
1965
1965
|
* Expose `parse`.
|
|
1966
1966
|
*/
|
|
1967
1967
|
|
|
1968
|
-
var domify = parse
|
|
1968
|
+
var domify = parse;
|
|
1969
1969
|
|
|
1970
1970
|
/**
|
|
1971
1971
|
* Tests for browser support.
|
|
@@ -2029,7 +2029,7 @@
|
|
|
2029
2029
|
* @api private
|
|
2030
2030
|
*/
|
|
2031
2031
|
|
|
2032
|
-
function parse
|
|
2032
|
+
function parse(html, doc) {
|
|
2033
2033
|
if ('string' != typeof html) throw new TypeError('String expected');
|
|
2034
2034
|
|
|
2035
2035
|
// default to the global `document` object
|
|
@@ -2313,7 +2313,7 @@
|
|
|
2313
2313
|
config, eventBus, styles, pathMap,
|
|
2314
2314
|
canvas, textRenderer, priority) {
|
|
2315
2315
|
|
|
2316
|
-
BaseRenderer
|
|
2316
|
+
BaseRenderer.call(this, eventBus, priority);
|
|
2317
2317
|
|
|
2318
2318
|
var defaultFillColor = config && config.defaultFillColor,
|
|
2319
2319
|
defaultStrokeColor = config && config.defaultStrokeColor,
|
|
@@ -2343,13 +2343,13 @@
|
|
|
2343
2343
|
attrs.strokeDasharray = [ 10000, 1 ];
|
|
2344
2344
|
}
|
|
2345
2345
|
|
|
2346
|
-
var marker = create$
|
|
2346
|
+
var marker = create$1('marker');
|
|
2347
2347
|
|
|
2348
|
-
attr$
|
|
2348
|
+
attr$1(options.element, attrs);
|
|
2349
2349
|
|
|
2350
|
-
append
|
|
2350
|
+
append(marker, options.element);
|
|
2351
2351
|
|
|
2352
|
-
attr$
|
|
2352
|
+
attr$1(marker, {
|
|
2353
2353
|
id: id,
|
|
2354
2354
|
viewBox: '0 0 20 20',
|
|
2355
2355
|
refX: ref.x,
|
|
@@ -2362,12 +2362,12 @@
|
|
|
2362
2362
|
var defs = query('defs', canvas._svg);
|
|
2363
2363
|
|
|
2364
2364
|
if (!defs) {
|
|
2365
|
-
defs = create$
|
|
2365
|
+
defs = create$1('defs');
|
|
2366
2366
|
|
|
2367
|
-
append
|
|
2367
|
+
append(canvas._svg, defs);
|
|
2368
2368
|
}
|
|
2369
2369
|
|
|
2370
|
-
append
|
|
2370
|
+
append(defs, marker);
|
|
2371
2371
|
|
|
2372
2372
|
markers[id] = marker;
|
|
2373
2373
|
}
|
|
@@ -2391,8 +2391,8 @@
|
|
|
2391
2391
|
function createMarker(id, type, fill, stroke) {
|
|
2392
2392
|
|
|
2393
2393
|
if (type === 'sequenceflow-end') {
|
|
2394
|
-
var sequenceflowEnd = create$
|
|
2395
|
-
attr$
|
|
2394
|
+
var sequenceflowEnd = create$1('path');
|
|
2395
|
+
attr$1(sequenceflowEnd, { d: 'M 1 5 L 11 10 L 1 15 Z' });
|
|
2396
2396
|
|
|
2397
2397
|
addMarker(id, {
|
|
2398
2398
|
element: sequenceflowEnd,
|
|
@@ -2406,8 +2406,8 @@
|
|
|
2406
2406
|
}
|
|
2407
2407
|
|
|
2408
2408
|
if (type === 'messageflow-start') {
|
|
2409
|
-
var messageflowStart = create$
|
|
2410
|
-
attr$
|
|
2409
|
+
var messageflowStart = create$1('circle');
|
|
2410
|
+
attr$1(messageflowStart, { cx: 6, cy: 6, r: 3.5 });
|
|
2411
2411
|
|
|
2412
2412
|
addMarker(id, {
|
|
2413
2413
|
element: messageflowStart,
|
|
@@ -2420,8 +2420,8 @@
|
|
|
2420
2420
|
}
|
|
2421
2421
|
|
|
2422
2422
|
if (type === 'messageflow-end') {
|
|
2423
|
-
var messageflowEnd = create$
|
|
2424
|
-
attr$
|
|
2423
|
+
var messageflowEnd = create$1('path');
|
|
2424
|
+
attr$1(messageflowEnd, { d: 'm 1 5 l 0 -3 l 7 3 l -7 3 z' });
|
|
2425
2425
|
|
|
2426
2426
|
addMarker(id, {
|
|
2427
2427
|
element: messageflowEnd,
|
|
@@ -2435,8 +2435,8 @@
|
|
|
2435
2435
|
}
|
|
2436
2436
|
|
|
2437
2437
|
if (type === 'association-start') {
|
|
2438
|
-
var associationStart = create$
|
|
2439
|
-
attr$
|
|
2438
|
+
var associationStart = create$1('path');
|
|
2439
|
+
attr$1(associationStart, { d: 'M 11 5 L 1 10 L 11 15' });
|
|
2440
2440
|
|
|
2441
2441
|
addMarker(id, {
|
|
2442
2442
|
element: associationStart,
|
|
@@ -2451,8 +2451,8 @@
|
|
|
2451
2451
|
}
|
|
2452
2452
|
|
|
2453
2453
|
if (type === 'association-end') {
|
|
2454
|
-
var associationEnd = create$
|
|
2455
|
-
attr$
|
|
2454
|
+
var associationEnd = create$1('path');
|
|
2455
|
+
attr$1(associationEnd, { d: 'M 1 5 L 11 10 L 1 15' });
|
|
2456
2456
|
|
|
2457
2457
|
addMarker(id, {
|
|
2458
2458
|
element: associationEnd,
|
|
@@ -2467,8 +2467,8 @@
|
|
|
2467
2467
|
}
|
|
2468
2468
|
|
|
2469
2469
|
if (type === 'conditional-flow-marker') {
|
|
2470
|
-
var conditionalflowMarker = create$
|
|
2471
|
-
attr$
|
|
2470
|
+
var conditionalflowMarker = create$1('path');
|
|
2471
|
+
attr$1(conditionalflowMarker, { d: 'M 0 10 L 8 6 L 16 10 L 8 14 Z' });
|
|
2472
2472
|
|
|
2473
2473
|
addMarker(id, {
|
|
2474
2474
|
element: conditionalflowMarker,
|
|
@@ -2482,8 +2482,8 @@
|
|
|
2482
2482
|
}
|
|
2483
2483
|
|
|
2484
2484
|
if (type === 'conditional-default-flow-marker') {
|
|
2485
|
-
var conditionaldefaultflowMarker = create$
|
|
2486
|
-
attr$
|
|
2485
|
+
var conditionaldefaultflowMarker = create$1('path');
|
|
2486
|
+
attr$1(conditionaldefaultflowMarker, { d: 'M 6 4 L 10 16' });
|
|
2487
2487
|
|
|
2488
2488
|
addMarker(id, {
|
|
2489
2489
|
element: conditionaldefaultflowMarker,
|
|
@@ -2518,15 +2518,15 @@
|
|
|
2518
2518
|
var cx = width / 2,
|
|
2519
2519
|
cy = height / 2;
|
|
2520
2520
|
|
|
2521
|
-
var circle = create$
|
|
2522
|
-
attr$
|
|
2521
|
+
var circle = create$1('circle');
|
|
2522
|
+
attr$1(circle, {
|
|
2523
2523
|
cx: cx,
|
|
2524
2524
|
cy: cy,
|
|
2525
2525
|
r: Math.round((width + height) / 4 - offset)
|
|
2526
2526
|
});
|
|
2527
|
-
attr$
|
|
2527
|
+
attr$1(circle, attrs);
|
|
2528
2528
|
|
|
2529
|
-
append
|
|
2529
|
+
append(parentGfx, circle);
|
|
2530
2530
|
|
|
2531
2531
|
return circle;
|
|
2532
2532
|
}
|
|
@@ -2546,8 +2546,8 @@
|
|
|
2546
2546
|
fill: 'white'
|
|
2547
2547
|
});
|
|
2548
2548
|
|
|
2549
|
-
var rect = create$
|
|
2550
|
-
attr$
|
|
2549
|
+
var rect = create$1('rect');
|
|
2550
|
+
attr$1(rect, {
|
|
2551
2551
|
x: offset,
|
|
2552
2552
|
y: offset,
|
|
2553
2553
|
width: width - offset * 2,
|
|
@@ -2555,9 +2555,9 @@
|
|
|
2555
2555
|
rx: r,
|
|
2556
2556
|
ry: r
|
|
2557
2557
|
});
|
|
2558
|
-
attr$
|
|
2558
|
+
attr$1(rect, attrs);
|
|
2559
2559
|
|
|
2560
|
-
append
|
|
2560
|
+
append(parentGfx, rect);
|
|
2561
2561
|
|
|
2562
2562
|
return rect;
|
|
2563
2563
|
}
|
|
@@ -2579,13 +2579,13 @@
|
|
|
2579
2579
|
fill: 'white'
|
|
2580
2580
|
});
|
|
2581
2581
|
|
|
2582
|
-
var polygon = create$
|
|
2583
|
-
attr$
|
|
2582
|
+
var polygon = create$1('polygon');
|
|
2583
|
+
attr$1(polygon, {
|
|
2584
2584
|
points: pointsString
|
|
2585
2585
|
});
|
|
2586
|
-
attr$
|
|
2586
|
+
attr$1(polygon, attrs);
|
|
2587
2587
|
|
|
2588
|
-
append
|
|
2588
|
+
append(parentGfx, polygon);
|
|
2589
2589
|
|
|
2590
2590
|
return polygon;
|
|
2591
2591
|
}
|
|
@@ -2599,7 +2599,7 @@
|
|
|
2599
2599
|
|
|
2600
2600
|
var line = createLine(waypoints, attrs);
|
|
2601
2601
|
|
|
2602
|
-
append
|
|
2602
|
+
append(parentGfx, line);
|
|
2603
2603
|
|
|
2604
2604
|
return line;
|
|
2605
2605
|
}
|
|
@@ -2611,11 +2611,11 @@
|
|
|
2611
2611
|
stroke: black
|
|
2612
2612
|
});
|
|
2613
2613
|
|
|
2614
|
-
var path = create$
|
|
2615
|
-
attr$
|
|
2616
|
-
attr$
|
|
2614
|
+
var path = create$1('path');
|
|
2615
|
+
attr$1(path, { d: d });
|
|
2616
|
+
attr$1(path, attrs);
|
|
2617
2617
|
|
|
2618
|
-
append
|
|
2618
|
+
append(parentGfx, path);
|
|
2619
2619
|
|
|
2620
2620
|
return path;
|
|
2621
2621
|
}
|
|
@@ -2703,7 +2703,7 @@
|
|
|
2703
2703
|
|
|
2704
2704
|
classes$1(text).add('djs-label');
|
|
2705
2705
|
|
|
2706
|
-
append
|
|
2706
|
+
append(parentGfx, text);
|
|
2707
2707
|
|
|
2708
2708
|
return text;
|
|
2709
2709
|
}
|
|
@@ -3313,7 +3313,7 @@
|
|
|
3313
3313
|
});
|
|
3314
3314
|
|
|
3315
3315
|
var businessHeaderPath = drawPath(parentGfx, headerPathData);
|
|
3316
|
-
attr$
|
|
3316
|
+
attr$1(businessHeaderPath, {
|
|
3317
3317
|
strokeWidth: 1,
|
|
3318
3318
|
fill: getFillColor(element, '#aaaaaa'),
|
|
3319
3319
|
stroke: getStrokeColor(element, defaultStrokeColor)
|
|
@@ -3327,7 +3327,7 @@
|
|
|
3327
3327
|
});
|
|
3328
3328
|
|
|
3329
3329
|
var businessPath = drawPath(parentGfx, headerData);
|
|
3330
|
-
attr$
|
|
3330
|
+
attr$1(businessPath, {
|
|
3331
3331
|
strokeWidth: 1,
|
|
3332
3332
|
stroke: getStrokeColor(element, defaultStrokeColor)
|
|
3333
3333
|
});
|
|
@@ -3345,7 +3345,7 @@
|
|
|
3345
3345
|
var expanded = isExpanded(element);
|
|
3346
3346
|
|
|
3347
3347
|
if (isEventSubProcess(element)) {
|
|
3348
|
-
attr$
|
|
3348
|
+
attr$1(rect, {
|
|
3349
3349
|
strokeDasharray: '1,2'
|
|
3350
3350
|
});
|
|
3351
3351
|
}
|
|
@@ -3567,7 +3567,7 @@
|
|
|
3567
3567
|
});
|
|
3568
3568
|
|
|
3569
3569
|
var parallelPath = drawPath(parentGfx, pathData);
|
|
3570
|
-
attr$
|
|
3570
|
+
attr$1(parallelPath, {
|
|
3571
3571
|
strokeWidth: 1,
|
|
3572
3572
|
fill: 'none'
|
|
3573
3573
|
});
|
|
@@ -3575,7 +3575,7 @@
|
|
|
3575
3575
|
|
|
3576
3576
|
if (!instantiate) {
|
|
3577
3577
|
var innerCircle = drawCircle(parentGfx, element.width, element.height, element.height * 0.26);
|
|
3578
|
-
attr$
|
|
3578
|
+
attr$1(innerCircle, {
|
|
3579
3579
|
strokeWidth: 1,
|
|
3580
3580
|
fill: 'none',
|
|
3581
3581
|
stroke: getStrokeColor(element, defaultStrokeColor)
|
|
@@ -3620,7 +3620,7 @@
|
|
|
3620
3620
|
|
|
3621
3621
|
// conditional flow marker
|
|
3622
3622
|
if (sequenceFlow.conditionExpression && source.$instanceOf('bpmn:Activity')) {
|
|
3623
|
-
attr$
|
|
3623
|
+
attr$1(path, {
|
|
3624
3624
|
markerStart: marker('conditional-flow-marker', fill, stroke)
|
|
3625
3625
|
});
|
|
3626
3626
|
}
|
|
@@ -3628,7 +3628,7 @@
|
|
|
3628
3628
|
// default marker
|
|
3629
3629
|
if (source.default && (source.$instanceOf('bpmn:Gateway') || source.$instanceOf('bpmn:Activity')) &&
|
|
3630
3630
|
source.default === sequenceFlow) {
|
|
3631
|
-
attr$
|
|
3631
|
+
attr$1(path, {
|
|
3632
3632
|
markerStart: marker('conditional-default-flow-marker', fill, stroke)
|
|
3633
3633
|
});
|
|
3634
3634
|
}
|
|
@@ -4118,7 +4118,7 @@
|
|
|
4118
4118
|
}
|
|
4119
4119
|
|
|
4120
4120
|
|
|
4121
|
-
e(BpmnRenderer, BaseRenderer
|
|
4121
|
+
e(BpmnRenderer, BaseRenderer);
|
|
4122
4122
|
|
|
4123
4123
|
BpmnRenderer.$inject = [
|
|
4124
4124
|
'config.bpmnRenderer',
|
|
@@ -4346,9 +4346,9 @@
|
|
|
4346
4346
|
var helperSvg = document.getElementById('helper-svg');
|
|
4347
4347
|
|
|
4348
4348
|
if (!helperSvg) {
|
|
4349
|
-
helperSvg = create$
|
|
4349
|
+
helperSvg = create$1('svg');
|
|
4350
4350
|
|
|
4351
|
-
attr$
|
|
4351
|
+
attr$1(helperSvg, {
|
|
4352
4352
|
id: 'helper-svg'
|
|
4353
4353
|
});
|
|
4354
4354
|
|
|
@@ -4442,13 +4442,13 @@
|
|
|
4442
4442
|
var maxWidth = box.width - padding.left - padding.right;
|
|
4443
4443
|
|
|
4444
4444
|
// ensure correct rendering by attaching helper text node to invisible SVG
|
|
4445
|
-
var helperText = create$
|
|
4446
|
-
attr$
|
|
4447
|
-
attr$
|
|
4445
|
+
var helperText = create$1('text');
|
|
4446
|
+
attr$1(helperText, { x: 0, y: 0 });
|
|
4447
|
+
attr$1(helperText, style);
|
|
4448
4448
|
|
|
4449
4449
|
var helperSvg = getHelperSvg();
|
|
4450
4450
|
|
|
4451
|
-
append
|
|
4451
|
+
append(helperSvg, helperText);
|
|
4452
4452
|
|
|
4453
4453
|
while (lines.length) {
|
|
4454
4454
|
layouted.push(layoutNext(lines, maxWidth, helperText));
|
|
@@ -4477,9 +4477,9 @@
|
|
|
4477
4477
|
y -= (lineHeight || layouted[0].height) / 4;
|
|
4478
4478
|
|
|
4479
4479
|
|
|
4480
|
-
var textElement = create$
|
|
4480
|
+
var textElement = create$1('text');
|
|
4481
4481
|
|
|
4482
|
-
attr$
|
|
4482
|
+
attr$1(textElement, style);
|
|
4483
4483
|
|
|
4484
4484
|
// layout each line taking into account that parent
|
|
4485
4485
|
// shape might resize to fit text size
|
|
@@ -4506,12 +4506,12 @@
|
|
|
4506
4506
|
- line.width) / 2 + padding.left), 0);
|
|
4507
4507
|
}
|
|
4508
4508
|
|
|
4509
|
-
var tspan = create$
|
|
4510
|
-
attr$
|
|
4509
|
+
var tspan = create$1('tspan');
|
|
4510
|
+
attr$1(tspan, { x: x, y: y });
|
|
4511
4511
|
|
|
4512
4512
|
tspan.textContent = line.text;
|
|
4513
4513
|
|
|
4514
|
-
append
|
|
4514
|
+
append(textElement, tspan);
|
|
4515
4515
|
});
|
|
4516
4516
|
|
|
4517
4517
|
remove$2(helperText);
|
|
@@ -6106,13 +6106,13 @@
|
|
|
6106
6106
|
throw new Error('invalid hit type <' + type + '>');
|
|
6107
6107
|
}
|
|
6108
6108
|
|
|
6109
|
-
attr$
|
|
6109
|
+
attr$1(hit, attrs);
|
|
6110
6110
|
|
|
6111
6111
|
return hit;
|
|
6112
6112
|
}
|
|
6113
6113
|
|
|
6114
6114
|
function appendHit(gfx, hit) {
|
|
6115
|
-
append
|
|
6115
|
+
append(gfx, hit);
|
|
6116
6116
|
}
|
|
6117
6117
|
|
|
6118
6118
|
|
|
@@ -6190,11 +6190,11 @@
|
|
|
6190
6190
|
y: 0
|
|
6191
6191
|
}, attrs);
|
|
6192
6192
|
|
|
6193
|
-
var hit = create$
|
|
6193
|
+
var hit = create$1('rect');
|
|
6194
6194
|
|
|
6195
6195
|
applyStyle(hit, type);
|
|
6196
6196
|
|
|
6197
|
-
attr$
|
|
6197
|
+
attr$1(hit, attrs);
|
|
6198
6198
|
|
|
6199
6199
|
appendHit(gfx, hit);
|
|
6200
6200
|
|
|
@@ -6220,7 +6220,7 @@
|
|
|
6220
6220
|
if (element.waypoints) {
|
|
6221
6221
|
updateLine(hit, element.waypoints);
|
|
6222
6222
|
} else {
|
|
6223
|
-
attr$
|
|
6223
|
+
attr$1(hit, {
|
|
6224
6224
|
width: element.width,
|
|
6225
6225
|
height: element.height
|
|
6226
6226
|
});
|
|
@@ -6428,9 +6428,9 @@
|
|
|
6428
6428
|
var self = this;
|
|
6429
6429
|
|
|
6430
6430
|
function createOutline(gfx, bounds) {
|
|
6431
|
-
var outline = create$
|
|
6431
|
+
var outline = create$1('rect');
|
|
6432
6432
|
|
|
6433
|
-
attr$
|
|
6433
|
+
attr$1(outline, assign$1({
|
|
6434
6434
|
x: 10,
|
|
6435
6435
|
y: 10,
|
|
6436
6436
|
rx: 3,
|
|
@@ -6438,7 +6438,7 @@
|
|
|
6438
6438
|
height: 100
|
|
6439
6439
|
}, OUTLINE_STYLE));
|
|
6440
6440
|
|
|
6441
|
-
append
|
|
6441
|
+
append(gfx, outline);
|
|
6442
6442
|
|
|
6443
6443
|
return outline;
|
|
6444
6444
|
}
|
|
@@ -6482,7 +6482,7 @@
|
|
|
6482
6482
|
*/
|
|
6483
6483
|
Outline.prototype.updateShapeOutline = function(outline, element) {
|
|
6484
6484
|
|
|
6485
|
-
attr$
|
|
6485
|
+
attr$1(outline, {
|
|
6486
6486
|
x: -this.offset,
|
|
6487
6487
|
y: -this.offset,
|
|
6488
6488
|
width: element.width + this.offset * 2,
|
|
@@ -6503,7 +6503,7 @@
|
|
|
6503
6503
|
|
|
6504
6504
|
var bbox = getBBox(connection);
|
|
6505
6505
|
|
|
6506
|
-
attr$
|
|
6506
|
+
attr$1(outline, {
|
|
6507
6507
|
x: bbox.x - this.offset,
|
|
6508
6508
|
y: bbox.y - this.offset,
|
|
6509
6509
|
width: bbox.width + this.offset * 2,
|
|
@@ -6721,15 +6721,15 @@
|
|
|
6721
6721
|
|
|
6722
6722
|
var bBox = addSelectionOutlinePadding(getBBox(selection));
|
|
6723
6723
|
|
|
6724
|
-
var rect = create$
|
|
6724
|
+
var rect = create$1('rect');
|
|
6725
6725
|
|
|
6726
|
-
attr$
|
|
6726
|
+
attr$1(rect, assign$1({
|
|
6727
6727
|
rx: 3
|
|
6728
6728
|
}, bBox));
|
|
6729
6729
|
|
|
6730
6730
|
classes$1(rect).add('djs-selection-outline');
|
|
6731
6731
|
|
|
6732
|
-
append
|
|
6732
|
+
append(layer, rect);
|
|
6733
6733
|
};
|
|
6734
6734
|
|
|
6735
6735
|
// helpers //////////
|
|
@@ -7193,7 +7193,7 @@
|
|
|
7193
7193
|
|
|
7194
7194
|
setPosition(html, x, y);
|
|
7195
7195
|
|
|
7196
|
-
attr
|
|
7196
|
+
attr(container.html, 'data-container-id', element.id);
|
|
7197
7197
|
};
|
|
7198
7198
|
|
|
7199
7199
|
|
|
@@ -9027,7 +9027,7 @@
|
|
|
9027
9027
|
|
|
9028
9028
|
// apply default renderer with lowest possible priority
|
|
9029
9029
|
// so that it only kicks in if noone else could render
|
|
9030
|
-
var DEFAULT_RENDER_PRIORITY
|
|
9030
|
+
var DEFAULT_RENDER_PRIORITY = 1;
|
|
9031
9031
|
|
|
9032
9032
|
/**
|
|
9033
9033
|
* The default renderer used for shapes and connections.
|
|
@@ -9038,14 +9038,14 @@
|
|
|
9038
9038
|
function DefaultRenderer(eventBus, styles) {
|
|
9039
9039
|
|
|
9040
9040
|
//
|
|
9041
|
-
BaseRenderer
|
|
9041
|
+
BaseRenderer.call(this, eventBus, DEFAULT_RENDER_PRIORITY);
|
|
9042
9042
|
|
|
9043
9043
|
this.CONNECTION_STYLE = styles.style([ 'no-fill' ], { strokeWidth: 5, stroke: 'fuchsia' });
|
|
9044
9044
|
this.SHAPE_STYLE = styles.style({ fill: 'white', stroke: 'fuchsia', strokeWidth: 2 });
|
|
9045
9045
|
this.FRAME_STYLE = styles.style([ 'no-fill' ], { stroke: 'fuchsia', strokeDasharray: 4, strokeWidth: 2 });
|
|
9046
9046
|
}
|
|
9047
9047
|
|
|
9048
|
-
e(DefaultRenderer, BaseRenderer
|
|
9048
|
+
e(DefaultRenderer, BaseRenderer);
|
|
9049
9049
|
|
|
9050
9050
|
|
|
9051
9051
|
DefaultRenderer.prototype.canRender = function() {
|
|
@@ -9053,9 +9053,9 @@
|
|
|
9053
9053
|
};
|
|
9054
9054
|
|
|
9055
9055
|
DefaultRenderer.prototype.drawShape = function drawShape(visuals, element, attrs) {
|
|
9056
|
-
var rect = create$
|
|
9056
|
+
var rect = create$1('rect');
|
|
9057
9057
|
|
|
9058
|
-
attr$
|
|
9058
|
+
attr$1(rect, {
|
|
9059
9059
|
x: 0,
|
|
9060
9060
|
y: 0,
|
|
9061
9061
|
width: element.width || 0,
|
|
@@ -9063,12 +9063,12 @@
|
|
|
9063
9063
|
});
|
|
9064
9064
|
|
|
9065
9065
|
if (isFrameElement(element)) {
|
|
9066
|
-
attr$
|
|
9066
|
+
attr$1(rect, assign$1({}, this.FRAME_STYLE, attrs || {}));
|
|
9067
9067
|
} else {
|
|
9068
|
-
attr$
|
|
9068
|
+
attr$1(rect, assign$1({}, this.SHAPE_STYLE, attrs || {}));
|
|
9069
9069
|
}
|
|
9070
9070
|
|
|
9071
|
-
append
|
|
9071
|
+
append(visuals, rect);
|
|
9072
9072
|
|
|
9073
9073
|
return rect;
|
|
9074
9074
|
};
|
|
@@ -9076,7 +9076,7 @@
|
|
|
9076
9076
|
DefaultRenderer.prototype.drawConnection = function drawConnection(visuals, connection, attrs) {
|
|
9077
9077
|
|
|
9078
9078
|
var line = createLine(connection.waypoints, assign$1({}, this.CONNECTION_STYLE, attrs || {}));
|
|
9079
|
-
append
|
|
9079
|
+
append(visuals, line);
|
|
9080
9080
|
|
|
9081
9081
|
return line;
|
|
9082
9082
|
};
|
|
@@ -9299,7 +9299,7 @@
|
|
|
9299
9299
|
// this way we can always get the correct container size
|
|
9300
9300
|
// (this is impossible for <svg> elements at the moment)
|
|
9301
9301
|
const parent = document.createElement('div');
|
|
9302
|
-
parent.setAttribute('class', 'djs-container');
|
|
9302
|
+
parent.setAttribute('class', 'djs-container djs-parent');
|
|
9303
9303
|
|
|
9304
9304
|
assign(parent, {
|
|
9305
9305
|
position: 'relative',
|
|
@@ -9314,7 +9314,7 @@
|
|
|
9314
9314
|
}
|
|
9315
9315
|
|
|
9316
9316
|
function createGroup(parent, cls, childIndex) {
|
|
9317
|
-
const group = create$
|
|
9317
|
+
const group = create$1('g');
|
|
9318
9318
|
classes$1(group).add(cls);
|
|
9319
9319
|
|
|
9320
9320
|
const index = childIndex !== undefined ? childIndex : parent.childNodes.length - 1;
|
|
@@ -9393,10 +9393,10 @@
|
|
|
9393
9393
|
// html container
|
|
9394
9394
|
const container = this._container = createContainer(config);
|
|
9395
9395
|
|
|
9396
|
-
const svg = this._svg = create$
|
|
9397
|
-
attr$
|
|
9396
|
+
const svg = this._svg = create$1('svg');
|
|
9397
|
+
attr$1(svg, { width: '100%', height: '100%' });
|
|
9398
9398
|
|
|
9399
|
-
append
|
|
9399
|
+
append(container, svg);
|
|
9400
9400
|
|
|
9401
9401
|
const viewport = this._viewport = createGroup(svg, 'viewport');
|
|
9402
9402
|
|
|
@@ -10708,10 +10708,10 @@
|
|
|
10708
10708
|
this._validateId(id);
|
|
10709
10709
|
|
|
10710
10710
|
// associate dom node with element
|
|
10711
|
-
attr$
|
|
10711
|
+
attr$1(gfx, ELEMENT_ID, id);
|
|
10712
10712
|
|
|
10713
10713
|
if (secondaryGfx) {
|
|
10714
|
-
attr$
|
|
10714
|
+
attr$1(secondaryGfx, ELEMENT_ID, id);
|
|
10715
10715
|
}
|
|
10716
10716
|
|
|
10717
10717
|
this._elements[id] = { element: element, gfx: gfx, secondaryGfx: secondaryGfx };
|
|
@@ -10720,7 +10720,7 @@
|
|
|
10720
10720
|
/**
|
|
10721
10721
|
* Removes an element from the registry.
|
|
10722
10722
|
*
|
|
10723
|
-
* @param {djs.model.Base} element
|
|
10723
|
+
* @param {string|djs.model.Base} element
|
|
10724
10724
|
*/
|
|
10725
10725
|
ElementRegistry.prototype.remove = function(element) {
|
|
10726
10726
|
var elements = this._elements,
|
|
@@ -10730,10 +10730,10 @@
|
|
|
10730
10730
|
if (container) {
|
|
10731
10731
|
|
|
10732
10732
|
// unset element id on gfx
|
|
10733
|
-
attr$
|
|
10733
|
+
attr$1(container.gfx, ELEMENT_ID, '');
|
|
10734
10734
|
|
|
10735
10735
|
if (container.secondaryGfx) {
|
|
10736
|
-
attr$
|
|
10736
|
+
attr$1(container.secondaryGfx, ELEMENT_ID, '');
|
|
10737
10737
|
}
|
|
10738
10738
|
|
|
10739
10739
|
delete elements[id];
|
|
@@ -10743,7 +10743,7 @@
|
|
|
10743
10743
|
/**
|
|
10744
10744
|
* Update the id of an element
|
|
10745
10745
|
*
|
|
10746
|
-
* @param {djs.model.Base} element
|
|
10746
|
+
* @param {string|djs.model.Base} element
|
|
10747
10747
|
* @param {string} newId
|
|
10748
10748
|
*/
|
|
10749
10749
|
ElementRegistry.prototype.updateId = function(element, newId) {
|
|
@@ -10772,7 +10772,7 @@
|
|
|
10772
10772
|
/**
|
|
10773
10773
|
* Update the graphics of an element
|
|
10774
10774
|
*
|
|
10775
|
-
* @param {djs.model.Base} element
|
|
10775
|
+
* @param {string|djs.model.Base} element
|
|
10776
10776
|
* @param {SVGElement} gfx
|
|
10777
10777
|
* @param {boolean} [secondary=false] whether to update the secondary connected element
|
|
10778
10778
|
*/
|
|
@@ -10788,7 +10788,7 @@
|
|
|
10788
10788
|
}
|
|
10789
10789
|
|
|
10790
10790
|
if (gfx) {
|
|
10791
|
-
attr$
|
|
10791
|
+
attr$1(gfx, ELEMENT_ID, id);
|
|
10792
10792
|
}
|
|
10793
10793
|
|
|
10794
10794
|
return gfx;
|
|
@@ -10813,7 +10813,7 @@
|
|
|
10813
10813
|
if (typeof filter === 'string') {
|
|
10814
10814
|
id = filter;
|
|
10815
10815
|
} else {
|
|
10816
|
-
id = filter && attr$
|
|
10816
|
+
id = filter && attr$1(filter, ELEMENT_ID);
|
|
10817
10817
|
}
|
|
10818
10818
|
|
|
10819
10819
|
var container = this._elements[id];
|
|
@@ -11478,7 +11478,7 @@
|
|
|
11478
11478
|
*
|
|
11479
11479
|
* @return {Base} the new model instance
|
|
11480
11480
|
*/
|
|
11481
|
-
function create
|
|
11481
|
+
function create(type, attrs) {
|
|
11482
11482
|
var Type = types$7[type];
|
|
11483
11483
|
if (!Type) {
|
|
11484
11484
|
throw new Error('unknown type: <' + type + '>');
|
|
@@ -11526,7 +11526,7 @@
|
|
|
11526
11526
|
attrs.id = type + '_' + (this._uid++);
|
|
11527
11527
|
}
|
|
11528
11528
|
|
|
11529
|
-
return create
|
|
11529
|
+
return create(type, attrs);
|
|
11530
11530
|
};
|
|
11531
11531
|
|
|
11532
11532
|
var FN_REF = '__fn';
|
|
@@ -12096,10 +12096,10 @@
|
|
|
12096
12096
|
} else {
|
|
12097
12097
|
childrenGfx = getChildren(gfx);
|
|
12098
12098
|
if (!childrenGfx) {
|
|
12099
|
-
childrenGfx = create$
|
|
12099
|
+
childrenGfx = create$1('g');
|
|
12100
12100
|
classes$1(childrenGfx).add('djs-children');
|
|
12101
12101
|
|
|
12102
|
-
append
|
|
12102
|
+
append(gfx.parentNode, childrenGfx);
|
|
12103
12103
|
}
|
|
12104
12104
|
}
|
|
12105
12105
|
|
|
@@ -12148,17 +12148,17 @@
|
|
|
12148
12148
|
GraphicsFactory.prototype._createContainer = function(
|
|
12149
12149
|
type, childrenGfx, parentIndex, isFrame
|
|
12150
12150
|
) {
|
|
12151
|
-
var outerGfx = create$
|
|
12151
|
+
var outerGfx = create$1('g');
|
|
12152
12152
|
classes$1(outerGfx).add('djs-group');
|
|
12153
12153
|
|
|
12154
12154
|
// insert node at position
|
|
12155
12155
|
if (typeof parentIndex !== 'undefined') {
|
|
12156
12156
|
prependTo(outerGfx, childrenGfx, childrenGfx.childNodes[parentIndex]);
|
|
12157
12157
|
} else {
|
|
12158
|
-
append
|
|
12158
|
+
append(childrenGfx, outerGfx);
|
|
12159
12159
|
}
|
|
12160
12160
|
|
|
12161
|
-
var gfx = create$
|
|
12161
|
+
var gfx = create$1('g');
|
|
12162
12162
|
classes$1(gfx).add('djs-element');
|
|
12163
12163
|
classes$1(gfx).add('djs-' + type);
|
|
12164
12164
|
|
|
@@ -12166,13 +12166,13 @@
|
|
|
12166
12166
|
classes$1(gfx).add('djs-frame');
|
|
12167
12167
|
}
|
|
12168
12168
|
|
|
12169
|
-
append
|
|
12169
|
+
append(outerGfx, gfx);
|
|
12170
12170
|
|
|
12171
12171
|
// create visual
|
|
12172
|
-
var visual = create$
|
|
12172
|
+
var visual = create$1('g');
|
|
12173
12173
|
classes$1(visual).add('djs-visual');
|
|
12174
12174
|
|
|
12175
|
-
append
|
|
12175
|
+
append(gfx, visual);
|
|
12176
12176
|
|
|
12177
12177
|
return gfx;
|
|
12178
12178
|
};
|
|
@@ -12264,9 +12264,9 @@
|
|
|
12264
12264
|
}
|
|
12265
12265
|
|
|
12266
12266
|
if (element.hidden) {
|
|
12267
|
-
attr$
|
|
12267
|
+
attr$1(gfx, 'display', 'none');
|
|
12268
12268
|
} else {
|
|
12269
|
-
attr$
|
|
12269
|
+
attr$1(gfx, 'display', 'block');
|
|
12270
12270
|
}
|
|
12271
12271
|
};
|
|
12272
12272
|
|
|
@@ -21584,15 +21584,10 @@
|
|
|
21584
21584
|
// default moddle extensions the viewer is composed of
|
|
21585
21585
|
Viewer.prototype._moddleExtensions = {};
|
|
21586
21586
|
|
|
21587
|
-
var
|
|
21588
|
-
var
|
|
21589
|
-
var
|
|
21590
|
-
var
|
|
21591
|
-
|
|
21592
|
-
var KEYS_COPY = [ 'c', 'C', KEYCODE_C ];
|
|
21593
|
-
var KEYS_PASTE = [ 'v', 'V', KEYCODE_V ];
|
|
21594
|
-
var KEYS_REDO = [ 'y', 'Y', KEYCODE_Y ];
|
|
21595
|
-
var KEYS_UNDO = [ 'z', 'Z', KEYCODE_Z ];
|
|
21587
|
+
var KEYS_COPY = [ 'c', 'C', 'KeyC' ];
|
|
21588
|
+
var KEYS_PASTE = [ 'v', 'V', 'KeyV' ];
|
|
21589
|
+
var KEYS_REDO = [ 'y', 'Y', 'KeyY' ];
|
|
21590
|
+
var KEYS_UNDO = [ 'z', 'Z', 'KeyZ' ];
|
|
21596
21591
|
|
|
21597
21592
|
/**
|
|
21598
21593
|
* Returns true if event was triggered with any modifier
|
|
@@ -21625,7 +21620,7 @@
|
|
|
21625
21620
|
function isKey(keys, event) {
|
|
21626
21621
|
keys = isArray$2(keys) ? keys : [ keys ];
|
|
21627
21622
|
|
|
21628
|
-
return keys.indexOf(event.key) !== -1 || keys.indexOf(event.
|
|
21623
|
+
return keys.indexOf(event.key) !== -1 || keys.indexOf(event.code) !== -1;
|
|
21629
21624
|
}
|
|
21630
21625
|
|
|
21631
21626
|
/**
|
|
@@ -21664,7 +21659,7 @@
|
|
|
21664
21659
|
|
|
21665
21660
|
/**
|
|
21666
21661
|
* A keyboard abstraction that may be activated and
|
|
21667
|
-
* deactivated by users at will, consuming key events
|
|
21662
|
+
* deactivated by users at will, consuming global key events
|
|
21668
21663
|
* and triggering diagram actions.
|
|
21669
21664
|
*
|
|
21670
21665
|
* For keys pressed down, keyboard fires `keyboard.keydown` event.
|
|
@@ -21749,6 +21744,10 @@
|
|
|
21749
21744
|
};
|
|
21750
21745
|
|
|
21751
21746
|
Keyboard.prototype._isEventIgnored = function(event) {
|
|
21747
|
+
if (event.defaultPrevented) {
|
|
21748
|
+
return true;
|
|
21749
|
+
}
|
|
21750
|
+
|
|
21752
21751
|
return isInput(event.target) && this._isModifiedKeyIgnored(event);
|
|
21753
21752
|
};
|
|
21754
21753
|
|
|
@@ -21779,8 +21778,8 @@
|
|
|
21779
21778
|
this._node = node;
|
|
21780
21779
|
|
|
21781
21780
|
// bind key events
|
|
21782
|
-
event.bind(node, 'keydown', this._keydownHandler
|
|
21783
|
-
event.bind(node, 'keyup', this._keyupHandler
|
|
21781
|
+
event.bind(node, 'keydown', this._keydownHandler);
|
|
21782
|
+
event.bind(node, 'keyup', this._keyupHandler);
|
|
21784
21783
|
|
|
21785
21784
|
this._fire('bind');
|
|
21786
21785
|
};
|
|
@@ -21796,8 +21795,8 @@
|
|
|
21796
21795
|
this._fire('unbind');
|
|
21797
21796
|
|
|
21798
21797
|
// unbind key events
|
|
21799
|
-
event.unbind(node, 'keydown', this._keydownHandler
|
|
21800
|
-
event.unbind(node, 'keyup', this._keyupHandler
|
|
21798
|
+
event.unbind(node, 'keydown', this._keydownHandler);
|
|
21799
|
+
event.unbind(node, 'keyup', this._keyupHandler);
|
|
21801
21800
|
}
|
|
21802
21801
|
|
|
21803
21802
|
this._node = null;
|
|
@@ -22578,356 +22577,6 @@
|
|
|
22578
22577
|
NavigatedViewer$1.prototype._navigationModules
|
|
22579
22578
|
);
|
|
22580
22579
|
|
|
22581
|
-
var DEFAULT_RENDER_PRIORITY = 1000;
|
|
22582
|
-
|
|
22583
|
-
/**
|
|
22584
|
-
* The base implementation of shape and connection renderers.
|
|
22585
|
-
*
|
|
22586
|
-
* @param {EventBus} eventBus
|
|
22587
|
-
* @param {number} [renderPriority=1000]
|
|
22588
|
-
*/
|
|
22589
|
-
function BaseRenderer(eventBus, renderPriority) {
|
|
22590
|
-
var self = this;
|
|
22591
|
-
|
|
22592
|
-
renderPriority = renderPriority || DEFAULT_RENDER_PRIORITY;
|
|
22593
|
-
|
|
22594
|
-
eventBus.on([ 'render.shape', 'render.connection' ], renderPriority, function(evt, context) {
|
|
22595
|
-
var type = evt.type,
|
|
22596
|
-
element = context.element,
|
|
22597
|
-
visuals = context.gfx,
|
|
22598
|
-
attrs = context.attrs;
|
|
22599
|
-
|
|
22600
|
-
if (self.canRender(element)) {
|
|
22601
|
-
if (type === 'render.shape') {
|
|
22602
|
-
return self.drawShape(visuals, element, attrs);
|
|
22603
|
-
} else {
|
|
22604
|
-
return self.drawConnection(visuals, element, attrs);
|
|
22605
|
-
}
|
|
22606
|
-
}
|
|
22607
|
-
});
|
|
22608
|
-
|
|
22609
|
-
eventBus.on([ 'render.getShapePath', 'render.getConnectionPath' ], renderPriority, function(evt, element) {
|
|
22610
|
-
if (self.canRender(element)) {
|
|
22611
|
-
if (evt.type === 'render.getShapePath') {
|
|
22612
|
-
return self.getShapePath(element);
|
|
22613
|
-
} else {
|
|
22614
|
-
return self.getConnectionPath(element);
|
|
22615
|
-
}
|
|
22616
|
-
}
|
|
22617
|
-
});
|
|
22618
|
-
}
|
|
22619
|
-
|
|
22620
|
-
/**
|
|
22621
|
-
* Should check whether *this* renderer can render
|
|
22622
|
-
* the element/connection.
|
|
22623
|
-
*
|
|
22624
|
-
* @param {element} element
|
|
22625
|
-
*
|
|
22626
|
-
* @returns {boolean}
|
|
22627
|
-
*/
|
|
22628
|
-
BaseRenderer.prototype.canRender = function() {};
|
|
22629
|
-
|
|
22630
|
-
/**
|
|
22631
|
-
* Provides the shape's snap svg element to be drawn on the `canvas`.
|
|
22632
|
-
*
|
|
22633
|
-
* @param {djs.Graphics} visuals
|
|
22634
|
-
* @param {Shape} shape
|
|
22635
|
-
*
|
|
22636
|
-
* @returns {Snap.svg} [returns a Snap.svg paper element ]
|
|
22637
|
-
*/
|
|
22638
|
-
BaseRenderer.prototype.drawShape = function() {};
|
|
22639
|
-
|
|
22640
|
-
/**
|
|
22641
|
-
* Provides the shape's snap svg element to be drawn on the `canvas`.
|
|
22642
|
-
*
|
|
22643
|
-
* @param {djs.Graphics} visuals
|
|
22644
|
-
* @param {Connection} connection
|
|
22645
|
-
*
|
|
22646
|
-
* @returns {Snap.svg} [returns a Snap.svg paper element ]
|
|
22647
|
-
*/
|
|
22648
|
-
BaseRenderer.prototype.drawConnection = function() {};
|
|
22649
|
-
|
|
22650
|
-
/**
|
|
22651
|
-
* Gets the SVG path of a shape that represents it's visual bounds.
|
|
22652
|
-
*
|
|
22653
|
-
* @param {Shape} shape
|
|
22654
|
-
*
|
|
22655
|
-
* @return {string} svg path
|
|
22656
|
-
*/
|
|
22657
|
-
BaseRenderer.prototype.getShapePath = function() {};
|
|
22658
|
-
|
|
22659
|
-
/**
|
|
22660
|
-
* Gets the SVG path of a connection that represents it's visual bounds.
|
|
22661
|
-
*
|
|
22662
|
-
* @param {Connection} connection
|
|
22663
|
-
*
|
|
22664
|
-
* @return {string} svg path
|
|
22665
|
-
*/
|
|
22666
|
-
BaseRenderer.prototype.getConnectionPath = function() {};
|
|
22667
|
-
|
|
22668
|
-
function ensureImported(element, target) {
|
|
22669
|
-
|
|
22670
|
-
if (element.ownerDocument !== target.ownerDocument) {
|
|
22671
|
-
try {
|
|
22672
|
-
|
|
22673
|
-
// may fail on webkit
|
|
22674
|
-
return target.ownerDocument.importNode(element, true);
|
|
22675
|
-
} catch (e) {
|
|
22676
|
-
|
|
22677
|
-
// ignore
|
|
22678
|
-
}
|
|
22679
|
-
}
|
|
22680
|
-
|
|
22681
|
-
return element;
|
|
22682
|
-
}
|
|
22683
|
-
|
|
22684
|
-
/**
|
|
22685
|
-
* appendTo utility
|
|
22686
|
-
*/
|
|
22687
|
-
|
|
22688
|
-
/**
|
|
22689
|
-
* Append a node to a target element and return the appended node.
|
|
22690
|
-
*
|
|
22691
|
-
* @param {SVGElement} element
|
|
22692
|
-
* @param {SVGElement} target
|
|
22693
|
-
*
|
|
22694
|
-
* @return {SVGElement} the appended node
|
|
22695
|
-
*/
|
|
22696
|
-
function appendTo(element, target) {
|
|
22697
|
-
return target.appendChild(ensureImported(element, target));
|
|
22698
|
-
}
|
|
22699
|
-
|
|
22700
|
-
/**
|
|
22701
|
-
* append utility
|
|
22702
|
-
*/
|
|
22703
|
-
|
|
22704
|
-
/**
|
|
22705
|
-
* Append a node to an element
|
|
22706
|
-
*
|
|
22707
|
-
* @param {SVGElement} element
|
|
22708
|
-
* @param {SVGElement} node
|
|
22709
|
-
*
|
|
22710
|
-
* @return {SVGElement} the element
|
|
22711
|
-
*/
|
|
22712
|
-
function append(target, node) {
|
|
22713
|
-
appendTo(node, target);
|
|
22714
|
-
return target;
|
|
22715
|
-
}
|
|
22716
|
-
|
|
22717
|
-
/**
|
|
22718
|
-
* attribute accessor utility
|
|
22719
|
-
*/
|
|
22720
|
-
|
|
22721
|
-
var LENGTH_ATTR = 2;
|
|
22722
|
-
|
|
22723
|
-
var CSS_PROPERTIES = {
|
|
22724
|
-
'alignment-baseline': 1,
|
|
22725
|
-
'baseline-shift': 1,
|
|
22726
|
-
'clip': 1,
|
|
22727
|
-
'clip-path': 1,
|
|
22728
|
-
'clip-rule': 1,
|
|
22729
|
-
'color': 1,
|
|
22730
|
-
'color-interpolation': 1,
|
|
22731
|
-
'color-interpolation-filters': 1,
|
|
22732
|
-
'color-profile': 1,
|
|
22733
|
-
'color-rendering': 1,
|
|
22734
|
-
'cursor': 1,
|
|
22735
|
-
'direction': 1,
|
|
22736
|
-
'display': 1,
|
|
22737
|
-
'dominant-baseline': 1,
|
|
22738
|
-
'enable-background': 1,
|
|
22739
|
-
'fill': 1,
|
|
22740
|
-
'fill-opacity': 1,
|
|
22741
|
-
'fill-rule': 1,
|
|
22742
|
-
'filter': 1,
|
|
22743
|
-
'flood-color': 1,
|
|
22744
|
-
'flood-opacity': 1,
|
|
22745
|
-
'font': 1,
|
|
22746
|
-
'font-family': 1,
|
|
22747
|
-
'font-size': LENGTH_ATTR,
|
|
22748
|
-
'font-size-adjust': 1,
|
|
22749
|
-
'font-stretch': 1,
|
|
22750
|
-
'font-style': 1,
|
|
22751
|
-
'font-variant': 1,
|
|
22752
|
-
'font-weight': 1,
|
|
22753
|
-
'glyph-orientation-horizontal': 1,
|
|
22754
|
-
'glyph-orientation-vertical': 1,
|
|
22755
|
-
'image-rendering': 1,
|
|
22756
|
-
'kerning': 1,
|
|
22757
|
-
'letter-spacing': 1,
|
|
22758
|
-
'lighting-color': 1,
|
|
22759
|
-
'marker': 1,
|
|
22760
|
-
'marker-end': 1,
|
|
22761
|
-
'marker-mid': 1,
|
|
22762
|
-
'marker-start': 1,
|
|
22763
|
-
'mask': 1,
|
|
22764
|
-
'opacity': 1,
|
|
22765
|
-
'overflow': 1,
|
|
22766
|
-
'pointer-events': 1,
|
|
22767
|
-
'shape-rendering': 1,
|
|
22768
|
-
'stop-color': 1,
|
|
22769
|
-
'stop-opacity': 1,
|
|
22770
|
-
'stroke': 1,
|
|
22771
|
-
'stroke-dasharray': 1,
|
|
22772
|
-
'stroke-dashoffset': 1,
|
|
22773
|
-
'stroke-linecap': 1,
|
|
22774
|
-
'stroke-linejoin': 1,
|
|
22775
|
-
'stroke-miterlimit': 1,
|
|
22776
|
-
'stroke-opacity': 1,
|
|
22777
|
-
'stroke-width': LENGTH_ATTR,
|
|
22778
|
-
'text-anchor': 1,
|
|
22779
|
-
'text-decoration': 1,
|
|
22780
|
-
'text-rendering': 1,
|
|
22781
|
-
'unicode-bidi': 1,
|
|
22782
|
-
'visibility': 1,
|
|
22783
|
-
'word-spacing': 1,
|
|
22784
|
-
'writing-mode': 1
|
|
22785
|
-
};
|
|
22786
|
-
|
|
22787
|
-
|
|
22788
|
-
function getAttribute(node, name) {
|
|
22789
|
-
if (CSS_PROPERTIES[name]) {
|
|
22790
|
-
return node.style[name];
|
|
22791
|
-
} else {
|
|
22792
|
-
return node.getAttributeNS(null, name);
|
|
22793
|
-
}
|
|
22794
|
-
}
|
|
22795
|
-
|
|
22796
|
-
function setAttribute(node, name, value) {
|
|
22797
|
-
var hyphenated = name.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
|
|
22798
|
-
|
|
22799
|
-
var type = CSS_PROPERTIES[hyphenated];
|
|
22800
|
-
|
|
22801
|
-
if (type) {
|
|
22802
|
-
|
|
22803
|
-
// append pixel unit, unless present
|
|
22804
|
-
if (type === LENGTH_ATTR && typeof value === 'number') {
|
|
22805
|
-
value = String(value) + 'px';
|
|
22806
|
-
}
|
|
22807
|
-
|
|
22808
|
-
node.style[hyphenated] = value;
|
|
22809
|
-
} else {
|
|
22810
|
-
node.setAttributeNS(null, name, value);
|
|
22811
|
-
}
|
|
22812
|
-
}
|
|
22813
|
-
|
|
22814
|
-
function setAttributes(node, attrs) {
|
|
22815
|
-
|
|
22816
|
-
var names = Object.keys(attrs), i, name;
|
|
22817
|
-
|
|
22818
|
-
for (i = 0, name; (name = names[i]); i++) {
|
|
22819
|
-
setAttribute(node, name, attrs[name]);
|
|
22820
|
-
}
|
|
22821
|
-
}
|
|
22822
|
-
|
|
22823
|
-
/**
|
|
22824
|
-
* Gets or sets raw attributes on a node.
|
|
22825
|
-
*
|
|
22826
|
-
* @param {SVGElement} node
|
|
22827
|
-
* @param {Object} [attrs]
|
|
22828
|
-
* @param {String} [name]
|
|
22829
|
-
* @param {String} [value]
|
|
22830
|
-
*
|
|
22831
|
-
* @return {String}
|
|
22832
|
-
*/
|
|
22833
|
-
function attr(node, name, value) {
|
|
22834
|
-
if (typeof name === 'string') {
|
|
22835
|
-
if (value !== undefined) {
|
|
22836
|
-
setAttribute(node, name, value);
|
|
22837
|
-
} else {
|
|
22838
|
-
return getAttribute(node, name);
|
|
22839
|
-
}
|
|
22840
|
-
} else {
|
|
22841
|
-
setAttributes(node, name);
|
|
22842
|
-
}
|
|
22843
|
-
|
|
22844
|
-
return node;
|
|
22845
|
-
}
|
|
22846
|
-
|
|
22847
|
-
var ns = {
|
|
22848
|
-
svg: 'http://www.w3.org/2000/svg'
|
|
22849
|
-
};
|
|
22850
|
-
|
|
22851
|
-
/**
|
|
22852
|
-
* DOM parsing utility
|
|
22853
|
-
*/
|
|
22854
|
-
|
|
22855
|
-
var SVG_START = '<svg xmlns="' + ns.svg + '"';
|
|
22856
|
-
|
|
22857
|
-
function parse(svg) {
|
|
22858
|
-
|
|
22859
|
-
var unwrap = false;
|
|
22860
|
-
|
|
22861
|
-
// ensure we import a valid svg document
|
|
22862
|
-
if (svg.substring(0, 4) === '<svg') {
|
|
22863
|
-
if (svg.indexOf(ns.svg) === -1) {
|
|
22864
|
-
svg = SVG_START + svg.substring(4);
|
|
22865
|
-
}
|
|
22866
|
-
} else {
|
|
22867
|
-
|
|
22868
|
-
// namespace svg
|
|
22869
|
-
svg = SVG_START + '>' + svg + '</svg>';
|
|
22870
|
-
unwrap = true;
|
|
22871
|
-
}
|
|
22872
|
-
|
|
22873
|
-
var parsed = parseDocument(svg);
|
|
22874
|
-
|
|
22875
|
-
if (!unwrap) {
|
|
22876
|
-
return parsed;
|
|
22877
|
-
}
|
|
22878
|
-
|
|
22879
|
-
var fragment = document.createDocumentFragment();
|
|
22880
|
-
|
|
22881
|
-
var parent = parsed.firstChild;
|
|
22882
|
-
|
|
22883
|
-
while (parent.firstChild) {
|
|
22884
|
-
fragment.appendChild(parent.firstChild);
|
|
22885
|
-
}
|
|
22886
|
-
|
|
22887
|
-
return fragment;
|
|
22888
|
-
}
|
|
22889
|
-
|
|
22890
|
-
function parseDocument(svg) {
|
|
22891
|
-
|
|
22892
|
-
var parser;
|
|
22893
|
-
|
|
22894
|
-
// parse
|
|
22895
|
-
parser = new DOMParser();
|
|
22896
|
-
parser.async = false;
|
|
22897
|
-
|
|
22898
|
-
return parser.parseFromString(svg, 'text/xml');
|
|
22899
|
-
}
|
|
22900
|
-
|
|
22901
|
-
/**
|
|
22902
|
-
* Create utility for SVG elements
|
|
22903
|
-
*/
|
|
22904
|
-
|
|
22905
|
-
|
|
22906
|
-
/**
|
|
22907
|
-
* Create a specific type from name or SVG markup.
|
|
22908
|
-
*
|
|
22909
|
-
* @param {String} name the name or markup of the element
|
|
22910
|
-
* @param {Object} [attrs] attributes to set on the element
|
|
22911
|
-
*
|
|
22912
|
-
* @returns {SVGElement}
|
|
22913
|
-
*/
|
|
22914
|
-
function create(name, attrs) {
|
|
22915
|
-
var element;
|
|
22916
|
-
|
|
22917
|
-
if (name.charAt(0) === '<') {
|
|
22918
|
-
element = parse(name).firstChild;
|
|
22919
|
-
element = document.importNode(element, true);
|
|
22920
|
-
} else {
|
|
22921
|
-
element = document.createElementNS(ns.svg, name);
|
|
22922
|
-
}
|
|
22923
|
-
|
|
22924
|
-
if (attrs) {
|
|
22925
|
-
attr(element, attrs);
|
|
22926
|
-
}
|
|
22927
|
-
|
|
22928
|
-
return element;
|
|
22929
|
-
}
|
|
22930
|
-
|
|
22931
22580
|
function getModelerTemplateIcon(element) {
|
|
22932
22581
|
var modelerTemplateIcon = getBusinessObject(element).get('zeebe:modelerTemplateIcon');
|
|
22933
22582
|
return modelerTemplateIcon;
|
|
@@ -22967,8 +22616,8 @@
|
|
|
22967
22616
|
|
|
22968
22617
|
var modelerTemplateIcon = getModelerTemplateIcon(element);
|
|
22969
22618
|
|
|
22970
|
-
var icon = create('image');
|
|
22971
|
-
attr(icon, {
|
|
22619
|
+
var icon = create$1('image');
|
|
22620
|
+
attr$1(icon, {
|
|
22972
22621
|
href: modelerTemplateIcon,
|
|
22973
22622
|
x: 5,
|
|
22974
22623
|
y: 5,
|
|
@@ -23398,6 +23047,29 @@
|
|
|
23398
23047
|
type: "String"
|
|
23399
23048
|
}
|
|
23400
23049
|
]
|
|
23050
|
+
},
|
|
23051
|
+
{
|
|
23052
|
+
name: "Script",
|
|
23053
|
+
superClass: [
|
|
23054
|
+
"Element"
|
|
23055
|
+
],
|
|
23056
|
+
meta: {
|
|
23057
|
+
allowedIn: [
|
|
23058
|
+
"bpmn:ScriptTask"
|
|
23059
|
+
]
|
|
23060
|
+
},
|
|
23061
|
+
properties: [
|
|
23062
|
+
{
|
|
23063
|
+
name: "expression",
|
|
23064
|
+
type: "String",
|
|
23065
|
+
isAttr: true
|
|
23066
|
+
},
|
|
23067
|
+
{
|
|
23068
|
+
name: "resultVariable",
|
|
23069
|
+
type: "String",
|
|
23070
|
+
isAttr: true
|
|
23071
|
+
}
|
|
23072
|
+
]
|
|
23401
23073
|
}
|
|
23402
23074
|
];
|
|
23403
23075
|
var zeebeModdle = {
|