bpmn-js 18.31.0 → 18.31.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/README.md +1 -1
- package/dist/bpmn-modeler.development.js +29 -9
- package/dist/bpmn-modeler.production.min.js +3 -3
- package/dist/bpmn-navigated-viewer.development.js +15 -4
- package/dist/bpmn-navigated-viewer.production.min.js +2 -2
- package/dist/bpmn-viewer.development.js +15 -4
- package/dist/bpmn-viewer.production.min.js +2 -2
- package/lib/features/snapping/BpmnCreateMoveSnapping.js +14 -5
- package/lib/import/BpmnImporter.js +12 -1
- package/lib/util/LabelUtil.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -71,7 +71,7 @@ building the latest development snapshot.
|
|
|
71
71
|
|
|
72
72
|
bpmn-js builds on top of a few powerful tools:
|
|
73
73
|
|
|
74
|
-
* [bpmn-moddle](https://github.com/bpmn-io/bpmn-moddle): Read / write support for BPMN 2.0 XML in the
|
|
74
|
+
* [bpmn-moddle](https://github.com/bpmn-io/bpmn-moddle): Read / write support for BPMN 2.0 XML in the browser
|
|
75
75
|
* [diagram-js](https://github.com/bpmn-io/diagram-js): Diagram rendering and editing toolkit
|
|
76
76
|
|
|
77
77
|
It is an extensible toolkit, complemented by many [additional utilities](https://github.com/bpmn-io/awesome-bpmn-io).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* bpmn-js - bpmn-modeler v18.31.
|
|
2
|
+
* bpmn-js - bpmn-modeler v18.31.1
|
|
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: 2026-10-
|
|
11
|
+
* Date: 2026-10-21
|
|
12
12
|
*/
|
|
13
13
|
(function (global, factory) {
|
|
14
14
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -19184,7 +19184,7 @@
|
|
|
19184
19184
|
bounds = label.bounds;
|
|
19185
19185
|
|
|
19186
19186
|
size = {
|
|
19187
|
-
width:
|
|
19187
|
+
width: bounds.width,
|
|
19188
19188
|
height: bounds.height
|
|
19189
19189
|
};
|
|
19190
19190
|
|
|
@@ -23327,7 +23327,18 @@
|
|
|
23327
23327
|
|
|
23328
23328
|
text = getLabel(element);
|
|
23329
23329
|
|
|
23330
|
-
if (text) {
|
|
23330
|
+
if (text && di.label && di.label.bounds && bounds.width > 0) {
|
|
23331
|
+
|
|
23332
|
+
// keep the persisted width, it may have been set by the user
|
|
23333
|
+
var dimensions = this._textRenderer.getDimensions(text, {
|
|
23334
|
+
box: bounds,
|
|
23335
|
+
style: this._textRenderer.getExternalStyle()
|
|
23336
|
+
});
|
|
23337
|
+
|
|
23338
|
+
bounds = assign$1({}, bounds, {
|
|
23339
|
+
height: Math.ceil(dimensions.height)
|
|
23340
|
+
});
|
|
23341
|
+
} else if (text) {
|
|
23331
23342
|
|
|
23332
23343
|
// get corrected bounds from actual layouted text
|
|
23333
23344
|
bounds = this._textRenderer.getExternalLabelBounds(bounds, text);
|
|
@@ -68926,12 +68937,21 @@
|
|
|
68926
68937
|
* @return {Shape[]}
|
|
68927
68938
|
*/
|
|
68928
68939
|
BpmnCreateMoveSnapping.prototype.getSnapTargets = function(shape, target) {
|
|
68929
|
-
|
|
68930
|
-
.filter(function(snapTarget) {
|
|
68940
|
+
var snapTargets = CreateMoveSnapping.prototype.getSnapTargets.call(this, shape, target);
|
|
68931
68941
|
|
|
68932
|
-
|
|
68933
|
-
|
|
68934
|
-
|
|
68942
|
+
if (shape.labelTarget && shape.labelTarget.parent && shape.labelTarget.parent !== target) {
|
|
68943
|
+
|
|
68944
|
+
// labels stay at root, so include their target's peers
|
|
68945
|
+
snapTargets = snapTargets.concat(
|
|
68946
|
+
CreateMoveSnapping.prototype.getSnapTargets.call(this, shape, shape.labelTarget.parent)
|
|
68947
|
+
);
|
|
68948
|
+
}
|
|
68949
|
+
|
|
68950
|
+
return snapTargets.filter(function(snapTarget, index) {
|
|
68951
|
+
|
|
68952
|
+
// do not snap to lanes
|
|
68953
|
+
return !is(snapTarget, 'bpmn:Lane') && snapTargets.indexOf(snapTarget) === index;
|
|
68954
|
+
});
|
|
68935
68955
|
};
|
|
68936
68956
|
|
|
68937
68957
|
// helpers //////////
|