camunda-bpmn-js 4.19.0 → 4.20.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 +51 -46
- package/dist/base-modeler.development.js +2742 -4489
- package/dist/base-modeler.production.min.js +21 -20
- package/dist/base-navigated-viewer.development.js +33 -17
- package/dist/base-navigated-viewer.production.min.js +1 -1
- package/dist/base-viewer.development.js +33 -17
- package/dist/base-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-modeler.development.js +13894 -12640
- package/dist/camunda-cloud-modeler.production.min.js +23 -22
- package/dist/camunda-cloud-navigated-viewer.development.js +33 -17
- package/dist/camunda-cloud-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-cloud-viewer.development.js +33 -17
- package/dist/camunda-cloud-viewer.production.min.js +1 -1
- package/dist/camunda-platform-modeler.development.js +18100 -16803
- package/dist/camunda-platform-modeler.production.min.js +21 -20
- package/dist/camunda-platform-navigated-viewer.development.js +33 -17
- package/dist/camunda-platform-navigated-viewer.production.min.js +1 -1
- package/dist/camunda-platform-viewer.development.js +33 -17
- package/dist/camunda-platform-viewer.production.min.js +1 -1
- package/package.json +17 -17
|
@@ -2842,6 +2842,8 @@
|
|
|
2842
2842
|
|
|
2843
2843
|
/**
|
|
2844
2844
|
* @typedef { import('../model/Types').Element } Element
|
|
2845
|
+
* @typedef { import('../model/Types').Shape } Shape
|
|
2846
|
+
* @typedef { import('../model/Types').Connection } Connection
|
|
2845
2847
|
*/
|
|
2846
2848
|
|
|
2847
2849
|
/**
|
|
@@ -5015,57 +5017,57 @@
|
|
|
5015
5017
|
* Draw shape into parentGfx.
|
|
5016
5018
|
*
|
|
5017
5019
|
* @param {SVGElement} parentGfx
|
|
5018
|
-
* @param {
|
|
5020
|
+
* @param {Shape} shape
|
|
5019
5021
|
* @param {Attrs} [attrs]
|
|
5020
5022
|
*
|
|
5021
5023
|
* @return {SVGElement} mainGfx
|
|
5022
5024
|
*/
|
|
5023
|
-
BpmnRenderer.prototype.drawShape = function(parentGfx,
|
|
5024
|
-
var { type } =
|
|
5025
|
+
BpmnRenderer.prototype.drawShape = function(parentGfx, shape, attrs = {}) {
|
|
5026
|
+
var { type } = shape;
|
|
5025
5027
|
|
|
5026
5028
|
var handler = this._renderer(type);
|
|
5027
5029
|
|
|
5028
|
-
return handler(parentGfx,
|
|
5030
|
+
return handler(parentGfx, shape, attrs);
|
|
5029
5031
|
};
|
|
5030
5032
|
|
|
5031
5033
|
/**
|
|
5032
5034
|
* Draw connection into parentGfx.
|
|
5033
5035
|
*
|
|
5034
5036
|
* @param {SVGElement} parentGfx
|
|
5035
|
-
* @param {
|
|
5037
|
+
* @param {Connection} connection
|
|
5036
5038
|
* @param {Attrs} [attrs]
|
|
5037
5039
|
*
|
|
5038
5040
|
* @return {SVGElement} mainGfx
|
|
5039
5041
|
*/
|
|
5040
|
-
BpmnRenderer.prototype.drawConnection = function(parentGfx,
|
|
5041
|
-
var { type } =
|
|
5042
|
+
BpmnRenderer.prototype.drawConnection = function(parentGfx, connection, attrs = {}) {
|
|
5043
|
+
var { type } = connection;
|
|
5042
5044
|
|
|
5043
5045
|
var handler = this._renderer(type);
|
|
5044
5046
|
|
|
5045
|
-
return handler(parentGfx,
|
|
5047
|
+
return handler(parentGfx, connection, attrs);
|
|
5046
5048
|
};
|
|
5047
5049
|
|
|
5048
5050
|
/**
|
|
5049
5051
|
* Get shape path.
|
|
5050
5052
|
*
|
|
5051
|
-
* @param {
|
|
5053
|
+
* @param {Shape} shape
|
|
5052
5054
|
*
|
|
5053
5055
|
* @return {string} path
|
|
5054
5056
|
*/
|
|
5055
|
-
BpmnRenderer.prototype.getShapePath = function(
|
|
5056
|
-
if (is$1(
|
|
5057
|
-
return getCirclePath(
|
|
5057
|
+
BpmnRenderer.prototype.getShapePath = function(shape) {
|
|
5058
|
+
if (is$1(shape, 'bpmn:Event')) {
|
|
5059
|
+
return getCirclePath(shape);
|
|
5058
5060
|
}
|
|
5059
5061
|
|
|
5060
|
-
if (is$1(
|
|
5061
|
-
return getRoundRectPath(
|
|
5062
|
+
if (is$1(shape, 'bpmn:Activity')) {
|
|
5063
|
+
return getRoundRectPath(shape, TASK_BORDER_RADIUS);
|
|
5062
5064
|
}
|
|
5063
5065
|
|
|
5064
|
-
if (is$1(
|
|
5065
|
-
return getDiamondPath(
|
|
5066
|
+
if (is$1(shape, 'bpmn:Gateway')) {
|
|
5067
|
+
return getDiamondPath(shape);
|
|
5066
5068
|
}
|
|
5067
5069
|
|
|
5068
|
-
return getRectPath(
|
|
5070
|
+
return getRectPath(shape);
|
|
5069
5071
|
};
|
|
5070
5072
|
|
|
5071
5073
|
/**
|
|
@@ -8875,6 +8877,10 @@
|
|
|
8875
8877
|
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';
|
|
8876
8878
|
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';
|
|
8877
8879
|
|
|
8880
|
+
/**
|
|
8881
|
+
* @typedef { import('diagram-js/lib/util/Types').Dimensions} Dimensions
|
|
8882
|
+
*/
|
|
8883
|
+
|
|
8878
8884
|
/**
|
|
8879
8885
|
* @type {Dimensions}
|
|
8880
8886
|
*/
|
|
@@ -8901,6 +8907,16 @@
|
|
|
8901
8907
|
});
|
|
8902
8908
|
}
|
|
8903
8909
|
|
|
8910
|
+
/**
|
|
8911
|
+
* @typedef { import('diagram-js/lib/features/outline/OutlineProvider').default } BaseOutlineProvider
|
|
8912
|
+
*
|
|
8913
|
+
* @typedef { import('diagram-js/lib/features/outline/OutlineProvider').Outline } Outline
|
|
8914
|
+
*
|
|
8915
|
+
* @typedef { import('diagram-js/lib/draw/Styles').default } Styles
|
|
8916
|
+
*
|
|
8917
|
+
* @typedef { import('diagram-js/lib/model/Types').Element } Element
|
|
8918
|
+
*/
|
|
8919
|
+
|
|
8904
8920
|
const DEFAULT_OFFSET = 5;
|
|
8905
8921
|
|
|
8906
8922
|
/**
|