bpmn-js 17.9.2 → 17.10.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 +441 -156
- package/dist/bpmn-modeler.production.min.js +34 -34
- package/dist/bpmn-navigated-viewer.development.js +43 -21
- package/dist/bpmn-navigated-viewer.production.min.js +2 -2
- package/dist/bpmn-viewer.development.js +43 -21
- package/dist/bpmn-viewer.production.min.js +2 -2
- package/lib/draw/BpmnRenderer.d.ts +8 -6
- package/lib/draw/BpmnRenderer.js +19 -17
- package/lib/features/align-elements/AlignElementsContextPadProvider.d.ts +1 -1
- package/lib/features/align-elements/AlignElementsContextPadProvider.js +1 -1
- package/lib/features/append-preview/AppendPreview.d.ts +2 -2
- package/lib/features/append-preview/AppendPreview.js +2 -2
- package/lib/features/auto-place/BpmnAutoPlace.d.ts +3 -1
- package/lib/features/auto-place/BpmnAutoPlace.js +5 -3
- package/lib/features/auto-place/BpmnAutoPlaceUtil.d.ts +9 -4
- package/lib/features/auto-place/BpmnAutoPlaceUtil.js +14 -13
- package/lib/features/context-pad/ContextPadProvider.d.ts +3 -14
- package/lib/features/context-pad/ContextPadProvider.js +3 -1
- package/lib/features/grid-snapping/behavior/GridSnappingAutoPlaceBehavior.d.ts +3 -1
- package/lib/features/grid-snapping/behavior/GridSnappingAutoPlaceBehavior.js +6 -3
- package/lib/features/label-editing/LabelEditingPreview.js +2 -1
- package/lib/features/modeling/BpmnLayouter.d.ts +13 -9
- package/lib/features/modeling/BpmnLayouter.js +10 -3
- package/lib/features/modeling/Modeling.d.ts +1 -1
- package/lib/features/modeling/Modeling.js +1 -1
- package/lib/features/modeling/behavior/ResizeBehavior.js +25 -19
- package/lib/features/modeling/behavior/SetCompensationActivityAfterPasteBehavior.d.ts +16 -0
- package/lib/features/modeling/behavior/SetCompensationActivityAfterPasteBehavior.js +67 -0
- package/lib/features/modeling/behavior/index.js +5 -2
- package/lib/features/modeling/util/ModelingUtil.d.ts +3 -1
- package/lib/features/modeling/util/ModelingUtil.js +38 -4
- package/lib/features/outline/OutlineProvider.d.ts +5 -0
- package/lib/features/outline/OutlineProvider.js +10 -0
- package/lib/features/outline/OutlineUtil.d.ts +5 -0
- package/lib/features/outline/OutlineUtil.js +4 -0
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-viewer v17.
|
|
2
|
+
* bpmn-js - bpmn-viewer v17.10.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-
|
|
11
|
+
* Date: 2024-09-09
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -2844,6 +2844,8 @@
|
|
|
2844
2844
|
|
|
2845
2845
|
/**
|
|
2846
2846
|
* @typedef { import('../model/Types').Element } Element
|
|
2847
|
+
* @typedef { import('../model/Types').Shape } Shape
|
|
2848
|
+
* @typedef { import('../model/Types').Connection } Connection
|
|
2847
2849
|
*/
|
|
2848
2850
|
|
|
2849
2851
|
/**
|
|
@@ -5017,57 +5019,57 @@
|
|
|
5017
5019
|
* Draw shape into parentGfx.
|
|
5018
5020
|
*
|
|
5019
5021
|
* @param {SVGElement} parentGfx
|
|
5020
|
-
* @param {
|
|
5022
|
+
* @param {Shape} shape
|
|
5021
5023
|
* @param {Attrs} [attrs]
|
|
5022
5024
|
*
|
|
5023
5025
|
* @return {SVGElement} mainGfx
|
|
5024
5026
|
*/
|
|
5025
|
-
BpmnRenderer.prototype.drawShape = function(parentGfx,
|
|
5026
|
-
var { type } =
|
|
5027
|
+
BpmnRenderer.prototype.drawShape = function(parentGfx, shape, attrs = {}) {
|
|
5028
|
+
var { type } = shape;
|
|
5027
5029
|
|
|
5028
5030
|
var handler = this._renderer(type);
|
|
5029
5031
|
|
|
5030
|
-
return handler(parentGfx,
|
|
5032
|
+
return handler(parentGfx, shape, attrs);
|
|
5031
5033
|
};
|
|
5032
5034
|
|
|
5033
5035
|
/**
|
|
5034
5036
|
* Draw connection into parentGfx.
|
|
5035
5037
|
*
|
|
5036
5038
|
* @param {SVGElement} parentGfx
|
|
5037
|
-
* @param {
|
|
5039
|
+
* @param {Connection} connection
|
|
5038
5040
|
* @param {Attrs} [attrs]
|
|
5039
5041
|
*
|
|
5040
5042
|
* @return {SVGElement} mainGfx
|
|
5041
5043
|
*/
|
|
5042
|
-
BpmnRenderer.prototype.drawConnection = function(parentGfx,
|
|
5043
|
-
var { type } =
|
|
5044
|
+
BpmnRenderer.prototype.drawConnection = function(parentGfx, connection, attrs = {}) {
|
|
5045
|
+
var { type } = connection;
|
|
5044
5046
|
|
|
5045
5047
|
var handler = this._renderer(type);
|
|
5046
5048
|
|
|
5047
|
-
return handler(parentGfx,
|
|
5049
|
+
return handler(parentGfx, connection, attrs);
|
|
5048
5050
|
};
|
|
5049
5051
|
|
|
5050
5052
|
/**
|
|
5051
5053
|
* Get shape path.
|
|
5052
5054
|
*
|
|
5053
|
-
* @param {
|
|
5055
|
+
* @param {Shape} shape
|
|
5054
5056
|
*
|
|
5055
5057
|
* @return {string} path
|
|
5056
5058
|
*/
|
|
5057
|
-
BpmnRenderer.prototype.getShapePath = function(
|
|
5058
|
-
if (is$1(
|
|
5059
|
-
return getCirclePath(
|
|
5059
|
+
BpmnRenderer.prototype.getShapePath = function(shape) {
|
|
5060
|
+
if (is$1(shape, 'bpmn:Event')) {
|
|
5061
|
+
return getCirclePath(shape);
|
|
5060
5062
|
}
|
|
5061
5063
|
|
|
5062
|
-
if (is$1(
|
|
5063
|
-
return getRoundRectPath(
|
|
5064
|
+
if (is$1(shape, 'bpmn:Activity')) {
|
|
5065
|
+
return getRoundRectPath(shape, TASK_BORDER_RADIUS);
|
|
5064
5066
|
}
|
|
5065
5067
|
|
|
5066
|
-
if (is$1(
|
|
5067
|
-
return getDiamondPath(
|
|
5068
|
+
if (is$1(shape, 'bpmn:Gateway')) {
|
|
5069
|
+
return getDiamondPath(shape);
|
|
5068
5070
|
}
|
|
5069
5071
|
|
|
5070
|
-
return getRectPath(
|
|
5072
|
+
return getRectPath(shape);
|
|
5071
5073
|
};
|
|
5072
5074
|
|
|
5073
5075
|
/**
|
|
@@ -8877,6 +8879,10 @@
|
|
|
8877
8879
|
const DATA_OBJECT_REFERENCE_OUTLINE_PATH = 'M44.7648 11.3263L36.9892 2.64074C36.0451 1.58628 34.5651 0.988708 33.1904 0.988708H5.98667C3.22688 0.988708 0.989624 3.34892 0.989624 6.26039V55.0235C0.989624 57.9349 3.22688 60.2952 5.98667 60.2952H40.966C43.7257 60.2952 45.963 57.9349 45.963 55.0235V14.9459C45.963 13.5998 45.6407 12.3048 44.7648 11.3263Z';
|
|
8878
8880
|
const DATA_STORE_REFERENCE_OUTLINE_PATH = 'M1.03845 48.1347C1.03845 49.3511 1.07295 50.758 1.38342 52.064C1.69949 53.3938 2.32428 54.7154 3.56383 55.6428C6.02533 57.4841 10.1161 58.7685 14.8212 59.6067C19.5772 60.4538 25.1388 60.8738 30.6831 60.8738C36.2276 60.8738 41.7891 60.4538 46.545 59.6067C51.2504 58.7687 55.3412 57.4842 57.8028 55.6429C59.0424 54.7156 59.6673 53.3938 59.9834 52.064C60.2938 50.7579 60.3285 49.351 60.3285 48.1344V13.8415C60.3285 12.6249 60.2938 11.218 59.9834 9.91171C59.6673 8.58194 59.0423 7.2602 57.8027 6.33294C55.341 4.49168 51.2503 3.20723 46.545 2.36914C41.7891 1.522 36.2276 1.10204 30.6831 1.10205C25.1388 1.10206 19.5772 1.52206 14.8213 2.36923C10.1162 3.20734 6.02543 4.49183 3.5639 6.33314C2.32433 7.26038 1.69951 8.58206 1.38343 9.91181C1.07295 11.2179 1.03845 12.6247 1.03845 13.8411V48.1347Z';
|
|
8879
8881
|
|
|
8882
|
+
/**
|
|
8883
|
+
* @typedef { import('diagram-js/lib/util/Types').Dimensions} Dimensions
|
|
8884
|
+
*/
|
|
8885
|
+
|
|
8880
8886
|
/**
|
|
8881
8887
|
* @type {Dimensions}
|
|
8882
8888
|
*/
|
|
@@ -8903,6 +8909,16 @@
|
|
|
8903
8909
|
});
|
|
8904
8910
|
}
|
|
8905
8911
|
|
|
8912
|
+
/**
|
|
8913
|
+
* @typedef { import('diagram-js/lib/features/outline/OutlineProvider').default } BaseOutlineProvider
|
|
8914
|
+
*
|
|
8915
|
+
* @typedef { import('diagram-js/lib/features/outline/OutlineProvider').Outline } Outline
|
|
8916
|
+
*
|
|
8917
|
+
* @typedef { import('diagram-js/lib/draw/Styles').default } Styles
|
|
8918
|
+
*
|
|
8919
|
+
* @typedef { import('diagram-js/lib/model/Types').Element } Element
|
|
8920
|
+
*/
|
|
8921
|
+
|
|
8906
8922
|
const DEFAULT_OFFSET = 5;
|
|
8907
8923
|
|
|
8908
8924
|
/**
|
|
@@ -11303,6 +11319,8 @@
|
|
|
11303
11319
|
element = this._elementRegistry.get(element);
|
|
11304
11320
|
}
|
|
11305
11321
|
|
|
11322
|
+
element.markers = element.markers || new Set();
|
|
11323
|
+
|
|
11306
11324
|
// we need to access all
|
|
11307
11325
|
container = this._elementRegistry._elements[element.id];
|
|
11308
11326
|
|
|
@@ -11315,8 +11333,10 @@
|
|
|
11315
11333
|
|
|
11316
11334
|
// invoke either addClass or removeClass based on mode
|
|
11317
11335
|
if (add) {
|
|
11336
|
+
element.markers.add(marker);
|
|
11318
11337
|
classes$1(gfx).add(marker);
|
|
11319
11338
|
} else {
|
|
11339
|
+
element.markers.delete(marker);
|
|
11320
11340
|
classes$1(gfx).remove(marker);
|
|
11321
11341
|
}
|
|
11322
11342
|
}
|
|
@@ -11384,9 +11404,11 @@
|
|
|
11384
11404
|
element = this._elementRegistry.get(element);
|
|
11385
11405
|
}
|
|
11386
11406
|
|
|
11387
|
-
|
|
11407
|
+
if (!element.markers) {
|
|
11408
|
+
return false;
|
|
11409
|
+
}
|
|
11388
11410
|
|
|
11389
|
-
return
|
|
11411
|
+
return element.markers.has(marker);
|
|
11390
11412
|
};
|
|
11391
11413
|
|
|
11392
11414
|
/**
|