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
|
*
|
|
@@ -3772,10 +3792,12 @@
|
|
|
3772
3792
|
}
|
|
3773
3793
|
|
|
3774
3794
|
function renderLaneLabel(parentGfx, text, element, attrs = {}) {
|
|
3795
|
+
var isHorizontalLane = isHorizontal(element);
|
|
3796
|
+
|
|
3775
3797
|
var textBox = renderLabel(parentGfx, text, {
|
|
3776
3798
|
box: {
|
|
3777
3799
|
height: 30,
|
|
3778
|
-
width: getHeight(element, attrs),
|
|
3800
|
+
width: isHorizontalLane ? getHeight(element, attrs) : getWidth(element, attrs),
|
|
3779
3801
|
},
|
|
3780
3802
|
align: 'center-middle',
|
|
3781
3803
|
style: {
|
|
@@ -3783,9 +3805,10 @@
|
|
|
3783
3805
|
}
|
|
3784
3806
|
});
|
|
3785
3807
|
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3808
|
+
if (isHorizontalLane) {
|
|
3809
|
+
var top = -1 * getHeight(element, attrs);
|
|
3810
|
+
transform(textBox, 0, -top, 270);
|
|
3811
|
+
}
|
|
3789
3812
|
}
|
|
3790
3813
|
|
|
3791
3814
|
function renderActivity(parentGfx, element, attrs = {}) {
|
|
@@ -4503,12 +4526,13 @@
|
|
|
4503
4526
|
var participant = renderLane(parentGfx, element, attrs);
|
|
4504
4527
|
|
|
4505
4528
|
var expandedParticipant = isExpanded(element);
|
|
4529
|
+
var horizontalParticipant = isHorizontal(element);
|
|
4506
4530
|
|
|
4507
4531
|
var semantic = getBusinessObject(element),
|
|
4508
4532
|
name = semantic.get('name');
|
|
4509
4533
|
|
|
4510
4534
|
if (expandedParticipant) {
|
|
4511
|
-
|
|
4535
|
+
var waypoints = horizontalParticipant ? [
|
|
4512
4536
|
{
|
|
4513
4537
|
x: 30,
|
|
4514
4538
|
y: 0
|
|
@@ -4517,20 +4541,43 @@
|
|
|
4517
4541
|
x: 30,
|
|
4518
4542
|
y: getHeight(element, attrs)
|
|
4519
4543
|
}
|
|
4520
|
-
]
|
|
4544
|
+
] : [
|
|
4545
|
+
{
|
|
4546
|
+
x: 0,
|
|
4547
|
+
y: 30
|
|
4548
|
+
},
|
|
4549
|
+
{
|
|
4550
|
+
x: getWidth(element, attrs),
|
|
4551
|
+
y: 30
|
|
4552
|
+
}
|
|
4553
|
+
];
|
|
4554
|
+
|
|
4555
|
+
drawLine(parentGfx, waypoints, {
|
|
4521
4556
|
stroke: getStrokeColor(element, defaultStrokeColor, attrs.stroke),
|
|
4522
4557
|
strokeWidth: PARTICIPANT_STROKE_WIDTH
|
|
4523
4558
|
});
|
|
4524
4559
|
|
|
4525
4560
|
renderLaneLabel(parentGfx, name, element, attrs);
|
|
4526
4561
|
} else {
|
|
4527
|
-
|
|
4528
|
-
|
|
4562
|
+
var bounds = getBounds(element, attrs);
|
|
4563
|
+
|
|
4564
|
+
if (!horizontalParticipant) {
|
|
4565
|
+
bounds.height = getWidth(element, attrs);
|
|
4566
|
+
bounds.width = getHeight(element, attrs);
|
|
4567
|
+
}
|
|
4568
|
+
|
|
4569
|
+
var textBox = renderLabel(parentGfx, name, {
|
|
4570
|
+
box: bounds,
|
|
4529
4571
|
align: 'center-middle',
|
|
4530
4572
|
style: {
|
|
4531
4573
|
fill: getLabelColor(element, defaultLabelColor, defaultStrokeColor, attrs.stroke)
|
|
4532
4574
|
}
|
|
4533
4575
|
});
|
|
4576
|
+
|
|
4577
|
+
if (!horizontalParticipant) {
|
|
4578
|
+
var top = -1 * getHeight(element, attrs);
|
|
4579
|
+
transform(textBox, 0, -top, 270);
|
|
4580
|
+
}
|
|
4534
4581
|
}
|
|
4535
4582
|
|
|
4536
4583
|
if (semantic.get('participantMultiplicity')) {
|
|
@@ -6117,10 +6164,6 @@
|
|
|
6117
6164
|
translate: [ 'value', translate ]
|
|
6118
6165
|
};
|
|
6119
6166
|
|
|
6120
|
-
function getDefaultExportFromCjs (x) {
|
|
6121
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
6122
|
-
}
|
|
6123
|
-
|
|
6124
6167
|
/**
|
|
6125
6168
|
* @param {Point} point
|
|
6126
6169
|
*
|
|
@@ -9826,7 +9869,7 @@
|
|
|
9826
9869
|
}
|
|
9827
9870
|
|
|
9828
9871
|
/**
|
|
9829
|
-
* @typedef {import('./index').InjectAnnotated } InjectAnnotated
|
|
9872
|
+
* @typedef {import('./index.js').InjectAnnotated } InjectAnnotated
|
|
9830
9873
|
*/
|
|
9831
9874
|
|
|
9832
9875
|
/**
|
|
@@ -9896,9 +9939,9 @@
|
|
|
9896
9939
|
}
|
|
9897
9940
|
|
|
9898
9941
|
/**
|
|
9899
|
-
* @typedef { import('./index').ModuleDeclaration } ModuleDeclaration
|
|
9900
|
-
* @typedef { import('./index').ModuleDefinition } ModuleDefinition
|
|
9901
|
-
* @typedef { import('./index').InjectorContext } InjectorContext
|
|
9942
|
+
* @typedef { import('./index.js').ModuleDeclaration } ModuleDeclaration
|
|
9943
|
+
* @typedef { import('./index.js').ModuleDefinition } ModuleDefinition
|
|
9944
|
+
* @typedef { import('./index.js').InjectorContext } InjectorContext
|
|
9902
9945
|
*/
|
|
9903
9946
|
|
|
9904
9947
|
/**
|
|
@@ -10001,11 +10044,20 @@
|
|
|
10001
10044
|
};
|
|
10002
10045
|
}
|
|
10003
10046
|
|
|
10004
|
-
|
|
10047
|
+
/**
|
|
10048
|
+
* Instantiate the given type, injecting dependencies.
|
|
10049
|
+
*
|
|
10050
|
+
* @template T
|
|
10051
|
+
*
|
|
10052
|
+
* @param { Function | [...string[], Function ]} type
|
|
10053
|
+
*
|
|
10054
|
+
* @return T
|
|
10055
|
+
*/
|
|
10056
|
+
function instantiate(type) {
|
|
10005
10057
|
const {
|
|
10006
10058
|
fn,
|
|
10007
10059
|
dependencies
|
|
10008
|
-
} = fnDef(
|
|
10060
|
+
} = fnDef(type);
|
|
10009
10061
|
|
|
10010
10062
|
// instantiate var args constructor
|
|
10011
10063
|
const Constructor = Function.prototype.bind.apply(fn, [ null ].concat(dependencies));
|
|
@@ -10013,6 +10065,17 @@
|
|
|
10013
10065
|
return new Constructor();
|
|
10014
10066
|
}
|
|
10015
10067
|
|
|
10068
|
+
/**
|
|
10069
|
+
* Invoke the given function, injecting dependencies. Return the result.
|
|
10070
|
+
*
|
|
10071
|
+
* @template T
|
|
10072
|
+
*
|
|
10073
|
+
* @param { Function | [...string[], Function ]} func
|
|
10074
|
+
* @param { Object } [context]
|
|
10075
|
+
* @param { Object } [locals]
|
|
10076
|
+
*
|
|
10077
|
+
* @return {T} invocation result
|
|
10078
|
+
*/
|
|
10016
10079
|
function invoke(func, context, locals) {
|
|
10017
10080
|
const {
|
|
10018
10081
|
fn,
|
|
@@ -12281,6 +12344,10 @@
|
|
|
12281
12344
|
}
|
|
12282
12345
|
};
|
|
12283
12346
|
|
|
12347
|
+
function getDefaultExportFromCjs (x) {
|
|
12348
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
12349
|
+
}
|
|
12350
|
+
|
|
12284
12351
|
var objectRefs = {exports: {}};
|
|
12285
12352
|
|
|
12286
12353
|
var collection = {};
|