camunda-bpmn-js 2.3.1 → 2.5.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 +40 -12
- package/dist/base-modeler.development.js +173 -250
- package/dist/base-modeler.production.min.js +31 -33
- package/dist/base-navigated-viewer.development.js +52 -33
- package/dist/base-navigated-viewer.production.min.js +1 -1
- package/dist/base-viewer.development.js +52 -33
- package/dist/base-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-modeler.development.js +867 -460
- package/dist/camunda-cloud-modeler.production.min.js +32 -34
- package/dist/camunda-cloud-navigated-viewer.development.js +119 -99
- package/dist/camunda-cloud-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-viewer.development.js +119 -99
- package/dist/camunda-cloud-viewer.production.min.js +1 -1
- package/dist/camunda-platform-modeler.development.js +591 -346
- package/dist/camunda-platform-modeler.production.min.js +31 -33
- package/dist/camunda-platform-navigated-viewer.development.js +52 -33
- package/dist/camunda-platform-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-platform-viewer.development.js +52 -33
- package/dist/camunda-platform-viewer.production.min.js +1 -1
- package/lib/camunda-cloud/util/commonModules.js +1 -1
- package/package.json +9 -10
|
@@ -722,6 +722,17 @@
|
|
|
722
722
|
return element && !!getBusinessObject(element).triggeredByEvent;
|
|
723
723
|
}
|
|
724
724
|
|
|
725
|
+
/**
|
|
726
|
+
* Checks whether a value is an instance of Connection.
|
|
727
|
+
*
|
|
728
|
+
* @param {any} value
|
|
729
|
+
*
|
|
730
|
+
* @return {boolean}
|
|
731
|
+
*/
|
|
732
|
+
function isConnection(value) {
|
|
733
|
+
return isObject(value) && has$1(value, 'waypoints');
|
|
734
|
+
}
|
|
735
|
+
|
|
725
736
|
/**
|
|
726
737
|
* @typedef {import('diagram-js/lib/util/Types').Point} Point
|
|
727
738
|
* @typedef {import('diagram-js/lib/util/Types').Rect} Rect
|
|
@@ -877,11 +888,11 @@
|
|
|
877
888
|
}, size);
|
|
878
889
|
}
|
|
879
890
|
|
|
880
|
-
|
|
881
891
|
/**
|
|
882
|
-
* @
|
|
892
|
+
* @param {ModdleElement} semantic
|
|
893
|
+
*
|
|
894
|
+
* @returns {string}
|
|
883
895
|
*/
|
|
884
|
-
|
|
885
896
|
function getLabelAttr(semantic) {
|
|
886
897
|
if (
|
|
887
898
|
is$1(semantic, 'bpmn:FlowElement') ||
|
|
@@ -904,6 +915,11 @@
|
|
|
904
915
|
}
|
|
905
916
|
}
|
|
906
917
|
|
|
918
|
+
/**
|
|
919
|
+
* @param {ModdleElement} semantic
|
|
920
|
+
*
|
|
921
|
+
* @returns {string}
|
|
922
|
+
*/
|
|
907
923
|
function getCategoryValue(semantic) {
|
|
908
924
|
var categoryValueRef = semantic['categoryValueRef'];
|
|
909
925
|
|
|
@@ -916,9 +932,9 @@
|
|
|
916
932
|
}
|
|
917
933
|
|
|
918
934
|
/**
|
|
919
|
-
* @param {
|
|
935
|
+
* @param {Element} element
|
|
920
936
|
*
|
|
921
|
-
* @return {string}
|
|
937
|
+
* @return {string}
|
|
922
938
|
*/
|
|
923
939
|
function getLabel(element) {
|
|
924
940
|
var semantic = element.businessObject,
|
|
@@ -2741,7 +2757,7 @@
|
|
|
2741
2757
|
*/
|
|
2742
2758
|
|
|
2743
2759
|
/**
|
|
2744
|
-
* @typedef { import('../model').
|
|
2760
|
+
* @typedef { import('../model/Types').Element } Element
|
|
2745
2761
|
*/
|
|
2746
2762
|
|
|
2747
2763
|
/**
|
|
@@ -3107,8 +3123,8 @@
|
|
|
3107
3123
|
}
|
|
3108
3124
|
|
|
3109
3125
|
function as(type) {
|
|
3110
|
-
return function(parentGfx, element) {
|
|
3111
|
-
return renderer(type)(parentGfx, element);
|
|
3126
|
+
return function(parentGfx, element, options) {
|
|
3127
|
+
return renderer(type)(parentGfx, element, options);
|
|
3112
3128
|
};
|
|
3113
3129
|
}
|
|
3114
3130
|
|
|
@@ -3247,7 +3263,7 @@
|
|
|
3247
3263
|
|
|
3248
3264
|
return drawCircle(parentGfx, element.width, element.height, attrs);
|
|
3249
3265
|
},
|
|
3250
|
-
'bpmn:StartEvent': function(parentGfx, element) {
|
|
3266
|
+
'bpmn:StartEvent': function(parentGfx, element, options) {
|
|
3251
3267
|
var attrs = {
|
|
3252
3268
|
fill: getFillColor(element, defaultFillColor),
|
|
3253
3269
|
stroke: getStrokeColor(element, defaultStrokeColor)
|
|
@@ -3265,7 +3281,9 @@
|
|
|
3265
3281
|
|
|
3266
3282
|
var circle = renderer('bpmn:Event')(parentGfx, element, attrs);
|
|
3267
3283
|
|
|
3268
|
-
|
|
3284
|
+
if (!options || options.renderIcon !== false) {
|
|
3285
|
+
renderEventContent(element, parentGfx);
|
|
3286
|
+
}
|
|
3269
3287
|
|
|
3270
3288
|
return circle;
|
|
3271
3289
|
},
|
|
@@ -3518,14 +3536,16 @@
|
|
|
3518
3536
|
stroke: getStrokeColor(event, defaultStrokeColor)
|
|
3519
3537
|
});
|
|
3520
3538
|
},
|
|
3521
|
-
'bpmn:EndEvent': function(parentGfx, element) {
|
|
3539
|
+
'bpmn:EndEvent': function(parentGfx, element, options) {
|
|
3522
3540
|
var circle = renderer('bpmn:Event')(parentGfx, element, {
|
|
3523
3541
|
strokeWidth: 4,
|
|
3524
3542
|
fill: getFillColor(element, defaultFillColor),
|
|
3525
3543
|
stroke: getStrokeColor(element, defaultStrokeColor)
|
|
3526
3544
|
});
|
|
3527
3545
|
|
|
3528
|
-
|
|
3546
|
+
if (!options || options.renderIcon !== false) {
|
|
3547
|
+
renderEventContent(element, parentGfx);
|
|
3548
|
+
}
|
|
3529
3549
|
|
|
3530
3550
|
return circle;
|
|
3531
3551
|
},
|
|
@@ -3538,7 +3558,7 @@
|
|
|
3538
3558
|
|
|
3539
3559
|
return circle;
|
|
3540
3560
|
},
|
|
3541
|
-
'bpmn:IntermediateEvent': function(parentGfx, element) {
|
|
3561
|
+
'bpmn:IntermediateEvent': function(parentGfx, element, options) {
|
|
3542
3562
|
var outer = renderer('bpmn:Event')(parentGfx, element, {
|
|
3543
3563
|
strokeWidth: 1.5,
|
|
3544
3564
|
fill: getFillColor(element, defaultFillColor),
|
|
@@ -3552,7 +3572,9 @@
|
|
|
3552
3572
|
stroke: getStrokeColor(element, defaultStrokeColor)
|
|
3553
3573
|
});
|
|
3554
3574
|
|
|
3555
|
-
|
|
3575
|
+
if (!options || options.renderIcon !== false) {
|
|
3576
|
+
renderEventContent(element, parentGfx);
|
|
3577
|
+
}
|
|
3556
3578
|
|
|
3557
3579
|
return outer;
|
|
3558
3580
|
},
|
|
@@ -4270,7 +4292,7 @@
|
|
|
4270
4292
|
|
|
4271
4293
|
return elementStore;
|
|
4272
4294
|
},
|
|
4273
|
-
'bpmn:BoundaryEvent': function(parentGfx, element) {
|
|
4295
|
+
'bpmn:BoundaryEvent': function(parentGfx, element, options) {
|
|
4274
4296
|
|
|
4275
4297
|
var semantic = getBusinessObject(element),
|
|
4276
4298
|
cancel = semantic.cancelActivity;
|
|
@@ -4301,7 +4323,9 @@
|
|
|
4301
4323
|
|
|
4302
4324
|
/* inner path */ drawCircle(parentGfx, element.width, element.height, INNER_OUTER_DIST, innerAttrs);
|
|
4303
4325
|
|
|
4304
|
-
|
|
4326
|
+
if (!options || options.renderIcon !== false) {
|
|
4327
|
+
renderEventContent(element, parentGfx);
|
|
4328
|
+
}
|
|
4305
4329
|
|
|
4306
4330
|
return outer;
|
|
4307
4331
|
},
|
|
@@ -4582,7 +4606,7 @@
|
|
|
4582
4606
|
|
|
4583
4607
|
|
|
4584
4608
|
/**
|
|
4585
|
-
* @param {
|
|
4609
|
+
* @param {Element} element
|
|
4586
4610
|
*
|
|
4587
4611
|
* @return {boolean}
|
|
4588
4612
|
*/
|
|
@@ -4594,7 +4618,7 @@
|
|
|
4594
4618
|
* Draw shape into parentGfx.
|
|
4595
4619
|
*
|
|
4596
4620
|
* @param {SVGElement} parentGfx
|
|
4597
|
-
* @param {
|
|
4621
|
+
* @param {Element} element
|
|
4598
4622
|
*
|
|
4599
4623
|
* @return {SVGElement} mainGfx
|
|
4600
4624
|
*/
|
|
@@ -4610,7 +4634,7 @@
|
|
|
4610
4634
|
* Draw connection into parentGfx.
|
|
4611
4635
|
*
|
|
4612
4636
|
* @param {SVGElement} parentGfx
|
|
4613
|
-
* @param {
|
|
4637
|
+
* @param {Element} element
|
|
4614
4638
|
*
|
|
4615
4639
|
* @return {SVGElement} mainGfx
|
|
4616
4640
|
*/
|
|
@@ -4625,7 +4649,7 @@
|
|
|
4625
4649
|
/**
|
|
4626
4650
|
* Get shape path.
|
|
4627
4651
|
*
|
|
4628
|
-
* @param {
|
|
4652
|
+
* @param {Element} element
|
|
4629
4653
|
*
|
|
4630
4654
|
* @return {string} path
|
|
4631
4655
|
*/
|
|
@@ -5889,10 +5913,6 @@
|
|
|
5889
5913
|
return Math.sqrt(Math.pow(a.x - b.x, 2) + Math.pow(a.y - b.y, 2));
|
|
5890
5914
|
}
|
|
5891
5915
|
|
|
5892
|
-
function isConnection(element) {
|
|
5893
|
-
return !!element.waypoints;
|
|
5894
|
-
}
|
|
5895
|
-
|
|
5896
5916
|
function elementToString(e) {
|
|
5897
5917
|
if (!e) {
|
|
5898
5918
|
return '<null>';
|
|
@@ -11813,11 +11833,7 @@
|
|
|
11813
11833
|
}
|
|
11814
11834
|
};
|
|
11815
11835
|
|
|
11816
|
-
var
|
|
11817
|
-
var objectRefs = {
|
|
11818
|
-
get exports(){ return objectRefsExports; },
|
|
11819
|
-
set exports(v){ objectRefsExports = v; },
|
|
11820
|
-
};
|
|
11836
|
+
var objectRefs = {exports: {}};
|
|
11821
11837
|
|
|
11822
11838
|
var collection = {};
|
|
11823
11839
|
|
|
@@ -12131,12 +12147,11 @@
|
|
|
12131
12147
|
|
|
12132
12148
|
var refs = Refs$1;
|
|
12133
12149
|
|
|
12134
|
-
|
|
12135
|
-
module.exports = refs;
|
|
12150
|
+
objectRefs.exports = refs;
|
|
12136
12151
|
|
|
12137
|
-
|
|
12138
|
-
} (objectRefs));
|
|
12152
|
+
objectRefs.exports.Collection = collection;
|
|
12139
12153
|
|
|
12154
|
+
var objectRefsExports = objectRefs.exports;
|
|
12140
12155
|
var Refs = /*@__PURE__*/getDefaultExportFromCjs(objectRefsExports);
|
|
12141
12156
|
|
|
12142
12157
|
var parentRefs = new Refs({ name: 'children', enumerable: true, collection: true }, { name: 'parent' }),
|
|
@@ -12378,6 +12393,7 @@
|
|
|
12378
12393
|
*
|
|
12379
12394
|
* @return {Root}
|
|
12380
12395
|
*/
|
|
12396
|
+
|
|
12381
12397
|
/**
|
|
12382
12398
|
* Creates a connection.
|
|
12383
12399
|
*
|
|
@@ -12401,6 +12417,7 @@
|
|
|
12401
12417
|
*
|
|
12402
12418
|
* @return {Connection}
|
|
12403
12419
|
*/
|
|
12420
|
+
|
|
12404
12421
|
/**
|
|
12405
12422
|
* Creates a shape.
|
|
12406
12423
|
*
|
|
@@ -12424,6 +12441,7 @@
|
|
|
12424
12441
|
*
|
|
12425
12442
|
* @return {Shape}
|
|
12426
12443
|
*/
|
|
12444
|
+
|
|
12427
12445
|
/**
|
|
12428
12446
|
* Creates a label.
|
|
12429
12447
|
*
|
|
@@ -12443,6 +12461,7 @@
|
|
|
12443
12461
|
*
|
|
12444
12462
|
* @param {'label'} type
|
|
12445
12463
|
* @param {Object} [attrs]
|
|
12464
|
+
*
|
|
12446
12465
|
* @return {Label}
|
|
12447
12466
|
*/
|
|
12448
12467
|
function create(type, attrs) {
|