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-navigated-viewer v17.
|
|
2
|
+
* bpmn-js - bpmn-navigated-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() :
|
|
@@ -2854,6 +2854,8 @@
|
|
|
2854
2854
|
|
|
2855
2855
|
/**
|
|
2856
2856
|
* @typedef { import('../model/Types').Element } Element
|
|
2857
|
+
* @typedef { import('../model/Types').Shape } Shape
|
|
2858
|
+
* @typedef { import('../model/Types').Connection } Connection
|
|
2857
2859
|
*/
|
|
2858
2860
|
|
|
2859
2861
|
/**
|
|
@@ -5027,57 +5029,57 @@
|
|
|
5027
5029
|
* Draw shape into parentGfx.
|
|
5028
5030
|
*
|
|
5029
5031
|
* @param {SVGElement} parentGfx
|
|
5030
|
-
* @param {
|
|
5032
|
+
* @param {Shape} shape
|
|
5031
5033
|
* @param {Attrs} [attrs]
|
|
5032
5034
|
*
|
|
5033
5035
|
* @return {SVGElement} mainGfx
|
|
5034
5036
|
*/
|
|
5035
|
-
BpmnRenderer.prototype.drawShape = function(parentGfx,
|
|
5036
|
-
var { type } =
|
|
5037
|
+
BpmnRenderer.prototype.drawShape = function(parentGfx, shape, attrs = {}) {
|
|
5038
|
+
var { type } = shape;
|
|
5037
5039
|
|
|
5038
5040
|
var handler = this._renderer(type);
|
|
5039
5041
|
|
|
5040
|
-
return handler(parentGfx,
|
|
5042
|
+
return handler(parentGfx, shape, attrs);
|
|
5041
5043
|
};
|
|
5042
5044
|
|
|
5043
5045
|
/**
|
|
5044
5046
|
* Draw connection into parentGfx.
|
|
5045
5047
|
*
|
|
5046
5048
|
* @param {SVGElement} parentGfx
|
|
5047
|
-
* @param {
|
|
5049
|
+
* @param {Connection} connection
|
|
5048
5050
|
* @param {Attrs} [attrs]
|
|
5049
5051
|
*
|
|
5050
5052
|
* @return {SVGElement} mainGfx
|
|
5051
5053
|
*/
|
|
5052
|
-
BpmnRenderer.prototype.drawConnection = function(parentGfx,
|
|
5053
|
-
var { type } =
|
|
5054
|
+
BpmnRenderer.prototype.drawConnection = function(parentGfx, connection, attrs = {}) {
|
|
5055
|
+
var { type } = connection;
|
|
5054
5056
|
|
|
5055
5057
|
var handler = this._renderer(type);
|
|
5056
5058
|
|
|
5057
|
-
return handler(parentGfx,
|
|
5059
|
+
return handler(parentGfx, connection, attrs);
|
|
5058
5060
|
};
|
|
5059
5061
|
|
|
5060
5062
|
/**
|
|
5061
5063
|
* Get shape path.
|
|
5062
5064
|
*
|
|
5063
|
-
* @param {
|
|
5065
|
+
* @param {Shape} shape
|
|
5064
5066
|
*
|
|
5065
5067
|
* @return {string} path
|
|
5066
5068
|
*/
|
|
5067
|
-
BpmnRenderer.prototype.getShapePath = function(
|
|
5068
|
-
if (is$1(
|
|
5069
|
-
return getCirclePath(
|
|
5069
|
+
BpmnRenderer.prototype.getShapePath = function(shape) {
|
|
5070
|
+
if (is$1(shape, 'bpmn:Event')) {
|
|
5071
|
+
return getCirclePath(shape);
|
|
5070
5072
|
}
|
|
5071
5073
|
|
|
5072
|
-
if (is$1(
|
|
5073
|
-
return getRoundRectPath(
|
|
5074
|
+
if (is$1(shape, 'bpmn:Activity')) {
|
|
5075
|
+
return getRoundRectPath(shape, TASK_BORDER_RADIUS);
|
|
5074
5076
|
}
|
|
5075
5077
|
|
|
5076
|
-
if (is$1(
|
|
5077
|
-
return getDiamondPath(
|
|
5078
|
+
if (is$1(shape, 'bpmn:Gateway')) {
|
|
5079
|
+
return getDiamondPath(shape);
|
|
5078
5080
|
}
|
|
5079
5081
|
|
|
5080
|
-
return getRectPath(
|
|
5082
|
+
return getRectPath(shape);
|
|
5081
5083
|
};
|
|
5082
5084
|
|
|
5083
5085
|
/**
|
|
@@ -8887,6 +8889,10 @@
|
|
|
8887
8889
|
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';
|
|
8888
8890
|
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';
|
|
8889
8891
|
|
|
8892
|
+
/**
|
|
8893
|
+
* @typedef { import('diagram-js/lib/util/Types').Dimensions} Dimensions
|
|
8894
|
+
*/
|
|
8895
|
+
|
|
8890
8896
|
/**
|
|
8891
8897
|
* @type {Dimensions}
|
|
8892
8898
|
*/
|
|
@@ -8913,6 +8919,16 @@
|
|
|
8913
8919
|
});
|
|
8914
8920
|
}
|
|
8915
8921
|
|
|
8922
|
+
/**
|
|
8923
|
+
* @typedef { import('diagram-js/lib/features/outline/OutlineProvider').default } BaseOutlineProvider
|
|
8924
|
+
*
|
|
8925
|
+
* @typedef { import('diagram-js/lib/features/outline/OutlineProvider').Outline } Outline
|
|
8926
|
+
*
|
|
8927
|
+
* @typedef { import('diagram-js/lib/draw/Styles').default } Styles
|
|
8928
|
+
*
|
|
8929
|
+
* @typedef { import('diagram-js/lib/model/Types').Element } Element
|
|
8930
|
+
*/
|
|
8931
|
+
|
|
8916
8932
|
const DEFAULT_OFFSET = 5;
|
|
8917
8933
|
|
|
8918
8934
|
/**
|
|
@@ -11338,6 +11354,8 @@
|
|
|
11338
11354
|
element = this._elementRegistry.get(element);
|
|
11339
11355
|
}
|
|
11340
11356
|
|
|
11357
|
+
element.markers = element.markers || new Set();
|
|
11358
|
+
|
|
11341
11359
|
// we need to access all
|
|
11342
11360
|
container = this._elementRegistry._elements[element.id];
|
|
11343
11361
|
|
|
@@ -11350,8 +11368,10 @@
|
|
|
11350
11368
|
|
|
11351
11369
|
// invoke either addClass or removeClass based on mode
|
|
11352
11370
|
if (add) {
|
|
11371
|
+
element.markers.add(marker);
|
|
11353
11372
|
classes$1(gfx).add(marker);
|
|
11354
11373
|
} else {
|
|
11374
|
+
element.markers.delete(marker);
|
|
11355
11375
|
classes$1(gfx).remove(marker);
|
|
11356
11376
|
}
|
|
11357
11377
|
}
|
|
@@ -11419,9 +11439,11 @@
|
|
|
11419
11439
|
element = this._elementRegistry.get(element);
|
|
11420
11440
|
}
|
|
11421
11441
|
|
|
11422
|
-
|
|
11442
|
+
if (!element.markers) {
|
|
11443
|
+
return false;
|
|
11444
|
+
}
|
|
11423
11445
|
|
|
11424
|
-
return
|
|
11446
|
+
return element.markers.has(marker);
|
|
11425
11447
|
};
|
|
11426
11448
|
|
|
11427
11449
|
/**
|