bpmn-js 15.1.2 → 15.2.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/diagram-js.css +6 -32
- package/dist/bpmn-modeler.development.js +44 -13
- package/dist/bpmn-modeler.production.min.js +4 -4
- package/dist/bpmn-navigated-viewer.development.js +17 -13
- package/dist/bpmn-navigated-viewer.production.min.js +2 -2
- package/dist/bpmn-viewer.development.js +17 -13
- package/dist/bpmn-viewer.production.min.js +2 -2
- package/lib/features/outline/OutlineProvider.js +13 -0
- package/package.json +3 -3
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
--context-pad-entry-hover-background-color: var(--color-grey-225-10-95);
|
|
41
41
|
|
|
42
42
|
--element-dragger-color: var(--color-blue-205-100-50);
|
|
43
|
-
--element-dragging-color: var(--color-grey-225-10-75);
|
|
44
43
|
--element-hover-outline-fill-color: var(--color-blue-205-100-45);
|
|
45
44
|
--element-selected-outline-stroke-color: var(--color-blue-205-100-50);
|
|
46
45
|
--element-selected-outline-secondary-stroke-color: var(--color-blue-205-100-70);
|
|
@@ -122,8 +121,13 @@
|
|
|
122
121
|
stroke: var(--element-selected-outline-stroke-color);
|
|
123
122
|
}
|
|
124
123
|
|
|
124
|
+
.djs-connection.selected .djs-outline {
|
|
125
|
+
display: none;
|
|
126
|
+
}
|
|
127
|
+
|
|
125
128
|
.djs-multi-select .djs-element.selected .djs-outline {
|
|
126
129
|
stroke: var(--element-selected-outline-secondary-stroke-color);
|
|
130
|
+
display: block;
|
|
127
131
|
}
|
|
128
132
|
|
|
129
133
|
.djs-shape.connect-ok .djs-visual > :nth-child(1) {
|
|
@@ -283,40 +287,10 @@ marker.djs-dragger tspan {
|
|
|
283
287
|
|
|
284
288
|
.djs-dragging,
|
|
285
289
|
.djs-dragging > * {
|
|
290
|
+
opacity: 0.3 !important;
|
|
286
291
|
pointer-events: none !important;
|
|
287
292
|
}
|
|
288
293
|
|
|
289
|
-
.djs-dragging .djs-context-pad,
|
|
290
|
-
.djs-dragging .djs-outline {
|
|
291
|
-
display: none !important;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
.djs-dragging * {
|
|
295
|
-
fill: none !important;
|
|
296
|
-
stroke: var(--element-dragging-color) !important;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.djs-dragging tspan,
|
|
300
|
-
.djs-dragging text {
|
|
301
|
-
fill: var(--element-dragging-color) !important;
|
|
302
|
-
stroke: none !important;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
marker.djs-dragging circle,
|
|
306
|
-
marker.djs-dragging path,
|
|
307
|
-
marker.djs-dragging polygon,
|
|
308
|
-
marker.djs-dragging polyline,
|
|
309
|
-
marker.djs-dragging rect {
|
|
310
|
-
fill: var(--element-dragging-color) !important;
|
|
311
|
-
stroke: none !important;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
marker.djs-dragging text,
|
|
315
|
-
marker.djs-dragging tspan {
|
|
316
|
-
fill: none !important;
|
|
317
|
-
stroke: var(--element-dragging-color) !important;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
294
|
/**
|
|
321
295
|
* no pointer events for visual
|
|
322
296
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-modeler v15.
|
|
2
|
+
* bpmn-js - bpmn-modeler v15.2.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2014-present, camunda Services GmbH
|
|
5
5
|
*
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* Source Code: https://github.com/bpmn-io/bpmn-js
|
|
10
10
|
*
|
|
11
|
-
* Date: 2023-11-
|
|
11
|
+
* Date: 2023-11-21
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -22648,15 +22648,20 @@
|
|
|
22648
22648
|
|
|
22649
22649
|
var self = this;
|
|
22650
22650
|
|
|
22651
|
-
|
|
22651
|
+
/**
|
|
22652
|
+
* @param {SVGElement} gfx
|
|
22653
|
+
*
|
|
22654
|
+
* @return {SVGElement} outline
|
|
22655
|
+
*/
|
|
22656
|
+
function createOutline(gfx) {
|
|
22652
22657
|
var outline = create$1('rect');
|
|
22653
22658
|
|
|
22654
22659
|
attr(outline, assign$1({
|
|
22655
|
-
x:
|
|
22656
|
-
y:
|
|
22660
|
+
x: 0,
|
|
22661
|
+
y: 0,
|
|
22657
22662
|
rx: 4,
|
|
22658
|
-
width:
|
|
22659
|
-
height:
|
|
22663
|
+
width: 100,
|
|
22664
|
+
height: 100
|
|
22660
22665
|
}, OUTLINE_STYLE));
|
|
22661
22666
|
|
|
22662
22667
|
return outline;
|
|
@@ -22671,12 +22676,11 @@
|
|
|
22671
22676
|
var outline = query('.djs-outline', gfx);
|
|
22672
22677
|
|
|
22673
22678
|
if (!outline) {
|
|
22674
|
-
outline = self.getOutline(element) || createOutline(
|
|
22679
|
+
outline = self.getOutline(element) || createOutline();
|
|
22675
22680
|
append(gfx, outline);
|
|
22676
|
-
|
|
22677
|
-
} else {
|
|
22678
|
-
self.updateShapeOutline(outline, element);
|
|
22679
22681
|
}
|
|
22682
|
+
|
|
22683
|
+
self.updateShapeOutline(outline, element);
|
|
22680
22684
|
});
|
|
22681
22685
|
|
|
22682
22686
|
eventBus.on([ 'connection.added', 'connection.changed' ], function(event) {
|
|
@@ -22686,7 +22690,7 @@
|
|
|
22686
22690
|
var outline = query('.djs-outline', gfx);
|
|
22687
22691
|
|
|
22688
22692
|
if (!outline) {
|
|
22689
|
-
outline = createOutline(
|
|
22693
|
+
outline = createOutline();
|
|
22690
22694
|
append(gfx, outline);
|
|
22691
22695
|
}
|
|
22692
22696
|
|
|
@@ -22730,7 +22734,7 @@
|
|
|
22730
22734
|
*
|
|
22731
22735
|
* @param {SVGElement} outline
|
|
22732
22736
|
* @param {Element} connection
|
|
22733
|
-
|
|
22737
|
+
*/
|
|
22734
22738
|
Outline.prototype.updateConnectionOutline = function(outline, connection) {
|
|
22735
22739
|
var bbox = getBBox(connection);
|
|
22736
22740
|
|
|
@@ -29982,6 +29986,8 @@
|
|
|
29982
29986
|
return;
|
|
29983
29987
|
}
|
|
29984
29988
|
|
|
29989
|
+
clearTimeout(this._timeout);
|
|
29990
|
+
|
|
29985
29991
|
this._overlays.remove(this._overlayId);
|
|
29986
29992
|
|
|
29987
29993
|
this._overlayId = null;
|
|
@@ -30045,12 +30051,20 @@
|
|
|
30045
30051
|
/**
|
|
30046
30052
|
* Get contex pad position.
|
|
30047
30053
|
*
|
|
30054
|
+
* If target is a connection, the context pad will be placed according to the
|
|
30055
|
+
* connection's last waypoint.
|
|
30056
|
+
*
|
|
30057
|
+
* If multiple targets, the context pad will be placed according to the bounding
|
|
30058
|
+
* box containing all targets.
|
|
30059
|
+
*
|
|
30048
30060
|
* @param {ContextPadTarget} target
|
|
30049
30061
|
*
|
|
30050
30062
|
* @return {Rect}
|
|
30051
30063
|
*/
|
|
30052
30064
|
ContextPad.prototype._getPosition = function(target) {
|
|
30053
30065
|
|
|
30066
|
+
target = isConnection(target) ? getLastWaypoint(target) : target;
|
|
30067
|
+
|
|
30054
30068
|
var elements = isArray$3(target) ? target : [ target ];
|
|
30055
30069
|
var bBox = getBBox(elements);
|
|
30056
30070
|
|
|
@@ -30085,6 +30099,10 @@
|
|
|
30085
30099
|
return array.indexOf(item) !== -1;
|
|
30086
30100
|
}
|
|
30087
30101
|
|
|
30102
|
+
function getLastWaypoint(connection) {
|
|
30103
|
+
return connection.waypoints[connection.waypoints.length - 1];
|
|
30104
|
+
}
|
|
30105
|
+
|
|
30088
30106
|
/**
|
|
30089
30107
|
* @type { import('didi').ModuleDeclaration }
|
|
30090
30108
|
*/
|
|
@@ -63431,6 +63449,19 @@
|
|
|
63431
63449
|
height: element.height + DEFAULT_OFFSET * 2
|
|
63432
63450
|
}, OUTLINE_STYLE));
|
|
63433
63451
|
|
|
63452
|
+
} else if (is$1(element, 'bpmn:EndEvent')) {
|
|
63453
|
+
|
|
63454
|
+
outline = create$1('circle');
|
|
63455
|
+
|
|
63456
|
+
// Extra 1px offset needed due to increased stroke-width of end event
|
|
63457
|
+
// which makes it bigger than other events.
|
|
63458
|
+
|
|
63459
|
+
attr(outline, assign$1({
|
|
63460
|
+
cx: element.width / 2,
|
|
63461
|
+
cy: element.height / 2,
|
|
63462
|
+
r: element.width / 2 + DEFAULT_OFFSET + 1
|
|
63463
|
+
}, OUTLINE_STYLE));
|
|
63464
|
+
|
|
63434
63465
|
} else if (is$1(element, 'bpmn:Event')) {
|
|
63435
63466
|
outline = create$1('circle');
|
|
63436
63467
|
|