camunda-bpmn-js 4.19.0 → 4.20.1
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 +2372 -4365
- package/dist/base-modeler.production.min.js +8 -8
- 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 +2661 -3972
- package/dist/camunda-cloud-modeler.production.min.js +8 -8
- 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 +2803 -4071
- package/dist/camunda-platform-modeler.production.min.js +10 -10
- 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 +18 -18
|
@@ -2832,6 +2832,8 @@
|
|
|
2832
2832
|
|
|
2833
2833
|
/**
|
|
2834
2834
|
* @typedef { import('../model/Types').Element } Element
|
|
2835
|
+
* @typedef { import('../model/Types').Shape } Shape
|
|
2836
|
+
* @typedef { import('../model/Types').Connection } Connection
|
|
2835
2837
|
*/
|
|
2836
2838
|
|
|
2837
2839
|
/**
|
|
@@ -5005,57 +5007,57 @@
|
|
|
5005
5007
|
* Draw shape into parentGfx.
|
|
5006
5008
|
*
|
|
5007
5009
|
* @param {SVGElement} parentGfx
|
|
5008
|
-
* @param {
|
|
5010
|
+
* @param {Shape} shape
|
|
5009
5011
|
* @param {Attrs} [attrs]
|
|
5010
5012
|
*
|
|
5011
5013
|
* @return {SVGElement} mainGfx
|
|
5012
5014
|
*/
|
|
5013
|
-
BpmnRenderer.prototype.drawShape = function(parentGfx,
|
|
5014
|
-
var { type } =
|
|
5015
|
+
BpmnRenderer.prototype.drawShape = function(parentGfx, shape, attrs = {}) {
|
|
5016
|
+
var { type } = shape;
|
|
5015
5017
|
|
|
5016
5018
|
var handler = this._renderer(type);
|
|
5017
5019
|
|
|
5018
|
-
return handler(parentGfx,
|
|
5020
|
+
return handler(parentGfx, shape, attrs);
|
|
5019
5021
|
};
|
|
5020
5022
|
|
|
5021
5023
|
/**
|
|
5022
5024
|
* Draw connection into parentGfx.
|
|
5023
5025
|
*
|
|
5024
5026
|
* @param {SVGElement} parentGfx
|
|
5025
|
-
* @param {
|
|
5027
|
+
* @param {Connection} connection
|
|
5026
5028
|
* @param {Attrs} [attrs]
|
|
5027
5029
|
*
|
|
5028
5030
|
* @return {SVGElement} mainGfx
|
|
5029
5031
|
*/
|
|
5030
|
-
BpmnRenderer.prototype.drawConnection = function(parentGfx,
|
|
5031
|
-
var { type } =
|
|
5032
|
+
BpmnRenderer.prototype.drawConnection = function(parentGfx, connection, attrs = {}) {
|
|
5033
|
+
var { type } = connection;
|
|
5032
5034
|
|
|
5033
5035
|
var handler = this._renderer(type);
|
|
5034
5036
|
|
|
5035
|
-
return handler(parentGfx,
|
|
5037
|
+
return handler(parentGfx, connection, attrs);
|
|
5036
5038
|
};
|
|
5037
5039
|
|
|
5038
5040
|
/**
|
|
5039
5041
|
* Get shape path.
|
|
5040
5042
|
*
|
|
5041
|
-
* @param {
|
|
5043
|
+
* @param {Shape} shape
|
|
5042
5044
|
*
|
|
5043
5045
|
* @return {string} path
|
|
5044
5046
|
*/
|
|
5045
|
-
BpmnRenderer.prototype.getShapePath = function(
|
|
5046
|
-
if (is$1(
|
|
5047
|
-
return getCirclePath(
|
|
5047
|
+
BpmnRenderer.prototype.getShapePath = function(shape) {
|
|
5048
|
+
if (is$1(shape, 'bpmn:Event')) {
|
|
5049
|
+
return getCirclePath(shape);
|
|
5048
5050
|
}
|
|
5049
5051
|
|
|
5050
|
-
if (is$1(
|
|
5051
|
-
return getRoundRectPath(
|
|
5052
|
+
if (is$1(shape, 'bpmn:Activity')) {
|
|
5053
|
+
return getRoundRectPath(shape, TASK_BORDER_RADIUS);
|
|
5052
5054
|
}
|
|
5053
5055
|
|
|
5054
|
-
if (is$1(
|
|
5055
|
-
return getDiamondPath(
|
|
5056
|
+
if (is$1(shape, 'bpmn:Gateway')) {
|
|
5057
|
+
return getDiamondPath(shape);
|
|
5056
5058
|
}
|
|
5057
5059
|
|
|
5058
|
-
return getRectPath(
|
|
5060
|
+
return getRectPath(shape);
|
|
5059
5061
|
};
|
|
5060
5062
|
|
|
5061
5063
|
/**
|
|
@@ -8865,6 +8867,10 @@
|
|
|
8865
8867
|
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';
|
|
8866
8868
|
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';
|
|
8867
8869
|
|
|
8870
|
+
/**
|
|
8871
|
+
* @typedef { import('diagram-js/lib/util/Types').Dimensions} Dimensions
|
|
8872
|
+
*/
|
|
8873
|
+
|
|
8868
8874
|
/**
|
|
8869
8875
|
* @type {Dimensions}
|
|
8870
8876
|
*/
|
|
@@ -8891,6 +8897,16 @@
|
|
|
8891
8897
|
});
|
|
8892
8898
|
}
|
|
8893
8899
|
|
|
8900
|
+
/**
|
|
8901
|
+
* @typedef { import('diagram-js/lib/features/outline/OutlineProvider').default } BaseOutlineProvider
|
|
8902
|
+
*
|
|
8903
|
+
* @typedef { import('diagram-js/lib/features/outline/OutlineProvider').Outline } Outline
|
|
8904
|
+
*
|
|
8905
|
+
* @typedef { import('diagram-js/lib/draw/Styles').default } Styles
|
|
8906
|
+
*
|
|
8907
|
+
* @typedef { import('diagram-js/lib/model/Types').Element } Element
|
|
8908
|
+
*/
|
|
8909
|
+
|
|
8894
8910
|
const DEFAULT_OFFSET = 5;
|
|
8895
8911
|
|
|
8896
8912
|
/**
|