bpmn-js 16.4.0 → 16.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/bpmn-modeler.development.js +97 -15
- package/dist/bpmn-modeler.production.min.js +3 -3
- package/dist/bpmn-navigated-viewer.development.js +3 -3
- package/dist/bpmn-navigated-viewer.production.min.js +2 -2
- package/dist/bpmn-viewer.development.js +3 -3
- package/dist/bpmn-viewer.production.min.js +2 -2
- package/lib/draw/BpmnRenderer.js +1 -1
- package/lib/features/context-pad/ContextPadProvider.js +1 -2
- package/lib/features/modeling/ElementFactory.js +4 -0
- package/lib/features/modeling/cmd/AddLaneHandler.js +93 -10
- package/lib/model/Types.d.ts +1 -0
- package/lib/model/Types.ts +1 -0
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-modeler v16.
|
|
2
|
+
* bpmn-js - bpmn-modeler v16.5.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: 2024-01-
|
|
11
|
+
* Date: 2024-01-30
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -19048,7 +19048,7 @@
|
|
|
19048
19048
|
});
|
|
19049
19049
|
|
|
19050
19050
|
return drawPath(parentGfx, pathData, {
|
|
19051
|
-
fill:
|
|
19051
|
+
fill: getFillColor(event, defaultFillColor, attrs.fill),
|
|
19052
19052
|
stroke: getStrokeColor$1(event, defaultStrokeColor, attrs.stroke),
|
|
19053
19053
|
strokeWidth: 1
|
|
19054
19054
|
});
|
|
@@ -50773,6 +50773,10 @@
|
|
|
50773
50773
|
attrs = applyAttribute(di, attrs, 'isExpanded');
|
|
50774
50774
|
}
|
|
50775
50775
|
|
|
50776
|
+
if (isAny(businessObject, [ 'bpmn:Lane', 'bpmn:Participant' ])) {
|
|
50777
|
+
attrs = applyAttribute(di, attrs, 'isHorizontal');
|
|
50778
|
+
}
|
|
50779
|
+
|
|
50776
50780
|
if (is$1(businessObject, 'bpmn:SubProcess')) {
|
|
50777
50781
|
attrs.collapsed = !isExpanded(businessObject, di);
|
|
50778
50782
|
}
|
|
@@ -54214,14 +54218,47 @@
|
|
|
54214
54218
|
|
|
54215
54219
|
var existingChildLanes = getChildLanes(laneParent);
|
|
54216
54220
|
|
|
54221
|
+
var isHorizontalLane = isHorizontal$3(shape);
|
|
54222
|
+
|
|
54223
|
+
// never mix up horizontal/vertical lanes
|
|
54224
|
+
if (isHorizontalLane) {
|
|
54225
|
+
if (location === 'left') {
|
|
54226
|
+
location = 'top';
|
|
54227
|
+
} else
|
|
54228
|
+
if (location === 'right') {
|
|
54229
|
+
location = 'bottom';
|
|
54230
|
+
}
|
|
54231
|
+
} else {
|
|
54232
|
+
if (location === 'top') {
|
|
54233
|
+
location = 'left';
|
|
54234
|
+
} else
|
|
54235
|
+
if (location === 'bottom') {
|
|
54236
|
+
location = 'right';
|
|
54237
|
+
}
|
|
54238
|
+
}
|
|
54239
|
+
|
|
54217
54240
|
// (0) add a lane if we currently got none and are adding to root
|
|
54218
54241
|
if (!existingChildLanes.length) {
|
|
54219
|
-
|
|
54242
|
+
var siblingPosition = isHorizontalLane ? {
|
|
54220
54243
|
x: shape.x + LANE_INDENTATION,
|
|
54221
54244
|
y: shape.y,
|
|
54222
54245
|
width: shape.width - LANE_INDENTATION,
|
|
54223
54246
|
height: shape.height
|
|
54224
|
-
}
|
|
54247
|
+
} : {
|
|
54248
|
+
x: shape.x,
|
|
54249
|
+
y: shape.y + LANE_INDENTATION,
|
|
54250
|
+
width: shape.width,
|
|
54251
|
+
height: shape.height - LANE_INDENTATION
|
|
54252
|
+
};
|
|
54253
|
+
|
|
54254
|
+
modeling.createShape(
|
|
54255
|
+
{
|
|
54256
|
+
type: 'bpmn:Lane',
|
|
54257
|
+
isHorizontal: isHorizontalLane
|
|
54258
|
+
},
|
|
54259
|
+
siblingPosition,
|
|
54260
|
+
laneParent
|
|
54261
|
+
);
|
|
54225
54262
|
}
|
|
54226
54263
|
|
|
54227
54264
|
// (1) collect affected elements to create necessary space
|
|
@@ -54244,28 +54281,74 @@
|
|
|
54244
54281
|
});
|
|
54245
54282
|
});
|
|
54246
54283
|
|
|
54247
|
-
var offset
|
|
54248
|
-
lanePosition
|
|
54249
|
-
spacePos
|
|
54250
|
-
direction
|
|
54284
|
+
var offset,
|
|
54285
|
+
lanePosition,
|
|
54286
|
+
spacePos,
|
|
54287
|
+
direction,
|
|
54288
|
+
axis;
|
|
54251
54289
|
|
|
54252
|
-
|
|
54290
|
+
if (location === 'top') {
|
|
54291
|
+
offset = -120;
|
|
54292
|
+
lanePosition = shape.y;
|
|
54293
|
+
spacePos = lanePosition + 10;
|
|
54294
|
+
direction = 'n';
|
|
54295
|
+
axis = 'y';
|
|
54296
|
+
} else
|
|
54297
|
+
if (location === 'left') {
|
|
54298
|
+
offset = -120;
|
|
54299
|
+
lanePosition = shape.x;
|
|
54300
|
+
spacePos = lanePosition + 10;
|
|
54301
|
+
direction = 'w';
|
|
54302
|
+
axis = 'x';
|
|
54303
|
+
} else
|
|
54304
|
+
if (location === 'bottom') {
|
|
54305
|
+
offset = 120;
|
|
54306
|
+
lanePosition = shape.y + shape.height;
|
|
54307
|
+
spacePos = lanePosition - 10;
|
|
54308
|
+
direction = 's';
|
|
54309
|
+
axis = 'y';
|
|
54310
|
+
} else
|
|
54311
|
+
if (location === 'right') {
|
|
54312
|
+
offset = 120;
|
|
54313
|
+
lanePosition = shape.x + shape.width;
|
|
54314
|
+
spacePos = lanePosition - 10;
|
|
54315
|
+
direction = 'e';
|
|
54316
|
+
axis = 'x';
|
|
54317
|
+
}
|
|
54318
|
+
|
|
54319
|
+
var adjustments = spaceTool.calculateAdjustments(allAffected, axis, offset, spacePos);
|
|
54320
|
+
|
|
54321
|
+
var delta = isHorizontalLane ? { x: 0, y: offset } : { x: offset, y: 0 };
|
|
54253
54322
|
|
|
54254
54323
|
spaceTool.makeSpace(
|
|
54255
54324
|
adjustments.movingShapes,
|
|
54256
54325
|
adjustments.resizingShapes,
|
|
54257
|
-
|
|
54326
|
+
delta,
|
|
54258
54327
|
direction,
|
|
54259
54328
|
spacePos
|
|
54260
54329
|
);
|
|
54261
54330
|
|
|
54262
54331
|
// (2) create new lane at open space
|
|
54263
|
-
|
|
54332
|
+
var newLanePosition = isHorizontalLane ? {
|
|
54264
54333
|
x: shape.x + (isRoot ? LANE_INDENTATION : 0),
|
|
54265
54334
|
y: lanePosition - (location === 'top' ? 120 : 0),
|
|
54266
54335
|
width: shape.width - (isRoot ? LANE_INDENTATION : 0),
|
|
54267
54336
|
height: 120
|
|
54268
|
-
}
|
|
54337
|
+
} : {
|
|
54338
|
+
x: lanePosition - (location === 'left' ? 120 : 0),
|
|
54339
|
+
y: shape.y + (isRoot ? LANE_INDENTATION : 0),
|
|
54340
|
+
width: 120,
|
|
54341
|
+
height: shape.height - (isRoot ? LANE_INDENTATION : 0)
|
|
54342
|
+
};
|
|
54343
|
+
|
|
54344
|
+
context.newLane = modeling.createShape(
|
|
54345
|
+
{
|
|
54346
|
+
type: 'bpmn:Lane',
|
|
54347
|
+
isHorizontal: isHorizontalLane
|
|
54348
|
+
},
|
|
54349
|
+
newLanePosition,
|
|
54350
|
+
laneParent
|
|
54351
|
+
);
|
|
54269
54352
|
};
|
|
54270
54353
|
|
|
54271
54354
|
/**
|
|
@@ -59409,8 +59492,7 @@
|
|
|
59409
59492
|
'append.gateway': appendAction(
|
|
59410
59493
|
'bpmn:ExclusiveGateway',
|
|
59411
59494
|
'bpmn-icon-gateway-none',
|
|
59412
|
-
translate('Append gateway')
|
|
59413
|
-
{ isMarkerVisible: true }
|
|
59495
|
+
translate('Append gateway')
|
|
59414
59496
|
),
|
|
59415
59497
|
'append.append-task': appendAction(
|
|
59416
59498
|
'bpmn:Task',
|