camunda-bpmn-js 0.18.0 → 0.19.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/properties-panel.css +2 -2
- package/dist/base-modeler.development.js +39786 -17454
- package/dist/base-modeler.production.min.js +5 -5
- package/dist/base-navigated-viewer.development.js +1424 -857
- package/dist/base-navigated-viewer.production.min.js +2 -2
- package/dist/base-viewer.development.js +1416 -849
- package/dist/base-viewer.production.min.js +2 -2
- package/dist/camunda-cloud-modeler.development.js +38187 -17621
- package/dist/camunda-cloud-modeler.production.min.js +5 -5
- package/dist/camunda-cloud-navigated-viewer.development.js +1417 -850
- package/dist/camunda-cloud-navigated-viewer.production.min.js +3 -2
- package/dist/camunda-cloud-viewer.development.js +1411 -844
- package/dist/camunda-cloud-viewer.production.min.js +3 -2
- package/dist/camunda-platform-modeler.development.js +45525 -23624
- package/dist/camunda-platform-modeler.production.min.js +5 -5
- package/dist/camunda-platform-navigated-viewer.development.js +1469 -902
- package/dist/camunda-platform-navigated-viewer.production.min.js +3 -2
- package/dist/camunda-platform-viewer.development.js +1460 -893
- package/dist/camunda-platform-viewer.production.min.js +3 -2
- package/lib/camunda-cloud/features/popup-menu/ReplaceOptions.js +1 -0
- package/package.json +12 -12
- package/util/index.js +2 -0
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.BpmnViewer = factory());
|
|
5
|
-
}(this, (function () { 'use strict';
|
|
5
|
+
})(this, (function () { 'use strict';
|
|
6
6
|
|
|
7
7
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
8
8
|
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
return fn(module, module.exports), module.exports;
|
|
9
|
+
function getDefaultExportFromCjs (x) {
|
|
10
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
12
11
|
}
|
|
13
12
|
|
|
14
|
-
var inherits_browser =
|
|
13
|
+
var inherits_browser = {exports: {}};
|
|
14
|
+
|
|
15
15
|
if (typeof Object.create === 'function') {
|
|
16
16
|
// implementation from standard node.js 'util' module
|
|
17
|
-
|
|
17
|
+
inherits_browser.exports = function inherits(ctor, superCtor) {
|
|
18
18
|
if (superCtor) {
|
|
19
19
|
ctor.super_ = superCtor;
|
|
20
20
|
ctor.prototype = Object.create(superCtor.prototype, {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
};
|
|
30
30
|
} else {
|
|
31
31
|
// old school shim for old browsers
|
|
32
|
-
|
|
32
|
+
inherits_browser.exports = function inherits(ctor, superCtor) {
|
|
33
33
|
if (superCtor) {
|
|
34
34
|
ctor.super_ = superCtor;
|
|
35
35
|
var TempCtor = function () {};
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
});
|
|
43
42
|
|
|
44
43
|
function e(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}));}
|
|
45
44
|
|
|
@@ -51,29 +50,29 @@
|
|
|
51
50
|
* @return {Array<?>}
|
|
52
51
|
*/
|
|
53
52
|
|
|
54
|
-
var nativeToString = Object.prototype.toString;
|
|
55
|
-
var nativeHasOwnProperty = Object.prototype.hasOwnProperty;
|
|
56
|
-
function isUndefined(obj) {
|
|
53
|
+
var nativeToString$2 = Object.prototype.toString;
|
|
54
|
+
var nativeHasOwnProperty$2 = Object.prototype.hasOwnProperty;
|
|
55
|
+
function isUndefined$3(obj) {
|
|
57
56
|
return obj === undefined;
|
|
58
57
|
}
|
|
59
58
|
function isDefined(obj) {
|
|
60
59
|
return obj !== undefined;
|
|
61
60
|
}
|
|
62
|
-
function isArray(obj) {
|
|
63
|
-
return nativeToString.call(obj) === '[object Array]';
|
|
61
|
+
function isArray$3(obj) {
|
|
62
|
+
return nativeToString$2.call(obj) === '[object Array]';
|
|
64
63
|
}
|
|
65
64
|
function isObject(obj) {
|
|
66
|
-
return nativeToString.call(obj) === '[object Object]';
|
|
65
|
+
return nativeToString$2.call(obj) === '[object Object]';
|
|
67
66
|
}
|
|
68
67
|
function isNumber(obj) {
|
|
69
|
-
return nativeToString.call(obj) === '[object Number]';
|
|
68
|
+
return nativeToString$2.call(obj) === '[object Number]';
|
|
70
69
|
}
|
|
71
70
|
function isFunction(obj) {
|
|
72
|
-
var tag = nativeToString.call(obj);
|
|
71
|
+
var tag = nativeToString$2.call(obj);
|
|
73
72
|
return tag === '[object Function]' || tag === '[object AsyncFunction]' || tag === '[object GeneratorFunction]' || tag === '[object AsyncGeneratorFunction]' || tag === '[object Proxy]';
|
|
74
73
|
}
|
|
75
74
|
function isString(obj) {
|
|
76
|
-
return nativeToString.call(obj) === '[object String]';
|
|
75
|
+
return nativeToString$2.call(obj) === '[object String]';
|
|
77
76
|
}
|
|
78
77
|
/**
|
|
79
78
|
* Return true, if target owns a property with the given key.
|
|
@@ -84,8 +83,8 @@
|
|
|
84
83
|
* @return {Boolean}
|
|
85
84
|
*/
|
|
86
85
|
|
|
87
|
-
function has(target, key) {
|
|
88
|
-
return nativeHasOwnProperty.call(target, key);
|
|
86
|
+
function has$2(target, key) {
|
|
87
|
+
return nativeHasOwnProperty$2.call(target, key);
|
|
89
88
|
}
|
|
90
89
|
|
|
91
90
|
/**
|
|
@@ -100,7 +99,7 @@
|
|
|
100
99
|
function find(collection, matcher) {
|
|
101
100
|
matcher = toMatcher(matcher);
|
|
102
101
|
var match;
|
|
103
|
-
forEach(collection, function (val, key) {
|
|
102
|
+
forEach$2(collection, function (val, key) {
|
|
104
103
|
if (matcher(val, key)) {
|
|
105
104
|
match = val;
|
|
106
105
|
return false;
|
|
@@ -119,8 +118,8 @@
|
|
|
119
118
|
|
|
120
119
|
function findIndex(collection, matcher) {
|
|
121
120
|
matcher = toMatcher(matcher);
|
|
122
|
-
var idx = isArray(collection) ? -1 : undefined;
|
|
123
|
-
forEach(collection, function (val, key) {
|
|
121
|
+
var idx = isArray$3(collection) ? -1 : undefined;
|
|
122
|
+
forEach$2(collection, function (val, key) {
|
|
124
123
|
if (matcher(val, key)) {
|
|
125
124
|
idx = key;
|
|
126
125
|
return false;
|
|
@@ -139,7 +138,7 @@
|
|
|
139
138
|
|
|
140
139
|
function filter(collection, matcher) {
|
|
141
140
|
var result = [];
|
|
142
|
-
forEach(collection, function (val, key) {
|
|
141
|
+
forEach$2(collection, function (val, key) {
|
|
143
142
|
if (matcher(val, key)) {
|
|
144
143
|
result.push(val);
|
|
145
144
|
}
|
|
@@ -156,17 +155,17 @@
|
|
|
156
155
|
* @return {Object} return result that stopped the iteration
|
|
157
156
|
*/
|
|
158
157
|
|
|
159
|
-
function forEach(collection, iterator) {
|
|
158
|
+
function forEach$2(collection, iterator) {
|
|
160
159
|
var val, result;
|
|
161
160
|
|
|
162
|
-
if (isUndefined(collection)) {
|
|
161
|
+
if (isUndefined$3(collection)) {
|
|
163
162
|
return;
|
|
164
163
|
}
|
|
165
164
|
|
|
166
|
-
var convertKey = isArray(collection) ? toNum : identity;
|
|
165
|
+
var convertKey = isArray$3(collection) ? toNum$2 : identity$2;
|
|
167
166
|
|
|
168
167
|
for (var key in collection) {
|
|
169
|
-
if (has(collection, key)) {
|
|
168
|
+
if (has$2(collection, key)) {
|
|
170
169
|
val = collection[key];
|
|
171
170
|
result = iterator(val, convertKey(key));
|
|
172
171
|
|
|
@@ -187,7 +186,7 @@
|
|
|
187
186
|
*/
|
|
188
187
|
|
|
189
188
|
function reduce(collection, iterator, result) {
|
|
190
|
-
forEach(collection, function (value, idx) {
|
|
189
|
+
forEach$2(collection, function (value, idx) {
|
|
191
190
|
result = iterator(result, value, idx);
|
|
192
191
|
});
|
|
193
192
|
return result;
|
|
@@ -232,7 +231,7 @@
|
|
|
232
231
|
|
|
233
232
|
function map(collection, fn) {
|
|
234
233
|
var result = [];
|
|
235
|
-
forEach(collection, function (val, key) {
|
|
234
|
+
forEach$2(collection, function (val, key) {
|
|
236
235
|
result.push(fn(val, key));
|
|
237
236
|
});
|
|
238
237
|
return result;
|
|
@@ -265,11 +264,11 @@
|
|
|
265
264
|
};
|
|
266
265
|
}
|
|
267
266
|
|
|
268
|
-
function identity(arg) {
|
|
267
|
+
function identity$2(arg) {
|
|
269
268
|
return arg;
|
|
270
269
|
}
|
|
271
270
|
|
|
272
|
-
function toNum(arg) {
|
|
271
|
+
function toNum$2(arg) {
|
|
273
272
|
return Number(arg);
|
|
274
273
|
}
|
|
275
274
|
|
|
@@ -401,7 +400,7 @@
|
|
|
401
400
|
function pick(target, properties) {
|
|
402
401
|
var result = {};
|
|
403
402
|
var obj = Object(target);
|
|
404
|
-
forEach(properties, function (prop) {
|
|
403
|
+
forEach$2(properties, function (prop) {
|
|
405
404
|
if (prop in obj) {
|
|
406
405
|
result[prop] = target[prop];
|
|
407
406
|
}
|
|
@@ -420,7 +419,7 @@
|
|
|
420
419
|
function omit(target, properties) {
|
|
421
420
|
var result = {};
|
|
422
421
|
var obj = Object(target);
|
|
423
|
-
forEach(obj, function (prop, key) {
|
|
422
|
+
forEach$2(obj, function (prop, key) {
|
|
424
423
|
if (properties.indexOf(key) === -1) {
|
|
425
424
|
result[key] = prop;
|
|
426
425
|
}
|
|
@@ -428,7 +427,7 @@
|
|
|
428
427
|
return result;
|
|
429
428
|
}
|
|
430
429
|
|
|
431
|
-
var DEFAULT_RENDER_PRIORITY = 1000;
|
|
430
|
+
var DEFAULT_RENDER_PRIORITY$1 = 1000;
|
|
432
431
|
|
|
433
432
|
/**
|
|
434
433
|
* The base implementation of shape and connection renderers.
|
|
@@ -439,7 +438,7 @@
|
|
|
439
438
|
function BaseRenderer(eventBus, renderPriority) {
|
|
440
439
|
var self = this;
|
|
441
440
|
|
|
442
|
-
renderPriority = renderPriority || DEFAULT_RENDER_PRIORITY;
|
|
441
|
+
renderPriority = renderPriority || DEFAULT_RENDER_PRIORITY$1;
|
|
443
442
|
|
|
444
443
|
eventBus.on([ 'render.shape', 'render.connection' ], renderPriority, function(evt, context) {
|
|
445
444
|
var type = evt.type,
|
|
@@ -523,7 +522,7 @@
|
|
|
523
522
|
*
|
|
524
523
|
* @return {boolean}
|
|
525
524
|
*/
|
|
526
|
-
function is(element, type) {
|
|
525
|
+
function is$1(element, type) {
|
|
527
526
|
var bo = getBusinessObject(element);
|
|
528
527
|
|
|
529
528
|
return bo && (typeof bo.$instanceOf === 'function') && bo.$instanceOf(type);
|
|
@@ -540,7 +539,7 @@
|
|
|
540
539
|
*/
|
|
541
540
|
function isAny(element, types) {
|
|
542
541
|
return some(types, function(t) {
|
|
543
|
-
return is(element, t);
|
|
542
|
+
return is$1(element, t);
|
|
544
543
|
});
|
|
545
544
|
}
|
|
546
545
|
|
|
@@ -568,21 +567,21 @@
|
|
|
568
567
|
|
|
569
568
|
function isExpanded(element, di) {
|
|
570
569
|
|
|
571
|
-
if (is(element, 'bpmn:CallActivity')) {
|
|
570
|
+
if (is$1(element, 'bpmn:CallActivity')) {
|
|
572
571
|
return false;
|
|
573
572
|
}
|
|
574
573
|
|
|
575
|
-
if (is(element, 'bpmn:SubProcess')) {
|
|
574
|
+
if (is$1(element, 'bpmn:SubProcess')) {
|
|
576
575
|
di = di || getDi(element);
|
|
577
576
|
|
|
578
|
-
if (di && is(di, 'bpmndi:BPMNPlane')) {
|
|
577
|
+
if (di && is$1(di, 'bpmndi:BPMNPlane')) {
|
|
579
578
|
return true;
|
|
580
579
|
}
|
|
581
580
|
|
|
582
581
|
return di && !!di.isExpanded;
|
|
583
582
|
}
|
|
584
583
|
|
|
585
|
-
if (is(element, 'bpmn:Participant')) {
|
|
584
|
+
if (is$1(element, 'bpmn:Participant')) {
|
|
586
585
|
return !!getBusinessObject(element).processRef;
|
|
587
586
|
}
|
|
588
587
|
|
|
@@ -595,22 +594,22 @@
|
|
|
595
594
|
|
|
596
595
|
function getLabelAttr(semantic) {
|
|
597
596
|
if (
|
|
598
|
-
is(semantic, 'bpmn:FlowElement') ||
|
|
599
|
-
is(semantic, 'bpmn:Participant') ||
|
|
600
|
-
is(semantic, 'bpmn:Lane') ||
|
|
601
|
-
is(semantic, 'bpmn:SequenceFlow') ||
|
|
602
|
-
is(semantic, 'bpmn:MessageFlow') ||
|
|
603
|
-
is(semantic, 'bpmn:DataInput') ||
|
|
604
|
-
is(semantic, 'bpmn:DataOutput')
|
|
597
|
+
is$1(semantic, 'bpmn:FlowElement') ||
|
|
598
|
+
is$1(semantic, 'bpmn:Participant') ||
|
|
599
|
+
is$1(semantic, 'bpmn:Lane') ||
|
|
600
|
+
is$1(semantic, 'bpmn:SequenceFlow') ||
|
|
601
|
+
is$1(semantic, 'bpmn:MessageFlow') ||
|
|
602
|
+
is$1(semantic, 'bpmn:DataInput') ||
|
|
603
|
+
is$1(semantic, 'bpmn:DataOutput')
|
|
605
604
|
) {
|
|
606
605
|
return 'name';
|
|
607
606
|
}
|
|
608
607
|
|
|
609
|
-
if (is(semantic, 'bpmn:TextAnnotation')) {
|
|
608
|
+
if (is$1(semantic, 'bpmn:TextAnnotation')) {
|
|
610
609
|
return 'text';
|
|
611
610
|
}
|
|
612
611
|
|
|
613
|
-
if (is(semantic, 'bpmn:Group')) {
|
|
612
|
+
if (is$1(semantic, 'bpmn:Group')) {
|
|
614
613
|
return 'categoryValueRef';
|
|
615
614
|
}
|
|
616
615
|
}
|
|
@@ -641,7 +640,7 @@
|
|
|
641
640
|
}
|
|
642
641
|
}
|
|
643
642
|
|
|
644
|
-
function ensureImported(element, target) {
|
|
643
|
+
function ensureImported$2(element, target) {
|
|
645
644
|
|
|
646
645
|
if (element.ownerDocument !== target.ownerDocument) {
|
|
647
646
|
try {
|
|
@@ -667,8 +666,8 @@
|
|
|
667
666
|
*
|
|
668
667
|
* @return {SVGElement} the appended node
|
|
669
668
|
*/
|
|
670
|
-
function appendTo(element, target) {
|
|
671
|
-
return target.appendChild(ensureImported(element, target));
|
|
669
|
+
function appendTo$2(element, target) {
|
|
670
|
+
return target.appendChild(ensureImported$2(element, target));
|
|
672
671
|
}
|
|
673
672
|
|
|
674
673
|
/**
|
|
@@ -683,8 +682,8 @@
|
|
|
683
682
|
*
|
|
684
683
|
* @return {SVGElement} the element
|
|
685
684
|
*/
|
|
686
|
-
function append(target, node) {
|
|
687
|
-
appendTo(node, target);
|
|
685
|
+
function append$2(target, node) {
|
|
686
|
+
appendTo$2(node, target);
|
|
688
687
|
return target;
|
|
689
688
|
}
|
|
690
689
|
|
|
@@ -692,9 +691,9 @@
|
|
|
692
691
|
* attribute accessor utility
|
|
693
692
|
*/
|
|
694
693
|
|
|
695
|
-
var LENGTH_ATTR = 2;
|
|
694
|
+
var LENGTH_ATTR$2 = 2;
|
|
696
695
|
|
|
697
|
-
var CSS_PROPERTIES = {
|
|
696
|
+
var CSS_PROPERTIES$2 = {
|
|
698
697
|
'alignment-baseline': 1,
|
|
699
698
|
'baseline-shift': 1,
|
|
700
699
|
'clip': 1,
|
|
@@ -718,7 +717,7 @@
|
|
|
718
717
|
'flood-opacity': 1,
|
|
719
718
|
'font': 1,
|
|
720
719
|
'font-family': 1,
|
|
721
|
-
'font-size': LENGTH_ATTR,
|
|
720
|
+
'font-size': LENGTH_ATTR$2,
|
|
722
721
|
'font-size-adjust': 1,
|
|
723
722
|
'font-stretch': 1,
|
|
724
723
|
'font-style': 1,
|
|
@@ -748,7 +747,7 @@
|
|
|
748
747
|
'stroke-linejoin': 1,
|
|
749
748
|
'stroke-miterlimit': 1,
|
|
750
749
|
'stroke-opacity': 1,
|
|
751
|
-
'stroke-width': LENGTH_ATTR,
|
|
750
|
+
'stroke-width': LENGTH_ATTR$2,
|
|
752
751
|
'text-anchor': 1,
|
|
753
752
|
'text-decoration': 1,
|
|
754
753
|
'text-rendering': 1,
|
|
@@ -759,22 +758,22 @@
|
|
|
759
758
|
};
|
|
760
759
|
|
|
761
760
|
|
|
762
|
-
function getAttribute(node, name) {
|
|
763
|
-
if (CSS_PROPERTIES[name]) {
|
|
761
|
+
function getAttribute$2(node, name) {
|
|
762
|
+
if (CSS_PROPERTIES$2[name]) {
|
|
764
763
|
return node.style[name];
|
|
765
764
|
} else {
|
|
766
765
|
return node.getAttributeNS(null, name);
|
|
767
766
|
}
|
|
768
767
|
}
|
|
769
768
|
|
|
770
|
-
function setAttribute(node, name, value) {
|
|
769
|
+
function setAttribute$2(node, name, value) {
|
|
771
770
|
var hyphenated = name.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
|
|
772
771
|
|
|
773
|
-
var type = CSS_PROPERTIES[hyphenated];
|
|
772
|
+
var type = CSS_PROPERTIES$2[hyphenated];
|
|
774
773
|
|
|
775
774
|
if (type) {
|
|
776
775
|
// append pixel unit, unless present
|
|
777
|
-
if (type === LENGTH_ATTR && typeof value === 'number') {
|
|
776
|
+
if (type === LENGTH_ATTR$2 && typeof value === 'number') {
|
|
778
777
|
value = String(value) + 'px';
|
|
779
778
|
}
|
|
780
779
|
|
|
@@ -784,12 +783,12 @@
|
|
|
784
783
|
}
|
|
785
784
|
}
|
|
786
785
|
|
|
787
|
-
function setAttributes(node, attrs) {
|
|
786
|
+
function setAttributes$2(node, attrs) {
|
|
788
787
|
|
|
789
788
|
var names = Object.keys(attrs), i, name;
|
|
790
789
|
|
|
791
790
|
for (i = 0, name; (name = names[i]); i++) {
|
|
792
|
-
setAttribute(node, name, attrs[name]);
|
|
791
|
+
setAttribute$2(node, name, attrs[name]);
|
|
793
792
|
}
|
|
794
793
|
}
|
|
795
794
|
|
|
@@ -803,15 +802,15 @@
|
|
|
803
802
|
*
|
|
804
803
|
* @return {String}
|
|
805
804
|
*/
|
|
806
|
-
function attr(node, name, value) {
|
|
805
|
+
function attr$3(node, name, value) {
|
|
807
806
|
if (typeof name === 'string') {
|
|
808
807
|
if (value !== undefined) {
|
|
809
|
-
setAttribute(node, name, value);
|
|
808
|
+
setAttribute$2(node, name, value);
|
|
810
809
|
} else {
|
|
811
|
-
return getAttribute(node, name);
|
|
810
|
+
return getAttribute$2(node, name);
|
|
812
811
|
}
|
|
813
812
|
} else {
|
|
814
|
-
setAttributes(node, name);
|
|
813
|
+
setAttributes$2(node, name);
|
|
815
814
|
}
|
|
816
815
|
|
|
817
816
|
return node;
|
|
@@ -820,7 +819,7 @@
|
|
|
820
819
|
/**
|
|
821
820
|
* Clear utility
|
|
822
821
|
*/
|
|
823
|
-
function index(arr, obj) {
|
|
822
|
+
function index$1(arr, obj) {
|
|
824
823
|
if (arr.indexOf) {
|
|
825
824
|
return arr.indexOf(obj);
|
|
826
825
|
}
|
|
@@ -835,11 +834,11 @@
|
|
|
835
834
|
return -1;
|
|
836
835
|
}
|
|
837
836
|
|
|
838
|
-
var re = /\s+/;
|
|
837
|
+
var re$3 = /\s+/;
|
|
839
838
|
|
|
840
|
-
var toString = Object.prototype.toString;
|
|
839
|
+
var toString$3 = Object.prototype.toString;
|
|
841
840
|
|
|
842
|
-
function defined(o) {
|
|
841
|
+
function defined$1(o) {
|
|
843
842
|
return typeof o !== 'undefined';
|
|
844
843
|
}
|
|
845
844
|
|
|
@@ -851,11 +850,11 @@
|
|
|
851
850
|
* @api public
|
|
852
851
|
*/
|
|
853
852
|
|
|
854
|
-
function classes(el) {
|
|
855
|
-
return new ClassList(el);
|
|
853
|
+
function classes$3(el) {
|
|
854
|
+
return new ClassList$3(el);
|
|
856
855
|
}
|
|
857
856
|
|
|
858
|
-
function ClassList(el) {
|
|
857
|
+
function ClassList$3(el) {
|
|
859
858
|
if (!el || !el.nodeType) {
|
|
860
859
|
throw new Error('A DOM element reference is required');
|
|
861
860
|
}
|
|
@@ -871,7 +870,7 @@
|
|
|
871
870
|
* @api public
|
|
872
871
|
*/
|
|
873
872
|
|
|
874
|
-
ClassList.prototype.add = function(name) {
|
|
873
|
+
ClassList$3.prototype.add = function(name) {
|
|
875
874
|
|
|
876
875
|
// classList
|
|
877
876
|
if (this.list) {
|
|
@@ -881,12 +880,12 @@
|
|
|
881
880
|
|
|
882
881
|
// fallback
|
|
883
882
|
var arr = this.array();
|
|
884
|
-
var i = index(arr, name);
|
|
883
|
+
var i = index$1(arr, name);
|
|
885
884
|
if (!~i) {
|
|
886
885
|
arr.push(name);
|
|
887
886
|
}
|
|
888
887
|
|
|
889
|
-
if (defined(this.el.className.baseVal)) {
|
|
888
|
+
if (defined$1(this.el.className.baseVal)) {
|
|
890
889
|
this.el.className.baseVal = arr.join(' ');
|
|
891
890
|
} else {
|
|
892
891
|
this.el.className = arr.join(' ');
|
|
@@ -905,8 +904,8 @@
|
|
|
905
904
|
* @api public
|
|
906
905
|
*/
|
|
907
906
|
|
|
908
|
-
ClassList.prototype.remove = function(name) {
|
|
909
|
-
if ('[object RegExp]' === toString.call(name)) {
|
|
907
|
+
ClassList$3.prototype.remove = function(name) {
|
|
908
|
+
if ('[object RegExp]' === toString$3.call(name)) {
|
|
910
909
|
return this.removeMatching(name);
|
|
911
910
|
}
|
|
912
911
|
|
|
@@ -918,7 +917,7 @@
|
|
|
918
917
|
|
|
919
918
|
// fallback
|
|
920
919
|
var arr = this.array();
|
|
921
|
-
var i = index(arr, name);
|
|
920
|
+
var i = index$1(arr, name);
|
|
922
921
|
if (~i) {
|
|
923
922
|
arr.splice(i, 1);
|
|
924
923
|
}
|
|
@@ -934,7 +933,7 @@
|
|
|
934
933
|
* @api private
|
|
935
934
|
*/
|
|
936
935
|
|
|
937
|
-
ClassList.prototype.removeMatching = function(re) {
|
|
936
|
+
ClassList$3.prototype.removeMatching = function(re) {
|
|
938
937
|
var arr = this.array();
|
|
939
938
|
for (var i = 0; i < arr.length; i++) {
|
|
940
939
|
if (re.test(arr[i])) {
|
|
@@ -956,10 +955,10 @@
|
|
|
956
955
|
* @api public
|
|
957
956
|
*/
|
|
958
957
|
|
|
959
|
-
ClassList.prototype.toggle = function(name, force) {
|
|
958
|
+
ClassList$3.prototype.toggle = function(name, force) {
|
|
960
959
|
// classList
|
|
961
960
|
if (this.list) {
|
|
962
|
-
if (defined(force)) {
|
|
961
|
+
if (defined$1(force)) {
|
|
963
962
|
if (force !== this.list.toggle(name, force)) {
|
|
964
963
|
this.list.toggle(name); // toggle again to correct
|
|
965
964
|
}
|
|
@@ -970,7 +969,7 @@
|
|
|
970
969
|
}
|
|
971
970
|
|
|
972
971
|
// fallback
|
|
973
|
-
if (defined(force)) {
|
|
972
|
+
if (defined$1(force)) {
|
|
974
973
|
if (!force) {
|
|
975
974
|
this.remove(name);
|
|
976
975
|
} else {
|
|
@@ -994,10 +993,10 @@
|
|
|
994
993
|
* @api public
|
|
995
994
|
*/
|
|
996
995
|
|
|
997
|
-
ClassList.prototype.array = function() {
|
|
996
|
+
ClassList$3.prototype.array = function() {
|
|
998
997
|
var className = this.el.getAttribute('class') || '';
|
|
999
998
|
var str = className.replace(/^\s+|\s+$/g, '');
|
|
1000
|
-
var arr = str.split(re);
|
|
999
|
+
var arr = str.split(re$3);
|
|
1001
1000
|
if ('' === arr[0]) {
|
|
1002
1001
|
arr.shift();
|
|
1003
1002
|
}
|
|
@@ -1012,16 +1011,16 @@
|
|
|
1012
1011
|
* @api public
|
|
1013
1012
|
*/
|
|
1014
1013
|
|
|
1015
|
-
ClassList.prototype.has =
|
|
1016
|
-
ClassList.prototype.contains = function(name) {
|
|
1014
|
+
ClassList$3.prototype.has =
|
|
1015
|
+
ClassList$3.prototype.contains = function(name) {
|
|
1017
1016
|
return (
|
|
1018
1017
|
this.list ?
|
|
1019
1018
|
this.list.contains(name) :
|
|
1020
|
-
!! ~index(this.array(), name)
|
|
1019
|
+
!! ~index$1(this.array(), name)
|
|
1021
1020
|
);
|
|
1022
1021
|
};
|
|
1023
1022
|
|
|
1024
|
-
function remove(element) {
|
|
1023
|
+
function remove$4(element) {
|
|
1025
1024
|
var parent = element.parentNode;
|
|
1026
1025
|
|
|
1027
1026
|
if (parent) {
|
|
@@ -1041,17 +1040,17 @@
|
|
|
1041
1040
|
* @param {DOMElement} element
|
|
1042
1041
|
* @return {DOMElement} the element (for chaining)
|
|
1043
1042
|
*/
|
|
1044
|
-
function clear(element) {
|
|
1043
|
+
function clear$2(element) {
|
|
1045
1044
|
var child;
|
|
1046
1045
|
|
|
1047
1046
|
while ((child = element.firstChild)) {
|
|
1048
|
-
remove(child);
|
|
1047
|
+
remove$4(child);
|
|
1049
1048
|
}
|
|
1050
1049
|
|
|
1051
1050
|
return element;
|
|
1052
1051
|
}
|
|
1053
1052
|
|
|
1054
|
-
var ns = {
|
|
1053
|
+
var ns$2 = {
|
|
1055
1054
|
svg: 'http://www.w3.org/2000/svg'
|
|
1056
1055
|
};
|
|
1057
1056
|
|
|
@@ -1059,24 +1058,24 @@
|
|
|
1059
1058
|
* DOM parsing utility
|
|
1060
1059
|
*/
|
|
1061
1060
|
|
|
1062
|
-
var SVG_START = '<svg xmlns="' + ns.svg + '"';
|
|
1061
|
+
var SVG_START$2 = '<svg xmlns="' + ns$2.svg + '"';
|
|
1063
1062
|
|
|
1064
|
-
function parse(svg) {
|
|
1063
|
+
function parse$4(svg) {
|
|
1065
1064
|
|
|
1066
1065
|
var unwrap = false;
|
|
1067
1066
|
|
|
1068
1067
|
// ensure we import a valid svg document
|
|
1069
1068
|
if (svg.substring(0, 4) === '<svg') {
|
|
1070
|
-
if (svg.indexOf(ns.svg) === -1) {
|
|
1071
|
-
svg = SVG_START + svg.substring(4);
|
|
1069
|
+
if (svg.indexOf(ns$2.svg) === -1) {
|
|
1070
|
+
svg = SVG_START$2 + svg.substring(4);
|
|
1072
1071
|
}
|
|
1073
1072
|
} else {
|
|
1074
1073
|
// namespace svg
|
|
1075
|
-
svg = SVG_START + '>' + svg + '</svg>';
|
|
1074
|
+
svg = SVG_START$2 + '>' + svg + '</svg>';
|
|
1076
1075
|
unwrap = true;
|
|
1077
1076
|
}
|
|
1078
1077
|
|
|
1079
|
-
var parsed = parseDocument(svg);
|
|
1078
|
+
var parsed = parseDocument$2(svg);
|
|
1080
1079
|
|
|
1081
1080
|
if (!unwrap) {
|
|
1082
1081
|
return parsed;
|
|
@@ -1093,7 +1092,7 @@
|
|
|
1093
1092
|
return fragment;
|
|
1094
1093
|
}
|
|
1095
1094
|
|
|
1096
|
-
function parseDocument(svg) {
|
|
1095
|
+
function parseDocument$2(svg) {
|
|
1097
1096
|
|
|
1098
1097
|
var parser;
|
|
1099
1098
|
|
|
@@ -1117,18 +1116,18 @@
|
|
|
1117
1116
|
*
|
|
1118
1117
|
* @returns {SVGElement}
|
|
1119
1118
|
*/
|
|
1120
|
-
function create(name, attrs) {
|
|
1119
|
+
function create$3(name, attrs) {
|
|
1121
1120
|
var element;
|
|
1122
1121
|
|
|
1123
1122
|
if (name.charAt(0) === '<') {
|
|
1124
|
-
element = parse(name).firstChild;
|
|
1123
|
+
element = parse$4(name).firstChild;
|
|
1125
1124
|
element = document.importNode(element, true);
|
|
1126
1125
|
} else {
|
|
1127
|
-
element = document.createElementNS(ns.svg, name);
|
|
1126
|
+
element = document.createElementNS(ns$2.svg, name);
|
|
1128
1127
|
}
|
|
1129
1128
|
|
|
1130
1129
|
if (attrs) {
|
|
1131
|
-
attr(element, attrs);
|
|
1130
|
+
attr$3(element, attrs);
|
|
1132
1131
|
}
|
|
1133
1132
|
|
|
1134
1133
|
return element;
|
|
@@ -1139,9 +1138,9 @@
|
|
|
1139
1138
|
*/
|
|
1140
1139
|
|
|
1141
1140
|
// fake node used to instantiate svg geometry elements
|
|
1142
|
-
var node = create('svg');
|
|
1141
|
+
var node = create$3('svg');
|
|
1143
1142
|
|
|
1144
|
-
function extend(object, props) {
|
|
1143
|
+
function extend$1(object, props) {
|
|
1145
1144
|
var i, k, keys = Object.keys(props);
|
|
1146
1145
|
|
|
1147
1146
|
for (i = 0; (k = keys[i]); i++) {
|
|
@@ -1169,9 +1168,9 @@
|
|
|
1169
1168
|
case 0:
|
|
1170
1169
|
return matrix;
|
|
1171
1170
|
case 1:
|
|
1172
|
-
return extend(matrix, a);
|
|
1171
|
+
return extend$1(matrix, a);
|
|
1173
1172
|
case 6:
|
|
1174
|
-
return extend(matrix, {
|
|
1173
|
+
return extend$1(matrix, {
|
|
1175
1174
|
a: a,
|
|
1176
1175
|
b: b,
|
|
1177
1176
|
c: c,
|
|
@@ -1221,7 +1220,7 @@
|
|
|
1221
1220
|
*
|
|
1222
1221
|
* @return {SVGTransform} the consolidated transform
|
|
1223
1222
|
*/
|
|
1224
|
-
function transform(node, transforms) {
|
|
1223
|
+
function transform$1(node, transforms) {
|
|
1225
1224
|
var transformList = node.transform.baseVal;
|
|
1226
1225
|
|
|
1227
1226
|
if (transforms) {
|
|
@@ -1252,18 +1251,18 @@
|
|
|
1252
1251
|
|
|
1253
1252
|
function createLine(points, attrs) {
|
|
1254
1253
|
|
|
1255
|
-
var line = create('polyline');
|
|
1256
|
-
attr(line, { points: toSVGPoints(points) });
|
|
1254
|
+
var line = create$3('polyline');
|
|
1255
|
+
attr$3(line, { points: toSVGPoints(points) });
|
|
1257
1256
|
|
|
1258
1257
|
if (attrs) {
|
|
1259
|
-
attr(line, attrs);
|
|
1258
|
+
attr$3(line, attrs);
|
|
1260
1259
|
}
|
|
1261
1260
|
|
|
1262
1261
|
return line;
|
|
1263
1262
|
}
|
|
1264
1263
|
|
|
1265
1264
|
function updateLine(gfx, points) {
|
|
1266
|
-
attr(gfx, { points: toSVGPoints(points) });
|
|
1265
|
+
attr$3(gfx, { points: toSVGPoints(points) });
|
|
1267
1266
|
|
|
1268
1267
|
return gfx;
|
|
1269
1268
|
}
|
|
@@ -1420,10 +1419,10 @@
|
|
|
1420
1419
|
|
|
1421
1420
|
var nativeToString$1 = Object.prototype.toString;
|
|
1422
1421
|
var nativeHasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
1423
|
-
function isUndefined$
|
|
1422
|
+
function isUndefined$2(obj) {
|
|
1424
1423
|
return obj === undefined;
|
|
1425
1424
|
}
|
|
1426
|
-
function isArray$
|
|
1425
|
+
function isArray$2(obj) {
|
|
1427
1426
|
return nativeToString$1.call(obj) === '[object Array]';
|
|
1428
1427
|
}
|
|
1429
1428
|
/**
|
|
@@ -1451,11 +1450,11 @@
|
|
|
1451
1450
|
function forEach$1(collection, iterator) {
|
|
1452
1451
|
var val, result;
|
|
1453
1452
|
|
|
1454
|
-
if (isUndefined$
|
|
1453
|
+
if (isUndefined$2(collection)) {
|
|
1455
1454
|
return;
|
|
1456
1455
|
}
|
|
1457
1456
|
|
|
1458
|
-
var convertKey = isArray$
|
|
1457
|
+
var convertKey = isArray$2(collection) ? toNum$1 : identity$1;
|
|
1459
1458
|
|
|
1460
1459
|
for (var key in collection) {
|
|
1461
1460
|
if (has$1(collection, key)) {
|
|
@@ -1485,7 +1484,7 @@
|
|
|
1485
1484
|
*
|
|
1486
1485
|
* @return {Element} the element
|
|
1487
1486
|
*/
|
|
1488
|
-
function assign$1(element) {
|
|
1487
|
+
function assign$1$1(element) {
|
|
1489
1488
|
var target = element.style;
|
|
1490
1489
|
|
|
1491
1490
|
for (var _len = arguments.length, styleSources = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
@@ -1505,35 +1504,10 @@
|
|
|
1505
1504
|
return element;
|
|
1506
1505
|
}
|
|
1507
1506
|
|
|
1508
|
-
|
|
1509
|
-
* Set attribute `name` to `val`, or get attr `name`.
|
|
1510
|
-
*
|
|
1511
|
-
* @param {Element} el
|
|
1512
|
-
* @param {String} name
|
|
1513
|
-
* @param {String} [val]
|
|
1514
|
-
* @api public
|
|
1515
|
-
*/
|
|
1516
|
-
function attr$1(el, name, val) {
|
|
1517
|
-
// get
|
|
1518
|
-
if (arguments.length == 2) {
|
|
1519
|
-
return el.getAttribute(name);
|
|
1520
|
-
}
|
|
1521
|
-
|
|
1522
|
-
// remove
|
|
1523
|
-
if (val === null) {
|
|
1524
|
-
return el.removeAttribute(name);
|
|
1525
|
-
}
|
|
1526
|
-
|
|
1527
|
-
// set
|
|
1528
|
-
el.setAttribute(name, val);
|
|
1529
|
-
|
|
1530
|
-
return el;
|
|
1531
|
-
}
|
|
1532
|
-
|
|
1533
|
-
var indexOf = [].indexOf;
|
|
1507
|
+
var indexOf$1 = [].indexOf;
|
|
1534
1508
|
|
|
1535
|
-
var indexof = function(arr, obj){
|
|
1536
|
-
if (indexOf) return arr.indexOf(obj);
|
|
1509
|
+
var indexof$1 = function(arr, obj){
|
|
1510
|
+
if (indexOf$1) return arr.indexOf(obj);
|
|
1537
1511
|
for (var i = 0; i < arr.length; ++i) {
|
|
1538
1512
|
if (arr[i] === obj) return i;
|
|
1539
1513
|
}
|
|
@@ -1550,13 +1524,13 @@
|
|
|
1550
1524
|
* Whitespace regexp.
|
|
1551
1525
|
*/
|
|
1552
1526
|
|
|
1553
|
-
var re$
|
|
1527
|
+
var re$2 = /\s+/;
|
|
1554
1528
|
|
|
1555
1529
|
/**
|
|
1556
1530
|
* toString reference.
|
|
1557
1531
|
*/
|
|
1558
1532
|
|
|
1559
|
-
var toString$
|
|
1533
|
+
var toString$2 = Object.prototype.toString;
|
|
1560
1534
|
|
|
1561
1535
|
/**
|
|
1562
1536
|
* Wrap `el` in a `ClassList`.
|
|
@@ -1566,8 +1540,8 @@
|
|
|
1566
1540
|
* @api public
|
|
1567
1541
|
*/
|
|
1568
1542
|
|
|
1569
|
-
function classes$
|
|
1570
|
-
return new ClassList$
|
|
1543
|
+
function classes$2(el) {
|
|
1544
|
+
return new ClassList$2(el);
|
|
1571
1545
|
}
|
|
1572
1546
|
|
|
1573
1547
|
/**
|
|
@@ -1577,7 +1551,7 @@
|
|
|
1577
1551
|
* @api private
|
|
1578
1552
|
*/
|
|
1579
1553
|
|
|
1580
|
-
function ClassList$
|
|
1554
|
+
function ClassList$2(el) {
|
|
1581
1555
|
if (!el || !el.nodeType) {
|
|
1582
1556
|
throw new Error('A DOM element reference is required');
|
|
1583
1557
|
}
|
|
@@ -1593,7 +1567,7 @@
|
|
|
1593
1567
|
* @api public
|
|
1594
1568
|
*/
|
|
1595
1569
|
|
|
1596
|
-
ClassList$
|
|
1570
|
+
ClassList$2.prototype.add = function (name) {
|
|
1597
1571
|
// classList
|
|
1598
1572
|
if (this.list) {
|
|
1599
1573
|
this.list.add(name);
|
|
@@ -1602,7 +1576,7 @@
|
|
|
1602
1576
|
|
|
1603
1577
|
// fallback
|
|
1604
1578
|
var arr = this.array();
|
|
1605
|
-
var i = indexof(arr, name);
|
|
1579
|
+
var i = indexof$1(arr, name);
|
|
1606
1580
|
if (!~i) arr.push(name);
|
|
1607
1581
|
this.el.className = arr.join(' ');
|
|
1608
1582
|
return this;
|
|
@@ -1618,8 +1592,8 @@
|
|
|
1618
1592
|
* @api public
|
|
1619
1593
|
*/
|
|
1620
1594
|
|
|
1621
|
-
ClassList$
|
|
1622
|
-
if ('[object RegExp]' == toString$
|
|
1595
|
+
ClassList$2.prototype.remove = function (name) {
|
|
1596
|
+
if ('[object RegExp]' == toString$2.call(name)) {
|
|
1623
1597
|
return this.removeMatching(name);
|
|
1624
1598
|
}
|
|
1625
1599
|
|
|
@@ -1631,7 +1605,7 @@
|
|
|
1631
1605
|
|
|
1632
1606
|
// fallback
|
|
1633
1607
|
var arr = this.array();
|
|
1634
|
-
var i = indexof(arr, name);
|
|
1608
|
+
var i = indexof$1(arr, name);
|
|
1635
1609
|
if (~i) arr.splice(i, 1);
|
|
1636
1610
|
this.el.className = arr.join(' ');
|
|
1637
1611
|
return this;
|
|
@@ -1645,7 +1619,7 @@
|
|
|
1645
1619
|
* @api private
|
|
1646
1620
|
*/
|
|
1647
1621
|
|
|
1648
|
-
ClassList$
|
|
1622
|
+
ClassList$2.prototype.removeMatching = function (re) {
|
|
1649
1623
|
var arr = this.array();
|
|
1650
1624
|
for (var i = 0; i < arr.length; i++) {
|
|
1651
1625
|
if (re.test(arr[i])) {
|
|
@@ -1667,7 +1641,7 @@
|
|
|
1667
1641
|
* @api public
|
|
1668
1642
|
*/
|
|
1669
1643
|
|
|
1670
|
-
ClassList$
|
|
1644
|
+
ClassList$2.prototype.toggle = function (name, force) {
|
|
1671
1645
|
// classList
|
|
1672
1646
|
if (this.list) {
|
|
1673
1647
|
if ('undefined' !== typeof force) {
|
|
@@ -1705,10 +1679,10 @@
|
|
|
1705
1679
|
* @api public
|
|
1706
1680
|
*/
|
|
1707
1681
|
|
|
1708
|
-
ClassList$
|
|
1682
|
+
ClassList$2.prototype.array = function () {
|
|
1709
1683
|
var className = this.el.getAttribute('class') || '';
|
|
1710
1684
|
var str = className.replace(/^\s+|\s+$/g, '');
|
|
1711
|
-
var arr = str.split(re$
|
|
1685
|
+
var arr = str.split(re$2);
|
|
1712
1686
|
if ('' === arr[0]) arr.shift();
|
|
1713
1687
|
return arr;
|
|
1714
1688
|
};
|
|
@@ -1721,34 +1695,19 @@
|
|
|
1721
1695
|
* @api public
|
|
1722
1696
|
*/
|
|
1723
1697
|
|
|
1724
|
-
ClassList$
|
|
1725
|
-
return this.list ? this.list.contains(name) : !!~indexof(this.array(), name);
|
|
1698
|
+
ClassList$2.prototype.has = ClassList$2.prototype.contains = function (name) {
|
|
1699
|
+
return this.list ? this.list.contains(name) : !!~indexof$1(this.array(), name);
|
|
1726
1700
|
};
|
|
1727
1701
|
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
while (el.childNodes.length) {
|
|
1736
|
-
c = el.childNodes[0];
|
|
1737
|
-
el.removeChild(c);
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1740
|
-
return el;
|
|
1741
|
-
}
|
|
1742
|
-
|
|
1743
|
-
var proto = typeof Element !== 'undefined' ? Element.prototype : {};
|
|
1744
|
-
var vendor = proto.matches
|
|
1745
|
-
|| proto.matchesSelector
|
|
1746
|
-
|| proto.webkitMatchesSelector
|
|
1747
|
-
|| proto.mozMatchesSelector
|
|
1748
|
-
|| proto.msMatchesSelector
|
|
1749
|
-
|| proto.oMatchesSelector;
|
|
1702
|
+
var proto$1 = typeof Element !== 'undefined' ? Element.prototype : {};
|
|
1703
|
+
var vendor$1 = proto$1.matches
|
|
1704
|
+
|| proto$1.matchesSelector
|
|
1705
|
+
|| proto$1.webkitMatchesSelector
|
|
1706
|
+
|| proto$1.mozMatchesSelector
|
|
1707
|
+
|| proto$1.msMatchesSelector
|
|
1708
|
+
|| proto$1.oMatchesSelector;
|
|
1750
1709
|
|
|
1751
|
-
var matchesSelector = match;
|
|
1710
|
+
var matchesSelector$1 = match$1;
|
|
1752
1711
|
|
|
1753
1712
|
/**
|
|
1754
1713
|
* Match `el` to `selector`.
|
|
@@ -1759,9 +1718,9 @@
|
|
|
1759
1718
|
* @api public
|
|
1760
1719
|
*/
|
|
1761
1720
|
|
|
1762
|
-
function match(el, selector) {
|
|
1721
|
+
function match$1(el, selector) {
|
|
1763
1722
|
if (!el || el.nodeType !== 1) return false;
|
|
1764
|
-
if (vendor) return vendor.call(el, selector);
|
|
1723
|
+
if (vendor$1) return vendor$1.call(el, selector);
|
|
1765
1724
|
var nodes = el.parentNode.querySelectorAll(selector);
|
|
1766
1725
|
for (var i = 0; i < nodes.length; i++) {
|
|
1767
1726
|
if (nodes[i] == el) return true;
|
|
@@ -1776,24 +1735,24 @@
|
|
|
1776
1735
|
* @param {String} selector
|
|
1777
1736
|
* @param {Boolean} checkYourSelf (optional)
|
|
1778
1737
|
*/
|
|
1779
|
-
function closest (element, selector, checkYourSelf) {
|
|
1738
|
+
function closest$1 (element, selector, checkYourSelf) {
|
|
1780
1739
|
var currentElem = checkYourSelf ? element : element.parentNode;
|
|
1781
1740
|
|
|
1782
1741
|
while (currentElem && currentElem.nodeType !== document.DOCUMENT_NODE && currentElem.nodeType !== document.DOCUMENT_FRAGMENT_NODE) {
|
|
1783
1742
|
|
|
1784
|
-
if (matchesSelector(currentElem, selector)) {
|
|
1743
|
+
if (matchesSelector$1(currentElem, selector)) {
|
|
1785
1744
|
return currentElem;
|
|
1786
1745
|
}
|
|
1787
1746
|
|
|
1788
1747
|
currentElem = currentElem.parentNode;
|
|
1789
1748
|
}
|
|
1790
1749
|
|
|
1791
|
-
return matchesSelector(currentElem, selector) ? currentElem : null;
|
|
1750
|
+
return matchesSelector$1(currentElem, selector) ? currentElem : null;
|
|
1792
1751
|
}
|
|
1793
1752
|
|
|
1794
|
-
var bind$1 = window.addEventListener ? 'addEventListener' : 'attachEvent',
|
|
1795
|
-
unbind = window.removeEventListener ? 'removeEventListener' : 'detachEvent',
|
|
1796
|
-
prefix = bind$1 !== 'addEventListener' ? 'on' : '';
|
|
1753
|
+
var bind$1$1 = window.addEventListener ? 'addEventListener' : 'attachEvent',
|
|
1754
|
+
unbind$2 = window.removeEventListener ? 'removeEventListener' : 'detachEvent',
|
|
1755
|
+
prefix$8 = bind$1$1 !== 'addEventListener' ? 'on' : '';
|
|
1797
1756
|
|
|
1798
1757
|
/**
|
|
1799
1758
|
* Bind `el` event `type` to `fn`.
|
|
@@ -1806,8 +1765,8 @@
|
|
|
1806
1765
|
* @api public
|
|
1807
1766
|
*/
|
|
1808
1767
|
|
|
1809
|
-
var bind_1 = function(el, type, fn, capture){
|
|
1810
|
-
el[bind$1](prefix + type, fn, capture || false);
|
|
1768
|
+
var bind_1$1 = function(el, type, fn, capture){
|
|
1769
|
+
el[bind$1$1](prefix$8 + type, fn, capture || false);
|
|
1811
1770
|
return fn;
|
|
1812
1771
|
};
|
|
1813
1772
|
|
|
@@ -1822,14 +1781,14 @@
|
|
|
1822
1781
|
* @api public
|
|
1823
1782
|
*/
|
|
1824
1783
|
|
|
1825
|
-
var unbind_1 = function(el, type, fn, capture){
|
|
1826
|
-
el[unbind](prefix + type, fn, capture || false);
|
|
1784
|
+
var unbind_1$1 = function(el, type, fn, capture){
|
|
1785
|
+
el[unbind$2](prefix$8 + type, fn, capture || false);
|
|
1827
1786
|
return fn;
|
|
1828
1787
|
};
|
|
1829
1788
|
|
|
1830
|
-
var componentEvent = {
|
|
1831
|
-
bind: bind_1,
|
|
1832
|
-
unbind: unbind_1
|
|
1789
|
+
var componentEvent$1 = {
|
|
1790
|
+
bind: bind_1$1,
|
|
1791
|
+
unbind: unbind_1$1
|
|
1833
1792
|
};
|
|
1834
1793
|
|
|
1835
1794
|
/**
|
|
@@ -1852,16 +1811,16 @@
|
|
|
1852
1811
|
|
|
1853
1812
|
// Some events don't bubble, so we want to bind to the capture phase instead
|
|
1854
1813
|
// when delegating.
|
|
1855
|
-
var forceCaptureEvents = ['focus', 'blur'];
|
|
1814
|
+
var forceCaptureEvents$1 = ['focus', 'blur'];
|
|
1856
1815
|
|
|
1857
|
-
function bind$2(el, selector, type, fn, capture) {
|
|
1858
|
-
if (forceCaptureEvents.indexOf(type) !== -1) {
|
|
1816
|
+
function bind$2$1(el, selector, type, fn, capture) {
|
|
1817
|
+
if (forceCaptureEvents$1.indexOf(type) !== -1) {
|
|
1859
1818
|
capture = true;
|
|
1860
1819
|
}
|
|
1861
1820
|
|
|
1862
|
-
return componentEvent.bind(el, type, function (e) {
|
|
1821
|
+
return componentEvent$1.bind(el, type, function (e) {
|
|
1863
1822
|
var target = e.target || e.srcElement;
|
|
1864
|
-
e.delegateTarget = closest(target, selector, true);
|
|
1823
|
+
e.delegateTarget = closest$1(target, selector, true);
|
|
1865
1824
|
if (e.delegateTarget) {
|
|
1866
1825
|
fn.call(el, e);
|
|
1867
1826
|
}
|
|
@@ -1877,75 +1836,75 @@
|
|
|
1877
1836
|
* @param {Boolean} capture
|
|
1878
1837
|
* @api public
|
|
1879
1838
|
*/
|
|
1880
|
-
function unbind$1(el, type, fn, capture) {
|
|
1881
|
-
if (forceCaptureEvents.indexOf(type) !== -1) {
|
|
1839
|
+
function unbind$1$1(el, type, fn, capture) {
|
|
1840
|
+
if (forceCaptureEvents$1.indexOf(type) !== -1) {
|
|
1882
1841
|
capture = true;
|
|
1883
1842
|
}
|
|
1884
1843
|
|
|
1885
|
-
return componentEvent.unbind(el, type, fn, capture);
|
|
1844
|
+
return componentEvent$1.unbind(el, type, fn, capture);
|
|
1886
1845
|
}
|
|
1887
1846
|
|
|
1888
|
-
var delegate = {
|
|
1889
|
-
bind: bind$2,
|
|
1890
|
-
unbind: unbind$1
|
|
1847
|
+
var delegate$1 = {
|
|
1848
|
+
bind: bind$2$1,
|
|
1849
|
+
unbind: unbind$1$1
|
|
1891
1850
|
};
|
|
1892
1851
|
|
|
1893
1852
|
/**
|
|
1894
1853
|
* Expose `parse`.
|
|
1895
1854
|
*/
|
|
1896
1855
|
|
|
1897
|
-
var domify = parse$
|
|
1856
|
+
var domify$1 = parse$3;
|
|
1898
1857
|
|
|
1899
1858
|
/**
|
|
1900
1859
|
* Tests for browser support.
|
|
1901
1860
|
*/
|
|
1902
1861
|
|
|
1903
|
-
var innerHTMLBug = false;
|
|
1904
|
-
var bugTestDiv;
|
|
1862
|
+
var innerHTMLBug$1 = false;
|
|
1863
|
+
var bugTestDiv$1;
|
|
1905
1864
|
if (typeof document !== 'undefined') {
|
|
1906
|
-
bugTestDiv = document.createElement('div');
|
|
1865
|
+
bugTestDiv$1 = document.createElement('div');
|
|
1907
1866
|
// Setup
|
|
1908
|
-
bugTestDiv.innerHTML = ' <link/><table></table><a href="/a">a</a><input type="checkbox"/>';
|
|
1867
|
+
bugTestDiv$1.innerHTML = ' <link/><table></table><a href="/a">a</a><input type="checkbox"/>';
|
|
1909
1868
|
// Make sure that link elements get serialized correctly by innerHTML
|
|
1910
1869
|
// This requires a wrapper element in IE
|
|
1911
|
-
innerHTMLBug = !bugTestDiv.getElementsByTagName('link').length;
|
|
1912
|
-
bugTestDiv = undefined;
|
|
1870
|
+
innerHTMLBug$1 = !bugTestDiv$1.getElementsByTagName('link').length;
|
|
1871
|
+
bugTestDiv$1 = undefined;
|
|
1913
1872
|
}
|
|
1914
1873
|
|
|
1915
1874
|
/**
|
|
1916
1875
|
* Wrap map from jquery.
|
|
1917
1876
|
*/
|
|
1918
1877
|
|
|
1919
|
-
var map$1 = {
|
|
1878
|
+
var map$1$1 = {
|
|
1920
1879
|
legend: [1, '<fieldset>', '</fieldset>'],
|
|
1921
1880
|
tr: [2, '<table><tbody>', '</tbody></table>'],
|
|
1922
1881
|
col: [2, '<table><tbody></tbody><colgroup>', '</colgroup></table>'],
|
|
1923
1882
|
// for script/link/style tags to work in IE6-8, you have to wrap
|
|
1924
1883
|
// in a div with a non-whitespace character in front, ha!
|
|
1925
|
-
_default: innerHTMLBug ? [1, 'X<div>', '</div>'] : [0, '', '']
|
|
1884
|
+
_default: innerHTMLBug$1 ? [1, 'X<div>', '</div>'] : [0, '', '']
|
|
1926
1885
|
};
|
|
1927
1886
|
|
|
1928
|
-
map$1.td =
|
|
1929
|
-
map$1.th = [3, '<table><tbody><tr>', '</tr></tbody></table>'];
|
|
1887
|
+
map$1$1.td =
|
|
1888
|
+
map$1$1.th = [3, '<table><tbody><tr>', '</tr></tbody></table>'];
|
|
1930
1889
|
|
|
1931
|
-
map$1.option =
|
|
1932
|
-
map$1.optgroup = [1, '<select multiple="multiple">', '</select>'];
|
|
1890
|
+
map$1$1.option =
|
|
1891
|
+
map$1$1.optgroup = [1, '<select multiple="multiple">', '</select>'];
|
|
1933
1892
|
|
|
1934
|
-
map$1.thead =
|
|
1935
|
-
map$1.tbody =
|
|
1936
|
-
map$1.colgroup =
|
|
1937
|
-
map$1.caption =
|
|
1938
|
-
map$1.tfoot = [1, '<table>', '</table>'];
|
|
1893
|
+
map$1$1.thead =
|
|
1894
|
+
map$1$1.tbody =
|
|
1895
|
+
map$1$1.colgroup =
|
|
1896
|
+
map$1$1.caption =
|
|
1897
|
+
map$1$1.tfoot = [1, '<table>', '</table>'];
|
|
1939
1898
|
|
|
1940
|
-
map$1.polyline =
|
|
1941
|
-
map$1.ellipse =
|
|
1942
|
-
map$1.polygon =
|
|
1943
|
-
map$1.circle =
|
|
1944
|
-
map$1.text =
|
|
1945
|
-
map$1.line =
|
|
1946
|
-
map$1.path =
|
|
1947
|
-
map$1.rect =
|
|
1948
|
-
map$1.g = [1, '<svg xmlns="http://www.w3.org/2000/svg" version="1.1">','</svg>'];
|
|
1899
|
+
map$1$1.polyline =
|
|
1900
|
+
map$1$1.ellipse =
|
|
1901
|
+
map$1$1.polygon =
|
|
1902
|
+
map$1$1.circle =
|
|
1903
|
+
map$1$1.text =
|
|
1904
|
+
map$1$1.line =
|
|
1905
|
+
map$1$1.path =
|
|
1906
|
+
map$1$1.rect =
|
|
1907
|
+
map$1$1.g = [1, '<svg xmlns="http://www.w3.org/2000/svg" version="1.1">','</svg>'];
|
|
1949
1908
|
|
|
1950
1909
|
/**
|
|
1951
1910
|
* Parse `html` and return a DOM Node instance, which could be a TextNode,
|
|
@@ -1958,7 +1917,7 @@
|
|
|
1958
1917
|
* @api private
|
|
1959
1918
|
*/
|
|
1960
1919
|
|
|
1961
|
-
function parse$
|
|
1920
|
+
function parse$3(html, doc) {
|
|
1962
1921
|
if ('string' != typeof html) throw new TypeError('String expected');
|
|
1963
1922
|
|
|
1964
1923
|
// default to the global `document` object
|
|
@@ -1980,7 +1939,7 @@
|
|
|
1980
1939
|
}
|
|
1981
1940
|
|
|
1982
1941
|
// wrap map
|
|
1983
|
-
var wrap = map$1[tag] || map$1._default;
|
|
1942
|
+
var wrap = map$1$1[tag] || map$1$1._default;
|
|
1984
1943
|
var depth = wrap[0];
|
|
1985
1944
|
var prefix = wrap[1];
|
|
1986
1945
|
var suffix = wrap[2];
|
|
@@ -2002,19 +1961,13 @@
|
|
|
2002
1961
|
return fragment;
|
|
2003
1962
|
}
|
|
2004
1963
|
|
|
2005
|
-
function query(selector, el) {
|
|
1964
|
+
function query$1(selector, el) {
|
|
2006
1965
|
el = el || document;
|
|
2007
1966
|
|
|
2008
1967
|
return el.querySelector(selector);
|
|
2009
1968
|
}
|
|
2010
1969
|
|
|
2011
|
-
function
|
|
2012
|
-
el = el || document;
|
|
2013
|
-
|
|
2014
|
-
return el.querySelectorAll(selector);
|
|
2015
|
-
}
|
|
2016
|
-
|
|
2017
|
-
function remove$1(el) {
|
|
1970
|
+
function remove$3(el) {
|
|
2018
1971
|
el.parentNode && el.parentNode.removeChild(el);
|
|
2019
1972
|
}
|
|
2020
1973
|
|
|
@@ -2197,7 +2150,7 @@
|
|
|
2197
2150
|
/**
|
|
2198
2151
|
* Clear utility
|
|
2199
2152
|
*/
|
|
2200
|
-
function index
|
|
2153
|
+
function index(arr, obj) {
|
|
2201
2154
|
if (arr.indexOf) {
|
|
2202
2155
|
return arr.indexOf(obj);
|
|
2203
2156
|
}
|
|
@@ -2212,11 +2165,11 @@
|
|
|
2212
2165
|
return -1;
|
|
2213
2166
|
}
|
|
2214
2167
|
|
|
2215
|
-
var re$
|
|
2168
|
+
var re$1 = /\s+/;
|
|
2216
2169
|
|
|
2217
|
-
var toString$
|
|
2170
|
+
var toString$1 = Object.prototype.toString;
|
|
2218
2171
|
|
|
2219
|
-
function defined
|
|
2172
|
+
function defined(o) {
|
|
2220
2173
|
return typeof o !== 'undefined';
|
|
2221
2174
|
}
|
|
2222
2175
|
|
|
@@ -2228,11 +2181,11 @@
|
|
|
2228
2181
|
* @api public
|
|
2229
2182
|
*/
|
|
2230
2183
|
|
|
2231
|
-
function classes$
|
|
2232
|
-
return new ClassList$
|
|
2184
|
+
function classes$1(el) {
|
|
2185
|
+
return new ClassList$1(el);
|
|
2233
2186
|
}
|
|
2234
2187
|
|
|
2235
|
-
function ClassList$
|
|
2188
|
+
function ClassList$1(el) {
|
|
2236
2189
|
if (!el || !el.nodeType) {
|
|
2237
2190
|
throw new Error('A DOM element reference is required');
|
|
2238
2191
|
}
|
|
@@ -2248,7 +2201,7 @@
|
|
|
2248
2201
|
* @api public
|
|
2249
2202
|
*/
|
|
2250
2203
|
|
|
2251
|
-
ClassList$
|
|
2204
|
+
ClassList$1.prototype.add = function(name) {
|
|
2252
2205
|
|
|
2253
2206
|
// classList
|
|
2254
2207
|
if (this.list) {
|
|
@@ -2258,12 +2211,12 @@
|
|
|
2258
2211
|
|
|
2259
2212
|
// fallback
|
|
2260
2213
|
var arr = this.array();
|
|
2261
|
-
var i = index
|
|
2214
|
+
var i = index(arr, name);
|
|
2262
2215
|
if (!~i) {
|
|
2263
2216
|
arr.push(name);
|
|
2264
2217
|
}
|
|
2265
2218
|
|
|
2266
|
-
if (defined
|
|
2219
|
+
if (defined(this.el.className.baseVal)) {
|
|
2267
2220
|
this.el.className.baseVal = arr.join(' ');
|
|
2268
2221
|
} else {
|
|
2269
2222
|
this.el.className = arr.join(' ');
|
|
@@ -2282,8 +2235,8 @@
|
|
|
2282
2235
|
* @api public
|
|
2283
2236
|
*/
|
|
2284
2237
|
|
|
2285
|
-
ClassList$
|
|
2286
|
-
if ('[object RegExp]' === toString$
|
|
2238
|
+
ClassList$1.prototype.remove = function(name) {
|
|
2239
|
+
if ('[object RegExp]' === toString$1.call(name)) {
|
|
2287
2240
|
return this.removeMatching(name);
|
|
2288
2241
|
}
|
|
2289
2242
|
|
|
@@ -2295,7 +2248,7 @@
|
|
|
2295
2248
|
|
|
2296
2249
|
// fallback
|
|
2297
2250
|
var arr = this.array();
|
|
2298
|
-
var i = index
|
|
2251
|
+
var i = index(arr, name);
|
|
2299
2252
|
if (~i) {
|
|
2300
2253
|
arr.splice(i, 1);
|
|
2301
2254
|
}
|
|
@@ -2311,7 +2264,7 @@
|
|
|
2311
2264
|
* @api private
|
|
2312
2265
|
*/
|
|
2313
2266
|
|
|
2314
|
-
ClassList$
|
|
2267
|
+
ClassList$1.prototype.removeMatching = function(re) {
|
|
2315
2268
|
var arr = this.array();
|
|
2316
2269
|
for (var i = 0; i < arr.length; i++) {
|
|
2317
2270
|
if (re.test(arr[i])) {
|
|
@@ -2333,10 +2286,10 @@
|
|
|
2333
2286
|
* @api public
|
|
2334
2287
|
*/
|
|
2335
2288
|
|
|
2336
|
-
ClassList$
|
|
2289
|
+
ClassList$1.prototype.toggle = function(name, force) {
|
|
2337
2290
|
// classList
|
|
2338
2291
|
if (this.list) {
|
|
2339
|
-
if (defined
|
|
2292
|
+
if (defined(force)) {
|
|
2340
2293
|
if (force !== this.list.toggle(name, force)) {
|
|
2341
2294
|
this.list.toggle(name); // toggle again to correct
|
|
2342
2295
|
}
|
|
@@ -2347,7 +2300,7 @@
|
|
|
2347
2300
|
}
|
|
2348
2301
|
|
|
2349
2302
|
// fallback
|
|
2350
|
-
if (defined
|
|
2303
|
+
if (defined(force)) {
|
|
2351
2304
|
if (!force) {
|
|
2352
2305
|
this.remove(name);
|
|
2353
2306
|
} else {
|
|
@@ -2371,10 +2324,10 @@
|
|
|
2371
2324
|
* @api public
|
|
2372
2325
|
*/
|
|
2373
2326
|
|
|
2374
|
-
ClassList$
|
|
2327
|
+
ClassList$1.prototype.array = function() {
|
|
2375
2328
|
var className = this.el.getAttribute('class') || '';
|
|
2376
2329
|
var str = className.replace(/^\s+|\s+$/g, '');
|
|
2377
|
-
var arr = str.split(re$
|
|
2330
|
+
var arr = str.split(re$1);
|
|
2378
2331
|
if ('' === arr[0]) {
|
|
2379
2332
|
arr.shift();
|
|
2380
2333
|
}
|
|
@@ -2389,12 +2342,12 @@
|
|
|
2389
2342
|
* @api public
|
|
2390
2343
|
*/
|
|
2391
2344
|
|
|
2392
|
-
ClassList$
|
|
2393
|
-
ClassList$
|
|
2345
|
+
ClassList$1.prototype.has =
|
|
2346
|
+
ClassList$1.prototype.contains = function(name) {
|
|
2394
2347
|
return (
|
|
2395
2348
|
this.list ?
|
|
2396
2349
|
this.list.contains(name) :
|
|
2397
|
-
!! ~index
|
|
2350
|
+
!! ~index(this.array(), name)
|
|
2398
2351
|
);
|
|
2399
2352
|
};
|
|
2400
2353
|
|
|
@@ -2418,7 +2371,7 @@
|
|
|
2418
2371
|
* @param {DOMElement} element
|
|
2419
2372
|
* @return {DOMElement} the element (for chaining)
|
|
2420
2373
|
*/
|
|
2421
|
-
function clear$
|
|
2374
|
+
function clear$1(element) {
|
|
2422
2375
|
var child;
|
|
2423
2376
|
|
|
2424
2377
|
while ((child = element.firstChild)) {
|
|
@@ -2494,7 +2447,7 @@
|
|
|
2494
2447
|
*
|
|
2495
2448
|
* @returns {SVGElement}
|
|
2496
2449
|
*/
|
|
2497
|
-
function create$
|
|
2450
|
+
function create$2(name, attrs) {
|
|
2498
2451
|
var element;
|
|
2499
2452
|
|
|
2500
2453
|
if (name.charAt(0) === '<') {
|
|
@@ -2525,7 +2478,7 @@
|
|
|
2525
2478
|
'"': '\''
|
|
2526
2479
|
};
|
|
2527
2480
|
|
|
2528
|
-
function escape(str, pattern) {
|
|
2481
|
+
function escape$1(str, pattern) {
|
|
2529
2482
|
|
|
2530
2483
|
function replaceFn(match, entity) {
|
|
2531
2484
|
return ENTITY_REPLACEMENT[entity] || entity;
|
|
@@ -2542,7 +2495,7 @@
|
|
|
2542
2495
|
// TEXT
|
|
2543
2496
|
case 3:
|
|
2544
2497
|
// replace special XML characters
|
|
2545
|
-
output.push(escape(node.textContent, TEXT_ENTITIES));
|
|
2498
|
+
output.push(escape$1(node.textContent, TEXT_ENTITIES));
|
|
2546
2499
|
break;
|
|
2547
2500
|
|
|
2548
2501
|
// ELEMENT
|
|
@@ -2553,7 +2506,7 @@
|
|
|
2553
2506
|
attrMap = node.attributes;
|
|
2554
2507
|
for (i = 0, len = attrMap.length; i < len; ++i) {
|
|
2555
2508
|
attrNode = attrMap.item(i);
|
|
2556
|
-
output.push(' ', attrNode.name, '="', escape(attrNode.value, ATTR_ENTITIES), '"');
|
|
2509
|
+
output.push(' ', attrNode.name, '="', escape$1(attrNode.value, ATTR_ENTITIES), '"');
|
|
2557
2510
|
}
|
|
2558
2511
|
}
|
|
2559
2512
|
|
|
@@ -2571,7 +2524,7 @@
|
|
|
2571
2524
|
|
|
2572
2525
|
// COMMENT
|
|
2573
2526
|
case 8:
|
|
2574
|
-
output.push('<!--', escape(node.nodeValue, TEXT_ENTITIES), '-->');
|
|
2527
|
+
output.push('<!--', escape$1(node.nodeValue, TEXT_ENTITIES), '-->');
|
|
2575
2528
|
break;
|
|
2576
2529
|
|
|
2577
2530
|
// CDATA
|
|
@@ -2597,7 +2550,7 @@
|
|
|
2597
2550
|
var parsed = parse$2(svg);
|
|
2598
2551
|
|
|
2599
2552
|
// clear element contents
|
|
2600
|
-
clear$
|
|
2553
|
+
clear$1(element);
|
|
2601
2554
|
|
|
2602
2555
|
if (!svg) {
|
|
2603
2556
|
return;
|
|
@@ -2608,7 +2561,7 @@
|
|
|
2608
2561
|
parsed = parsed.documentElement;
|
|
2609
2562
|
}
|
|
2610
2563
|
|
|
2611
|
-
var nodes = slice(parsed.childNodes);
|
|
2564
|
+
var nodes = slice$1(parsed.childNodes);
|
|
2612
2565
|
|
|
2613
2566
|
// import + append each node
|
|
2614
2567
|
for (var i = 0; i < nodes.length; i++) {
|
|
@@ -2650,7 +2603,7 @@
|
|
|
2650
2603
|
}
|
|
2651
2604
|
|
|
2652
2605
|
|
|
2653
|
-
function slice(arr) {
|
|
2606
|
+
function slice$1(arr) {
|
|
2654
2607
|
return Array.prototype.slice.call(arr);
|
|
2655
2608
|
}
|
|
2656
2609
|
|
|
@@ -2661,7 +2614,7 @@
|
|
|
2661
2614
|
* @param {number} angle
|
|
2662
2615
|
* @param {number} amount
|
|
2663
2616
|
*/
|
|
2664
|
-
function transform
|
|
2617
|
+
function transform(gfx, x, y, angle, amount) {
|
|
2665
2618
|
var translate = createTransform();
|
|
2666
2619
|
translate.setTranslate(x, y);
|
|
2667
2620
|
|
|
@@ -2671,7 +2624,7 @@
|
|
|
2671
2624
|
var scale = createTransform();
|
|
2672
2625
|
scale.setScale(amount || 1, amount || 1);
|
|
2673
2626
|
|
|
2674
|
-
transform(gfx, [ translate, rotate, scale ]);
|
|
2627
|
+
transform$1(gfx, [ translate, rotate, scale ]);
|
|
2675
2628
|
}
|
|
2676
2629
|
|
|
2677
2630
|
|
|
@@ -2680,11 +2633,11 @@
|
|
|
2680
2633
|
* @param {number} x
|
|
2681
2634
|
* @param {number} y
|
|
2682
2635
|
*/
|
|
2683
|
-
function translate(gfx, x, y) {
|
|
2636
|
+
function translate$1(gfx, x, y) {
|
|
2684
2637
|
var translate = createTransform();
|
|
2685
2638
|
translate.setTranslate(x, y);
|
|
2686
2639
|
|
|
2687
|
-
transform(gfx, translate);
|
|
2640
|
+
transform$1(gfx, translate);
|
|
2688
2641
|
}
|
|
2689
2642
|
|
|
2690
2643
|
|
|
@@ -2696,14 +2649,14 @@
|
|
|
2696
2649
|
var rotate = createTransform();
|
|
2697
2650
|
rotate.setRotate(angle, 0, 0);
|
|
2698
2651
|
|
|
2699
|
-
transform(gfx, rotate);
|
|
2652
|
+
transform$1(gfx, rotate);
|
|
2700
2653
|
}
|
|
2701
2654
|
|
|
2702
|
-
function createCommonjsModule
|
|
2655
|
+
function createCommonjsModule(fn, module) {
|
|
2703
2656
|
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
2704
2657
|
}
|
|
2705
2658
|
|
|
2706
|
-
var hat_1 = createCommonjsModule
|
|
2659
|
+
var hat_1 = createCommonjsModule(function (module) {
|
|
2707
2660
|
var hat = module.exports = function (bits, base) {
|
|
2708
2661
|
if (!base) base = 16;
|
|
2709
2662
|
if (bits === undefined) bits = 128;
|
|
@@ -2906,7 +2859,7 @@
|
|
|
2906
2859
|
attrs.strokeDasharray = [ 10000, 1 ];
|
|
2907
2860
|
}
|
|
2908
2861
|
|
|
2909
|
-
var marker = create$
|
|
2862
|
+
var marker = create$2('marker');
|
|
2910
2863
|
|
|
2911
2864
|
attr$2(options.element, attrs);
|
|
2912
2865
|
|
|
@@ -2922,10 +2875,10 @@
|
|
|
2922
2875
|
orient: 'auto'
|
|
2923
2876
|
});
|
|
2924
2877
|
|
|
2925
|
-
var defs = query('defs', canvas._svg);
|
|
2878
|
+
var defs = query$1('defs', canvas._svg);
|
|
2926
2879
|
|
|
2927
2880
|
if (!defs) {
|
|
2928
|
-
defs = create$
|
|
2881
|
+
defs = create$2('defs');
|
|
2929
2882
|
|
|
2930
2883
|
append$1(canvas._svg, defs);
|
|
2931
2884
|
}
|
|
@@ -2954,7 +2907,7 @@
|
|
|
2954
2907
|
function createMarker(id, type, fill, stroke) {
|
|
2955
2908
|
|
|
2956
2909
|
if (type === 'sequenceflow-end') {
|
|
2957
|
-
var sequenceflowEnd = create$
|
|
2910
|
+
var sequenceflowEnd = create$2('path');
|
|
2958
2911
|
attr$2(sequenceflowEnd, { d: 'M 1 5 L 11 10 L 1 15 Z' });
|
|
2959
2912
|
|
|
2960
2913
|
addMarker(id, {
|
|
@@ -2969,7 +2922,7 @@
|
|
|
2969
2922
|
}
|
|
2970
2923
|
|
|
2971
2924
|
if (type === 'messageflow-start') {
|
|
2972
|
-
var messageflowStart = create$
|
|
2925
|
+
var messageflowStart = create$2('circle');
|
|
2973
2926
|
attr$2(messageflowStart, { cx: 6, cy: 6, r: 3.5 });
|
|
2974
2927
|
|
|
2975
2928
|
addMarker(id, {
|
|
@@ -2983,7 +2936,7 @@
|
|
|
2983
2936
|
}
|
|
2984
2937
|
|
|
2985
2938
|
if (type === 'messageflow-end') {
|
|
2986
|
-
var messageflowEnd = create$
|
|
2939
|
+
var messageflowEnd = create$2('path');
|
|
2987
2940
|
attr$2(messageflowEnd, { d: 'm 1 5 l 0 -3 l 7 3 l -7 3 z' });
|
|
2988
2941
|
|
|
2989
2942
|
addMarker(id, {
|
|
@@ -2998,7 +2951,7 @@
|
|
|
2998
2951
|
}
|
|
2999
2952
|
|
|
3000
2953
|
if (type === 'association-start') {
|
|
3001
|
-
var associationStart = create$
|
|
2954
|
+
var associationStart = create$2('path');
|
|
3002
2955
|
attr$2(associationStart, { d: 'M 11 5 L 1 10 L 11 15' });
|
|
3003
2956
|
|
|
3004
2957
|
addMarker(id, {
|
|
@@ -3014,7 +2967,7 @@
|
|
|
3014
2967
|
}
|
|
3015
2968
|
|
|
3016
2969
|
if (type === 'association-end') {
|
|
3017
|
-
var associationEnd = create$
|
|
2970
|
+
var associationEnd = create$2('path');
|
|
3018
2971
|
attr$2(associationEnd, { d: 'M 1 5 L 11 10 L 1 15' });
|
|
3019
2972
|
|
|
3020
2973
|
addMarker(id, {
|
|
@@ -3030,7 +2983,7 @@
|
|
|
3030
2983
|
}
|
|
3031
2984
|
|
|
3032
2985
|
if (type === 'conditional-flow-marker') {
|
|
3033
|
-
var conditionalflowMarker = create$
|
|
2986
|
+
var conditionalflowMarker = create$2('path');
|
|
3034
2987
|
attr$2(conditionalflowMarker, { d: 'M 0 10 L 8 6 L 16 10 L 8 14 Z' });
|
|
3035
2988
|
|
|
3036
2989
|
addMarker(id, {
|
|
@@ -3045,7 +2998,7 @@
|
|
|
3045
2998
|
}
|
|
3046
2999
|
|
|
3047
3000
|
if (type === 'conditional-default-flow-marker') {
|
|
3048
|
-
var conditionaldefaultflowMarker = create$
|
|
3001
|
+
var conditionaldefaultflowMarker = create$2('path');
|
|
3049
3002
|
attr$2(conditionaldefaultflowMarker, { d: 'M 6 4 L 10 16' });
|
|
3050
3003
|
|
|
3051
3004
|
addMarker(id, {
|
|
@@ -3081,7 +3034,7 @@
|
|
|
3081
3034
|
var cx = width / 2,
|
|
3082
3035
|
cy = height / 2;
|
|
3083
3036
|
|
|
3084
|
-
var circle = create$
|
|
3037
|
+
var circle = create$2('circle');
|
|
3085
3038
|
attr$2(circle, {
|
|
3086
3039
|
cx: cx,
|
|
3087
3040
|
cy: cy,
|
|
@@ -3109,7 +3062,7 @@
|
|
|
3109
3062
|
fill: 'white'
|
|
3110
3063
|
});
|
|
3111
3064
|
|
|
3112
|
-
var rect = create$
|
|
3065
|
+
var rect = create$2('rect');
|
|
3113
3066
|
attr$2(rect, {
|
|
3114
3067
|
x: offset,
|
|
3115
3068
|
y: offset,
|
|
@@ -3142,7 +3095,7 @@
|
|
|
3142
3095
|
fill: 'white'
|
|
3143
3096
|
});
|
|
3144
3097
|
|
|
3145
|
-
var polygon = create$
|
|
3098
|
+
var polygon = create$2('polygon');
|
|
3146
3099
|
attr$2(polygon, {
|
|
3147
3100
|
points: pointsString
|
|
3148
3101
|
});
|
|
@@ -3174,7 +3127,7 @@
|
|
|
3174
3127
|
stroke: black
|
|
3175
3128
|
});
|
|
3176
3129
|
|
|
3177
|
-
var path = create$
|
|
3130
|
+
var path = create$2('path');
|
|
3178
3131
|
attr$2(path, { d: d });
|
|
3179
3132
|
attr$2(path, attrs);
|
|
3180
3133
|
|
|
@@ -3264,7 +3217,7 @@
|
|
|
3264
3217
|
|
|
3265
3218
|
var text = textRenderer.createText(label || '', options);
|
|
3266
3219
|
|
|
3267
|
-
classes$
|
|
3220
|
+
classes$1(text).add('djs-label');
|
|
3268
3221
|
|
|
3269
3222
|
append$1(parentGfx, text);
|
|
3270
3223
|
|
|
@@ -3320,7 +3273,7 @@
|
|
|
3320
3273
|
|
|
3321
3274
|
var top = -1 * element.height;
|
|
3322
3275
|
|
|
3323
|
-
transform
|
|
3276
|
+
transform(textBox, 0, -top, 270);
|
|
3324
3277
|
}
|
|
3325
3278
|
|
|
3326
3279
|
function createPathFromConnection(connection) {
|
|
@@ -4299,7 +4252,7 @@
|
|
|
4299
4252
|
var translateX = midPoint.x - labelBounds.width / 2,
|
|
4300
4253
|
translateY = midPoint.y + messageBounds.height / 2 + ELEMENT_LABEL_DISTANCE;
|
|
4301
4254
|
|
|
4302
|
-
transform
|
|
4255
|
+
transform(label, translateX, translateY, 0);
|
|
4303
4256
|
|
|
4304
4257
|
}
|
|
4305
4258
|
|
|
@@ -4488,7 +4441,7 @@
|
|
|
4488
4441
|
|
|
4489
4442
|
// Process marker is placed in the middle of the box
|
|
4490
4443
|
// therefore fixed values can be used here
|
|
4491
|
-
translate(markerRect, element.width / 2 - 7.5, element.height - 20);
|
|
4444
|
+
translate$1(markerRect, element.width / 2 - 7.5, element.height - 20);
|
|
4492
4445
|
|
|
4493
4446
|
var markerPath = pathMap.getScaledPath('MARKER_SUB_PROCESS', {
|
|
4494
4447
|
xScaleFactor: 1.5,
|
|
@@ -4622,7 +4575,7 @@
|
|
|
4622
4575
|
};
|
|
4623
4576
|
}
|
|
4624
4577
|
|
|
4625
|
-
forEach(taskMarkers, function(marker) {
|
|
4578
|
+
forEach$2(taskMarkers, function(marker) {
|
|
4626
4579
|
renderer(marker)(parentGfx, element, position);
|
|
4627
4580
|
});
|
|
4628
4581
|
|
|
@@ -4674,65 +4627,673 @@
|
|
|
4674
4627
|
}
|
|
4675
4628
|
|
|
4676
4629
|
|
|
4677
|
-
// extension API, use at your own risk
|
|
4678
|
-
this._drawPath = drawPath;
|
|
4630
|
+
// extension API, use at your own risk
|
|
4631
|
+
this._drawPath = drawPath;
|
|
4632
|
+
|
|
4633
|
+
this._renderer = renderer;
|
|
4634
|
+
}
|
|
4635
|
+
|
|
4636
|
+
|
|
4637
|
+
e(BpmnRenderer, BaseRenderer);
|
|
4638
|
+
|
|
4639
|
+
BpmnRenderer.$inject = [
|
|
4640
|
+
'config.bpmnRenderer',
|
|
4641
|
+
'eventBus',
|
|
4642
|
+
'styles',
|
|
4643
|
+
'pathMap',
|
|
4644
|
+
'canvas',
|
|
4645
|
+
'textRenderer'
|
|
4646
|
+
];
|
|
4647
|
+
|
|
4648
|
+
|
|
4649
|
+
BpmnRenderer.prototype.canRender = function(element) {
|
|
4650
|
+
return is$1(element, 'bpmn:BaseElement');
|
|
4651
|
+
};
|
|
4652
|
+
|
|
4653
|
+
BpmnRenderer.prototype.drawShape = function(parentGfx, element) {
|
|
4654
|
+
var type = element.type;
|
|
4655
|
+
var h = this._renderer(type);
|
|
4656
|
+
|
|
4657
|
+
/* jshint -W040 */
|
|
4658
|
+
return h(parentGfx, element);
|
|
4659
|
+
};
|
|
4660
|
+
|
|
4661
|
+
BpmnRenderer.prototype.drawConnection = function(parentGfx, element) {
|
|
4662
|
+
var type = element.type;
|
|
4663
|
+
var h = this._renderer(type);
|
|
4664
|
+
|
|
4665
|
+
/* jshint -W040 */
|
|
4666
|
+
return h(parentGfx, element);
|
|
4667
|
+
};
|
|
4668
|
+
|
|
4669
|
+
BpmnRenderer.prototype.getShapePath = function(element) {
|
|
4670
|
+
|
|
4671
|
+
if (is$1(element, 'bpmn:Event')) {
|
|
4672
|
+
return getCirclePath(element);
|
|
4673
|
+
}
|
|
4674
|
+
|
|
4675
|
+
if (is$1(element, 'bpmn:Activity')) {
|
|
4676
|
+
return getRoundRectPath(element, TASK_BORDER_RADIUS);
|
|
4677
|
+
}
|
|
4678
|
+
|
|
4679
|
+
if (is$1(element, 'bpmn:Gateway')) {
|
|
4680
|
+
return getDiamondPath(element);
|
|
4681
|
+
}
|
|
4682
|
+
|
|
4683
|
+
return getRectPath(element);
|
|
4684
|
+
};
|
|
4685
|
+
|
|
4686
|
+
/**
|
|
4687
|
+
* Flatten array, one level deep.
|
|
4688
|
+
*
|
|
4689
|
+
* @param {Array<?>} arr
|
|
4690
|
+
*
|
|
4691
|
+
* @return {Array<?>}
|
|
4692
|
+
*/
|
|
4693
|
+
|
|
4694
|
+
var nativeToString = Object.prototype.toString;
|
|
4695
|
+
var nativeHasOwnProperty = Object.prototype.hasOwnProperty;
|
|
4696
|
+
function isUndefined$1(obj) {
|
|
4697
|
+
return obj === undefined;
|
|
4698
|
+
}
|
|
4699
|
+
function isArray$1(obj) {
|
|
4700
|
+
return nativeToString.call(obj) === '[object Array]';
|
|
4701
|
+
}
|
|
4702
|
+
/**
|
|
4703
|
+
* Return true, if target owns a property with the given key.
|
|
4704
|
+
*
|
|
4705
|
+
* @param {Object} target
|
|
4706
|
+
* @param {String} key
|
|
4707
|
+
*
|
|
4708
|
+
* @return {Boolean}
|
|
4709
|
+
*/
|
|
4710
|
+
|
|
4711
|
+
function has(target, key) {
|
|
4712
|
+
return nativeHasOwnProperty.call(target, key);
|
|
4713
|
+
}
|
|
4714
|
+
/**
|
|
4715
|
+
* Iterate over collection; returning something
|
|
4716
|
+
* (non-undefined) will stop iteration.
|
|
4717
|
+
*
|
|
4718
|
+
* @param {Array|Object} collection
|
|
4719
|
+
* @param {Function} iterator
|
|
4720
|
+
*
|
|
4721
|
+
* @return {Object} return result that stopped the iteration
|
|
4722
|
+
*/
|
|
4723
|
+
|
|
4724
|
+
function forEach(collection, iterator) {
|
|
4725
|
+
var val, result;
|
|
4726
|
+
|
|
4727
|
+
if (isUndefined$1(collection)) {
|
|
4728
|
+
return;
|
|
4729
|
+
}
|
|
4730
|
+
|
|
4731
|
+
var convertKey = isArray$1(collection) ? toNum : identity;
|
|
4732
|
+
|
|
4733
|
+
for (var key in collection) {
|
|
4734
|
+
if (has(collection, key)) {
|
|
4735
|
+
val = collection[key];
|
|
4736
|
+
result = iterator(val, convertKey(key));
|
|
4737
|
+
|
|
4738
|
+
if (result === false) {
|
|
4739
|
+
return val;
|
|
4740
|
+
}
|
|
4741
|
+
}
|
|
4742
|
+
}
|
|
4743
|
+
}
|
|
4744
|
+
|
|
4745
|
+
function identity(arg) {
|
|
4746
|
+
return arg;
|
|
4747
|
+
}
|
|
4748
|
+
|
|
4749
|
+
function toNum(arg) {
|
|
4750
|
+
return Number(arg);
|
|
4751
|
+
}
|
|
4752
|
+
|
|
4753
|
+
/**
|
|
4754
|
+
* Assigns style attributes in a style-src compliant way.
|
|
4755
|
+
*
|
|
4756
|
+
* @param {Element} element
|
|
4757
|
+
* @param {...Object} styleSources
|
|
4758
|
+
*
|
|
4759
|
+
* @return {Element} the element
|
|
4760
|
+
*/
|
|
4761
|
+
function assign$1(element) {
|
|
4762
|
+
var target = element.style;
|
|
4763
|
+
|
|
4764
|
+
for (var _len = arguments.length, styleSources = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
4765
|
+
styleSources[_key - 1] = arguments[_key];
|
|
4766
|
+
}
|
|
4767
|
+
|
|
4768
|
+
forEach(styleSources, function (style) {
|
|
4769
|
+
if (!style) {
|
|
4770
|
+
return;
|
|
4771
|
+
}
|
|
4772
|
+
|
|
4773
|
+
forEach(style, function (value, key) {
|
|
4774
|
+
target[key] = value;
|
|
4775
|
+
});
|
|
4776
|
+
});
|
|
4777
|
+
|
|
4778
|
+
return element;
|
|
4779
|
+
}
|
|
4780
|
+
|
|
4781
|
+
/**
|
|
4782
|
+
* Set attribute `name` to `val`, or get attr `name`.
|
|
4783
|
+
*
|
|
4784
|
+
* @param {Element} el
|
|
4785
|
+
* @param {String} name
|
|
4786
|
+
* @param {String} [val]
|
|
4787
|
+
* @api public
|
|
4788
|
+
*/
|
|
4789
|
+
function attr$1(el, name, val) {
|
|
4790
|
+
// get
|
|
4791
|
+
if (arguments.length == 2) {
|
|
4792
|
+
return el.getAttribute(name);
|
|
4793
|
+
}
|
|
4794
|
+
|
|
4795
|
+
// remove
|
|
4796
|
+
if (val === null) {
|
|
4797
|
+
return el.removeAttribute(name);
|
|
4798
|
+
}
|
|
4799
|
+
|
|
4800
|
+
// set
|
|
4801
|
+
el.setAttribute(name, val);
|
|
4802
|
+
|
|
4803
|
+
return el;
|
|
4804
|
+
}
|
|
4805
|
+
|
|
4806
|
+
var indexOf = [].indexOf;
|
|
4807
|
+
|
|
4808
|
+
var indexof = function(arr, obj){
|
|
4809
|
+
if (indexOf) return arr.indexOf(obj);
|
|
4810
|
+
for (var i = 0; i < arr.length; ++i) {
|
|
4811
|
+
if (arr[i] === obj) return i;
|
|
4812
|
+
}
|
|
4813
|
+
return -1;
|
|
4814
|
+
};
|
|
4815
|
+
|
|
4816
|
+
/**
|
|
4817
|
+
* Taken from https://github.com/component/classes
|
|
4818
|
+
*
|
|
4819
|
+
* Without the component bits.
|
|
4820
|
+
*/
|
|
4821
|
+
|
|
4822
|
+
/**
|
|
4823
|
+
* Whitespace regexp.
|
|
4824
|
+
*/
|
|
4825
|
+
|
|
4826
|
+
var re = /\s+/;
|
|
4827
|
+
|
|
4828
|
+
/**
|
|
4829
|
+
* toString reference.
|
|
4830
|
+
*/
|
|
4831
|
+
|
|
4832
|
+
var toString = Object.prototype.toString;
|
|
4833
|
+
|
|
4834
|
+
/**
|
|
4835
|
+
* Wrap `el` in a `ClassList`.
|
|
4836
|
+
*
|
|
4837
|
+
* @param {Element} el
|
|
4838
|
+
* @return {ClassList}
|
|
4839
|
+
* @api public
|
|
4840
|
+
*/
|
|
4841
|
+
|
|
4842
|
+
function classes(el) {
|
|
4843
|
+
return new ClassList(el);
|
|
4844
|
+
}
|
|
4845
|
+
|
|
4846
|
+
/**
|
|
4847
|
+
* Initialize a new ClassList for `el`.
|
|
4848
|
+
*
|
|
4849
|
+
* @param {Element} el
|
|
4850
|
+
* @api private
|
|
4851
|
+
*/
|
|
4852
|
+
|
|
4853
|
+
function ClassList(el) {
|
|
4854
|
+
if (!el || !el.nodeType) {
|
|
4855
|
+
throw new Error('A DOM element reference is required');
|
|
4856
|
+
}
|
|
4857
|
+
this.el = el;
|
|
4858
|
+
this.list = el.classList;
|
|
4859
|
+
}
|
|
4860
|
+
|
|
4861
|
+
/**
|
|
4862
|
+
* Add class `name` if not already present.
|
|
4863
|
+
*
|
|
4864
|
+
* @param {String} name
|
|
4865
|
+
* @return {ClassList}
|
|
4866
|
+
* @api public
|
|
4867
|
+
*/
|
|
4868
|
+
|
|
4869
|
+
ClassList.prototype.add = function (name) {
|
|
4870
|
+
// classList
|
|
4871
|
+
if (this.list) {
|
|
4872
|
+
this.list.add(name);
|
|
4873
|
+
return this;
|
|
4874
|
+
}
|
|
4875
|
+
|
|
4876
|
+
// fallback
|
|
4877
|
+
var arr = this.array();
|
|
4878
|
+
var i = indexof(arr, name);
|
|
4879
|
+
if (!~i) arr.push(name);
|
|
4880
|
+
this.el.className = arr.join(' ');
|
|
4881
|
+
return this;
|
|
4882
|
+
};
|
|
4883
|
+
|
|
4884
|
+
/**
|
|
4885
|
+
* Remove class `name` when present, or
|
|
4886
|
+
* pass a regular expression to remove
|
|
4887
|
+
* any which match.
|
|
4888
|
+
*
|
|
4889
|
+
* @param {String|RegExp} name
|
|
4890
|
+
* @return {ClassList}
|
|
4891
|
+
* @api public
|
|
4892
|
+
*/
|
|
4893
|
+
|
|
4894
|
+
ClassList.prototype.remove = function (name) {
|
|
4895
|
+
if ('[object RegExp]' == toString.call(name)) {
|
|
4896
|
+
return this.removeMatching(name);
|
|
4897
|
+
}
|
|
4898
|
+
|
|
4899
|
+
// classList
|
|
4900
|
+
if (this.list) {
|
|
4901
|
+
this.list.remove(name);
|
|
4902
|
+
return this;
|
|
4903
|
+
}
|
|
4904
|
+
|
|
4905
|
+
// fallback
|
|
4906
|
+
var arr = this.array();
|
|
4907
|
+
var i = indexof(arr, name);
|
|
4908
|
+
if (~i) arr.splice(i, 1);
|
|
4909
|
+
this.el.className = arr.join(' ');
|
|
4910
|
+
return this;
|
|
4911
|
+
};
|
|
4912
|
+
|
|
4913
|
+
/**
|
|
4914
|
+
* Remove all classes matching `re`.
|
|
4915
|
+
*
|
|
4916
|
+
* @param {RegExp} re
|
|
4917
|
+
* @return {ClassList}
|
|
4918
|
+
* @api private
|
|
4919
|
+
*/
|
|
4920
|
+
|
|
4921
|
+
ClassList.prototype.removeMatching = function (re) {
|
|
4922
|
+
var arr = this.array();
|
|
4923
|
+
for (var i = 0; i < arr.length; i++) {
|
|
4924
|
+
if (re.test(arr[i])) {
|
|
4925
|
+
this.remove(arr[i]);
|
|
4926
|
+
}
|
|
4927
|
+
}
|
|
4928
|
+
return this;
|
|
4929
|
+
};
|
|
4930
|
+
|
|
4931
|
+
/**
|
|
4932
|
+
* Toggle class `name`, can force state via `force`.
|
|
4933
|
+
*
|
|
4934
|
+
* For browsers that support classList, but do not support `force` yet,
|
|
4935
|
+
* the mistake will be detected and corrected.
|
|
4936
|
+
*
|
|
4937
|
+
* @param {String} name
|
|
4938
|
+
* @param {Boolean} force
|
|
4939
|
+
* @return {ClassList}
|
|
4940
|
+
* @api public
|
|
4941
|
+
*/
|
|
4942
|
+
|
|
4943
|
+
ClassList.prototype.toggle = function (name, force) {
|
|
4944
|
+
// classList
|
|
4945
|
+
if (this.list) {
|
|
4946
|
+
if ('undefined' !== typeof force) {
|
|
4947
|
+
if (force !== this.list.toggle(name, force)) {
|
|
4948
|
+
this.list.toggle(name); // toggle again to correct
|
|
4949
|
+
}
|
|
4950
|
+
} else {
|
|
4951
|
+
this.list.toggle(name);
|
|
4952
|
+
}
|
|
4953
|
+
return this;
|
|
4954
|
+
}
|
|
4955
|
+
|
|
4956
|
+
// fallback
|
|
4957
|
+
if ('undefined' !== typeof force) {
|
|
4958
|
+
if (!force) {
|
|
4959
|
+
this.remove(name);
|
|
4960
|
+
} else {
|
|
4961
|
+
this.add(name);
|
|
4962
|
+
}
|
|
4963
|
+
} else {
|
|
4964
|
+
if (this.has(name)) {
|
|
4965
|
+
this.remove(name);
|
|
4966
|
+
} else {
|
|
4967
|
+
this.add(name);
|
|
4968
|
+
}
|
|
4969
|
+
}
|
|
4970
|
+
|
|
4971
|
+
return this;
|
|
4972
|
+
};
|
|
4973
|
+
|
|
4974
|
+
/**
|
|
4975
|
+
* Return an array of classes.
|
|
4976
|
+
*
|
|
4977
|
+
* @return {Array}
|
|
4978
|
+
* @api public
|
|
4979
|
+
*/
|
|
4980
|
+
|
|
4981
|
+
ClassList.prototype.array = function () {
|
|
4982
|
+
var className = this.el.getAttribute('class') || '';
|
|
4983
|
+
var str = className.replace(/^\s+|\s+$/g, '');
|
|
4984
|
+
var arr = str.split(re);
|
|
4985
|
+
if ('' === arr[0]) arr.shift();
|
|
4986
|
+
return arr;
|
|
4987
|
+
};
|
|
4988
|
+
|
|
4989
|
+
/**
|
|
4990
|
+
* Check if class `name` is present.
|
|
4991
|
+
*
|
|
4992
|
+
* @param {String} name
|
|
4993
|
+
* @return {ClassList}
|
|
4994
|
+
* @api public
|
|
4995
|
+
*/
|
|
4996
|
+
|
|
4997
|
+
ClassList.prototype.has = ClassList.prototype.contains = function (name) {
|
|
4998
|
+
return this.list ? this.list.contains(name) : !!~indexof(this.array(), name);
|
|
4999
|
+
};
|
|
5000
|
+
|
|
5001
|
+
/**
|
|
5002
|
+
* Remove all children from the given element.
|
|
5003
|
+
*/
|
|
5004
|
+
function clear(el) {
|
|
5005
|
+
|
|
5006
|
+
var c;
|
|
5007
|
+
|
|
5008
|
+
while (el.childNodes.length) {
|
|
5009
|
+
c = el.childNodes[0];
|
|
5010
|
+
el.removeChild(c);
|
|
5011
|
+
}
|
|
5012
|
+
|
|
5013
|
+
return el;
|
|
5014
|
+
}
|
|
5015
|
+
|
|
5016
|
+
var proto = typeof Element !== 'undefined' ? Element.prototype : {};
|
|
5017
|
+
var vendor = proto.matches
|
|
5018
|
+
|| proto.matchesSelector
|
|
5019
|
+
|| proto.webkitMatchesSelector
|
|
5020
|
+
|| proto.mozMatchesSelector
|
|
5021
|
+
|| proto.msMatchesSelector
|
|
5022
|
+
|| proto.oMatchesSelector;
|
|
5023
|
+
|
|
5024
|
+
var matchesSelector = match;
|
|
5025
|
+
|
|
5026
|
+
/**
|
|
5027
|
+
* Match `el` to `selector`.
|
|
5028
|
+
*
|
|
5029
|
+
* @param {Element} el
|
|
5030
|
+
* @param {String} selector
|
|
5031
|
+
* @return {Boolean}
|
|
5032
|
+
* @api public
|
|
5033
|
+
*/
|
|
5034
|
+
|
|
5035
|
+
function match(el, selector) {
|
|
5036
|
+
if (!el || el.nodeType !== 1) return false;
|
|
5037
|
+
if (vendor) return vendor.call(el, selector);
|
|
5038
|
+
var nodes = el.parentNode.querySelectorAll(selector);
|
|
5039
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
5040
|
+
if (nodes[i] == el) return true;
|
|
5041
|
+
}
|
|
5042
|
+
return false;
|
|
5043
|
+
}
|
|
5044
|
+
|
|
5045
|
+
/**
|
|
5046
|
+
* Closest
|
|
5047
|
+
*
|
|
5048
|
+
* @param {Element} el
|
|
5049
|
+
* @param {String} selector
|
|
5050
|
+
* @param {Boolean} checkYourSelf (optional)
|
|
5051
|
+
*/
|
|
5052
|
+
function closest (element, selector, checkYourSelf) {
|
|
5053
|
+
var currentElem = checkYourSelf ? element : element.parentNode;
|
|
5054
|
+
|
|
5055
|
+
while (currentElem && currentElem.nodeType !== document.DOCUMENT_NODE && currentElem.nodeType !== document.DOCUMENT_FRAGMENT_NODE) {
|
|
5056
|
+
|
|
5057
|
+
if (matchesSelector(currentElem, selector)) {
|
|
5058
|
+
return currentElem;
|
|
5059
|
+
}
|
|
5060
|
+
|
|
5061
|
+
currentElem = currentElem.parentNode;
|
|
5062
|
+
}
|
|
5063
|
+
|
|
5064
|
+
return matchesSelector(currentElem, selector) ? currentElem : null;
|
|
5065
|
+
}
|
|
5066
|
+
|
|
5067
|
+
var bind$1 = window.addEventListener ? 'addEventListener' : 'attachEvent',
|
|
5068
|
+
unbind = window.removeEventListener ? 'removeEventListener' : 'detachEvent',
|
|
5069
|
+
prefix$7 = bind$1 !== 'addEventListener' ? 'on' : '';
|
|
5070
|
+
|
|
5071
|
+
/**
|
|
5072
|
+
* Bind `el` event `type` to `fn`.
|
|
5073
|
+
*
|
|
5074
|
+
* @param {Element} el
|
|
5075
|
+
* @param {String} type
|
|
5076
|
+
* @param {Function} fn
|
|
5077
|
+
* @param {Boolean} capture
|
|
5078
|
+
* @return {Function}
|
|
5079
|
+
* @api public
|
|
5080
|
+
*/
|
|
5081
|
+
|
|
5082
|
+
var bind_1 = function(el, type, fn, capture){
|
|
5083
|
+
el[bind$1](prefix$7 + type, fn, capture || false);
|
|
5084
|
+
return fn;
|
|
5085
|
+
};
|
|
5086
|
+
|
|
5087
|
+
/**
|
|
5088
|
+
* Unbind `el` event `type`'s callback `fn`.
|
|
5089
|
+
*
|
|
5090
|
+
* @param {Element} el
|
|
5091
|
+
* @param {String} type
|
|
5092
|
+
* @param {Function} fn
|
|
5093
|
+
* @param {Boolean} capture
|
|
5094
|
+
* @return {Function}
|
|
5095
|
+
* @api public
|
|
5096
|
+
*/
|
|
5097
|
+
|
|
5098
|
+
var unbind_1 = function(el, type, fn, capture){
|
|
5099
|
+
el[unbind](prefix$7 + type, fn, capture || false);
|
|
5100
|
+
return fn;
|
|
5101
|
+
};
|
|
5102
|
+
|
|
5103
|
+
var componentEvent = {
|
|
5104
|
+
bind: bind_1,
|
|
5105
|
+
unbind: unbind_1
|
|
5106
|
+
};
|
|
5107
|
+
|
|
5108
|
+
/**
|
|
5109
|
+
* Module dependencies.
|
|
5110
|
+
*/
|
|
5111
|
+
|
|
5112
|
+
/**
|
|
5113
|
+
* Delegate event `type` to `selector`
|
|
5114
|
+
* and invoke `fn(e)`. A callback function
|
|
5115
|
+
* is returned which may be passed to `.unbind()`.
|
|
5116
|
+
*
|
|
5117
|
+
* @param {Element} el
|
|
5118
|
+
* @param {String} selector
|
|
5119
|
+
* @param {String} type
|
|
5120
|
+
* @param {Function} fn
|
|
5121
|
+
* @param {Boolean} capture
|
|
5122
|
+
* @return {Function}
|
|
5123
|
+
* @api public
|
|
5124
|
+
*/
|
|
5125
|
+
|
|
5126
|
+
// Some events don't bubble, so we want to bind to the capture phase instead
|
|
5127
|
+
// when delegating.
|
|
5128
|
+
var forceCaptureEvents = ['focus', 'blur'];
|
|
5129
|
+
|
|
5130
|
+
function bind$2(el, selector, type, fn, capture) {
|
|
5131
|
+
if (forceCaptureEvents.indexOf(type) !== -1) {
|
|
5132
|
+
capture = true;
|
|
5133
|
+
}
|
|
5134
|
+
|
|
5135
|
+
return componentEvent.bind(el, type, function (e) {
|
|
5136
|
+
var target = e.target || e.srcElement;
|
|
5137
|
+
e.delegateTarget = closest(target, selector, true);
|
|
5138
|
+
if (e.delegateTarget) {
|
|
5139
|
+
fn.call(el, e);
|
|
5140
|
+
}
|
|
5141
|
+
}, capture);
|
|
5142
|
+
}
|
|
5143
|
+
|
|
5144
|
+
/**
|
|
5145
|
+
* Unbind event `type`'s callback `fn`.
|
|
5146
|
+
*
|
|
5147
|
+
* @param {Element} el
|
|
5148
|
+
* @param {String} type
|
|
5149
|
+
* @param {Function} fn
|
|
5150
|
+
* @param {Boolean} capture
|
|
5151
|
+
* @api public
|
|
5152
|
+
*/
|
|
5153
|
+
function unbind$1(el, type, fn, capture) {
|
|
5154
|
+
if (forceCaptureEvents.indexOf(type) !== -1) {
|
|
5155
|
+
capture = true;
|
|
5156
|
+
}
|
|
5157
|
+
|
|
5158
|
+
return componentEvent.unbind(el, type, fn, capture);
|
|
5159
|
+
}
|
|
5160
|
+
|
|
5161
|
+
var delegate = {
|
|
5162
|
+
bind: bind$2,
|
|
5163
|
+
unbind: unbind$1
|
|
5164
|
+
};
|
|
5165
|
+
|
|
5166
|
+
/**
|
|
5167
|
+
* Expose `parse`.
|
|
5168
|
+
*/
|
|
5169
|
+
|
|
5170
|
+
var domify = parse$1;
|
|
5171
|
+
|
|
5172
|
+
/**
|
|
5173
|
+
* Tests for browser support.
|
|
5174
|
+
*/
|
|
5175
|
+
|
|
5176
|
+
var innerHTMLBug = false;
|
|
5177
|
+
var bugTestDiv;
|
|
5178
|
+
if (typeof document !== 'undefined') {
|
|
5179
|
+
bugTestDiv = document.createElement('div');
|
|
5180
|
+
// Setup
|
|
5181
|
+
bugTestDiv.innerHTML = ' <link/><table></table><a href="/a">a</a><input type="checkbox"/>';
|
|
5182
|
+
// Make sure that link elements get serialized correctly by innerHTML
|
|
5183
|
+
// This requires a wrapper element in IE
|
|
5184
|
+
innerHTMLBug = !bugTestDiv.getElementsByTagName('link').length;
|
|
5185
|
+
bugTestDiv = undefined;
|
|
5186
|
+
}
|
|
5187
|
+
|
|
5188
|
+
/**
|
|
5189
|
+
* Wrap map from jquery.
|
|
5190
|
+
*/
|
|
5191
|
+
|
|
5192
|
+
var map$1 = {
|
|
5193
|
+
legend: [1, '<fieldset>', '</fieldset>'],
|
|
5194
|
+
tr: [2, '<table><tbody>', '</tbody></table>'],
|
|
5195
|
+
col: [2, '<table><tbody></tbody><colgroup>', '</colgroup></table>'],
|
|
5196
|
+
// for script/link/style tags to work in IE6-8, you have to wrap
|
|
5197
|
+
// in a div with a non-whitespace character in front, ha!
|
|
5198
|
+
_default: innerHTMLBug ? [1, 'X<div>', '</div>'] : [0, '', '']
|
|
5199
|
+
};
|
|
5200
|
+
|
|
5201
|
+
map$1.td =
|
|
5202
|
+
map$1.th = [3, '<table><tbody><tr>', '</tr></tbody></table>'];
|
|
4679
5203
|
|
|
4680
|
-
|
|
4681
|
-
|
|
5204
|
+
map$1.option =
|
|
5205
|
+
map$1.optgroup = [1, '<select multiple="multiple">', '</select>'];
|
|
4682
5206
|
|
|
5207
|
+
map$1.thead =
|
|
5208
|
+
map$1.tbody =
|
|
5209
|
+
map$1.colgroup =
|
|
5210
|
+
map$1.caption =
|
|
5211
|
+
map$1.tfoot = [1, '<table>', '</table>'];
|
|
4683
5212
|
|
|
4684
|
-
|
|
5213
|
+
map$1.polyline =
|
|
5214
|
+
map$1.ellipse =
|
|
5215
|
+
map$1.polygon =
|
|
5216
|
+
map$1.circle =
|
|
5217
|
+
map$1.text =
|
|
5218
|
+
map$1.line =
|
|
5219
|
+
map$1.path =
|
|
5220
|
+
map$1.rect =
|
|
5221
|
+
map$1.g = [1, '<svg xmlns="http://www.w3.org/2000/svg" version="1.1">','</svg>'];
|
|
4685
5222
|
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
5223
|
+
/**
|
|
5224
|
+
* Parse `html` and return a DOM Node instance, which could be a TextNode,
|
|
5225
|
+
* HTML DOM Node of some kind (<div> for example), or a DocumentFragment
|
|
5226
|
+
* instance, depending on the contents of the `html` string.
|
|
5227
|
+
*
|
|
5228
|
+
* @param {String} html - HTML string to "domify"
|
|
5229
|
+
* @param {Document} doc - The `document` instance to create the Node for
|
|
5230
|
+
* @return {DOMNode} the TextNode, DOM Node, or DocumentFragment instance
|
|
5231
|
+
* @api private
|
|
5232
|
+
*/
|
|
4694
5233
|
|
|
5234
|
+
function parse$1(html, doc) {
|
|
5235
|
+
if ('string' != typeof html) throw new TypeError('String expected');
|
|
4695
5236
|
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
};
|
|
5237
|
+
// default to the global `document` object
|
|
5238
|
+
if (!doc) doc = document;
|
|
4699
5239
|
|
|
4700
|
-
|
|
4701
|
-
var
|
|
4702
|
-
|
|
5240
|
+
// tag name
|
|
5241
|
+
var m = /<([\w:]+)/.exec(html);
|
|
5242
|
+
if (!m) return doc.createTextNode(html);
|
|
4703
5243
|
|
|
4704
|
-
|
|
4705
|
-
return h(parentGfx, element);
|
|
4706
|
-
};
|
|
5244
|
+
html = html.replace(/^\s+|\s+$/g, ''); // Remove leading/trailing whitespace
|
|
4707
5245
|
|
|
4708
|
-
|
|
4709
|
-
var type = element.type;
|
|
4710
|
-
var h = this._renderer(type);
|
|
5246
|
+
var tag = m[1];
|
|
4711
5247
|
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
5248
|
+
// body support
|
|
5249
|
+
if (tag == 'body') {
|
|
5250
|
+
var el = doc.createElement('html');
|
|
5251
|
+
el.innerHTML = html;
|
|
5252
|
+
return el.removeChild(el.lastChild);
|
|
5253
|
+
}
|
|
4715
5254
|
|
|
4716
|
-
|
|
5255
|
+
// wrap map
|
|
5256
|
+
var wrap = map$1[tag] || map$1._default;
|
|
5257
|
+
var depth = wrap[0];
|
|
5258
|
+
var prefix = wrap[1];
|
|
5259
|
+
var suffix = wrap[2];
|
|
5260
|
+
var el = doc.createElement('div');
|
|
5261
|
+
el.innerHTML = prefix + html + suffix;
|
|
5262
|
+
while (depth--) el = el.lastChild;
|
|
4717
5263
|
|
|
4718
|
-
|
|
4719
|
-
|
|
5264
|
+
// one element
|
|
5265
|
+
if (el.firstChild == el.lastChild) {
|
|
5266
|
+
return el.removeChild(el.firstChild);
|
|
4720
5267
|
}
|
|
4721
5268
|
|
|
4722
|
-
|
|
4723
|
-
|
|
5269
|
+
// several elements
|
|
5270
|
+
var fragment = doc.createDocumentFragment();
|
|
5271
|
+
while (el.firstChild) {
|
|
5272
|
+
fragment.appendChild(el.removeChild(el.firstChild));
|
|
4724
5273
|
}
|
|
4725
5274
|
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
}
|
|
5275
|
+
return fragment;
|
|
5276
|
+
}
|
|
4729
5277
|
|
|
4730
|
-
|
|
4731
|
-
|
|
5278
|
+
function query(selector, el) {
|
|
5279
|
+
el = el || document;
|
|
5280
|
+
|
|
5281
|
+
return el.querySelector(selector);
|
|
5282
|
+
}
|
|
5283
|
+
|
|
5284
|
+
function all(selector, el) {
|
|
5285
|
+
el = el || document;
|
|
5286
|
+
|
|
5287
|
+
return el.querySelectorAll(selector);
|
|
5288
|
+
}
|
|
5289
|
+
|
|
5290
|
+
function remove$1(el) {
|
|
5291
|
+
el.parentNode && el.parentNode.removeChild(el);
|
|
5292
|
+
}
|
|
4732
5293
|
|
|
4733
5294
|
var DEFAULT_BOX_PADDING = 0;
|
|
4734
5295
|
|
|
4735
|
-
var DEFAULT_LABEL_SIZE = {
|
|
5296
|
+
var DEFAULT_LABEL_SIZE$1 = {
|
|
4736
5297
|
width: 150,
|
|
4737
5298
|
height: 50
|
|
4738
5299
|
};
|
|
@@ -4909,9 +5470,9 @@
|
|
|
4909
5470
|
var helperSvg = document.getElementById('helper-svg');
|
|
4910
5471
|
|
|
4911
5472
|
if (!helperSvg) {
|
|
4912
|
-
helperSvg = create('svg');
|
|
5473
|
+
helperSvg = create$3('svg');
|
|
4913
5474
|
|
|
4914
|
-
attr(helperSvg, {
|
|
5475
|
+
attr$3(helperSvg, {
|
|
4915
5476
|
id: 'helper-svg'
|
|
4916
5477
|
});
|
|
4917
5478
|
|
|
@@ -4941,7 +5502,7 @@
|
|
|
4941
5502
|
function Text(config) {
|
|
4942
5503
|
|
|
4943
5504
|
this._config = assign({}, {
|
|
4944
|
-
size: DEFAULT_LABEL_SIZE,
|
|
5505
|
+
size: DEFAULT_LABEL_SIZE$1,
|
|
4945
5506
|
padding: DEFAULT_BOX_PADDING,
|
|
4946
5507
|
style: {},
|
|
4947
5508
|
align: 'center-top'
|
|
@@ -5005,13 +5566,13 @@
|
|
|
5005
5566
|
var maxWidth = box.width - padding.left - padding.right;
|
|
5006
5567
|
|
|
5007
5568
|
// ensure correct rendering by attaching helper text node to invisible SVG
|
|
5008
|
-
var helperText = create('text');
|
|
5009
|
-
attr(helperText, { x: 0, y: 0 });
|
|
5010
|
-
attr(helperText, style);
|
|
5569
|
+
var helperText = create$3('text');
|
|
5570
|
+
attr$3(helperText, { x: 0, y: 0 });
|
|
5571
|
+
attr$3(helperText, style);
|
|
5011
5572
|
|
|
5012
5573
|
var helperSvg = getHelperSvg();
|
|
5013
5574
|
|
|
5014
|
-
append(helperSvg, helperText);
|
|
5575
|
+
append$2(helperSvg, helperText);
|
|
5015
5576
|
|
|
5016
5577
|
while (lines.length) {
|
|
5017
5578
|
layouted.push(layoutNext(lines, maxWidth, helperText));
|
|
@@ -5040,13 +5601,13 @@
|
|
|
5040
5601
|
y -= (lineHeight || layouted[0].height) / 4;
|
|
5041
5602
|
|
|
5042
5603
|
|
|
5043
|
-
var textElement = create('text');
|
|
5604
|
+
var textElement = create$3('text');
|
|
5044
5605
|
|
|
5045
|
-
attr(textElement, style);
|
|
5606
|
+
attr$3(textElement, style);
|
|
5046
5607
|
|
|
5047
5608
|
// layout each line taking into account that parent
|
|
5048
5609
|
// shape might resize to fit text size
|
|
5049
|
-
forEach(layouted, function(line) {
|
|
5610
|
+
forEach$2(layouted, function(line) {
|
|
5050
5611
|
|
|
5051
5612
|
var x;
|
|
5052
5613
|
|
|
@@ -5069,15 +5630,15 @@
|
|
|
5069
5630
|
- line.width) / 2 + padding.left), 0);
|
|
5070
5631
|
}
|
|
5071
5632
|
|
|
5072
|
-
var tspan = create('tspan');
|
|
5073
|
-
attr(tspan, { x: x, y: y });
|
|
5633
|
+
var tspan = create$3('tspan');
|
|
5634
|
+
attr$3(tspan, { x: x, y: y });
|
|
5074
5635
|
|
|
5075
5636
|
tspan.textContent = line.text;
|
|
5076
5637
|
|
|
5077
|
-
append(textElement, tspan);
|
|
5638
|
+
append$2(textElement, tspan);
|
|
5078
5639
|
});
|
|
5079
5640
|
|
|
5080
|
-
remove(helperText);
|
|
5641
|
+
remove$4(helperText);
|
|
5081
5642
|
|
|
5082
5643
|
var dimensions = {
|
|
5083
5644
|
width: maxLineWidth,
|
|
@@ -5682,7 +6243,7 @@
|
|
|
5682
6243
|
});
|
|
5683
6244
|
}
|
|
5684
6245
|
|
|
5685
|
-
var DrawModule = {
|
|
6246
|
+
var DrawModule$1 = {
|
|
5686
6247
|
__init__: [ 'bpmnRenderer' ],
|
|
5687
6248
|
bpmnRenderer: [ 'type', BpmnRenderer ],
|
|
5688
6249
|
textRenderer: [ 'type', TextRenderer ],
|
|
@@ -5707,7 +6268,7 @@
|
|
|
5707
6268
|
*
|
|
5708
6269
|
* @return {string} the translated string
|
|
5709
6270
|
*/
|
|
5710
|
-
function translate
|
|
6271
|
+
function translate(template, replacements) {
|
|
5711
6272
|
|
|
5712
6273
|
replacements = replacements || {};
|
|
5713
6274
|
|
|
@@ -5717,10 +6278,10 @@
|
|
|
5717
6278
|
}
|
|
5718
6279
|
|
|
5719
6280
|
var TranslateModule = {
|
|
5720
|
-
translate: [ 'value', translate
|
|
6281
|
+
translate: [ 'value', translate ]
|
|
5721
6282
|
};
|
|
5722
6283
|
|
|
5723
|
-
var DEFAULT_LABEL_SIZE
|
|
6284
|
+
var DEFAULT_LABEL_SIZE = {
|
|
5724
6285
|
width: 90,
|
|
5725
6286
|
height: 20
|
|
5726
6287
|
};
|
|
@@ -5735,15 +6296,15 @@
|
|
|
5735
6296
|
* @return {boolean} true if has label
|
|
5736
6297
|
*/
|
|
5737
6298
|
function isLabelExternal(semantic) {
|
|
5738
|
-
return is(semantic, 'bpmn:Event') ||
|
|
5739
|
-
is(semantic, 'bpmn:Gateway') ||
|
|
5740
|
-
is(semantic, 'bpmn:DataStoreReference') ||
|
|
5741
|
-
is(semantic, 'bpmn:DataObjectReference') ||
|
|
5742
|
-
is(semantic, 'bpmn:DataInput') ||
|
|
5743
|
-
is(semantic, 'bpmn:DataOutput') ||
|
|
5744
|
-
is(semantic, 'bpmn:SequenceFlow') ||
|
|
5745
|
-
is(semantic, 'bpmn:MessageFlow') ||
|
|
5746
|
-
is(semantic, 'bpmn:Group');
|
|
6299
|
+
return is$1(semantic, 'bpmn:Event') ||
|
|
6300
|
+
is$1(semantic, 'bpmn:Gateway') ||
|
|
6301
|
+
is$1(semantic, 'bpmn:DataStoreReference') ||
|
|
6302
|
+
is$1(semantic, 'bpmn:DataObjectReference') ||
|
|
6303
|
+
is$1(semantic, 'bpmn:DataInput') ||
|
|
6304
|
+
is$1(semantic, 'bpmn:DataOutput') ||
|
|
6305
|
+
is$1(semantic, 'bpmn:SequenceFlow') ||
|
|
6306
|
+
is$1(semantic, 'bpmn:MessageFlow') ||
|
|
6307
|
+
is$1(semantic, 'bpmn:Group');
|
|
5747
6308
|
}
|
|
5748
6309
|
|
|
5749
6310
|
/**
|
|
@@ -5803,15 +6364,15 @@
|
|
|
5803
6364
|
|
|
5804
6365
|
if (element.waypoints) {
|
|
5805
6366
|
return getFlowLabelPosition(element.waypoints);
|
|
5806
|
-
} else if (is(element, 'bpmn:Group')) {
|
|
6367
|
+
} else if (is$1(element, 'bpmn:Group')) {
|
|
5807
6368
|
return {
|
|
5808
6369
|
x: element.x + element.width / 2,
|
|
5809
|
-
y: element.y + DEFAULT_LABEL_SIZE
|
|
6370
|
+
y: element.y + DEFAULT_LABEL_SIZE.height / 2
|
|
5810
6371
|
};
|
|
5811
6372
|
} else {
|
|
5812
6373
|
return {
|
|
5813
6374
|
x: element.x + element.width / 2,
|
|
5814
|
-
y: element.y + element.height + DEFAULT_LABEL_SIZE
|
|
6375
|
+
y: element.y + element.height + DEFAULT_LABEL_SIZE.height / 2
|
|
5815
6376
|
};
|
|
5816
6377
|
}
|
|
5817
6378
|
}
|
|
@@ -5835,7 +6396,7 @@
|
|
|
5835
6396
|
bounds = label.bounds;
|
|
5836
6397
|
|
|
5837
6398
|
size = {
|
|
5838
|
-
width: Math.max(DEFAULT_LABEL_SIZE
|
|
6399
|
+
width: Math.max(DEFAULT_LABEL_SIZE.width, bounds.width),
|
|
5839
6400
|
height: bounds.height
|
|
5840
6401
|
};
|
|
5841
6402
|
|
|
@@ -5847,7 +6408,7 @@
|
|
|
5847
6408
|
|
|
5848
6409
|
mid = getExternalLabelMid(element);
|
|
5849
6410
|
|
|
5850
|
-
size = DEFAULT_LABEL_SIZE
|
|
6411
|
+
size = DEFAULT_LABEL_SIZE;
|
|
5851
6412
|
}
|
|
5852
6413
|
|
|
5853
6414
|
return assign({
|
|
@@ -6094,9 +6655,9 @@
|
|
|
6094
6655
|
// ROOT ELEMENT
|
|
6095
6656
|
// handle the special case that we deal with a
|
|
6096
6657
|
// invisible root element (process, subprocess or collaboration)
|
|
6097
|
-
if (is(di, 'bpmndi:BPMNPlane')) {
|
|
6658
|
+
if (is$1(di, 'bpmndi:BPMNPlane')) {
|
|
6098
6659
|
|
|
6099
|
-
var attrs = is(semantic, 'bpmn:SubProcess')
|
|
6660
|
+
var attrs = is$1(semantic, 'bpmn:SubProcess')
|
|
6100
6661
|
? { id: semantic.id + '_plane' }
|
|
6101
6662
|
: {};
|
|
6102
6663
|
|
|
@@ -6107,10 +6668,10 @@
|
|
|
6107
6668
|
}
|
|
6108
6669
|
|
|
6109
6670
|
// SHAPE
|
|
6110
|
-
else if (is(di, 'bpmndi:BPMNShape')) {
|
|
6671
|
+
else if (is$1(di, 'bpmndi:BPMNShape')) {
|
|
6111
6672
|
|
|
6112
6673
|
var collapsed = !isExpanded(semantic, di),
|
|
6113
|
-
isFrame = isFrameElement(semantic);
|
|
6674
|
+
isFrame = isFrameElement$1(semantic);
|
|
6114
6675
|
|
|
6115
6676
|
hidden = parentElement && (parentElement.hidden || parentElement.collapsed);
|
|
6116
6677
|
|
|
@@ -6126,16 +6687,16 @@
|
|
|
6126
6687
|
isFrame: isFrame
|
|
6127
6688
|
}));
|
|
6128
6689
|
|
|
6129
|
-
if (is(semantic, 'bpmn:BoundaryEvent')) {
|
|
6690
|
+
if (is$1(semantic, 'bpmn:BoundaryEvent')) {
|
|
6130
6691
|
this._attachBoundary(semantic, element);
|
|
6131
6692
|
}
|
|
6132
6693
|
|
|
6133
6694
|
// insert lanes behind other flow nodes (cf. #727)
|
|
6134
|
-
if (is(semantic, 'bpmn:Lane')) {
|
|
6695
|
+
if (is$1(semantic, 'bpmn:Lane')) {
|
|
6135
6696
|
parentIndex = 0;
|
|
6136
6697
|
}
|
|
6137
6698
|
|
|
6138
|
-
if (is(semantic, 'bpmn:DataStoreReference')) {
|
|
6699
|
+
if (is$1(semantic, 'bpmn:DataStoreReference')) {
|
|
6139
6700
|
|
|
6140
6701
|
// check whether data store is inside our outside of its semantic parent
|
|
6141
6702
|
if (!isPointInsideBBox(parentElement, getMid(bounds))) {
|
|
@@ -6147,7 +6708,7 @@
|
|
|
6147
6708
|
}
|
|
6148
6709
|
|
|
6149
6710
|
// CONNECTION
|
|
6150
|
-
else if (is(di, 'bpmndi:BPMNEdge')) {
|
|
6711
|
+
else if (is$1(di, 'bpmndi:BPMNEdge')) {
|
|
6151
6712
|
|
|
6152
6713
|
var source = this._getSource(semantic),
|
|
6153
6714
|
target = this._getTarget(semantic);
|
|
@@ -6161,7 +6722,7 @@
|
|
|
6161
6722
|
waypoints: getWaypoints(di, source, target)
|
|
6162
6723
|
}));
|
|
6163
6724
|
|
|
6164
|
-
if (is(semantic, 'bpmn:DataAssociation')) {
|
|
6725
|
+
if (is$1(semantic, 'bpmn:DataAssociation')) {
|
|
6165
6726
|
|
|
6166
6727
|
// render always on top; this ensures DataAssociations
|
|
6167
6728
|
// are rendered correctly across different "hacks" people
|
|
@@ -6326,8 +6887,8 @@
|
|
|
6326
6887
|
y <= bbox.y + bbox.height;
|
|
6327
6888
|
}
|
|
6328
6889
|
|
|
6329
|
-
function isFrameElement(semantic) {
|
|
6330
|
-
return is(semantic, 'bpmn:Group');
|
|
6890
|
+
function isFrameElement$1(semantic) {
|
|
6891
|
+
return is$1(semantic, 'bpmn:Group');
|
|
6331
6892
|
}
|
|
6332
6893
|
|
|
6333
6894
|
var ImportModule = {
|
|
@@ -6337,9 +6898,9 @@
|
|
|
6337
6898
|
bpmnImporter: [ 'type', BpmnImporter ]
|
|
6338
6899
|
};
|
|
6339
6900
|
|
|
6340
|
-
var CoreModule = {
|
|
6901
|
+
var CoreModule$1 = {
|
|
6341
6902
|
__depends__: [
|
|
6342
|
-
DrawModule,
|
|
6903
|
+
DrawModule$1,
|
|
6343
6904
|
ImportModule
|
|
6344
6905
|
]
|
|
6345
6906
|
};
|
|
@@ -6396,7 +6957,7 @@
|
|
|
6396
6957
|
return isPrimaryButton(event) || isAuxiliaryButton(event);
|
|
6397
6958
|
}
|
|
6398
6959
|
|
|
6399
|
-
var LOW_PRIORITY = 500;
|
|
6960
|
+
var LOW_PRIORITY$3 = 500;
|
|
6400
6961
|
|
|
6401
6962
|
|
|
6402
6963
|
/**
|
|
@@ -6556,13 +7117,13 @@
|
|
|
6556
7117
|
}
|
|
6557
7118
|
|
|
6558
7119
|
function registerEvents(svg) {
|
|
6559
|
-
forEach(bindings, function(val, key) {
|
|
7120
|
+
forEach$2(bindings, function(val, key) {
|
|
6560
7121
|
registerEvent(svg, key, val);
|
|
6561
7122
|
});
|
|
6562
7123
|
}
|
|
6563
7124
|
|
|
6564
7125
|
function unregisterEvents(svg) {
|
|
6565
|
-
forEach(bindings, function(val, key) {
|
|
7126
|
+
forEach$2(bindings, function(val, key) {
|
|
6566
7127
|
unregisterEvent(svg, key, val);
|
|
6567
7128
|
});
|
|
6568
7129
|
}
|
|
@@ -6591,7 +7152,7 @@
|
|
|
6591
7152
|
eventBus.on([
|
|
6592
7153
|
'shape.changed',
|
|
6593
7154
|
'connection.changed'
|
|
6594
|
-
], LOW_PRIORITY, function(event) {
|
|
7155
|
+
], LOW_PRIORITY$3, function(event) {
|
|
6595
7156
|
|
|
6596
7157
|
var element = event.element,
|
|
6597
7158
|
gfx = event.gfx;
|
|
@@ -6599,7 +7160,7 @@
|
|
|
6599
7160
|
eventBus.fire('interactionEvents.updateHit', { element: element, gfx: gfx });
|
|
6600
7161
|
});
|
|
6601
7162
|
|
|
6602
|
-
eventBus.on('interactionEvents.createHit', LOW_PRIORITY, function(event) {
|
|
7163
|
+
eventBus.on('interactionEvents.createHit', LOW_PRIORITY$3, function(event) {
|
|
6603
7164
|
var element = event.element,
|
|
6604
7165
|
gfx = event.gfx;
|
|
6605
7166
|
|
|
@@ -6652,13 +7213,13 @@
|
|
|
6652
7213
|
throw new Error('invalid hit type <' + type + '>');
|
|
6653
7214
|
}
|
|
6654
7215
|
|
|
6655
|
-
attr(hit, attrs);
|
|
7216
|
+
attr$3(hit, attrs);
|
|
6656
7217
|
|
|
6657
7218
|
return hit;
|
|
6658
7219
|
}
|
|
6659
7220
|
|
|
6660
7221
|
function appendHit(gfx, hit) {
|
|
6661
|
-
append(gfx, hit);
|
|
7222
|
+
append$2(gfx, hit);
|
|
6662
7223
|
}
|
|
6663
7224
|
|
|
6664
7225
|
|
|
@@ -6672,7 +7233,7 @@
|
|
|
6672
7233
|
this.removeHits = function(gfx) {
|
|
6673
7234
|
var hits = all('.djs-hit', gfx);
|
|
6674
7235
|
|
|
6675
|
-
forEach(hits, remove);
|
|
7236
|
+
forEach$2(hits, remove$4);
|
|
6676
7237
|
};
|
|
6677
7238
|
|
|
6678
7239
|
/**
|
|
@@ -6736,11 +7297,11 @@
|
|
|
6736
7297
|
y: 0
|
|
6737
7298
|
}, attrs);
|
|
6738
7299
|
|
|
6739
|
-
var hit = create('rect');
|
|
7300
|
+
var hit = create$3('rect');
|
|
6740
7301
|
|
|
6741
7302
|
applyStyle(hit, type);
|
|
6742
7303
|
|
|
6743
|
-
attr(hit, attrs);
|
|
7304
|
+
attr$3(hit, attrs);
|
|
6744
7305
|
|
|
6745
7306
|
appendHit(gfx, hit);
|
|
6746
7307
|
|
|
@@ -6766,7 +7327,7 @@
|
|
|
6766
7327
|
if (element.waypoints) {
|
|
6767
7328
|
updateLine(hit, element.waypoints);
|
|
6768
7329
|
} else {
|
|
6769
|
-
attr(hit, {
|
|
7330
|
+
attr$3(hit, {
|
|
6770
7331
|
width: element.width,
|
|
6771
7332
|
height: element.height
|
|
6772
7333
|
});
|
|
@@ -6888,7 +7449,7 @@
|
|
|
6888
7449
|
function getBBox(elements, stopRecursion) {
|
|
6889
7450
|
|
|
6890
7451
|
stopRecursion = !!stopRecursion;
|
|
6891
|
-
if (!isArray(elements)) {
|
|
7452
|
+
if (!isArray$3(elements)) {
|
|
6892
7453
|
elements = [ elements ];
|
|
6893
7454
|
}
|
|
6894
7455
|
|
|
@@ -6897,7 +7458,7 @@
|
|
|
6897
7458
|
maxX,
|
|
6898
7459
|
maxY;
|
|
6899
7460
|
|
|
6900
|
-
forEach(elements, function(element) {
|
|
7461
|
+
forEach$2(elements, function(element) {
|
|
6901
7462
|
|
|
6902
7463
|
// If element is a connection the bbox must be computed first
|
|
6903
7464
|
var bbox = element;
|
|
@@ -6947,12 +7508,12 @@
|
|
|
6947
7508
|
return 'root';
|
|
6948
7509
|
}
|
|
6949
7510
|
|
|
6950
|
-
function isFrameElement
|
|
7511
|
+
function isFrameElement(element) {
|
|
6951
7512
|
|
|
6952
7513
|
return !!(element && element.isFrame);
|
|
6953
7514
|
}
|
|
6954
7515
|
|
|
6955
|
-
var LOW_PRIORITY$
|
|
7516
|
+
var LOW_PRIORITY$2 = 500;
|
|
6956
7517
|
|
|
6957
7518
|
|
|
6958
7519
|
/**
|
|
@@ -6974,9 +7535,9 @@
|
|
|
6974
7535
|
var self = this;
|
|
6975
7536
|
|
|
6976
7537
|
function createOutline(gfx, bounds) {
|
|
6977
|
-
var outline = create('rect');
|
|
7538
|
+
var outline = create$3('rect');
|
|
6978
7539
|
|
|
6979
|
-
attr(outline, assign({
|
|
7540
|
+
attr$3(outline, assign({
|
|
6980
7541
|
x: 10,
|
|
6981
7542
|
y: 10,
|
|
6982
7543
|
rx: 3,
|
|
@@ -6984,14 +7545,14 @@
|
|
|
6984
7545
|
height: 100
|
|
6985
7546
|
}, OUTLINE_STYLE));
|
|
6986
7547
|
|
|
6987
|
-
append(gfx, outline);
|
|
7548
|
+
append$2(gfx, outline);
|
|
6988
7549
|
|
|
6989
7550
|
return outline;
|
|
6990
7551
|
}
|
|
6991
7552
|
|
|
6992
7553
|
// A low priortity is necessary, because outlines of labels have to be updated
|
|
6993
7554
|
// after the label bounds have been updated in the renderer.
|
|
6994
|
-
eventBus.on([ 'shape.added', 'shape.changed' ], LOW_PRIORITY$
|
|
7555
|
+
eventBus.on([ 'shape.added', 'shape.changed' ], LOW_PRIORITY$2, function(event) {
|
|
6995
7556
|
var element = event.element,
|
|
6996
7557
|
gfx = event.gfx;
|
|
6997
7558
|
|
|
@@ -7028,7 +7589,7 @@
|
|
|
7028
7589
|
*/
|
|
7029
7590
|
Outline.prototype.updateShapeOutline = function(outline, element) {
|
|
7030
7591
|
|
|
7031
|
-
attr(outline, {
|
|
7592
|
+
attr$3(outline, {
|
|
7032
7593
|
x: -this.offset,
|
|
7033
7594
|
y: -this.offset,
|
|
7034
7595
|
width: element.width + this.offset * 2,
|
|
@@ -7049,7 +7610,7 @@
|
|
|
7049
7610
|
|
|
7050
7611
|
var bbox = getBBox(connection);
|
|
7051
7612
|
|
|
7052
|
-
attr(outline, {
|
|
7613
|
+
attr$3(outline, {
|
|
7053
7614
|
x: bbox.x - this.offset,
|
|
7054
7615
|
y: bbox.y - this.offset,
|
|
7055
7616
|
width: bbox.width + this.offset * 2,
|
|
@@ -7135,7 +7696,7 @@
|
|
|
7135
7696
|
var selectedElements = this._selectedElements,
|
|
7136
7697
|
oldSelection = selectedElements.slice();
|
|
7137
7698
|
|
|
7138
|
-
if (!isArray(elements)) {
|
|
7699
|
+
if (!isArray$3(elements)) {
|
|
7139
7700
|
elements = elements ? [ elements ] : [];
|
|
7140
7701
|
}
|
|
7141
7702
|
|
|
@@ -7152,7 +7713,7 @@
|
|
|
7152
7713
|
// selection may be cleared by passing an empty array or null
|
|
7153
7714
|
// to the method
|
|
7154
7715
|
if (add) {
|
|
7155
|
-
forEach(elements, function(element) {
|
|
7716
|
+
forEach$2(elements, function(element) {
|
|
7156
7717
|
if (selectedElements.indexOf(element) !== -1) {
|
|
7157
7718
|
|
|
7158
7719
|
// already selected
|
|
@@ -7221,13 +7782,13 @@
|
|
|
7221
7782
|
var oldSelection = event.oldSelection,
|
|
7222
7783
|
newSelection = event.newSelection;
|
|
7223
7784
|
|
|
7224
|
-
forEach(oldSelection, function(e) {
|
|
7785
|
+
forEach$2(oldSelection, function(e) {
|
|
7225
7786
|
if (newSelection.indexOf(e) === -1) {
|
|
7226
7787
|
deselect(e);
|
|
7227
7788
|
}
|
|
7228
7789
|
});
|
|
7229
7790
|
|
|
7230
|
-
forEach(newSelection, function(e) {
|
|
7791
|
+
forEach$2(newSelection, function(e) {
|
|
7231
7792
|
if (oldSelection.indexOf(e) === -1) {
|
|
7232
7793
|
select(e);
|
|
7233
7794
|
}
|
|
@@ -7253,13 +7814,13 @@
|
|
|
7253
7814
|
SelectionVisuals.prototype._updateSelectionOutline = function(selection) {
|
|
7254
7815
|
var layer = this._canvas.getLayer('selectionOutline');
|
|
7255
7816
|
|
|
7256
|
-
clear(layer);
|
|
7817
|
+
clear$2(layer);
|
|
7257
7818
|
|
|
7258
7819
|
var enabled = selection.length > 1;
|
|
7259
7820
|
|
|
7260
7821
|
var container = this._canvas.getContainer();
|
|
7261
7822
|
|
|
7262
|
-
classes(container)[enabled ? 'add' : 'remove']('djs-multi-select');
|
|
7823
|
+
classes$3(container)[enabled ? 'add' : 'remove']('djs-multi-select');
|
|
7263
7824
|
|
|
7264
7825
|
if (!enabled) {
|
|
7265
7826
|
return;
|
|
@@ -7267,15 +7828,15 @@
|
|
|
7267
7828
|
|
|
7268
7829
|
var bBox = addSelectionOutlinePadding(getBBox(selection));
|
|
7269
7830
|
|
|
7270
|
-
var rect = create('rect');
|
|
7831
|
+
var rect = create$3('rect');
|
|
7271
7832
|
|
|
7272
|
-
attr(rect, assign({
|
|
7833
|
+
attr$3(rect, assign({
|
|
7273
7834
|
rx: 3
|
|
7274
7835
|
}, bBox));
|
|
7275
7836
|
|
|
7276
|
-
classes(rect).add('djs-selection-outline');
|
|
7837
|
+
classes$3(rect).add('djs-selection-outline');
|
|
7277
7838
|
|
|
7278
|
-
append(layer, rect);
|
|
7839
|
+
append$2(layer, rect);
|
|
7279
7840
|
};
|
|
7280
7841
|
|
|
7281
7842
|
// helpers //////////
|
|
@@ -7306,7 +7867,7 @@
|
|
|
7306
7867
|
return;
|
|
7307
7868
|
}
|
|
7308
7869
|
|
|
7309
|
-
if (isArray(autoSelect)) {
|
|
7870
|
+
if (isArray$3(autoSelect)) {
|
|
7310
7871
|
selection.select(autoSelect);
|
|
7311
7872
|
} else {
|
|
7312
7873
|
|
|
@@ -7437,7 +7998,7 @@
|
|
|
7437
7998
|
// document wide unique overlay ids
|
|
7438
7999
|
var ids = new IdGenerator('ov');
|
|
7439
8000
|
|
|
7440
|
-
var LOW_PRIORITY$
|
|
8001
|
+
var LOW_PRIORITY$1 = 500;
|
|
7441
8002
|
|
|
7442
8003
|
|
|
7443
8004
|
/**
|
|
@@ -7673,13 +8234,13 @@
|
|
|
7673
8234
|
|
|
7674
8235
|
var overlays = this.get(filter) || [];
|
|
7675
8236
|
|
|
7676
|
-
if (!isArray(overlays)) {
|
|
8237
|
+
if (!isArray$3(overlays)) {
|
|
7677
8238
|
overlays = [ overlays ];
|
|
7678
8239
|
}
|
|
7679
8240
|
|
|
7680
8241
|
var self = this;
|
|
7681
8242
|
|
|
7682
|
-
forEach(overlays, function(overlay) {
|
|
8243
|
+
forEach$2(overlays, function(overlay) {
|
|
7683
8244
|
|
|
7684
8245
|
var container = self._getOverlayContainer(overlay.element, true);
|
|
7685
8246
|
|
|
@@ -7718,7 +8279,7 @@
|
|
|
7718
8279
|
|
|
7719
8280
|
this._overlayContainers = [];
|
|
7720
8281
|
|
|
7721
|
-
clear
|
|
8282
|
+
clear(this._overlayRoot);
|
|
7722
8283
|
};
|
|
7723
8284
|
|
|
7724
8285
|
Overlays.prototype._updateOverlayContainer = function(container) {
|
|
@@ -7866,7 +8427,7 @@
|
|
|
7866
8427
|
htmlContainer.appendChild(html);
|
|
7867
8428
|
|
|
7868
8429
|
if (overlay.type) {
|
|
7869
|
-
classes
|
|
8430
|
+
classes(htmlContainer).add('djs-overlay-' + overlay.type);
|
|
7870
8431
|
}
|
|
7871
8432
|
|
|
7872
8433
|
var elementRoot = this._canvas.findRoot(element);
|
|
@@ -7951,7 +8512,7 @@
|
|
|
7951
8512
|
|
|
7952
8513
|
var self = this;
|
|
7953
8514
|
|
|
7954
|
-
forEach(this._overlays, function(overlay) {
|
|
8515
|
+
forEach$2(this._overlays, function(overlay) {
|
|
7955
8516
|
self._updateOverlayVisibilty(overlay, viewbox);
|
|
7956
8517
|
});
|
|
7957
8518
|
};
|
|
@@ -7988,7 +8549,7 @@
|
|
|
7988
8549
|
var element = e.element;
|
|
7989
8550
|
var overlays = self.get({ element: element });
|
|
7990
8551
|
|
|
7991
|
-
forEach(overlays, function(o) {
|
|
8552
|
+
forEach$2(overlays, function(o) {
|
|
7992
8553
|
self.remove(o.id);
|
|
7993
8554
|
});
|
|
7994
8555
|
|
|
@@ -8006,13 +8567,13 @@
|
|
|
8006
8567
|
|
|
8007
8568
|
// move integration
|
|
8008
8569
|
|
|
8009
|
-
eventBus.on('element.changed', LOW_PRIORITY$
|
|
8570
|
+
eventBus.on('element.changed', LOW_PRIORITY$1, function(e) {
|
|
8010
8571
|
var element = e.element;
|
|
8011
8572
|
|
|
8012
8573
|
var container = self._getOverlayContainer(element, true);
|
|
8013
8574
|
|
|
8014
8575
|
if (container) {
|
|
8015
|
-
forEach(container.overlays, function(overlay) {
|
|
8576
|
+
forEach$2(container.overlays, function(overlay) {
|
|
8016
8577
|
self._updateOverlay(overlay);
|
|
8017
8578
|
});
|
|
8018
8579
|
|
|
@@ -8026,7 +8587,7 @@
|
|
|
8026
8587
|
eventBus.on('element.marker.update', function(e) {
|
|
8027
8588
|
var container = self._getOverlayContainer(e.element, true);
|
|
8028
8589
|
if (container) {
|
|
8029
|
-
classes
|
|
8590
|
+
classes(container.html)[e.add ? 'add' : 'remove'](e.marker);
|
|
8030
8591
|
}
|
|
8031
8592
|
});
|
|
8032
8593
|
|
|
@@ -8157,7 +8718,7 @@
|
|
|
8157
8718
|
changeSupport: [ 'type', ChangeSupport ]
|
|
8158
8719
|
};
|
|
8159
8720
|
|
|
8160
|
-
var DEFAULT_PRIORITY = 1000;
|
|
8721
|
+
var DEFAULT_PRIORITY$1 = 1000;
|
|
8161
8722
|
|
|
8162
8723
|
/**
|
|
8163
8724
|
* A utility that can be used to plug-in into the command execution for
|
|
@@ -8219,7 +8780,7 @@
|
|
|
8219
8780
|
that = unwrap;
|
|
8220
8781
|
unwrap = handlerFn;
|
|
8221
8782
|
handlerFn = priority;
|
|
8222
|
-
priority = DEFAULT_PRIORITY;
|
|
8783
|
+
priority = DEFAULT_PRIORITY$1;
|
|
8223
8784
|
}
|
|
8224
8785
|
|
|
8225
8786
|
if (isObject(unwrap)) {
|
|
@@ -8231,13 +8792,13 @@
|
|
|
8231
8792
|
throw new Error('handlerFn must be a function');
|
|
8232
8793
|
}
|
|
8233
8794
|
|
|
8234
|
-
if (!isArray(events)) {
|
|
8795
|
+
if (!isArray$3(events)) {
|
|
8235
8796
|
events = [ events ];
|
|
8236
8797
|
}
|
|
8237
8798
|
|
|
8238
8799
|
var eventBus = this._eventBus;
|
|
8239
8800
|
|
|
8240
|
-
forEach(events, function(event) {
|
|
8801
|
+
forEach$2(events, function(event) {
|
|
8241
8802
|
|
|
8242
8803
|
// concat commandStack(.event)?(.hook)?
|
|
8243
8804
|
var fullEvent = [ 'commandStack', event, hook ].filter(function(e) { return e; }).join('.');
|
|
@@ -8265,7 +8826,7 @@
|
|
|
8265
8826
|
* This will generate the CommandInterceptor#(preExecute|...|reverted) methods
|
|
8266
8827
|
* which will in term forward to CommandInterceptor#on.
|
|
8267
8828
|
*/
|
|
8268
|
-
forEach(hooks, function(hook) {
|
|
8829
|
+
forEach$2(hooks, function(hook) {
|
|
8269
8830
|
|
|
8270
8831
|
/**
|
|
8271
8832
|
* {canExecute|preExecute|preExecuted|execute|executed|postExecute|postExecuted|revert|reverted}
|
|
@@ -8332,109 +8893,111 @@
|
|
|
8332
8893
|
rootElementsBehavior: [ 'type', RootElementsBehavior ]
|
|
8333
8894
|
};
|
|
8334
8895
|
|
|
8896
|
+
var css_escape = {exports: {}};
|
|
8897
|
+
|
|
8335
8898
|
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
|
|
8336
8899
|
|
|
8337
|
-
|
|
8900
|
+
(function (module, exports) {
|
|
8338
8901
|
(function(root, factory) {
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
if (root.CSS && root.CSS.escape) {
|
|
8347
|
-
return root.CSS.escape;
|
|
8348
|
-
}
|
|
8902
|
+
// https://github.com/umdjs/umd/blob/master/returnExports.js
|
|
8903
|
+
{
|
|
8904
|
+
// For Node.js.
|
|
8905
|
+
module.exports = factory(root);
|
|
8906
|
+
}
|
|
8907
|
+
}(typeof commonjsGlobal != 'undefined' ? commonjsGlobal : commonjsGlobal, function(root) {
|
|
8349
8908
|
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
if (arguments.length == 0) {
|
|
8353
|
-
throw new TypeError('`CSS.escape` requires an argument.');
|
|
8909
|
+
if (root.CSS && root.CSS.escape) {
|
|
8910
|
+
return root.CSS.escape;
|
|
8354
8911
|
}
|
|
8355
|
-
var string = String(value);
|
|
8356
|
-
var length = string.length;
|
|
8357
|
-
var index = -1;
|
|
8358
|
-
var codeUnit;
|
|
8359
|
-
var result = '';
|
|
8360
|
-
var firstCodeUnit = string.charCodeAt(0);
|
|
8361
|
-
while (++index < length) {
|
|
8362
|
-
codeUnit = string.charCodeAt(index);
|
|
8363
|
-
// Note: there’s no need to special-case astral symbols, surrogate
|
|
8364
|
-
// pairs, or lone surrogates.
|
|
8365
|
-
|
|
8366
|
-
// If the character is NULL (U+0000), then the REPLACEMENT CHARACTER
|
|
8367
|
-
// (U+FFFD).
|
|
8368
|
-
if (codeUnit == 0x0000) {
|
|
8369
|
-
result += '\uFFFD';
|
|
8370
|
-
continue;
|
|
8371
|
-
}
|
|
8372
8912
|
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8377
|
-
// If the character is the first character and is in the range [0-9]
|
|
8378
|
-
// (U+0030 to U+0039), […]
|
|
8379
|
-
(index == 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039) ||
|
|
8380
|
-
// If the character is the second character and is in the range [0-9]
|
|
8381
|
-
// (U+0030 to U+0039) and the first character is a `-` (U+002D), […]
|
|
8382
|
-
(
|
|
8383
|
-
index == 1 &&
|
|
8384
|
-
codeUnit >= 0x0030 && codeUnit <= 0x0039 &&
|
|
8385
|
-
firstCodeUnit == 0x002D
|
|
8386
|
-
)
|
|
8387
|
-
) {
|
|
8388
|
-
// https://drafts.csswg.org/cssom/#escape-a-character-as-code-point
|
|
8389
|
-
result += '\\' + codeUnit.toString(16) + ' ';
|
|
8390
|
-
continue;
|
|
8913
|
+
// https://drafts.csswg.org/cssom/#serialize-an-identifier
|
|
8914
|
+
var cssEscape = function(value) {
|
|
8915
|
+
if (arguments.length == 0) {
|
|
8916
|
+
throw new TypeError('`CSS.escape` requires an argument.');
|
|
8391
8917
|
}
|
|
8918
|
+
var string = String(value);
|
|
8919
|
+
var length = string.length;
|
|
8920
|
+
var index = -1;
|
|
8921
|
+
var codeUnit;
|
|
8922
|
+
var result = '';
|
|
8923
|
+
var firstCodeUnit = string.charCodeAt(0);
|
|
8924
|
+
while (++index < length) {
|
|
8925
|
+
codeUnit = string.charCodeAt(index);
|
|
8926
|
+
// Note: there’s no need to special-case astral symbols, surrogate
|
|
8927
|
+
// pairs, or lone surrogates.
|
|
8928
|
+
|
|
8929
|
+
// If the character is NULL (U+0000), then the REPLACEMENT CHARACTER
|
|
8930
|
+
// (U+FFFD).
|
|
8931
|
+
if (codeUnit == 0x0000) {
|
|
8932
|
+
result += '\uFFFD';
|
|
8933
|
+
continue;
|
|
8934
|
+
}
|
|
8935
|
+
|
|
8936
|
+
if (
|
|
8937
|
+
// If the character is in the range [\1-\1F] (U+0001 to U+001F) or is
|
|
8938
|
+
// U+007F, […]
|
|
8939
|
+
(codeUnit >= 0x0001 && codeUnit <= 0x001F) || codeUnit == 0x007F ||
|
|
8940
|
+
// If the character is the first character and is in the range [0-9]
|
|
8941
|
+
// (U+0030 to U+0039), […]
|
|
8942
|
+
(index == 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039) ||
|
|
8943
|
+
// If the character is the second character and is in the range [0-9]
|
|
8944
|
+
// (U+0030 to U+0039) and the first character is a `-` (U+002D), […]
|
|
8945
|
+
(
|
|
8946
|
+
index == 1 &&
|
|
8947
|
+
codeUnit >= 0x0030 && codeUnit <= 0x0039 &&
|
|
8948
|
+
firstCodeUnit == 0x002D
|
|
8949
|
+
)
|
|
8950
|
+
) {
|
|
8951
|
+
// https://drafts.csswg.org/cssom/#escape-a-character-as-code-point
|
|
8952
|
+
result += '\\' + codeUnit.toString(16) + ' ';
|
|
8953
|
+
continue;
|
|
8954
|
+
}
|
|
8392
8955
|
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
|
|
8396
|
-
|
|
8397
|
-
|
|
8398
|
-
|
|
8399
|
-
|
|
8956
|
+
if (
|
|
8957
|
+
// If the character is the first character and is a `-` (U+002D), and
|
|
8958
|
+
// there is no second character, […]
|
|
8959
|
+
index == 0 &&
|
|
8960
|
+
length == 1 &&
|
|
8961
|
+
codeUnit == 0x002D
|
|
8962
|
+
) {
|
|
8963
|
+
result += '\\' + string.charAt(index);
|
|
8964
|
+
continue;
|
|
8965
|
+
}
|
|
8966
|
+
|
|
8967
|
+
// If the character is not handled by one of the above rules and is
|
|
8968
|
+
// greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or
|
|
8969
|
+
// is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to
|
|
8970
|
+
// U+005A), or [a-z] (U+0061 to U+007A), […]
|
|
8971
|
+
if (
|
|
8972
|
+
codeUnit >= 0x0080 ||
|
|
8973
|
+
codeUnit == 0x002D ||
|
|
8974
|
+
codeUnit == 0x005F ||
|
|
8975
|
+
codeUnit >= 0x0030 && codeUnit <= 0x0039 ||
|
|
8976
|
+
codeUnit >= 0x0041 && codeUnit <= 0x005A ||
|
|
8977
|
+
codeUnit >= 0x0061 && codeUnit <= 0x007A
|
|
8978
|
+
) {
|
|
8979
|
+
// the character itself
|
|
8980
|
+
result += string.charAt(index);
|
|
8981
|
+
continue;
|
|
8982
|
+
}
|
|
8983
|
+
|
|
8984
|
+
// Otherwise, the escaped character.
|
|
8985
|
+
// https://drafts.csswg.org/cssom/#escape-a-character
|
|
8400
8986
|
result += '\\' + string.charAt(index);
|
|
8401
|
-
continue;
|
|
8402
|
-
}
|
|
8403
8987
|
|
|
8404
|
-
// If the character is not handled by one of the above rules and is
|
|
8405
|
-
// greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or
|
|
8406
|
-
// is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to
|
|
8407
|
-
// U+005A), or [a-z] (U+0061 to U+007A), […]
|
|
8408
|
-
if (
|
|
8409
|
-
codeUnit >= 0x0080 ||
|
|
8410
|
-
codeUnit == 0x002D ||
|
|
8411
|
-
codeUnit == 0x005F ||
|
|
8412
|
-
codeUnit >= 0x0030 && codeUnit <= 0x0039 ||
|
|
8413
|
-
codeUnit >= 0x0041 && codeUnit <= 0x005A ||
|
|
8414
|
-
codeUnit >= 0x0061 && codeUnit <= 0x007A
|
|
8415
|
-
) {
|
|
8416
|
-
// the character itself
|
|
8417
|
-
result += string.charAt(index);
|
|
8418
|
-
continue;
|
|
8419
8988
|
}
|
|
8989
|
+
return result;
|
|
8990
|
+
};
|
|
8420
8991
|
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
result += '\\' + string.charAt(index);
|
|
8424
|
-
|
|
8992
|
+
if (!root.CSS) {
|
|
8993
|
+
root.CSS = {};
|
|
8425
8994
|
}
|
|
8426
|
-
return result;
|
|
8427
|
-
};
|
|
8428
|
-
|
|
8429
|
-
if (!root.CSS) {
|
|
8430
|
-
root.CSS = {};
|
|
8431
|
-
}
|
|
8432
8995
|
|
|
8433
|
-
|
|
8434
|
-
|
|
8996
|
+
root.CSS.escape = cssEscape;
|
|
8997
|
+
return cssEscape;
|
|
8435
8998
|
|
|
8436
|
-
|
|
8437
|
-
});
|
|
8999
|
+
}));
|
|
9000
|
+
} (css_escape));
|
|
8438
9001
|
|
|
8439
9002
|
var HTML_ESCAPE_MAP = {
|
|
8440
9003
|
'&': '&',
|
|
@@ -8464,7 +9027,7 @@
|
|
|
8464
9027
|
function getPlaneIdFromShape(element) {
|
|
8465
9028
|
var id = element.id;
|
|
8466
9029
|
|
|
8467
|
-
if (is(element, 'bpmn:SubProcess')) {
|
|
9030
|
+
if (is$1(element, 'bpmn:SubProcess')) {
|
|
8468
9031
|
return addPlaneSuffix(id);
|
|
8469
9032
|
}
|
|
8470
9033
|
|
|
@@ -8487,9 +9050,9 @@
|
|
|
8487
9050
|
* @param {canvas} canvas
|
|
8488
9051
|
*/
|
|
8489
9052
|
function DrilldownBreadcrumbs(eventBus, elementRegistry, overlays, canvas) {
|
|
8490
|
-
var breadcrumbs = domify('<ul class="bjs-breadcrumbs"></ul>');
|
|
9053
|
+
var breadcrumbs = domify$1('<ul class="bjs-breadcrumbs"></ul>');
|
|
8491
9054
|
var container = canvas.getContainer();
|
|
8492
|
-
var containerClasses = classes$
|
|
9055
|
+
var containerClasses = classes$2(container);
|
|
8493
9056
|
container.appendChild(breadcrumbs);
|
|
8494
9057
|
|
|
8495
9058
|
var boParents = [];
|
|
@@ -8523,13 +9086,13 @@
|
|
|
8523
9086
|
|
|
8524
9087
|
var path = boParents.map(function(parent) {
|
|
8525
9088
|
var title = escapeHTML(parent.name || parent.id);
|
|
8526
|
-
var link = domify('<li><span class="bjs-crumb"><a title="' + title + '">' + title + '</a></span></li>');
|
|
9089
|
+
var link = domify$1('<li><span class="bjs-crumb"><a title="' + title + '">' + title + '</a></span></li>');
|
|
8527
9090
|
|
|
8528
9091
|
var parentPlane = canvas.findRoot(getPlaneIdFromShape(parent)) || canvas.findRoot(parent.id);
|
|
8529
9092
|
|
|
8530
9093
|
// when the root is a collaboration, the process does not have a corresponding
|
|
8531
9094
|
// element in the elementRegisty. Instead, we search for the corresponding participant
|
|
8532
|
-
if (!parentPlane && is(parent, 'bpmn:Process')) {
|
|
9095
|
+
if (!parentPlane && is$1(parent, 'bpmn:Process')) {
|
|
8533
9096
|
var participant = elementRegistry.find(function(element) {
|
|
8534
9097
|
var bo = getBusinessObject(element);
|
|
8535
9098
|
return bo && bo.processRef && bo.processRef === parent;
|
|
@@ -8581,7 +9144,7 @@
|
|
|
8581
9144
|
var parents = [];
|
|
8582
9145
|
|
|
8583
9146
|
for (var element = bo; element; element = element.$parent) {
|
|
8584
|
-
if (is(element, 'bpmn:SubProcess') || is(element, 'bpmn:Process')) {
|
|
9147
|
+
if (is$1(element, 'bpmn:SubProcess') || is$1(element, 'bpmn:Process')) {
|
|
8585
9148
|
parents.push(element);
|
|
8586
9149
|
}
|
|
8587
9150
|
}
|
|
@@ -8616,7 +9179,7 @@
|
|
|
8616
9179
|
currentRoot = newRoot;
|
|
8617
9180
|
|
|
8618
9181
|
// current root was replaced with a collaboration, we don't update the viewbox
|
|
8619
|
-
if (is(newRoot, 'bpmn:Collaboration') && !storedViewbox) {
|
|
9182
|
+
if (is$1(newRoot, 'bpmn:Collaboration') && !storedViewbox) {
|
|
8620
9183
|
return;
|
|
8621
9184
|
}
|
|
8622
9185
|
|
|
@@ -8779,7 +9342,7 @@
|
|
|
8779
9342
|
|
|
8780
9343
|
var parent = bo.$parent;
|
|
8781
9344
|
|
|
8782
|
-
if (is(bo, 'bpmn:SubProcess') && !diElement.isExpanded) {
|
|
9345
|
+
if (is$1(bo, 'bpmn:SubProcess') && !diElement.isExpanded) {
|
|
8783
9346
|
collapsedElements.push(bo);
|
|
8784
9347
|
}
|
|
8785
9348
|
|
|
@@ -8875,7 +9438,7 @@
|
|
|
8875
9438
|
// helpers //////////////////////////
|
|
8876
9439
|
|
|
8877
9440
|
function findRootDiagram(element) {
|
|
8878
|
-
if (is(element, 'bpmndi:BPMNDiagram')) {
|
|
9441
|
+
if (is$1(element, 'bpmndi:BPMNDiagram')) {
|
|
8879
9442
|
return element;
|
|
8880
9443
|
} else {
|
|
8881
9444
|
return findRootDiagram(element.$parent);
|
|
@@ -8908,7 +9471,7 @@
|
|
|
8908
9471
|
var parent = bo.$parent;
|
|
8909
9472
|
|
|
8910
9473
|
// don't move elements that are already on the plane
|
|
8911
|
-
if (!is(parent, 'bpmn:SubProcess') || parent === plane.bpmnElement) {
|
|
9474
|
+
if (!is$1(parent, 'bpmn:SubProcess') || parent === plane.bpmnElement) {
|
|
8912
9475
|
return false;
|
|
8913
9476
|
}
|
|
8914
9477
|
|
|
@@ -8921,7 +9484,7 @@
|
|
|
8921
9484
|
return true;
|
|
8922
9485
|
}
|
|
8923
9486
|
|
|
8924
|
-
var LOW_PRIORITY
|
|
9487
|
+
var LOW_PRIORITY = 250;
|
|
8925
9488
|
var ARROW_DOWN_SVG = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4.81801948,3.50735931 L10.4996894,9.1896894 L10.5,4 L12,4 L12,12 L4,12 L4,10.5 L9.6896894,10.4996894 L3.75735931,4.56801948 C3.46446609,4.27512627 3.46446609,3.80025253 3.75735931,3.50735931 C4.05025253,3.21446609 4.52512627,3.21446609 4.81801948,3.50735931 Z"/></svg>';
|
|
8926
9489
|
|
|
8927
9490
|
var EMPTY_MARKER = 'bjs-drilldown-empty';
|
|
@@ -8938,7 +9501,7 @@
|
|
|
8938
9501
|
|
|
8939
9502
|
var self = this;
|
|
8940
9503
|
|
|
8941
|
-
this.executed('shape.toggleCollapse', LOW_PRIORITY
|
|
9504
|
+
this.executed('shape.toggleCollapse', LOW_PRIORITY, function(context) {
|
|
8942
9505
|
var shape = context.shape;
|
|
8943
9506
|
|
|
8944
9507
|
// Add overlay to the collapsed shape
|
|
@@ -8950,7 +9513,7 @@
|
|
|
8950
9513
|
}, true);
|
|
8951
9514
|
|
|
8952
9515
|
|
|
8953
|
-
this.reverted('shape.toggleCollapse', LOW_PRIORITY
|
|
9516
|
+
this.reverted('shape.toggleCollapse', LOW_PRIORITY, function(context) {
|
|
8954
9517
|
var shape = context.shape;
|
|
8955
9518
|
|
|
8956
9519
|
// Add overlay to the collapsed shape
|
|
@@ -8962,7 +9525,7 @@
|
|
|
8962
9525
|
}, true);
|
|
8963
9526
|
|
|
8964
9527
|
|
|
8965
|
-
this.executed([ 'shape.create', 'shape.move', 'shape.delete' ], LOW_PRIORITY
|
|
9528
|
+
this.executed([ 'shape.create', 'shape.move', 'shape.delete' ], LOW_PRIORITY,
|
|
8966
9529
|
function(context) {
|
|
8967
9530
|
var oldParent = context.oldParent,
|
|
8968
9531
|
newParent = context.newParent || context.parent,
|
|
@@ -8979,7 +9542,7 @@
|
|
|
8979
9542
|
}, true);
|
|
8980
9543
|
|
|
8981
9544
|
|
|
8982
|
-
this.reverted([ 'shape.create', 'shape.move', 'shape.delete' ], LOW_PRIORITY
|
|
9545
|
+
this.reverted([ 'shape.create', 'shape.move', 'shape.delete' ], LOW_PRIORITY,
|
|
8983
9546
|
function(context) {
|
|
8984
9547
|
var oldParent = context.oldParent,
|
|
8985
9548
|
newParent = context.newParent || context.parent,
|
|
@@ -9024,7 +9587,7 @@
|
|
|
9024
9587
|
|
|
9025
9588
|
DrilldownOverlayBehavior.prototype.canDrillDown = function(element) {
|
|
9026
9589
|
var canvas = this._canvas;
|
|
9027
|
-
return is(element, 'bpmn:SubProcess') && canvas.findRoot(getPlaneIdFromShape(element));
|
|
9590
|
+
return is$1(element, 'bpmn:SubProcess') && canvas.findRoot(getPlaneIdFromShape(element));
|
|
9028
9591
|
};
|
|
9029
9592
|
|
|
9030
9593
|
/**
|
|
@@ -9045,7 +9608,7 @@
|
|
|
9045
9608
|
}
|
|
9046
9609
|
|
|
9047
9610
|
var hasContent = bo && bo.flowElements && bo.flowElements.length;
|
|
9048
|
-
classes$
|
|
9611
|
+
classes$2(overlay.html).toggle(EMPTY_MARKER, !hasContent);
|
|
9049
9612
|
};
|
|
9050
9613
|
|
|
9051
9614
|
/**
|
|
@@ -9063,7 +9626,7 @@
|
|
|
9063
9626
|
this.removeOverlay(element);
|
|
9064
9627
|
}
|
|
9065
9628
|
|
|
9066
|
-
var button = domify('<button class="bjs-drilldown">' + ARROW_DOWN_SVG + '</button>');
|
|
9629
|
+
var button = domify$1('<button class="bjs-drilldown">' + ARROW_DOWN_SVG + '</button>');
|
|
9067
9630
|
|
|
9068
9631
|
button.addEventListener('click', function() {
|
|
9069
9632
|
canvas.setRootElement(canvas.findRoot(getPlaneIdFromShape(element)));
|
|
@@ -9122,7 +9685,7 @@
|
|
|
9122
9685
|
*
|
|
9123
9686
|
* @return {boolean}
|
|
9124
9687
|
*/
|
|
9125
|
-
function isArray
|
|
9688
|
+
function isArray(obj) {
|
|
9126
9689
|
return Object.prototype.toString.call(obj) === '[object Array]';
|
|
9127
9690
|
}
|
|
9128
9691
|
|
|
@@ -9150,7 +9713,7 @@
|
|
|
9150
9713
|
function annotate() {
|
|
9151
9714
|
var args = Array.prototype.slice.call(arguments);
|
|
9152
9715
|
|
|
9153
|
-
if (args.length === 1 && isArray
|
|
9716
|
+
if (args.length === 1 && isArray(args[0])) {
|
|
9154
9717
|
args = args[0];
|
|
9155
9718
|
}
|
|
9156
9719
|
|
|
@@ -9289,7 +9852,7 @@
|
|
|
9289
9852
|
}
|
|
9290
9853
|
|
|
9291
9854
|
if (typeof fn !== 'function') {
|
|
9292
|
-
if (isArray
|
|
9855
|
+
if (isArray(fn)) {
|
|
9293
9856
|
fn = annotate(fn.slice());
|
|
9294
9857
|
} else {
|
|
9295
9858
|
throw new Error('Cannot invoke "' + fn + '". Expected a function!');
|
|
@@ -9564,7 +10127,7 @@
|
|
|
9564
10127
|
// helpers ///////////////
|
|
9565
10128
|
|
|
9566
10129
|
function arrayUnwrap(type, value) {
|
|
9567
|
-
if (type !== 'value' && isArray
|
|
10130
|
+
if (type !== 'value' && isArray(value)) {
|
|
9568
10131
|
value = annotate(value.slice());
|
|
9569
10132
|
}
|
|
9570
10133
|
|
|
@@ -9573,7 +10136,7 @@
|
|
|
9573
10136
|
|
|
9574
10137
|
// apply default renderer with lowest possible priority
|
|
9575
10138
|
// so that it only kicks in if noone else could render
|
|
9576
|
-
var DEFAULT_RENDER_PRIORITY
|
|
10139
|
+
var DEFAULT_RENDER_PRIORITY = 1;
|
|
9577
10140
|
|
|
9578
10141
|
/**
|
|
9579
10142
|
* The default renderer used for shapes and connections.
|
|
@@ -9584,7 +10147,7 @@
|
|
|
9584
10147
|
function DefaultRenderer(eventBus, styles) {
|
|
9585
10148
|
|
|
9586
10149
|
//
|
|
9587
|
-
BaseRenderer.call(this, eventBus, DEFAULT_RENDER_PRIORITY
|
|
10150
|
+
BaseRenderer.call(this, eventBus, DEFAULT_RENDER_PRIORITY);
|
|
9588
10151
|
|
|
9589
10152
|
this.CONNECTION_STYLE = styles.style([ 'no-fill' ], { strokeWidth: 5, stroke: 'fuchsia' });
|
|
9590
10153
|
this.SHAPE_STYLE = styles.style({ fill: 'white', stroke: 'fuchsia', strokeWidth: 2 });
|
|
@@ -9599,22 +10162,22 @@
|
|
|
9599
10162
|
};
|
|
9600
10163
|
|
|
9601
10164
|
DefaultRenderer.prototype.drawShape = function drawShape(visuals, element, attrs) {
|
|
9602
|
-
var rect = create('rect');
|
|
10165
|
+
var rect = create$3('rect');
|
|
9603
10166
|
|
|
9604
|
-
attr(rect, {
|
|
10167
|
+
attr$3(rect, {
|
|
9605
10168
|
x: 0,
|
|
9606
10169
|
y: 0,
|
|
9607
10170
|
width: element.width || 0,
|
|
9608
10171
|
height: element.height || 0
|
|
9609
10172
|
});
|
|
9610
10173
|
|
|
9611
|
-
if (isFrameElement
|
|
9612
|
-
attr(rect, assign({}, this.FRAME_STYLE, attrs || {}));
|
|
10174
|
+
if (isFrameElement(element)) {
|
|
10175
|
+
attr$3(rect, assign({}, this.FRAME_STYLE, attrs || {}));
|
|
9613
10176
|
} else {
|
|
9614
|
-
attr(rect, assign({}, this.SHAPE_STYLE, attrs || {}));
|
|
10177
|
+
attr$3(rect, assign({}, this.SHAPE_STYLE, attrs || {}));
|
|
9615
10178
|
}
|
|
9616
10179
|
|
|
9617
|
-
append(visuals, rect);
|
|
10180
|
+
append$2(visuals, rect);
|
|
9618
10181
|
|
|
9619
10182
|
return rect;
|
|
9620
10183
|
};
|
|
@@ -9622,7 +10185,7 @@
|
|
|
9622
10185
|
DefaultRenderer.prototype.drawConnection = function drawConnection(visuals, connection, attrs) {
|
|
9623
10186
|
|
|
9624
10187
|
var line = createLine(connection.waypoints, assign({}, this.CONNECTION_STYLE, attrs || {}));
|
|
9625
|
-
append(visuals, line);
|
|
10188
|
+
append$2(visuals, line);
|
|
9626
10189
|
|
|
9627
10190
|
return line;
|
|
9628
10191
|
};
|
|
@@ -9710,7 +10273,7 @@
|
|
|
9710
10273
|
*/
|
|
9711
10274
|
this.style = function(traits, additionalAttrs) {
|
|
9712
10275
|
|
|
9713
|
-
if (!isArray(traits) && !additionalAttrs) {
|
|
10276
|
+
if (!isArray$3(traits) && !additionalAttrs) {
|
|
9714
10277
|
additionalAttrs = traits;
|
|
9715
10278
|
traits = [];
|
|
9716
10279
|
}
|
|
@@ -9723,7 +10286,7 @@
|
|
|
9723
10286
|
};
|
|
9724
10287
|
|
|
9725
10288
|
this.computeStyle = function(custom, traits, defaultStyles) {
|
|
9726
|
-
if (!isArray(traits)) {
|
|
10289
|
+
if (!isArray$3(traits)) {
|
|
9727
10290
|
defaultStyles = traits;
|
|
9728
10291
|
traits = [];
|
|
9729
10292
|
}
|
|
@@ -9732,7 +10295,7 @@
|
|
|
9732
10295
|
};
|
|
9733
10296
|
}
|
|
9734
10297
|
|
|
9735
|
-
var DrawModule
|
|
10298
|
+
var DrawModule = {
|
|
9736
10299
|
__init__: [ 'defaultRenderer' ],
|
|
9737
10300
|
defaultRenderer: [ 'type', DefaultRenderer ],
|
|
9738
10301
|
styles: [ 'type', Styles ]
|
|
@@ -9746,7 +10309,7 @@
|
|
|
9746
10309
|
*
|
|
9747
10310
|
* @return {number} the previous index of the element
|
|
9748
10311
|
*/
|
|
9749
|
-
function remove
|
|
10312
|
+
function remove(collection, element) {
|
|
9750
10313
|
|
|
9751
10314
|
if (!collection || !element) {
|
|
9752
10315
|
return -1;
|
|
@@ -9860,8 +10423,8 @@
|
|
|
9860
10423
|
}
|
|
9861
10424
|
|
|
9862
10425
|
function createGroup(parent, cls, childIndex) {
|
|
9863
|
-
var group = create('g');
|
|
9864
|
-
classes(group).add(cls);
|
|
10426
|
+
var group = create$3('g');
|
|
10427
|
+
classes$3(group).add(cls);
|
|
9865
10428
|
|
|
9866
10429
|
var index = childIndex !== undefined ? childIndex : parent.childNodes.length - 1;
|
|
9867
10430
|
|
|
@@ -9939,10 +10502,10 @@
|
|
|
9939
10502
|
// html container
|
|
9940
10503
|
var container = this._container = createContainer(config);
|
|
9941
10504
|
|
|
9942
|
-
var svg = this._svg = create('svg');
|
|
9943
|
-
attr(svg, { width: '100%', height: '100%' });
|
|
10505
|
+
var svg = this._svg = create$3('svg');
|
|
10506
|
+
attr$3(svg, { width: '100%', height: '100%' });
|
|
9944
10507
|
|
|
9945
|
-
append(container, svg);
|
|
10508
|
+
append$2(container, svg);
|
|
9946
10509
|
|
|
9947
10510
|
var viewport = this._viewport = createGroup(svg, 'viewport');
|
|
9948
10511
|
|
|
@@ -10182,7 +10745,7 @@
|
|
|
10182
10745
|
return group;
|
|
10183
10746
|
}
|
|
10184
10747
|
|
|
10185
|
-
remove(group);
|
|
10748
|
+
remove$4(group);
|
|
10186
10749
|
|
|
10187
10750
|
layer.visible = false;
|
|
10188
10751
|
|
|
@@ -10197,7 +10760,7 @@
|
|
|
10197
10760
|
if (layer) {
|
|
10198
10761
|
delete this._layers[name];
|
|
10199
10762
|
|
|
10200
|
-
remove(layer.group);
|
|
10763
|
+
remove$4(layer.group);
|
|
10201
10764
|
}
|
|
10202
10765
|
};
|
|
10203
10766
|
|
|
@@ -10285,14 +10848,14 @@
|
|
|
10285
10848
|
return;
|
|
10286
10849
|
}
|
|
10287
10850
|
|
|
10288
|
-
forEach([ container.gfx, container.secondaryGfx ], function(gfx) {
|
|
10851
|
+
forEach$2([ container.gfx, container.secondaryGfx ], function(gfx) {
|
|
10289
10852
|
if (gfx) {
|
|
10290
10853
|
|
|
10291
10854
|
// invoke either addClass or removeClass based on mode
|
|
10292
10855
|
if (add) {
|
|
10293
|
-
classes(gfx).add(marker);
|
|
10856
|
+
classes$3(gfx).add(marker);
|
|
10294
10857
|
} else {
|
|
10295
|
-
classes(gfx).remove(marker);
|
|
10858
|
+
classes$3(gfx).remove(marker);
|
|
10296
10859
|
}
|
|
10297
10860
|
}
|
|
10298
10861
|
});
|
|
@@ -10358,7 +10921,7 @@
|
|
|
10358
10921
|
|
|
10359
10922
|
var gfx = this.getGraphics(element);
|
|
10360
10923
|
|
|
10361
|
-
return classes(gfx).has(marker);
|
|
10924
|
+
return classes$3(gfx).has(marker);
|
|
10362
10925
|
};
|
|
10363
10926
|
|
|
10364
10927
|
/**
|
|
@@ -10698,7 +11261,7 @@
|
|
|
10698
11261
|
graphicsFactory.remove(element);
|
|
10699
11262
|
|
|
10700
11263
|
// unset parent <-> child relationship
|
|
10701
|
-
remove
|
|
11264
|
+
remove(element.parent && element.parent.children, element);
|
|
10702
11265
|
element.parent = null;
|
|
10703
11266
|
|
|
10704
11267
|
eventBus.fire(type + '.removed', { element: element });
|
|
@@ -10874,7 +11437,7 @@
|
|
|
10874
11437
|
outerBox = this.getSize(),
|
|
10875
11438
|
matrix,
|
|
10876
11439
|
activeLayer,
|
|
10877
|
-
transform
|
|
11440
|
+
transform,
|
|
10878
11441
|
scale,
|
|
10879
11442
|
x, y;
|
|
10880
11443
|
|
|
@@ -10887,8 +11450,8 @@
|
|
|
10887
11450
|
activeLayer = this._rootElement ? this.getActiveLayer() : null;
|
|
10888
11451
|
innerBox = activeLayer && activeLayer.getBBox() || {};
|
|
10889
11452
|
|
|
10890
|
-
transform
|
|
10891
|
-
matrix = transform
|
|
11453
|
+
transform = transform$1(viewport);
|
|
11454
|
+
matrix = transform ? transform.matrix : createMatrix();
|
|
10892
11455
|
scale = round(matrix.a, 1000);
|
|
10893
11456
|
|
|
10894
11457
|
x = round(-matrix.e || 0, 1000);
|
|
@@ -10919,7 +11482,7 @@
|
|
|
10919
11482
|
.scale(scale)
|
|
10920
11483
|
.translate(-box.x, -box.y);
|
|
10921
11484
|
|
|
10922
|
-
transform(viewport, matrix);
|
|
11485
|
+
transform$1(viewport, matrix);
|
|
10923
11486
|
});
|
|
10924
11487
|
}
|
|
10925
11488
|
|
|
@@ -11256,10 +11819,10 @@
|
|
|
11256
11819
|
this._validateId(id);
|
|
11257
11820
|
|
|
11258
11821
|
// associate dom node with element
|
|
11259
|
-
attr(gfx, ELEMENT_ID, id);
|
|
11822
|
+
attr$3(gfx, ELEMENT_ID, id);
|
|
11260
11823
|
|
|
11261
11824
|
if (secondaryGfx) {
|
|
11262
|
-
attr(secondaryGfx, ELEMENT_ID, id);
|
|
11825
|
+
attr$3(secondaryGfx, ELEMENT_ID, id);
|
|
11263
11826
|
}
|
|
11264
11827
|
|
|
11265
11828
|
this._elements[id] = { element: element, gfx: gfx, secondaryGfx: secondaryGfx };
|
|
@@ -11278,10 +11841,10 @@
|
|
|
11278
11841
|
if (container) {
|
|
11279
11842
|
|
|
11280
11843
|
// unset element id on gfx
|
|
11281
|
-
attr(container.gfx, ELEMENT_ID, '');
|
|
11844
|
+
attr$3(container.gfx, ELEMENT_ID, '');
|
|
11282
11845
|
|
|
11283
11846
|
if (container.secondaryGfx) {
|
|
11284
|
-
attr(container.secondaryGfx, ELEMENT_ID, '');
|
|
11847
|
+
attr$3(container.secondaryGfx, ELEMENT_ID, '');
|
|
11285
11848
|
}
|
|
11286
11849
|
|
|
11287
11850
|
delete elements[id];
|
|
@@ -11336,7 +11899,7 @@
|
|
|
11336
11899
|
}
|
|
11337
11900
|
|
|
11338
11901
|
if (gfx) {
|
|
11339
|
-
attr(gfx, ELEMENT_ID, id);
|
|
11902
|
+
attr$3(gfx, ELEMENT_ID, id);
|
|
11340
11903
|
}
|
|
11341
11904
|
|
|
11342
11905
|
return gfx;
|
|
@@ -11361,7 +11924,7 @@
|
|
|
11361
11924
|
if (typeof filter === 'string') {
|
|
11362
11925
|
id = filter;
|
|
11363
11926
|
} else {
|
|
11364
|
-
id = filter && attr(filter, ELEMENT_ID);
|
|
11927
|
+
id = filter && attr$3(filter, ELEMENT_ID);
|
|
11365
11928
|
}
|
|
11366
11929
|
|
|
11367
11930
|
var container = this._elements[id];
|
|
@@ -11478,6 +12041,10 @@
|
|
|
11478
12041
|
}
|
|
11479
12042
|
};
|
|
11480
12043
|
|
|
12044
|
+
var objectRefs = {exports: {}};
|
|
12045
|
+
|
|
12046
|
+
var collection = {};
|
|
12047
|
+
|
|
11481
12048
|
/**
|
|
11482
12049
|
* An empty collection stub. Use {@link RefsCollection.extend} to extend a
|
|
11483
12050
|
* collection with ref semantics.
|
|
@@ -11498,7 +12065,7 @@
|
|
|
11498
12065
|
*
|
|
11499
12066
|
* @return {RefsCollection<Object>} the extended array
|
|
11500
12067
|
*/
|
|
11501
|
-
function extend
|
|
12068
|
+
function extend(collection, refs, property, target) {
|
|
11502
12069
|
|
|
11503
12070
|
var inverseProperty = property.inverse;
|
|
11504
12071
|
|
|
@@ -11593,38 +12160,35 @@
|
|
|
11593
12160
|
return collection.__refs_collection === true;
|
|
11594
12161
|
}
|
|
11595
12162
|
|
|
11596
|
-
|
|
12163
|
+
collection.extend = extend;
|
|
11597
12164
|
|
|
11598
|
-
|
|
12165
|
+
collection.isExtended = isExtended;
|
|
11599
12166
|
|
|
11600
|
-
var
|
|
11601
|
-
extend: extend_1,
|
|
11602
|
-
isExtended: isExtended_1
|
|
11603
|
-
};
|
|
12167
|
+
var Collection = collection;
|
|
11604
12168
|
|
|
11605
|
-
function hasOwnProperty(e, property) {
|
|
12169
|
+
function hasOwnProperty$1(e, property) {
|
|
11606
12170
|
return Object.prototype.hasOwnProperty.call(e, property.name || property);
|
|
11607
12171
|
}
|
|
11608
12172
|
|
|
11609
12173
|
function defineCollectionProperty(ref, property, target) {
|
|
11610
12174
|
|
|
11611
|
-
var collection
|
|
12175
|
+
var collection = Collection.extend(target[property.name] || [], ref, property, target);
|
|
11612
12176
|
|
|
11613
12177
|
Object.defineProperty(target, property.name, {
|
|
11614
12178
|
enumerable: property.enumerable,
|
|
11615
|
-
value: collection
|
|
12179
|
+
value: collection
|
|
11616
12180
|
});
|
|
11617
12181
|
|
|
11618
|
-
if (collection
|
|
12182
|
+
if (collection.length) {
|
|
11619
12183
|
|
|
11620
|
-
collection
|
|
12184
|
+
collection.forEach(function(o) {
|
|
11621
12185
|
ref.set(o, property.inverse, target);
|
|
11622
12186
|
});
|
|
11623
12187
|
}
|
|
11624
12188
|
}
|
|
11625
12189
|
|
|
11626
12190
|
|
|
11627
|
-
function defineProperty(ref, property, target) {
|
|
12191
|
+
function defineProperty$1(ref, property, target) {
|
|
11628
12192
|
|
|
11629
12193
|
var inverseProperty = property.inverse;
|
|
11630
12194
|
|
|
@@ -11707,10 +12271,10 @@
|
|
|
11707
12271
|
*
|
|
11708
12272
|
* wheels[0].car // undefined
|
|
11709
12273
|
*/
|
|
11710
|
-
function Refs(a, b) {
|
|
12274
|
+
function Refs$1(a, b) {
|
|
11711
12275
|
|
|
11712
|
-
if (!(this instanceof Refs)) {
|
|
11713
|
-
return new Refs(a, b);
|
|
12276
|
+
if (!(this instanceof Refs$1)) {
|
|
12277
|
+
return new Refs$1(a, b);
|
|
11714
12278
|
}
|
|
11715
12279
|
|
|
11716
12280
|
// link
|
|
@@ -11731,7 +12295,7 @@
|
|
|
11731
12295
|
* @param {Object} target
|
|
11732
12296
|
* @param {String} property
|
|
11733
12297
|
*/
|
|
11734
|
-
Refs.prototype.bind = function(target, property) {
|
|
12298
|
+
Refs$1.prototype.bind = function(target, property) {
|
|
11735
12299
|
if (typeof property === 'string') {
|
|
11736
12300
|
if (!this.props[property]) {
|
|
11737
12301
|
throw new Error('no property <' + property + '> in ref');
|
|
@@ -11742,28 +12306,28 @@
|
|
|
11742
12306
|
if (property.collection) {
|
|
11743
12307
|
defineCollectionProperty(this, property, target);
|
|
11744
12308
|
} else {
|
|
11745
|
-
defineProperty(this, property, target);
|
|
12309
|
+
defineProperty$1(this, property, target);
|
|
11746
12310
|
}
|
|
11747
12311
|
};
|
|
11748
12312
|
|
|
11749
|
-
Refs.prototype.ensureRefsCollection = function(target, property) {
|
|
12313
|
+
Refs$1.prototype.ensureRefsCollection = function(target, property) {
|
|
11750
12314
|
|
|
11751
|
-
var collection
|
|
12315
|
+
var collection = target[property.name];
|
|
11752
12316
|
|
|
11753
|
-
if (!
|
|
12317
|
+
if (!Collection.isExtended(collection)) {
|
|
11754
12318
|
defineCollectionProperty(this, property, target);
|
|
11755
12319
|
}
|
|
11756
12320
|
|
|
11757
|
-
return collection
|
|
12321
|
+
return collection;
|
|
11758
12322
|
};
|
|
11759
12323
|
|
|
11760
|
-
Refs.prototype.ensureBound = function(target, property) {
|
|
11761
|
-
if (!hasOwnProperty(target, property)) {
|
|
12324
|
+
Refs$1.prototype.ensureBound = function(target, property) {
|
|
12325
|
+
if (!hasOwnProperty$1(target, property)) {
|
|
11762
12326
|
this.bind(target, property);
|
|
11763
12327
|
}
|
|
11764
12328
|
};
|
|
11765
12329
|
|
|
11766
|
-
Refs.prototype.unset = function(target, property, value) {
|
|
12330
|
+
Refs$1.prototype.unset = function(target, property, value) {
|
|
11767
12331
|
|
|
11768
12332
|
if (target) {
|
|
11769
12333
|
this.ensureBound(target, property);
|
|
@@ -11776,7 +12340,7 @@
|
|
|
11776
12340
|
}
|
|
11777
12341
|
};
|
|
11778
12342
|
|
|
11779
|
-
Refs.prototype.set = function(target, property, value) {
|
|
12343
|
+
Refs$1.prototype.set = function(target, property, value) {
|
|
11780
12344
|
|
|
11781
12345
|
if (target) {
|
|
11782
12346
|
this.ensureBound(target, property);
|
|
@@ -11789,18 +12353,21 @@
|
|
|
11789
12353
|
}
|
|
11790
12354
|
};
|
|
11791
12355
|
|
|
11792
|
-
var refs = Refs;
|
|
12356
|
+
var refs = Refs$1;
|
|
11793
12357
|
|
|
11794
|
-
|
|
12358
|
+
(function (module) {
|
|
12359
|
+
module.exports = refs;
|
|
11795
12360
|
|
|
11796
|
-
|
|
11797
|
-
objectRefs
|
|
12361
|
+
module.exports.Collection = collection;
|
|
12362
|
+
} (objectRefs));
|
|
12363
|
+
|
|
12364
|
+
var Refs = /*@__PURE__*/getDefaultExportFromCjs(objectRefs.exports);
|
|
11798
12365
|
|
|
11799
|
-
var parentRefs = new
|
|
11800
|
-
labelRefs = new
|
|
11801
|
-
attacherRefs = new
|
|
11802
|
-
outgoingRefs = new
|
|
11803
|
-
incomingRefs = new
|
|
12366
|
+
var parentRefs = new Refs({ name: 'children', enumerable: true, collection: true }, { name: 'parent' }),
|
|
12367
|
+
labelRefs = new Refs({ name: 'labels', enumerable: true, collection: true }, { name: 'labelTarget' }),
|
|
12368
|
+
attacherRefs = new Refs({ name: 'attachers', collection: true }, { name: 'host' }),
|
|
12369
|
+
outgoingRefs = new Refs({ name: 'outgoing', collection: true }, { name: 'source' }),
|
|
12370
|
+
incomingRefs = new Refs({ name: 'incoming', collection: true }, { name: 'target' });
|
|
11804
12371
|
|
|
11805
12372
|
/**
|
|
11806
12373
|
* @namespace djs.model
|
|
@@ -11817,7 +12384,7 @@
|
|
|
11817
12384
|
*
|
|
11818
12385
|
* @abstract
|
|
11819
12386
|
*/
|
|
11820
|
-
function Base() {
|
|
12387
|
+
function Base$1() {
|
|
11821
12388
|
|
|
11822
12389
|
/**
|
|
11823
12390
|
* The object that backs up the shape
|
|
@@ -11896,7 +12463,7 @@
|
|
|
11896
12463
|
* @extends Base
|
|
11897
12464
|
*/
|
|
11898
12465
|
function Shape() {
|
|
11899
|
-
Base.call(this);
|
|
12466
|
+
Base$1.call(this);
|
|
11900
12467
|
|
|
11901
12468
|
/**
|
|
11902
12469
|
* Indicates frame shapes
|
|
@@ -11926,7 +12493,7 @@
|
|
|
11926
12493
|
attacherRefs.bind(this, 'attachers');
|
|
11927
12494
|
}
|
|
11928
12495
|
|
|
11929
|
-
e(Shape, Base);
|
|
12496
|
+
e(Shape, Base$1);
|
|
11930
12497
|
|
|
11931
12498
|
|
|
11932
12499
|
/**
|
|
@@ -11976,7 +12543,7 @@
|
|
|
11976
12543
|
* @extends Base
|
|
11977
12544
|
*/
|
|
11978
12545
|
function Connection() {
|
|
11979
|
-
Base.call(this);
|
|
12546
|
+
Base$1.call(this);
|
|
11980
12547
|
|
|
11981
12548
|
/**
|
|
11982
12549
|
* The element this connection originates from
|
|
@@ -11995,10 +12562,10 @@
|
|
|
11995
12562
|
incomingRefs.bind(this, 'target');
|
|
11996
12563
|
}
|
|
11997
12564
|
|
|
11998
|
-
e(Connection, Base);
|
|
12565
|
+
e(Connection, Base$1);
|
|
11999
12566
|
|
|
12000
12567
|
|
|
12001
|
-
var types = {
|
|
12568
|
+
var types$7 = {
|
|
12002
12569
|
connection: Connection,
|
|
12003
12570
|
shape: Shape,
|
|
12004
12571
|
label: Label,
|
|
@@ -12022,8 +12589,8 @@
|
|
|
12022
12589
|
*
|
|
12023
12590
|
* @return {Base} the new model instance
|
|
12024
12591
|
*/
|
|
12025
|
-
function create$
|
|
12026
|
-
var Type = types[type];
|
|
12592
|
+
function create$1(type, attrs) {
|
|
12593
|
+
var Type = types$7[type];
|
|
12027
12594
|
if (!Type) {
|
|
12028
12595
|
throw new Error('unknown type: <' + type + '>');
|
|
12029
12596
|
}
|
|
@@ -12070,14 +12637,14 @@
|
|
|
12070
12637
|
attrs.id = type + '_' + (this._uid++);
|
|
12071
12638
|
}
|
|
12072
12639
|
|
|
12073
|
-
return create$
|
|
12640
|
+
return create$1(type, attrs);
|
|
12074
12641
|
};
|
|
12075
12642
|
|
|
12076
12643
|
var FN_REF = '__fn';
|
|
12077
12644
|
|
|
12078
|
-
var DEFAULT_PRIORITY
|
|
12645
|
+
var DEFAULT_PRIORITY = 1000;
|
|
12079
12646
|
|
|
12080
|
-
var slice
|
|
12647
|
+
var slice = Array.prototype.slice;
|
|
12081
12648
|
|
|
12082
12649
|
/**
|
|
12083
12650
|
* A general purpose event bus.
|
|
@@ -12190,12 +12757,12 @@
|
|
|
12190
12757
|
*/
|
|
12191
12758
|
EventBus.prototype.on = function(events, priority, callback, that) {
|
|
12192
12759
|
|
|
12193
|
-
events = isArray(events) ? events : [ events ];
|
|
12760
|
+
events = isArray$3(events) ? events : [ events ];
|
|
12194
12761
|
|
|
12195
12762
|
if (isFunction(priority)) {
|
|
12196
12763
|
that = callback;
|
|
12197
12764
|
callback = priority;
|
|
12198
|
-
priority = DEFAULT_PRIORITY
|
|
12765
|
+
priority = DEFAULT_PRIORITY;
|
|
12199
12766
|
}
|
|
12200
12767
|
|
|
12201
12768
|
if (!isNumber(priority)) {
|
|
@@ -12239,7 +12806,7 @@
|
|
|
12239
12806
|
if (isFunction(priority)) {
|
|
12240
12807
|
that = callback;
|
|
12241
12808
|
callback = priority;
|
|
12242
|
-
priority = DEFAULT_PRIORITY
|
|
12809
|
+
priority = DEFAULT_PRIORITY;
|
|
12243
12810
|
}
|
|
12244
12811
|
|
|
12245
12812
|
if (!isNumber(priority)) {
|
|
@@ -12275,7 +12842,7 @@
|
|
|
12275
12842
|
*/
|
|
12276
12843
|
EventBus.prototype.off = function(events, callback) {
|
|
12277
12844
|
|
|
12278
|
-
events = isArray(events) ? events : [ events ];
|
|
12845
|
+
events = isArray$3(events) ? events : [ events ];
|
|
12279
12846
|
|
|
12280
12847
|
var self = this;
|
|
12281
12848
|
|
|
@@ -12338,7 +12905,7 @@
|
|
|
12338
12905
|
returnValue,
|
|
12339
12906
|
args;
|
|
12340
12907
|
|
|
12341
|
-
args = slice
|
|
12908
|
+
args = slice.call(arguments);
|
|
12342
12909
|
|
|
12343
12910
|
if (typeof type === 'object') {
|
|
12344
12911
|
data = type;
|
|
@@ -12640,10 +13207,10 @@
|
|
|
12640
13207
|
} else {
|
|
12641
13208
|
childrenGfx = getChildren(gfx);
|
|
12642
13209
|
if (!childrenGfx) {
|
|
12643
|
-
childrenGfx = create('g');
|
|
12644
|
-
classes(childrenGfx).add('djs-children');
|
|
13210
|
+
childrenGfx = create$3('g');
|
|
13211
|
+
classes$3(childrenGfx).add('djs-children');
|
|
12645
13212
|
|
|
12646
|
-
append(gfx.parentNode, childrenGfx);
|
|
13213
|
+
append$2(gfx.parentNode, childrenGfx);
|
|
12647
13214
|
}
|
|
12648
13215
|
}
|
|
12649
13216
|
|
|
@@ -12657,7 +13224,7 @@
|
|
|
12657
13224
|
GraphicsFactory.prototype._clear = function(gfx) {
|
|
12658
13225
|
var visual = getVisual(gfx);
|
|
12659
13226
|
|
|
12660
|
-
clear
|
|
13227
|
+
clear(visual);
|
|
12661
13228
|
|
|
12662
13229
|
return visual;
|
|
12663
13230
|
};
|
|
@@ -12692,38 +13259,38 @@
|
|
|
12692
13259
|
GraphicsFactory.prototype._createContainer = function(
|
|
12693
13260
|
type, childrenGfx, parentIndex, isFrame
|
|
12694
13261
|
) {
|
|
12695
|
-
var outerGfx = create('g');
|
|
12696
|
-
classes(outerGfx).add('djs-group');
|
|
13262
|
+
var outerGfx = create$3('g');
|
|
13263
|
+
classes$3(outerGfx).add('djs-group');
|
|
12697
13264
|
|
|
12698
13265
|
// insert node at position
|
|
12699
13266
|
if (typeof parentIndex !== 'undefined') {
|
|
12700
13267
|
prependTo(outerGfx, childrenGfx, childrenGfx.childNodes[parentIndex]);
|
|
12701
13268
|
} else {
|
|
12702
|
-
append(childrenGfx, outerGfx);
|
|
13269
|
+
append$2(childrenGfx, outerGfx);
|
|
12703
13270
|
}
|
|
12704
13271
|
|
|
12705
|
-
var gfx = create('g');
|
|
12706
|
-
classes(gfx).add('djs-element');
|
|
12707
|
-
classes(gfx).add('djs-' + type);
|
|
13272
|
+
var gfx = create$3('g');
|
|
13273
|
+
classes$3(gfx).add('djs-element');
|
|
13274
|
+
classes$3(gfx).add('djs-' + type);
|
|
12708
13275
|
|
|
12709
13276
|
if (isFrame) {
|
|
12710
|
-
classes(gfx).add('djs-frame');
|
|
13277
|
+
classes$3(gfx).add('djs-frame');
|
|
12711
13278
|
}
|
|
12712
13279
|
|
|
12713
|
-
append(outerGfx, gfx);
|
|
13280
|
+
append$2(outerGfx, gfx);
|
|
12714
13281
|
|
|
12715
13282
|
// create visual
|
|
12716
|
-
var visual = create('g');
|
|
12717
|
-
classes(visual).add('djs-visual');
|
|
13283
|
+
var visual = create$3('g');
|
|
13284
|
+
classes$3(visual).add('djs-visual');
|
|
12718
13285
|
|
|
12719
|
-
append(gfx, visual);
|
|
13286
|
+
append$2(gfx, visual);
|
|
12720
13287
|
|
|
12721
13288
|
return gfx;
|
|
12722
13289
|
};
|
|
12723
13290
|
|
|
12724
13291
|
GraphicsFactory.prototype.create = function(type, element, parentIndex) {
|
|
12725
13292
|
var childrenGfx = this._getChildrenContainer(element.parent);
|
|
12726
|
-
return this._createContainer(type, childrenGfx, parentIndex, isFrameElement
|
|
13293
|
+
return this._createContainer(type, childrenGfx, parentIndex, isFrameElement(element));
|
|
12727
13294
|
};
|
|
12728
13295
|
|
|
12729
13296
|
GraphicsFactory.prototype.updateContainments = function(elements) {
|
|
@@ -12743,7 +13310,7 @@
|
|
|
12743
13310
|
|
|
12744
13311
|
// update all parents of changed and reorganized their children
|
|
12745
13312
|
// in the correct order (as indicated in our model)
|
|
12746
|
-
forEach(parents, function(parent) {
|
|
13313
|
+
forEach$2(parents, function(parent) {
|
|
12747
13314
|
|
|
12748
13315
|
var children = parent.children;
|
|
12749
13316
|
|
|
@@ -12753,7 +13320,7 @@
|
|
|
12753
13320
|
|
|
12754
13321
|
var childrenGfx = self._getChildrenContainer(parent);
|
|
12755
13322
|
|
|
12756
|
-
forEach(children.slice().reverse(), function(child) {
|
|
13323
|
+
forEach$2(children.slice().reverse(), function(child) {
|
|
12757
13324
|
var childGfx = elementRegistry.getGraphics(child);
|
|
12758
13325
|
|
|
12759
13326
|
prependTo(childGfx.parentNode, childrenGfx);
|
|
@@ -12799,7 +13366,7 @@
|
|
|
12799
13366
|
this.drawShape(visual, element);
|
|
12800
13367
|
|
|
12801
13368
|
// update positioning
|
|
12802
|
-
translate(gfx, element.x, element.y);
|
|
13369
|
+
translate$1(gfx, element.x, element.y);
|
|
12803
13370
|
} else
|
|
12804
13371
|
if (type === 'connection') {
|
|
12805
13372
|
this.drawConnection(visual, element);
|
|
@@ -12808,9 +13375,9 @@
|
|
|
12808
13375
|
}
|
|
12809
13376
|
|
|
12810
13377
|
if (element.hidden) {
|
|
12811
|
-
attr(gfx, 'display', 'none');
|
|
13378
|
+
attr$3(gfx, 'display', 'none');
|
|
12812
13379
|
} else {
|
|
12813
|
-
attr(gfx, 'display', 'block');
|
|
13380
|
+
attr$3(gfx, 'display', 'block');
|
|
12814
13381
|
}
|
|
12815
13382
|
};
|
|
12816
13383
|
|
|
@@ -12818,7 +13385,7 @@
|
|
|
12818
13385
|
var gfx = this._elementRegistry.getGraphics(element);
|
|
12819
13386
|
|
|
12820
13387
|
// remove
|
|
12821
|
-
remove(gfx.parentNode);
|
|
13388
|
+
remove$4(gfx.parentNode);
|
|
12822
13389
|
};
|
|
12823
13390
|
|
|
12824
13391
|
|
|
@@ -12836,8 +13403,8 @@
|
|
|
12836
13403
|
parentNode.insertBefore(newNode, node);
|
|
12837
13404
|
}
|
|
12838
13405
|
|
|
12839
|
-
var CoreModule
|
|
12840
|
-
__depends__: [ DrawModule
|
|
13406
|
+
var CoreModule = {
|
|
13407
|
+
__depends__: [ DrawModule ],
|
|
12841
13408
|
__init__: [ 'canvas' ],
|
|
12842
13409
|
canvas: [ 'type', Canvas ],
|
|
12843
13410
|
elementRegistry: [ 'type', ElementRegistry ],
|
|
@@ -12879,7 +13446,7 @@
|
|
|
12879
13446
|
'config': [ 'value', options ]
|
|
12880
13447
|
};
|
|
12881
13448
|
|
|
12882
|
-
var modules = [ configModule, CoreModule
|
|
13449
|
+
var modules = [ configModule, CoreModule ].concat(options.modules || []);
|
|
12883
13450
|
|
|
12884
13451
|
return bootstrap(modules);
|
|
12885
13452
|
}
|
|
@@ -13006,13 +13573,13 @@
|
|
|
13006
13573
|
/**
|
|
13007
13574
|
* Moddle base element.
|
|
13008
13575
|
*/
|
|
13009
|
-
function Base
|
|
13576
|
+
function Base() { }
|
|
13010
13577
|
|
|
13011
|
-
Base
|
|
13578
|
+
Base.prototype.get = function(name) {
|
|
13012
13579
|
return this.$model.properties.get(this, name);
|
|
13013
13580
|
};
|
|
13014
13581
|
|
|
13015
|
-
Base
|
|
13582
|
+
Base.prototype.set = function(name, value) {
|
|
13016
13583
|
this.$model.properties.set(this, name, value);
|
|
13017
13584
|
};
|
|
13018
13585
|
|
|
@@ -13033,10 +13600,10 @@
|
|
|
13033
13600
|
var model = this.model;
|
|
13034
13601
|
|
|
13035
13602
|
var props = this.properties,
|
|
13036
|
-
prototype = Object.create(Base
|
|
13603
|
+
prototype = Object.create(Base.prototype);
|
|
13037
13604
|
|
|
13038
13605
|
// initialize default values
|
|
13039
|
-
forEach(descriptor.properties, function(p) {
|
|
13606
|
+
forEach$2(descriptor.properties, function(p) {
|
|
13040
13607
|
if (!p.isMany && p.default !== undefined) {
|
|
13041
13608
|
prototype[p.name] = p.default;
|
|
13042
13609
|
}
|
|
@@ -13055,7 +13622,7 @@
|
|
|
13055
13622
|
props.define(this, '$attrs', { value: {} });
|
|
13056
13623
|
props.define(this, '$parent', { writable: true });
|
|
13057
13624
|
|
|
13058
|
-
forEach(attrs, bind(function(val, key) {
|
|
13625
|
+
forEach$2(attrs, bind(function(val, key) {
|
|
13059
13626
|
this.set(key, val);
|
|
13060
13627
|
}, this));
|
|
13061
13628
|
}
|
|
@@ -13344,7 +13911,7 @@
|
|
|
13344
13911
|
return;
|
|
13345
13912
|
}
|
|
13346
13913
|
|
|
13347
|
-
forEach(t.properties, bind(function(p) {
|
|
13914
|
+
forEach$2(t.properties, bind(function(p) {
|
|
13348
13915
|
|
|
13349
13916
|
// clone property to allow extensions
|
|
13350
13917
|
p = assign({}, p, {
|
|
@@ -13391,7 +13958,7 @@
|
|
|
13391
13958
|
|
|
13392
13959
|
this.properties = properties;
|
|
13393
13960
|
|
|
13394
|
-
forEach(packages, bind(this.registerPackage, this));
|
|
13961
|
+
forEach$2(packages, bind(this.registerPackage, this));
|
|
13395
13962
|
}
|
|
13396
13963
|
|
|
13397
13964
|
|
|
@@ -13415,7 +13982,7 @@
|
|
|
13415
13982
|
ensureAvailable(pkgMap, pkg, 'uri');
|
|
13416
13983
|
|
|
13417
13984
|
// register types
|
|
13418
|
-
forEach(pkg.types, bind(function(descriptor) {
|
|
13985
|
+
forEach$2(pkg.types, bind(function(descriptor) {
|
|
13419
13986
|
this.registerType(descriptor, pkg);
|
|
13420
13987
|
}, this));
|
|
13421
13988
|
|
|
@@ -13441,7 +14008,7 @@
|
|
|
13441
14008
|
propertiesByName = {};
|
|
13442
14009
|
|
|
13443
14010
|
// parse properties
|
|
13444
|
-
forEach(type.properties, bind(function(p) {
|
|
14011
|
+
forEach$2(type.properties, bind(function(p) {
|
|
13445
14012
|
|
|
13446
14013
|
// namespace property names
|
|
13447
14014
|
var propertyNs = parseName(p.name, ns.prefix),
|
|
@@ -13467,7 +14034,7 @@
|
|
|
13467
14034
|
propertiesByName: propertiesByName
|
|
13468
14035
|
});
|
|
13469
14036
|
|
|
13470
|
-
forEach(type.extends, bind(function(extendsName) {
|
|
14037
|
+
forEach$2(type.extends, bind(function(extendsName) {
|
|
13471
14038
|
var extended = this.typeMap[extendsName];
|
|
13472
14039
|
|
|
13473
14040
|
extended.traits = extended.traits || [];
|
|
@@ -13521,12 +14088,12 @@
|
|
|
13521
14088
|
throw new Error('unknown type <' + nsName.name + '>');
|
|
13522
14089
|
}
|
|
13523
14090
|
|
|
13524
|
-
forEach(type.superClass, trait ? traverseTrait : traverseSuper);
|
|
14091
|
+
forEach$2(type.superClass, trait ? traverseTrait : traverseSuper);
|
|
13525
14092
|
|
|
13526
14093
|
// call iterator with (type, inherited=!trait)
|
|
13527
14094
|
iterator(type, !trait);
|
|
13528
14095
|
|
|
13529
|
-
forEach(type.traits, traverseTrait);
|
|
14096
|
+
forEach$2(type.traits, traverseTrait);
|
|
13530
14097
|
};
|
|
13531
14098
|
|
|
13532
14099
|
|
|
@@ -13597,7 +14164,7 @@
|
|
|
13597
14164
|
|
|
13598
14165
|
var propertyName = property && property.name;
|
|
13599
14166
|
|
|
13600
|
-
if (isUndefined
|
|
14167
|
+
if (isUndefined(value)) {
|
|
13601
14168
|
// unset the property, if the specified value is undefined;
|
|
13602
14169
|
// delete from $attrs (for extensions) or the target itself
|
|
13603
14170
|
if (property) {
|
|
@@ -13612,7 +14179,7 @@
|
|
|
13612
14179
|
if (propertyName in target) {
|
|
13613
14180
|
target[propertyName] = value;
|
|
13614
14181
|
} else {
|
|
13615
|
-
defineProperty
|
|
14182
|
+
defineProperty(target, property, value);
|
|
13616
14183
|
}
|
|
13617
14184
|
} else {
|
|
13618
14185
|
target.$attrs[name] = value;
|
|
@@ -13640,7 +14207,7 @@
|
|
|
13640
14207
|
|
|
13641
14208
|
// check if access to collection property and lazily initialize it
|
|
13642
14209
|
if (!target[propertyName] && property.isMany) {
|
|
13643
|
-
defineProperty
|
|
14210
|
+
defineProperty(target, property, []);
|
|
13644
14211
|
}
|
|
13645
14212
|
|
|
13646
14213
|
return target[propertyName];
|
|
@@ -13688,11 +14255,11 @@
|
|
|
13688
14255
|
};
|
|
13689
14256
|
|
|
13690
14257
|
|
|
13691
|
-
function isUndefined
|
|
14258
|
+
function isUndefined(val) {
|
|
13692
14259
|
return typeof val === 'undefined';
|
|
13693
14260
|
}
|
|
13694
14261
|
|
|
13695
|
-
function defineProperty
|
|
14262
|
+
function defineProperty(target, property, value) {
|
|
13696
14263
|
Object.defineProperty(target, property.name, {
|
|
13697
14264
|
enumerable: !property.isReference,
|
|
13698
14265
|
writable: true,
|
|
@@ -13843,7 +14410,7 @@
|
|
|
13843
14410
|
this.properties.define(element, '$parent', { enumerable: false, writable: true });
|
|
13844
14411
|
this.properties.define(element, '$instanceOf', { enumerable: false, writable: true });
|
|
13845
14412
|
|
|
13846
|
-
forEach(properties, function(a, key) {
|
|
14413
|
+
forEach$2(properties, function(a, key) {
|
|
13847
14414
|
if (isObject(a) && a.value !== undefined) {
|
|
13848
14415
|
element[a.name] = a.value;
|
|
13849
14416
|
} else {
|
|
@@ -13912,7 +14479,7 @@
|
|
|
13912
14479
|
|
|
13913
14480
|
var fromCharCode = String.fromCharCode;
|
|
13914
14481
|
|
|
13915
|
-
var hasOwnProperty
|
|
14482
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
13916
14483
|
|
|
13917
14484
|
var ENTITY_PATTERN = /&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig;
|
|
13918
14485
|
|
|
@@ -13934,7 +14501,7 @@
|
|
|
13934
14501
|
|
|
13935
14502
|
// reserved names, i.e.
|
|
13936
14503
|
if (z) {
|
|
13937
|
-
if (hasOwnProperty
|
|
14504
|
+
if (hasOwnProperty.call(ENTITY_MAPPING, z)) {
|
|
13938
14505
|
return ENTITY_MAPPING[z];
|
|
13939
14506
|
} else {
|
|
13940
14507
|
|
|
@@ -13972,11 +14539,11 @@
|
|
|
13972
14539
|
|
|
13973
14540
|
var XSI_URI = 'http://www.w3.org/2001/XMLSchema-instance';
|
|
13974
14541
|
var XSI_PREFIX = 'xsi';
|
|
13975
|
-
var XSI_TYPE = 'xsi:type';
|
|
14542
|
+
var XSI_TYPE$1 = 'xsi:type';
|
|
13976
14543
|
|
|
13977
14544
|
var NON_WHITESPACE_OUTSIDE_ROOT_NODE = 'non-whitespace outside of root node';
|
|
13978
14545
|
|
|
13979
|
-
function error(msg) {
|
|
14546
|
+
function error$1(msg) {
|
|
13980
14547
|
return new Error(msg);
|
|
13981
14548
|
}
|
|
13982
14549
|
|
|
@@ -14097,7 +14664,7 @@
|
|
|
14097
14664
|
*/
|
|
14098
14665
|
function handleError(err) {
|
|
14099
14666
|
if (!(err instanceof Error)) {
|
|
14100
|
-
err = error(err);
|
|
14667
|
+
err = error$1(err);
|
|
14101
14668
|
}
|
|
14102
14669
|
|
|
14103
14670
|
returnError = err;
|
|
@@ -14117,7 +14684,7 @@
|
|
|
14117
14684
|
}
|
|
14118
14685
|
|
|
14119
14686
|
if (!(err instanceof Error)) {
|
|
14120
|
-
err = error(err);
|
|
14687
|
+
err = error$1(err);
|
|
14121
14688
|
}
|
|
14122
14689
|
|
|
14123
14690
|
onWarning(err, getContext);
|
|
@@ -14134,7 +14701,7 @@
|
|
|
14134
14701
|
this['on'] = function(name, cb) {
|
|
14135
14702
|
|
|
14136
14703
|
if (typeof cb !== 'function') {
|
|
14137
|
-
throw error('required args <name, cb>');
|
|
14704
|
+
throw error$1('required args <name, cb>');
|
|
14138
14705
|
}
|
|
14139
14706
|
|
|
14140
14707
|
switch (name) {
|
|
@@ -14148,7 +14715,7 @@
|
|
|
14148
14715
|
case 'question': onQuestion = cb; break; // <? .... ?>
|
|
14149
14716
|
case 'comment': onComment = cb; break;
|
|
14150
14717
|
default:
|
|
14151
|
-
throw error('unsupported event: ' + name);
|
|
14718
|
+
throw error$1('unsupported event: ' + name);
|
|
14152
14719
|
}
|
|
14153
14720
|
|
|
14154
14721
|
return this;
|
|
@@ -14175,7 +14742,7 @@
|
|
|
14175
14742
|
}
|
|
14176
14743
|
|
|
14177
14744
|
if (typeof nsMap !== 'object') {
|
|
14178
|
-
throw error('required args <nsMap={}>');
|
|
14745
|
+
throw error$1('required args <nsMap={}>');
|
|
14179
14746
|
}
|
|
14180
14747
|
|
|
14181
14748
|
var _nsUriToPrefix = {}, k;
|
|
@@ -14202,7 +14769,7 @@
|
|
|
14202
14769
|
*/
|
|
14203
14770
|
this['parse'] = function(xml) {
|
|
14204
14771
|
if (typeof xml !== 'string') {
|
|
14205
|
-
throw error('required args <xml=string>');
|
|
14772
|
+
throw error$1('required args <xml=string>');
|
|
14206
14773
|
}
|
|
14207
14774
|
|
|
14208
14775
|
returnError = null;
|
|
@@ -14511,7 +15078,7 @@
|
|
|
14511
15078
|
// end: normalize ns attribute name
|
|
14512
15079
|
|
|
14513
15080
|
// normalize xsi:type ns attribute value
|
|
14514
|
-
if (name === XSI_TYPE) {
|
|
15081
|
+
if (name === XSI_TYPE$1) {
|
|
14515
15082
|
w = value.indexOf(':');
|
|
14516
15083
|
|
|
14517
15084
|
if (w !== -1) {
|
|
@@ -14557,7 +15124,7 @@
|
|
|
14557
15124
|
// end: normalize ns attribute name
|
|
14558
15125
|
|
|
14559
15126
|
// normalize xsi:type ns attribute value
|
|
14560
|
-
if (name === XSI_TYPE) {
|
|
15127
|
+
if (name === XSI_TYPE$1) {
|
|
14561
15128
|
w = value.indexOf(':');
|
|
14562
15129
|
|
|
14563
15130
|
if (w !== -1) {
|
|
@@ -15000,14 +15567,14 @@
|
|
|
15000
15567
|
'xml': 'http://www.w3.org/XML/1998/namespace'
|
|
15001
15568
|
};
|
|
15002
15569
|
|
|
15003
|
-
var XSI_TYPE
|
|
15570
|
+
var XSI_TYPE = 'xsi:type';
|
|
15004
15571
|
|
|
15005
15572
|
function serializeFormat(element) {
|
|
15006
15573
|
return element.xml && element.xml.serialize;
|
|
15007
15574
|
}
|
|
15008
15575
|
|
|
15009
15576
|
function serializeAsType(element) {
|
|
15010
|
-
return serializeFormat(element) === XSI_TYPE
|
|
15577
|
+
return serializeFormat(element) === XSI_TYPE;
|
|
15011
15578
|
}
|
|
15012
15579
|
|
|
15013
15580
|
function serializeAsProperty(element) {
|
|
@@ -15049,7 +15616,7 @@
|
|
|
15049
15616
|
return prefixedToName(nameNs, pkg);
|
|
15050
15617
|
}
|
|
15051
15618
|
|
|
15052
|
-
function error
|
|
15619
|
+
function error(message) {
|
|
15053
15620
|
return new Error(message);
|
|
15054
15621
|
}
|
|
15055
15622
|
|
|
@@ -15107,7 +15674,7 @@
|
|
|
15107
15674
|
this.addElement = function(element) {
|
|
15108
15675
|
|
|
15109
15676
|
if (!element) {
|
|
15110
|
-
throw error
|
|
15677
|
+
throw error('expected element');
|
|
15111
15678
|
}
|
|
15112
15679
|
|
|
15113
15680
|
var elementsById = this.elementsById;
|
|
@@ -15128,7 +15695,7 @@
|
|
|
15128
15695
|
}
|
|
15129
15696
|
|
|
15130
15697
|
if (elementsById[id]) {
|
|
15131
|
-
throw error
|
|
15698
|
+
throw error('duplicate ID <' + id + '>');
|
|
15132
15699
|
}
|
|
15133
15700
|
|
|
15134
15701
|
elementsById[id] = element;
|
|
@@ -15188,7 +15755,7 @@
|
|
|
15188
15755
|
ReferenceHandler.prototype.handleNode = function(node) {
|
|
15189
15756
|
|
|
15190
15757
|
if (this.element) {
|
|
15191
|
-
throw error
|
|
15758
|
+
throw error('expected no sub nodes');
|
|
15192
15759
|
} else {
|
|
15193
15760
|
this.element = this.createReference(node);
|
|
15194
15761
|
}
|
|
@@ -15272,7 +15839,7 @@
|
|
|
15272
15839
|
bodyProperty = descriptor.bodyProperty;
|
|
15273
15840
|
|
|
15274
15841
|
if (!bodyProperty) {
|
|
15275
|
-
throw error
|
|
15842
|
+
throw error('unexpected body text <' + text + '>');
|
|
15276
15843
|
}
|
|
15277
15844
|
|
|
15278
15845
|
BodyHandler.prototype.handleText.call(this, text);
|
|
@@ -15305,7 +15872,7 @@
|
|
|
15305
15872
|
model = this.model,
|
|
15306
15873
|
propNameNs;
|
|
15307
15874
|
|
|
15308
|
-
forEach(attributes, function(value, name) {
|
|
15875
|
+
forEach$2(attributes, function(value, name) {
|
|
15309
15876
|
|
|
15310
15877
|
var prop = descriptor.propertiesByName[name],
|
|
15311
15878
|
values;
|
|
@@ -15323,7 +15890,7 @@
|
|
|
15323
15890
|
// IDREFS: parse references as whitespace-separated list
|
|
15324
15891
|
values = value.split(' ');
|
|
15325
15892
|
|
|
15326
|
-
forEach(values, function(v) {
|
|
15893
|
+
forEach$2(values, function(v) {
|
|
15327
15894
|
context.addReference({
|
|
15328
15895
|
element: instance,
|
|
15329
15896
|
property: prop.ns.name,
|
|
@@ -15378,7 +15945,7 @@
|
|
|
15378
15945
|
if (property && !property.isAttr) {
|
|
15379
15946
|
|
|
15380
15947
|
if (serializeAsType(property)) {
|
|
15381
|
-
elementTypeName = node.attributes[XSI_TYPE
|
|
15948
|
+
elementTypeName = node.attributes[XSI_TYPE];
|
|
15382
15949
|
|
|
15383
15950
|
// xsi type is optional, if it does not exists the
|
|
15384
15951
|
// default type is assumed
|
|
@@ -15428,7 +15995,7 @@
|
|
|
15428
15995
|
}
|
|
15429
15996
|
}
|
|
15430
15997
|
|
|
15431
|
-
throw error
|
|
15998
|
+
throw error('unrecognized element <' + nameNs.name + '>');
|
|
15432
15999
|
};
|
|
15433
16000
|
|
|
15434
16001
|
ElementHandler.prototype.toString = function() {
|
|
@@ -15531,7 +16098,7 @@
|
|
|
15531
16098
|
//
|
|
15532
16099
|
// this ensures we don't mistakenly import wrong namespace elements
|
|
15533
16100
|
if (!type.hasType(typeName)) {
|
|
15534
|
-
throw error
|
|
16101
|
+
throw error('unexpected element <' + node.originalName + '>');
|
|
15535
16102
|
}
|
|
15536
16103
|
|
|
15537
16104
|
return ElementHandler.prototype.createElement.call(this, node);
|
|
@@ -15699,7 +16266,7 @@
|
|
|
15699
16266
|
|
|
15700
16267
|
return true;
|
|
15701
16268
|
} else {
|
|
15702
|
-
throw error
|
|
16269
|
+
throw error(message);
|
|
15703
16270
|
}
|
|
15704
16271
|
}
|
|
15705
16272
|
|
|
@@ -15880,7 +16447,7 @@
|
|
|
15880
16447
|
var rootElement = rootHandler.element;
|
|
15881
16448
|
|
|
15882
16449
|
if (!err && !rootElement) {
|
|
15883
|
-
err = error
|
|
16450
|
+
err = error('failed to parse document as <' + rootHandler.type.$descriptor.name + '>');
|
|
15884
16451
|
}
|
|
15885
16452
|
|
|
15886
16453
|
var warnings = context.warnings;
|
|
@@ -16067,7 +16634,7 @@
|
|
|
16067
16634
|
}
|
|
16068
16635
|
|
|
16069
16636
|
// do not serialize defaults
|
|
16070
|
-
if (!has(element, name)) {
|
|
16637
|
+
if (!has$2(element, name)) {
|
|
16071
16638
|
return false;
|
|
16072
16639
|
}
|
|
16073
16640
|
|
|
@@ -16103,7 +16670,7 @@
|
|
|
16103
16670
|
'&': 'amp'
|
|
16104
16671
|
};
|
|
16105
16672
|
|
|
16106
|
-
function escape
|
|
16673
|
+
function escape(str, charPattern, replaceMap) {
|
|
16107
16674
|
|
|
16108
16675
|
// ensure we are handling strings here
|
|
16109
16676
|
str = isString(str) ? str : '' + str;
|
|
@@ -16120,11 +16687,11 @@
|
|
|
16120
16687
|
* @return {String} the escaped string
|
|
16121
16688
|
*/
|
|
16122
16689
|
function escapeAttr(str) {
|
|
16123
|
-
return escape
|
|
16690
|
+
return escape(str, ESCAPE_ATTR_CHARS, ESCAPE_ATTR_MAP);
|
|
16124
16691
|
}
|
|
16125
16692
|
|
|
16126
16693
|
function escapeBody(str) {
|
|
16127
|
-
return escape
|
|
16694
|
+
return escape(str, ESCAPE_CHARS, ESCAPE_MAP);
|
|
16128
16695
|
}
|
|
16129
16696
|
|
|
16130
16697
|
function filterAttributes(props) {
|
|
@@ -16296,7 +16863,7 @@
|
|
|
16296
16863
|
|
|
16297
16864
|
var attributes = [];
|
|
16298
16865
|
|
|
16299
|
-
forEach(element, function(val, key) {
|
|
16866
|
+
forEach$2(element, function(val, key) {
|
|
16300
16867
|
|
|
16301
16868
|
var nonNsAttr;
|
|
16302
16869
|
|
|
@@ -16304,7 +16871,7 @@
|
|
|
16304
16871
|
body.push(new BodySerializer().build({ type: 'String' }, val));
|
|
16305
16872
|
} else
|
|
16306
16873
|
if (key === '$children') {
|
|
16307
|
-
forEach(val, function(child) {
|
|
16874
|
+
forEach$2(val, function(child) {
|
|
16308
16875
|
body.push(new ElementSerializer(self).build(child));
|
|
16309
16876
|
});
|
|
16310
16877
|
} else
|
|
@@ -16374,7 +16941,7 @@
|
|
|
16374
16941
|
// parse namespace attributes first
|
|
16375
16942
|
// and log them. push non namespace attributes to a list
|
|
16376
16943
|
// and process them later
|
|
16377
|
-
forEach(genericAttrs, function(value, name) {
|
|
16944
|
+
forEach$2(genericAttrs, function(value, name) {
|
|
16378
16945
|
|
|
16379
16946
|
var nonNsAttr = self.parseNsAttribute(element, name, value);
|
|
16380
16947
|
|
|
@@ -16390,11 +16957,11 @@
|
|
|
16390
16957
|
|
|
16391
16958
|
var self = this;
|
|
16392
16959
|
|
|
16393
|
-
forEach(attributes, function(attr) {
|
|
16960
|
+
forEach$2(attributes, function(attr) {
|
|
16394
16961
|
|
|
16395
16962
|
// do not serialize xsi:type attribute
|
|
16396
16963
|
// it is set manually based on the actual implementation type
|
|
16397
|
-
if (attr.name === XSI_TYPE
|
|
16964
|
+
if (attr.name === XSI_TYPE) {
|
|
16398
16965
|
return;
|
|
16399
16966
|
}
|
|
16400
16967
|
|
|
@@ -16415,7 +16982,7 @@
|
|
|
16415
16982
|
body = this.body,
|
|
16416
16983
|
element = this.element;
|
|
16417
16984
|
|
|
16418
|
-
forEach(properties, function(p) {
|
|
16985
|
+
forEach$2(properties, function(p) {
|
|
16419
16986
|
var value = element.get(p.name),
|
|
16420
16987
|
isReference = p.isReference,
|
|
16421
16988
|
isMany = p.isMany;
|
|
@@ -16428,12 +16995,12 @@
|
|
|
16428
16995
|
body.push(new BodySerializer().build(p, value[0]));
|
|
16429
16996
|
} else
|
|
16430
16997
|
if (isSimple(p.type)) {
|
|
16431
|
-
forEach(value, function(v) {
|
|
16998
|
+
forEach$2(value, function(v) {
|
|
16432
16999
|
body.push(new ValueSerializer(self.addTagName(self.nsPropertyTagName(p))).build(p, v));
|
|
16433
17000
|
});
|
|
16434
17001
|
} else
|
|
16435
17002
|
if (isReference) {
|
|
16436
|
-
forEach(value, function(v) {
|
|
17003
|
+
forEach$2(value, function(v) {
|
|
16437
17004
|
body.push(new ReferenceSerializer(self.addTagName(self.nsPropertyTagName(p))).build(v));
|
|
16438
17005
|
});
|
|
16439
17006
|
} else {
|
|
@@ -16443,7 +17010,7 @@
|
|
|
16443
17010
|
var asType = serializeAsType(p),
|
|
16444
17011
|
asProperty = serializeAsProperty(p);
|
|
16445
17012
|
|
|
16446
|
-
forEach(value, function(v) {
|
|
17013
|
+
forEach$2(value, function(v) {
|
|
16447
17014
|
var serializer;
|
|
16448
17015
|
|
|
16449
17016
|
if (asType) {
|
|
@@ -16551,7 +17118,7 @@
|
|
|
16551
17118
|
var self = this,
|
|
16552
17119
|
element = this.element;
|
|
16553
17120
|
|
|
16554
|
-
forEach(properties, function(p) {
|
|
17121
|
+
forEach$2(properties, function(p) {
|
|
16555
17122
|
|
|
16556
17123
|
var value = element.get(p.name);
|
|
16557
17124
|
|
|
@@ -16562,7 +17129,7 @@
|
|
|
16562
17129
|
}
|
|
16563
17130
|
else {
|
|
16564
17131
|
var values = [];
|
|
16565
|
-
forEach(value, function(v) {
|
|
17132
|
+
forEach$2(value, function(v) {
|
|
16566
17133
|
values.push(v.id);
|
|
16567
17134
|
});
|
|
16568
17135
|
|
|
@@ -16618,7 +17185,7 @@
|
|
|
16618
17185
|
attrs = getNsAttrs(namespaces).concat(attrs);
|
|
16619
17186
|
}
|
|
16620
17187
|
|
|
16621
|
-
forEach(attrs, function(a) {
|
|
17188
|
+
forEach$2(attrs, function(a) {
|
|
16622
17189
|
writer
|
|
16623
17190
|
.append(' ')
|
|
16624
17191
|
.append(nsName(a.name)).append('="').append(a.value).append('"');
|
|
@@ -16645,7 +17212,7 @@
|
|
|
16645
17212
|
.indent();
|
|
16646
17213
|
}
|
|
16647
17214
|
|
|
16648
|
-
forEach(this.body, function(b) {
|
|
17215
|
+
forEach$2(this.body, function(b) {
|
|
16649
17216
|
b.serializeTo(writer);
|
|
16650
17217
|
});
|
|
16651
17218
|
|
|
@@ -16692,7 +17259,7 @@
|
|
|
16692
17259
|
typePrefix = (pkg.xml && pkg.xml.typePrefix) || '';
|
|
16693
17260
|
|
|
16694
17261
|
this.addAttribute(
|
|
16695
|
-
this.nsAttributeName(XSI_TYPE
|
|
17262
|
+
this.nsAttributeName(XSI_TYPE),
|
|
16696
17263
|
(typeNs.prefix ? typeNs.prefix + ':' : '') + typePrefix + descriptor.ns.localName
|
|
16697
17264
|
);
|
|
16698
17265
|
|
|
@@ -20376,7 +20943,7 @@
|
|
|
20376
20943
|
];
|
|
20377
20944
|
var associations$2 = [
|
|
20378
20945
|
];
|
|
20379
|
-
var xml = {
|
|
20946
|
+
var xml$2 = {
|
|
20380
20947
|
tagAlias: "lowerCase"
|
|
20381
20948
|
};
|
|
20382
20949
|
var DiPackage = {
|
|
@@ -20385,7 +20952,7 @@
|
|
|
20385
20952
|
prefix: prefix$2,
|
|
20386
20953
|
types: types$2,
|
|
20387
20954
|
associations: associations$2,
|
|
20388
|
-
xml: xml
|
|
20955
|
+
xml: xml$2
|
|
20389
20956
|
};
|
|
20390
20957
|
|
|
20391
20958
|
var name$1 = "bpmn.io colors for BPMN";
|
|
@@ -20442,8 +21009,8 @@
|
|
|
20442
21009
|
associations: associations$1
|
|
20443
21010
|
};
|
|
20444
21011
|
|
|
20445
|
-
var name = "BPMN in Color";
|
|
20446
|
-
var uri = "http://www.omg.org/spec/BPMN/non-normative/color/1.0";
|
|
21012
|
+
var name$6 = "BPMN in Color";
|
|
21013
|
+
var uri$6 = "http://www.omg.org/spec/BPMN/non-normative/color/1.0";
|
|
20447
21014
|
var prefix$6 = "color";
|
|
20448
21015
|
var types$6 = [
|
|
20449
21016
|
{
|
|
@@ -20493,15 +21060,15 @@
|
|
|
20493
21060
|
];
|
|
20494
21061
|
var enumerations = [
|
|
20495
21062
|
];
|
|
20496
|
-
var associations = [
|
|
21063
|
+
var associations$6 = [
|
|
20497
21064
|
];
|
|
20498
21065
|
var BpmnInColorPackage = {
|
|
20499
|
-
name: name,
|
|
20500
|
-
uri: uri,
|
|
21066
|
+
name: name$6,
|
|
21067
|
+
uri: uri$6,
|
|
20501
21068
|
prefix: prefix$6,
|
|
20502
21069
|
types: types$6,
|
|
20503
21070
|
enumerations: enumerations,
|
|
20504
|
-
associations: associations
|
|
21071
|
+
associations: associations$6
|
|
20505
21072
|
};
|
|
20506
21073
|
|
|
20507
21074
|
var packages = {
|
|
@@ -20579,7 +21146,7 @@
|
|
|
20579
21146
|
function ensureCompatDiRef(businessObject) {
|
|
20580
21147
|
|
|
20581
21148
|
// bpmnElement can have multiple independent DIs
|
|
20582
|
-
if (!has(businessObject, 'di')) {
|
|
21149
|
+
if (!has$2(businessObject, 'di')) {
|
|
20583
21150
|
Object.defineProperty(businessObject, 'di', {
|
|
20584
21151
|
enumerable: false,
|
|
20585
21152
|
get: function() {
|
|
@@ -20597,7 +21164,7 @@
|
|
|
20597
21164
|
*
|
|
20598
21165
|
* @return {boolean}
|
|
20599
21166
|
*/
|
|
20600
|
-
function is
|
|
21167
|
+
function is(element, type) {
|
|
20601
21168
|
return element.$instanceOf(type);
|
|
20602
21169
|
}
|
|
20603
21170
|
|
|
@@ -20608,7 +21175,7 @@
|
|
|
20608
21175
|
*/
|
|
20609
21176
|
function findDisplayCandidate(definitions) {
|
|
20610
21177
|
return find(definitions.rootElements, function(e) {
|
|
20611
|
-
return is
|
|
21178
|
+
return is(e, 'bpmn:Process') || is(e, 'bpmn:Collaboration');
|
|
20612
21179
|
});
|
|
20613
21180
|
}
|
|
20614
21181
|
|
|
@@ -20714,7 +21281,7 @@
|
|
|
20714
21281
|
function handlePlane(plane) {
|
|
20715
21282
|
registerDi(plane);
|
|
20716
21283
|
|
|
20717
|
-
forEach(plane.planeElement, handlePlaneElement);
|
|
21284
|
+
forEach$2(plane.planeElement, handlePlaneElement);
|
|
20718
21285
|
}
|
|
20719
21286
|
|
|
20720
21287
|
function handlePlaneElement(planeElement) {
|
|
@@ -20792,9 +21359,9 @@
|
|
|
20792
21359
|
|
|
20793
21360
|
var ctx = visitRoot(rootElement, plane);
|
|
20794
21361
|
|
|
20795
|
-
if (is
|
|
21362
|
+
if (is(rootElement, 'bpmn:Process') || is(rootElement, 'bpmn:SubProcess')) {
|
|
20796
21363
|
handleProcess(rootElement, ctx);
|
|
20797
|
-
} else if (is
|
|
21364
|
+
} else if (is(rootElement, 'bpmn:Collaboration')) {
|
|
20798
21365
|
handleCollaboration(rootElement, ctx);
|
|
20799
21366
|
|
|
20800
21367
|
// force drawing of everything not yet drawn that is part of the target DI
|
|
@@ -20840,7 +21407,7 @@
|
|
|
20840
21407
|
// if they contain lanes with DI information.
|
|
20841
21408
|
// we do this to pass the free-floating lane test cases in the MIWG test suite
|
|
20842
21409
|
var processes = filter(rootElements, function(e) {
|
|
20843
|
-
return !isHandled(e) && is
|
|
21410
|
+
return !isHandled(e) && is(e, 'bpmn:Process') && e.laneSets;
|
|
20844
21411
|
});
|
|
20845
21412
|
|
|
20846
21413
|
processes.forEach(contextual(handleProcess, ctx));
|
|
@@ -20851,7 +21418,7 @@
|
|
|
20851
21418
|
}
|
|
20852
21419
|
|
|
20853
21420
|
function handleMessageFlows(messageFlows, context) {
|
|
20854
|
-
forEach(messageFlows, contextual(handleMessageFlow, context));
|
|
21421
|
+
forEach$2(messageFlows, contextual(handleMessageFlow, context));
|
|
20855
21422
|
}
|
|
20856
21423
|
|
|
20857
21424
|
function handleDataAssociation(association, context) {
|
|
@@ -20877,8 +21444,8 @@
|
|
|
20877
21444
|
|
|
20878
21445
|
function handleArtifacts(artifacts, context) {
|
|
20879
21446
|
|
|
20880
|
-
forEach(artifacts, function(e) {
|
|
20881
|
-
if (is
|
|
21447
|
+
forEach$2(artifacts, function(e) {
|
|
21448
|
+
if (is(e, 'bpmn:Association')) {
|
|
20882
21449
|
deferred.push(function() {
|
|
20883
21450
|
handleArtifact(e, context);
|
|
20884
21451
|
});
|
|
@@ -20894,8 +21461,8 @@
|
|
|
20894
21461
|
return;
|
|
20895
21462
|
}
|
|
20896
21463
|
|
|
20897
|
-
forEach(ioSpecification.dataInputs, contextual(handleDataInput, context));
|
|
20898
|
-
forEach(ioSpecification.dataOutputs, contextual(handleDataOutput, context));
|
|
21464
|
+
forEach$2(ioSpecification.dataInputs, contextual(handleDataInput, context));
|
|
21465
|
+
forEach$2(ioSpecification.dataOutputs, contextual(handleDataOutput, context));
|
|
20899
21466
|
}
|
|
20900
21467
|
|
|
20901
21468
|
function handleSubProcess(subProcess, context) {
|
|
@@ -20906,11 +21473,11 @@
|
|
|
20906
21473
|
function handleFlowNode(flowNode, context) {
|
|
20907
21474
|
var childCtx = visitIfDi(flowNode, context);
|
|
20908
21475
|
|
|
20909
|
-
if (is
|
|
21476
|
+
if (is(flowNode, 'bpmn:SubProcess')) {
|
|
20910
21477
|
handleSubProcess(flowNode, childCtx || context);
|
|
20911
21478
|
}
|
|
20912
21479
|
|
|
20913
|
-
if (is
|
|
21480
|
+
if (is(flowNode, 'bpmn:Activity')) {
|
|
20914
21481
|
handleIoSpecification(flowNode.ioSpecification, context);
|
|
20915
21482
|
}
|
|
20916
21483
|
|
|
@@ -20922,8 +21489,8 @@
|
|
|
20922
21489
|
// * bpmn:CatchEvent
|
|
20923
21490
|
//
|
|
20924
21491
|
deferred.push(function() {
|
|
20925
|
-
forEach(flowNode.dataInputAssociations, contextual(handleDataAssociation, context));
|
|
20926
|
-
forEach(flowNode.dataOutputAssociations, contextual(handleDataAssociation, context));
|
|
21492
|
+
forEach$2(flowNode.dataInputAssociations, contextual(handleDataAssociation, context));
|
|
21493
|
+
forEach$2(flowNode.dataOutputAssociations, contextual(handleDataAssociation, context));
|
|
20927
21494
|
});
|
|
20928
21495
|
}
|
|
20929
21496
|
|
|
@@ -20950,11 +21517,11 @@
|
|
|
20950
21517
|
}
|
|
20951
21518
|
|
|
20952
21519
|
function handleLaneSet(laneSet, context) {
|
|
20953
|
-
forEach(laneSet.lanes, contextual(handleLane, context));
|
|
21520
|
+
forEach$2(laneSet.lanes, contextual(handleLane, context));
|
|
20954
21521
|
}
|
|
20955
21522
|
|
|
20956
21523
|
function handleLaneSets(laneSets, context) {
|
|
20957
|
-
forEach(laneSets, contextual(handleLaneSet, context));
|
|
21524
|
+
forEach$2(laneSets, contextual(handleLaneSet, context));
|
|
20958
21525
|
}
|
|
20959
21526
|
|
|
20960
21527
|
function handleFlowElementsContainer(container, context) {
|
|
@@ -20966,20 +21533,20 @@
|
|
|
20966
21533
|
}
|
|
20967
21534
|
|
|
20968
21535
|
function handleFlowElements(flowElements, context) {
|
|
20969
|
-
forEach(flowElements, function(e) {
|
|
20970
|
-
if (is
|
|
21536
|
+
forEach$2(flowElements, function(e) {
|
|
21537
|
+
if (is(e, 'bpmn:SequenceFlow')) {
|
|
20971
21538
|
deferred.push(function() {
|
|
20972
21539
|
handleSequenceFlow(e, context);
|
|
20973
21540
|
});
|
|
20974
|
-
} else if (is
|
|
21541
|
+
} else if (is(e, 'bpmn:BoundaryEvent')) {
|
|
20975
21542
|
deferred.unshift(function() {
|
|
20976
21543
|
handleFlowNode(e, context);
|
|
20977
21544
|
});
|
|
20978
|
-
} else if (is
|
|
21545
|
+
} else if (is(e, 'bpmn:FlowNode')) {
|
|
20979
21546
|
handleFlowNode(e, context);
|
|
20980
|
-
} else if (is
|
|
21547
|
+
} else if (is(e, 'bpmn:DataObject')) ; else if (is(e, 'bpmn:DataStoreReference')) {
|
|
20981
21548
|
handleDataElement(e, context);
|
|
20982
|
-
} else if (is
|
|
21549
|
+
} else if (is(e, 'bpmn:DataObjectReference')) {
|
|
20983
21550
|
handleDataElement(e, context);
|
|
20984
21551
|
} else {
|
|
20985
21552
|
logError(
|
|
@@ -21004,7 +21571,7 @@
|
|
|
21004
21571
|
|
|
21005
21572
|
function handleCollaboration(collaboration, context) {
|
|
21006
21573
|
|
|
21007
|
-
forEach(collaboration.participants, contextual(handleParticipant, context));
|
|
21574
|
+
forEach$2(collaboration.participants, contextual(handleParticipant, context));
|
|
21008
21575
|
|
|
21009
21576
|
handleArtifacts(collaboration.artifacts, context);
|
|
21010
21577
|
|
|
@@ -21018,7 +21585,7 @@
|
|
|
21018
21585
|
function wireFlowNodeRefs(lane) {
|
|
21019
21586
|
|
|
21020
21587
|
// wire the virtual flowNodeRefs <-> relationship
|
|
21021
|
-
forEach(lane.flowNodeRef, function(flowNode) {
|
|
21588
|
+
forEach$2(lane.flowNodeRef, function(flowNode) {
|
|
21022
21589
|
var lanes = flowNode.get('lanes');
|
|
21023
21590
|
|
|
21024
21591
|
if (lanes) {
|
|
@@ -21112,7 +21679,7 @@
|
|
|
21112
21679
|
|
|
21113
21680
|
// traverse BPMN 2.0 document model,
|
|
21114
21681
|
// starting at definitions
|
|
21115
|
-
forEach(diagramsToImport, function(diagram) {
|
|
21682
|
+
forEach$2(diagramsToImport, function(diagram) {
|
|
21116
21683
|
walker.handleDefinitions(definitions, diagram);
|
|
21117
21684
|
});
|
|
21118
21685
|
|
|
@@ -21168,7 +21735,7 @@
|
|
|
21168
21735
|
var bpmnElement = bpmnDiagram.plane.bpmnElement,
|
|
21169
21736
|
rootElement = bpmnElement;
|
|
21170
21737
|
|
|
21171
|
-
if (!is(bpmnElement, 'bpmn:Process') && !is(bpmnElement, 'bpmn:Collaboration')) {
|
|
21738
|
+
if (!is$1(bpmnElement, 'bpmn:Process') && !is$1(bpmnElement, 'bpmn:Collaboration')) {
|
|
21172
21739
|
rootElement = findRootProcess(bpmnElement);
|
|
21173
21740
|
}
|
|
21174
21741
|
|
|
@@ -21176,11 +21743,11 @@
|
|
|
21176
21743
|
// collaboration, not the process
|
|
21177
21744
|
var collaboration;
|
|
21178
21745
|
|
|
21179
|
-
if (is(rootElement, 'bpmn:Collaboration')) {
|
|
21746
|
+
if (is$1(rootElement, 'bpmn:Collaboration')) {
|
|
21180
21747
|
collaboration = rootElement;
|
|
21181
21748
|
} else {
|
|
21182
21749
|
collaboration = find(definitions.rootElements, function(element) {
|
|
21183
|
-
if (!is(element, 'bpmn:Collaboration')) {
|
|
21750
|
+
if (!is$1(element, 'bpmn:Collaboration')) {
|
|
21184
21751
|
return;
|
|
21185
21752
|
}
|
|
21186
21753
|
|
|
@@ -21208,7 +21775,7 @@
|
|
|
21208
21775
|
var diagramsToImport = [ bpmnDiagram ];
|
|
21209
21776
|
var handledElements = [ bpmnElement ];
|
|
21210
21777
|
|
|
21211
|
-
forEach(definitions.diagrams, function(diagram) {
|
|
21778
|
+
forEach$2(definitions.diagrams, function(diagram) {
|
|
21212
21779
|
var businessObject = diagram.plane.bpmnElement;
|
|
21213
21780
|
|
|
21214
21781
|
if (
|
|
@@ -21227,7 +21794,7 @@
|
|
|
21227
21794
|
function selfAndAllFlowElements(elements) {
|
|
21228
21795
|
var result = [];
|
|
21229
21796
|
|
|
21230
|
-
forEach(elements, function(element) {
|
|
21797
|
+
forEach$2(elements, function(element) {
|
|
21231
21798
|
if (!element) {
|
|
21232
21799
|
return;
|
|
21233
21800
|
}
|
|
@@ -21244,7 +21811,7 @@
|
|
|
21244
21811
|
var parent = element;
|
|
21245
21812
|
|
|
21246
21813
|
while (parent) {
|
|
21247
|
-
if (is(parent, 'bpmn:Process')) {
|
|
21814
|
+
if (is$1(parent, 'bpmn:Process')) {
|
|
21248
21815
|
return parent;
|
|
21249
21816
|
}
|
|
21250
21817
|
|
|
@@ -21320,13 +21887,13 @@
|
|
|
21320
21887
|
var lightbox;
|
|
21321
21888
|
|
|
21322
21889
|
function createLightbox() {
|
|
21323
|
-
lightbox = domify(LIGHTBOX_MARKUP);
|
|
21890
|
+
lightbox = domify$1(LIGHTBOX_MARKUP);
|
|
21324
21891
|
|
|
21325
|
-
assign$1(lightbox, LIGHTBOX_STYLES);
|
|
21326
|
-
assign$1(query('svg', lightbox), LOGO_STYLES);
|
|
21327
|
-
assign$1(query('.backdrop', lightbox), BACKDROP_STYLES);
|
|
21328
|
-
assign$1(query('.notice', lightbox), NOTICE_STYLES);
|
|
21329
|
-
assign$1(query('.link', lightbox), LINK_STYLES, {
|
|
21892
|
+
assign$1$1(lightbox, LIGHTBOX_STYLES);
|
|
21893
|
+
assign$1$1(query$1('svg', lightbox), LOGO_STYLES);
|
|
21894
|
+
assign$1$1(query$1('.backdrop', lightbox), BACKDROP_STYLES);
|
|
21895
|
+
assign$1$1(query$1('.notice', lightbox), NOTICE_STYLES);
|
|
21896
|
+
assign$1$1(query$1('.link', lightbox), LINK_STYLES, {
|
|
21330
21897
|
'margin': '15px 20px 15px 10px',
|
|
21331
21898
|
'alignSelf': 'center'
|
|
21332
21899
|
});
|
|
@@ -21337,7 +21904,7 @@
|
|
|
21337
21904
|
if (!lightbox) {
|
|
21338
21905
|
createLightbox();
|
|
21339
21906
|
|
|
21340
|
-
delegate.bind(lightbox, '.backdrop', 'click', function(event) {
|
|
21907
|
+
delegate$1.bind(lightbox, '.backdrop', 'click', function(event) {
|
|
21341
21908
|
document.body.removeChild(lightbox);
|
|
21342
21909
|
});
|
|
21343
21910
|
}
|
|
@@ -21756,7 +22323,7 @@
|
|
|
21756
22323
|
var canvas = self.get('canvas');
|
|
21757
22324
|
|
|
21758
22325
|
var contentNode = canvas.getActiveLayer(),
|
|
21759
|
-
defsNode = query('defs', canvas._svg);
|
|
22326
|
+
defsNode = query$1('defs', canvas._svg);
|
|
21760
22327
|
|
|
21761
22328
|
var contents = innerSVG(contentNode),
|
|
21762
22329
|
defs = defsNode ? '<defs>' + innerSVG(defsNode) + '</defs>' : '';
|
|
@@ -21858,7 +22425,7 @@
|
|
|
21858
22425
|
Diagram.prototype.destroy.call(this);
|
|
21859
22426
|
|
|
21860
22427
|
// dom detach
|
|
21861
|
-
remove$
|
|
22428
|
+
remove$3(this._container);
|
|
21862
22429
|
};
|
|
21863
22430
|
|
|
21864
22431
|
/**
|
|
@@ -21901,7 +22468,7 @@
|
|
|
21901
22468
|
}
|
|
21902
22469
|
|
|
21903
22470
|
if (typeof parentNode === 'string') {
|
|
21904
|
-
parentNode = query(parentNode);
|
|
22471
|
+
parentNode = query$1(parentNode);
|
|
21905
22472
|
}
|
|
21906
22473
|
|
|
21907
22474
|
parentNode.appendChild(this._container);
|
|
@@ -21969,9 +22536,9 @@
|
|
|
21969
22536
|
|
|
21970
22537
|
BaseViewer.prototype._createContainer = function(options) {
|
|
21971
22538
|
|
|
21972
|
-
var container = domify('<div class="bjs-container"></div>');
|
|
22539
|
+
var container = domify$1('<div class="bjs-container"></div>');
|
|
21973
22540
|
|
|
21974
|
-
assign$1(container, {
|
|
22541
|
+
assign$1$1(container, {
|
|
21975
22542
|
width: ensureUnit(options.width),
|
|
21976
22543
|
height: ensureUnit(options.height),
|
|
21977
22544
|
position: options.position
|
|
@@ -22065,10 +22632,10 @@
|
|
|
22065
22632
|
img +
|
|
22066
22633
|
'</a>';
|
|
22067
22634
|
|
|
22068
|
-
var linkElement = domify(linkMarkup);
|
|
22635
|
+
var linkElement = domify$1(linkMarkup);
|
|
22069
22636
|
|
|
22070
|
-
assign$1(query('svg', linkElement), LOGO_STYLES);
|
|
22071
|
-
assign$1(linkElement, LINK_STYLES, {
|
|
22637
|
+
assign$1$1(query$1('svg', linkElement), LOGO_STYLES);
|
|
22638
|
+
assign$1$1(linkElement, LINK_STYLES, {
|
|
22072
22639
|
position: 'absolute',
|
|
22073
22640
|
bottom: '15px',
|
|
22074
22641
|
right: '15px',
|
|
@@ -22077,7 +22644,7 @@
|
|
|
22077
22644
|
|
|
22078
22645
|
container.appendChild(linkElement);
|
|
22079
22646
|
|
|
22080
|
-
componentEvent.bind(linkElement, 'click', function(event) {
|
|
22647
|
+
componentEvent$1.bind(linkElement, 'click', function(event) {
|
|
22081
22648
|
open();
|
|
22082
22649
|
|
|
22083
22650
|
event.preventDefault();
|
|
@@ -22133,15 +22700,15 @@
|
|
|
22133
22700
|
* @param {Array<didi.Module>} [options.modules] a list of modules to override the default modules
|
|
22134
22701
|
* @param {Array<didi.Module>} [options.additionalModules] a list of modules to use with the default modules
|
|
22135
22702
|
*/
|
|
22136
|
-
function Viewer(options) {
|
|
22703
|
+
function Viewer$1(options) {
|
|
22137
22704
|
BaseViewer.call(this, options);
|
|
22138
22705
|
}
|
|
22139
22706
|
|
|
22140
|
-
e(Viewer, BaseViewer);
|
|
22707
|
+
e(Viewer$1, BaseViewer);
|
|
22141
22708
|
|
|
22142
22709
|
// modules the viewer is composed of
|
|
22143
|
-
Viewer.prototype._modules = [
|
|
22144
|
-
CoreModule,
|
|
22710
|
+
Viewer$1.prototype._modules = [
|
|
22711
|
+
CoreModule$1,
|
|
22145
22712
|
TranslateModule,
|
|
22146
22713
|
SelectionModule,
|
|
22147
22714
|
OverlaysModule,
|
|
@@ -22149,9 +22716,9 @@
|
|
|
22149
22716
|
];
|
|
22150
22717
|
|
|
22151
22718
|
// default moddle extensions the viewer is composed of
|
|
22152
|
-
Viewer.prototype._moddleExtensions = {};
|
|
22719
|
+
Viewer$1.prototype._moddleExtensions = {};
|
|
22153
22720
|
|
|
22154
|
-
function ensureImported
|
|
22721
|
+
function ensureImported(element, target) {
|
|
22155
22722
|
|
|
22156
22723
|
if (element.ownerDocument !== target.ownerDocument) {
|
|
22157
22724
|
try {
|
|
@@ -22177,8 +22744,8 @@
|
|
|
22177
22744
|
*
|
|
22178
22745
|
* @return {SVGElement} the appended node
|
|
22179
22746
|
*/
|
|
22180
|
-
function appendTo
|
|
22181
|
-
return target.appendChild(ensureImported
|
|
22747
|
+
function appendTo(element, target) {
|
|
22748
|
+
return target.appendChild(ensureImported(element, target));
|
|
22182
22749
|
}
|
|
22183
22750
|
|
|
22184
22751
|
/**
|
|
@@ -22193,8 +22760,8 @@
|
|
|
22193
22760
|
*
|
|
22194
22761
|
* @return {SVGElement} the element
|
|
22195
22762
|
*/
|
|
22196
|
-
function append
|
|
22197
|
-
appendTo
|
|
22763
|
+
function append(target, node) {
|
|
22764
|
+
appendTo(node, target);
|
|
22198
22765
|
return target;
|
|
22199
22766
|
}
|
|
22200
22767
|
|
|
@@ -22202,9 +22769,9 @@
|
|
|
22202
22769
|
* attribute accessor utility
|
|
22203
22770
|
*/
|
|
22204
22771
|
|
|
22205
|
-
var LENGTH_ATTR
|
|
22772
|
+
var LENGTH_ATTR = 2;
|
|
22206
22773
|
|
|
22207
|
-
var CSS_PROPERTIES
|
|
22774
|
+
var CSS_PROPERTIES = {
|
|
22208
22775
|
'alignment-baseline': 1,
|
|
22209
22776
|
'baseline-shift': 1,
|
|
22210
22777
|
'clip': 1,
|
|
@@ -22228,7 +22795,7 @@
|
|
|
22228
22795
|
'flood-opacity': 1,
|
|
22229
22796
|
'font': 1,
|
|
22230
22797
|
'font-family': 1,
|
|
22231
|
-
'font-size': LENGTH_ATTR
|
|
22798
|
+
'font-size': LENGTH_ATTR,
|
|
22232
22799
|
'font-size-adjust': 1,
|
|
22233
22800
|
'font-stretch': 1,
|
|
22234
22801
|
'font-style': 1,
|
|
@@ -22258,7 +22825,7 @@
|
|
|
22258
22825
|
'stroke-linejoin': 1,
|
|
22259
22826
|
'stroke-miterlimit': 1,
|
|
22260
22827
|
'stroke-opacity': 1,
|
|
22261
|
-
'stroke-width': LENGTH_ATTR
|
|
22828
|
+
'stroke-width': LENGTH_ATTR,
|
|
22262
22829
|
'text-anchor': 1,
|
|
22263
22830
|
'text-decoration': 1,
|
|
22264
22831
|
'text-rendering': 1,
|
|
@@ -22269,22 +22836,22 @@
|
|
|
22269
22836
|
};
|
|
22270
22837
|
|
|
22271
22838
|
|
|
22272
|
-
function getAttribute
|
|
22273
|
-
if (CSS_PROPERTIES
|
|
22839
|
+
function getAttribute(node, name) {
|
|
22840
|
+
if (CSS_PROPERTIES[name]) {
|
|
22274
22841
|
return node.style[name];
|
|
22275
22842
|
} else {
|
|
22276
22843
|
return node.getAttributeNS(null, name);
|
|
22277
22844
|
}
|
|
22278
22845
|
}
|
|
22279
22846
|
|
|
22280
|
-
function setAttribute
|
|
22847
|
+
function setAttribute(node, name, value) {
|
|
22281
22848
|
var hyphenated = name.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
|
|
22282
22849
|
|
|
22283
|
-
var type = CSS_PROPERTIES
|
|
22850
|
+
var type = CSS_PROPERTIES[hyphenated];
|
|
22284
22851
|
|
|
22285
22852
|
if (type) {
|
|
22286
22853
|
// append pixel unit, unless present
|
|
22287
|
-
if (type === LENGTH_ATTR
|
|
22854
|
+
if (type === LENGTH_ATTR && typeof value === 'number') {
|
|
22288
22855
|
value = String(value) + 'px';
|
|
22289
22856
|
}
|
|
22290
22857
|
|
|
@@ -22294,12 +22861,12 @@
|
|
|
22294
22861
|
}
|
|
22295
22862
|
}
|
|
22296
22863
|
|
|
22297
|
-
function setAttributes
|
|
22864
|
+
function setAttributes(node, attrs) {
|
|
22298
22865
|
|
|
22299
22866
|
var names = Object.keys(attrs), i, name;
|
|
22300
22867
|
|
|
22301
22868
|
for (i = 0, name; (name = names[i]); i++) {
|
|
22302
|
-
setAttribute
|
|
22869
|
+
setAttribute(node, name, attrs[name]);
|
|
22303
22870
|
}
|
|
22304
22871
|
}
|
|
22305
22872
|
|
|
@@ -22313,21 +22880,21 @@
|
|
|
22313
22880
|
*
|
|
22314
22881
|
* @return {String}
|
|
22315
22882
|
*/
|
|
22316
|
-
function attr
|
|
22883
|
+
function attr(node, name, value) {
|
|
22317
22884
|
if (typeof name === 'string') {
|
|
22318
22885
|
if (value !== undefined) {
|
|
22319
|
-
setAttribute
|
|
22886
|
+
setAttribute(node, name, value);
|
|
22320
22887
|
} else {
|
|
22321
|
-
return getAttribute
|
|
22888
|
+
return getAttribute(node, name);
|
|
22322
22889
|
}
|
|
22323
22890
|
} else {
|
|
22324
|
-
setAttributes
|
|
22891
|
+
setAttributes(node, name);
|
|
22325
22892
|
}
|
|
22326
22893
|
|
|
22327
22894
|
return node;
|
|
22328
22895
|
}
|
|
22329
22896
|
|
|
22330
|
-
var ns
|
|
22897
|
+
var ns = {
|
|
22331
22898
|
svg: 'http://www.w3.org/2000/svg'
|
|
22332
22899
|
};
|
|
22333
22900
|
|
|
@@ -22335,24 +22902,24 @@
|
|
|
22335
22902
|
* DOM parsing utility
|
|
22336
22903
|
*/
|
|
22337
22904
|
|
|
22338
|
-
var SVG_START
|
|
22905
|
+
var SVG_START = '<svg xmlns="' + ns.svg + '"';
|
|
22339
22906
|
|
|
22340
|
-
function parse
|
|
22907
|
+
function parse(svg) {
|
|
22341
22908
|
|
|
22342
22909
|
var unwrap = false;
|
|
22343
22910
|
|
|
22344
22911
|
// ensure we import a valid svg document
|
|
22345
22912
|
if (svg.substring(0, 4) === '<svg') {
|
|
22346
|
-
if (svg.indexOf(ns
|
|
22347
|
-
svg = SVG_START
|
|
22913
|
+
if (svg.indexOf(ns.svg) === -1) {
|
|
22914
|
+
svg = SVG_START + svg.substring(4);
|
|
22348
22915
|
}
|
|
22349
22916
|
} else {
|
|
22350
22917
|
// namespace svg
|
|
22351
|
-
svg = SVG_START
|
|
22918
|
+
svg = SVG_START + '>' + svg + '</svg>';
|
|
22352
22919
|
unwrap = true;
|
|
22353
22920
|
}
|
|
22354
22921
|
|
|
22355
|
-
var parsed = parseDocument
|
|
22922
|
+
var parsed = parseDocument(svg);
|
|
22356
22923
|
|
|
22357
22924
|
if (!unwrap) {
|
|
22358
22925
|
return parsed;
|
|
@@ -22369,7 +22936,7 @@
|
|
|
22369
22936
|
return fragment;
|
|
22370
22937
|
}
|
|
22371
22938
|
|
|
22372
|
-
function parseDocument
|
|
22939
|
+
function parseDocument(svg) {
|
|
22373
22940
|
|
|
22374
22941
|
var parser;
|
|
22375
22942
|
|
|
@@ -22393,18 +22960,18 @@
|
|
|
22393
22960
|
*
|
|
22394
22961
|
* @returns {SVGElement}
|
|
22395
22962
|
*/
|
|
22396
|
-
function create
|
|
22963
|
+
function create(name, attrs) {
|
|
22397
22964
|
var element;
|
|
22398
22965
|
|
|
22399
22966
|
if (name.charAt(0) === '<') {
|
|
22400
|
-
element = parse
|
|
22967
|
+
element = parse(name).firstChild;
|
|
22401
22968
|
element = document.importNode(element, true);
|
|
22402
22969
|
} else {
|
|
22403
|
-
element = document.createElementNS(ns
|
|
22970
|
+
element = document.createElementNS(ns.svg, name);
|
|
22404
22971
|
}
|
|
22405
22972
|
|
|
22406
22973
|
if (attrs) {
|
|
22407
|
-
attr
|
|
22974
|
+
attr(element, attrs);
|
|
22408
22975
|
}
|
|
22409
22976
|
|
|
22410
22977
|
return element;
|
|
@@ -22415,7 +22982,7 @@
|
|
|
22415
22982
|
*/
|
|
22416
22983
|
|
|
22417
22984
|
// fake node used to instantiate svg geometry elements
|
|
22418
|
-
create
|
|
22985
|
+
create('svg');
|
|
22419
22986
|
|
|
22420
22987
|
function getModelerTemplateIcon(element) {
|
|
22421
22988
|
var modelerTemplateIcon = getBusinessObject(element).get('zeebe:modelerTemplateIcon');
|
|
@@ -22434,7 +23001,7 @@
|
|
|
22434
23001
|
BaseRenderer.call(this, eventBus, HIGH_PRIORITY);
|
|
22435
23002
|
}
|
|
22436
23003
|
|
|
22437
|
-
inherits_browser(IconsRenderer, BaseRenderer);
|
|
23004
|
+
inherits_browser.exports(IconsRenderer, BaseRenderer);
|
|
22438
23005
|
|
|
22439
23006
|
IconsRenderer.prototype.canRender = function(element) {
|
|
22440
23007
|
|
|
@@ -22443,7 +23010,7 @@
|
|
|
22443
23010
|
}
|
|
22444
23011
|
|
|
22445
23012
|
return (
|
|
22446
|
-
is(element, 'bpmn:Task') &&
|
|
23013
|
+
is$1(element, 'bpmn:Task') &&
|
|
22447
23014
|
!!getModelerTemplateIcon(element)
|
|
22448
23015
|
);
|
|
22449
23016
|
};
|
|
@@ -22456,8 +23023,8 @@
|
|
|
22456
23023
|
|
|
22457
23024
|
var modelerTemplateIcon = getModelerTemplateIcon(element);
|
|
22458
23025
|
|
|
22459
|
-
var icon = create
|
|
22460
|
-
attr
|
|
23026
|
+
var icon = create('image');
|
|
23027
|
+
attr(icon, {
|
|
22461
23028
|
href: modelerTemplateIcon,
|
|
22462
23029
|
x: 5,
|
|
22463
23030
|
y: 5,
|
|
@@ -22465,7 +23032,7 @@
|
|
|
22465
23032
|
height: 18
|
|
22466
23033
|
});
|
|
22467
23034
|
|
|
22468
|
-
append
|
|
23035
|
+
append(parentGfx, icon);
|
|
22469
23036
|
|
|
22470
23037
|
return gfx;
|
|
22471
23038
|
};
|
|
@@ -22484,15 +23051,15 @@
|
|
|
22484
23051
|
drilldownOverlayBehavior: [ 'value', null ],
|
|
22485
23052
|
};
|
|
22486
23053
|
|
|
22487
|
-
var name
|
|
22488
|
-
var prefix
|
|
22489
|
-
var uri
|
|
22490
|
-
var xml
|
|
23054
|
+
var name = "zeebe";
|
|
23055
|
+
var prefix = "zeebe";
|
|
23056
|
+
var uri = "http://camunda.org/schema/zeebe/1.0";
|
|
23057
|
+
var xml = {
|
|
22491
23058
|
tagAlias: "lowerCase"
|
|
22492
23059
|
};
|
|
22493
|
-
var associations
|
|
23060
|
+
var associations = [
|
|
22494
23061
|
];
|
|
22495
|
-
var types
|
|
23062
|
+
var types = [
|
|
22496
23063
|
{
|
|
22497
23064
|
name: "ZeebeServiceTask",
|
|
22498
23065
|
"extends": [
|
|
@@ -22889,12 +23456,12 @@
|
|
|
22889
23456
|
}
|
|
22890
23457
|
];
|
|
22891
23458
|
var zeebeModdle = {
|
|
22892
|
-
name: name
|
|
22893
|
-
prefix: prefix
|
|
22894
|
-
uri: uri
|
|
22895
|
-
xml: xml
|
|
22896
|
-
associations: associations
|
|
22897
|
-
types: types
|
|
23459
|
+
name: name,
|
|
23460
|
+
prefix: prefix,
|
|
23461
|
+
uri: uri,
|
|
23462
|
+
xml: xml,
|
|
23463
|
+
associations: associations,
|
|
23464
|
+
types: types
|
|
22898
23465
|
};
|
|
22899
23466
|
|
|
22900
23467
|
const commonModules = [
|
|
@@ -22910,7 +23477,7 @@
|
|
|
22910
23477
|
*
|
|
22911
23478
|
* @param {Object} options
|
|
22912
23479
|
*/
|
|
22913
|
-
function Viewer
|
|
23480
|
+
function Viewer(options = {}) {
|
|
22914
23481
|
|
|
22915
23482
|
options = {
|
|
22916
23483
|
...options,
|
|
@@ -22920,20 +23487,20 @@
|
|
|
22920
23487
|
}
|
|
22921
23488
|
};
|
|
22922
23489
|
|
|
22923
|
-
Viewer.call(this, options);
|
|
23490
|
+
Viewer$1.call(this, options);
|
|
22924
23491
|
}
|
|
22925
23492
|
|
|
22926
|
-
inherits_browser(Viewer
|
|
23493
|
+
inherits_browser.exports(Viewer, Viewer$1);
|
|
22927
23494
|
|
|
22928
|
-
Viewer
|
|
23495
|
+
Viewer.prototype._camundaCloudModules = [
|
|
22929
23496
|
...commonModules
|
|
22930
23497
|
];
|
|
22931
23498
|
|
|
22932
|
-
Viewer
|
|
22933
|
-
Viewer.prototype._modules,
|
|
22934
|
-
Viewer
|
|
23499
|
+
Viewer.prototype._modules = [].concat(
|
|
23500
|
+
Viewer$1.prototype._modules,
|
|
23501
|
+
Viewer.prototype._camundaCloudModules
|
|
22935
23502
|
);
|
|
22936
23503
|
|
|
22937
|
-
return Viewer
|
|
23504
|
+
return Viewer;
|
|
22938
23505
|
|
|
22939
|
-
}))
|
|
23506
|
+
}));
|