camunda-bpmn-js 3.10.1 → 3.11.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/base-modeler.development.js +324 -226
- package/dist/base-modeler.production.min.js +33 -33
- package/dist/base-navigated-viewer.development.js +85 -18
- package/dist/base-navigated-viewer.production.min.js +1 -1
- package/dist/base-viewer.development.js +85 -18
- package/dist/base-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-modeler.development.js +864 -656
- package/dist/camunda-cloud-modeler.production.min.js +34 -34
- package/dist/camunda-cloud-navigated-viewer.development.js +85 -18
- package/dist/camunda-cloud-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-viewer.development.js +85 -18
- package/dist/camunda-cloud-viewer.production.min.js +1 -1
- package/dist/camunda-platform-modeler.development.js +529 -587
- package/dist/camunda-platform-modeler.production.min.js +33 -33
- package/dist/camunda-platform-navigated-viewer.development.js +85 -18
- package/dist/camunda-platform-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-platform-viewer.development.js +85 -18
- package/dist/camunda-platform-viewer.production.min.js +1 -1
- package/package.json +5 -5
|
@@ -713,6 +713,26 @@
|
|
|
713
713
|
return true;
|
|
714
714
|
}
|
|
715
715
|
|
|
716
|
+
/**
|
|
717
|
+
* @param {Element} element
|
|
718
|
+
*
|
|
719
|
+
* @return {boolean}
|
|
720
|
+
*/
|
|
721
|
+
function isHorizontal(element) {
|
|
722
|
+
|
|
723
|
+
if (!is$1(element, 'bpmn:Participant') && !is$1(element, 'bpmn:Lane')) {
|
|
724
|
+
return undefined;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
var isHorizontal = getDi(element).isHorizontal;
|
|
728
|
+
|
|
729
|
+
if (isHorizontal === undefined) {
|
|
730
|
+
return true;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
return isHorizontal;
|
|
734
|
+
}
|
|
735
|
+
|
|
716
736
|
/**
|
|
717
737
|
* @param {Element} element
|
|
718
738
|
*
|
|
@@ -3783,10 +3803,12 @@
|
|
|
3783
3803
|
}
|
|
3784
3804
|
|
|
3785
3805
|
function renderLaneLabel(parentGfx, text, element, attrs = {}) {
|
|
3806
|
+
var isHorizontalLane = isHorizontal(element);
|
|
3807
|
+
|
|
3786
3808
|
var textBox = renderLabel(parentGfx, text, {
|
|
3787
3809
|
box: {
|
|
3788
3810
|
height: 30,
|
|
3789
|
-
width: getHeight(element, attrs),
|
|
3811
|
+
width: isHorizontalLane ? getHeight(element, attrs) : getWidth(element, attrs),
|
|
3790
3812
|
},
|
|
3791
3813
|
align: 'center-middle',
|
|
3792
3814
|
style: {
|
|
@@ -3794,9 +3816,10 @@
|
|
|
3794
3816
|
}
|
|
3795
3817
|
});
|
|
3796
3818
|
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3819
|
+
if (isHorizontalLane) {
|
|
3820
|
+
var top = -1 * getHeight(element, attrs);
|
|
3821
|
+
transform(textBox, 0, -top, 270);
|
|
3822
|
+
}
|
|
3800
3823
|
}
|
|
3801
3824
|
|
|
3802
3825
|
function renderActivity(parentGfx, element, attrs = {}) {
|
|
@@ -4514,12 +4537,13 @@
|
|
|
4514
4537
|
var participant = renderLane(parentGfx, element, attrs);
|
|
4515
4538
|
|
|
4516
4539
|
var expandedParticipant = isExpanded(element);
|
|
4540
|
+
var horizontalParticipant = isHorizontal(element);
|
|
4517
4541
|
|
|
4518
4542
|
var semantic = getBusinessObject(element),
|
|
4519
4543
|
name = semantic.get('name');
|
|
4520
4544
|
|
|
4521
4545
|
if (expandedParticipant) {
|
|
4522
|
-
|
|
4546
|
+
var waypoints = horizontalParticipant ? [
|
|
4523
4547
|
{
|
|
4524
4548
|
x: 30,
|
|
4525
4549
|
y: 0
|
|
@@ -4528,20 +4552,43 @@
|
|
|
4528
4552
|
x: 30,
|
|
4529
4553
|
y: getHeight(element, attrs)
|
|
4530
4554
|
}
|
|
4531
|
-
]
|
|
4555
|
+
] : [
|
|
4556
|
+
{
|
|
4557
|
+
x: 0,
|
|
4558
|
+
y: 30
|
|
4559
|
+
},
|
|
4560
|
+
{
|
|
4561
|
+
x: getWidth(element, attrs),
|
|
4562
|
+
y: 30
|
|
4563
|
+
}
|
|
4564
|
+
];
|
|
4565
|
+
|
|
4566
|
+
drawLine(parentGfx, waypoints, {
|
|
4532
4567
|
stroke: getStrokeColor(element, defaultStrokeColor, attrs.stroke),
|
|
4533
4568
|
strokeWidth: PARTICIPANT_STROKE_WIDTH
|
|
4534
4569
|
});
|
|
4535
4570
|
|
|
4536
4571
|
renderLaneLabel(parentGfx, name, element, attrs);
|
|
4537
4572
|
} else {
|
|
4538
|
-
|
|
4539
|
-
|
|
4573
|
+
var bounds = getBounds(element, attrs);
|
|
4574
|
+
|
|
4575
|
+
if (!horizontalParticipant) {
|
|
4576
|
+
bounds.height = getWidth(element, attrs);
|
|
4577
|
+
bounds.width = getHeight(element, attrs);
|
|
4578
|
+
}
|
|
4579
|
+
|
|
4580
|
+
var textBox = renderLabel(parentGfx, name, {
|
|
4581
|
+
box: bounds,
|
|
4540
4582
|
align: 'center-middle',
|
|
4541
4583
|
style: {
|
|
4542
4584
|
fill: getLabelColor(element, defaultLabelColor, defaultStrokeColor, attrs.stroke)
|
|
4543
4585
|
}
|
|
4544
4586
|
});
|
|
4587
|
+
|
|
4588
|
+
if (!horizontalParticipant) {
|
|
4589
|
+
var top = -1 * getHeight(element, attrs);
|
|
4590
|
+
transform(textBox, 0, -top, 270);
|
|
4591
|
+
}
|
|
4545
4592
|
}
|
|
4546
4593
|
|
|
4547
4594
|
if (semantic.get('participantMultiplicity')) {
|
|
@@ -6128,10 +6175,6 @@
|
|
|
6128
6175
|
translate: [ 'value', translate ]
|
|
6129
6176
|
};
|
|
6130
6177
|
|
|
6131
|
-
function getDefaultExportFromCjs (x) {
|
|
6132
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
6133
|
-
}
|
|
6134
|
-
|
|
6135
6178
|
/**
|
|
6136
6179
|
* @param {Point} point
|
|
6137
6180
|
*
|
|
@@ -9816,7 +9859,7 @@
|
|
|
9816
9859
|
}
|
|
9817
9860
|
|
|
9818
9861
|
/**
|
|
9819
|
-
* @typedef {import('./index').InjectAnnotated } InjectAnnotated
|
|
9862
|
+
* @typedef {import('./index.js').InjectAnnotated } InjectAnnotated
|
|
9820
9863
|
*/
|
|
9821
9864
|
|
|
9822
9865
|
/**
|
|
@@ -9886,9 +9929,9 @@
|
|
|
9886
9929
|
}
|
|
9887
9930
|
|
|
9888
9931
|
/**
|
|
9889
|
-
* @typedef { import('./index').ModuleDeclaration } ModuleDeclaration
|
|
9890
|
-
* @typedef { import('./index').ModuleDefinition } ModuleDefinition
|
|
9891
|
-
* @typedef { import('./index').InjectorContext } InjectorContext
|
|
9932
|
+
* @typedef { import('./index.js').ModuleDeclaration } ModuleDeclaration
|
|
9933
|
+
* @typedef { import('./index.js').ModuleDefinition } ModuleDefinition
|
|
9934
|
+
* @typedef { import('./index.js').InjectorContext } InjectorContext
|
|
9892
9935
|
*/
|
|
9893
9936
|
|
|
9894
9937
|
/**
|
|
@@ -9991,11 +10034,20 @@
|
|
|
9991
10034
|
};
|
|
9992
10035
|
}
|
|
9993
10036
|
|
|
9994
|
-
|
|
10037
|
+
/**
|
|
10038
|
+
* Instantiate the given type, injecting dependencies.
|
|
10039
|
+
*
|
|
10040
|
+
* @template T
|
|
10041
|
+
*
|
|
10042
|
+
* @param { Function | [...string[], Function ]} type
|
|
10043
|
+
*
|
|
10044
|
+
* @return T
|
|
10045
|
+
*/
|
|
10046
|
+
function instantiate(type) {
|
|
9995
10047
|
const {
|
|
9996
10048
|
fn,
|
|
9997
10049
|
dependencies
|
|
9998
|
-
} = fnDef(
|
|
10050
|
+
} = fnDef(type);
|
|
9999
10051
|
|
|
10000
10052
|
// instantiate var args constructor
|
|
10001
10053
|
const Constructor = Function.prototype.bind.apply(fn, [ null ].concat(dependencies));
|
|
@@ -10003,6 +10055,17 @@
|
|
|
10003
10055
|
return new Constructor();
|
|
10004
10056
|
}
|
|
10005
10057
|
|
|
10058
|
+
/**
|
|
10059
|
+
* Invoke the given function, injecting dependencies. Return the result.
|
|
10060
|
+
*
|
|
10061
|
+
* @template T
|
|
10062
|
+
*
|
|
10063
|
+
* @param { Function | [...string[], Function ]} func
|
|
10064
|
+
* @param { Object } [context]
|
|
10065
|
+
* @param { Object } [locals]
|
|
10066
|
+
*
|
|
10067
|
+
* @return {T} invocation result
|
|
10068
|
+
*/
|
|
10006
10069
|
function invoke(func, context, locals) {
|
|
10007
10070
|
const {
|
|
10008
10071
|
fn,
|
|
@@ -12271,6 +12334,10 @@
|
|
|
12271
12334
|
}
|
|
12272
12335
|
};
|
|
12273
12336
|
|
|
12337
|
+
function getDefaultExportFromCjs (x) {
|
|
12338
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
12339
|
+
}
|
|
12340
|
+
|
|
12274
12341
|
var objectRefs = {exports: {}};
|
|
12275
12342
|
|
|
12276
12343
|
var collection = {};
|