bpmn-js 10.2.1 → 11.0.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/bpmn-js.css +7 -7
- package/dist/assets/diagram-js.css +212 -45
- package/dist/bpmn-modeler.development.js +2841 -2293
- package/dist/bpmn-modeler.production.min.js +154 -8
- package/dist/bpmn-navigated-viewer.development.js +20 -21
- package/dist/bpmn-navigated-viewer.production.min.js +3 -3
- package/dist/bpmn-viewer.development.js +6 -6
- package/dist/bpmn-viewer.production.min.js +2 -2
- package/lib/features/align-elements/AlignElementsContextPadProvider.js +4 -9
- package/lib/features/context-pad/ContextPadProvider.js +9 -11
- package/lib/features/modeling/index.js +1 -1
- package/lib/features/palette/index.js +1 -1
- package/lib/features/space-tool/BpmnSpaceTool.js +27 -0
- package/lib/features/space-tool/index.js +8 -0
- package/package.json +15 -14
|
@@ -69,18 +69,13 @@ AlignElementsContextPadProvider.prototype._getEntries = function(elements) {
|
|
|
69
69
|
AlignElementsContextPadProvider.prototype._getMenuPosition = function(elements) {
|
|
70
70
|
var Y_OFFSET = 5;
|
|
71
71
|
|
|
72
|
-
var
|
|
73
|
-
pad = this._contextPad.getPad(elements).html;
|
|
72
|
+
var pad = this._contextPad.getPad(elements).html;
|
|
74
73
|
|
|
75
|
-
var
|
|
76
|
-
padRect = pad.getBoundingClientRect();
|
|
77
|
-
|
|
78
|
-
var top = padRect.top - diagramRect.top;
|
|
79
|
-
var left = padRect.left - diagramRect.left;
|
|
74
|
+
var padRect = pad.getBoundingClientRect();
|
|
80
75
|
|
|
81
76
|
var pos = {
|
|
82
|
-
x: left,
|
|
83
|
-
y:
|
|
77
|
+
x: padRect.left,
|
|
78
|
+
y: padRect.bottom + Y_OFFSET
|
|
84
79
|
};
|
|
85
80
|
|
|
86
81
|
return pos;
|
|
@@ -137,7 +137,6 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
|
|
|
137
137
|
connect = this._connect,
|
|
138
138
|
create = this._create,
|
|
139
139
|
popupMenu = this._popupMenu,
|
|
140
|
-
canvas = this._canvas,
|
|
141
140
|
rules = this._rules,
|
|
142
141
|
autoPlace = this._autoPlace,
|
|
143
142
|
translate = this._translate;
|
|
@@ -162,18 +161,13 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
|
|
|
162
161
|
|
|
163
162
|
var Y_OFFSET = 5;
|
|
164
163
|
|
|
165
|
-
var
|
|
166
|
-
pad = contextPad.getPad(element).html;
|
|
164
|
+
var pad = contextPad.getPad(element).html;
|
|
167
165
|
|
|
168
|
-
var
|
|
169
|
-
padRect = pad.getBoundingClientRect();
|
|
170
|
-
|
|
171
|
-
var top = padRect.top - diagramRect.top;
|
|
172
|
-
var left = padRect.left - diagramRect.left;
|
|
166
|
+
var padRect = pad.getBoundingClientRect();
|
|
173
167
|
|
|
174
168
|
var pos = {
|
|
175
|
-
x: left,
|
|
176
|
-
y:
|
|
169
|
+
x: padRect.left,
|
|
170
|
+
y: padRect.bottom + Y_OFFSET
|
|
177
171
|
};
|
|
178
172
|
|
|
179
173
|
return pos;
|
|
@@ -396,7 +390,11 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
|
|
|
396
390
|
cursor: { x: event.x, y: event.y }
|
|
397
391
|
});
|
|
398
392
|
|
|
399
|
-
popupMenu.open(element, 'bpmn-replace', position
|
|
393
|
+
popupMenu.open(element, 'bpmn-replace', position, {
|
|
394
|
+
title: translate('Change element'),
|
|
395
|
+
width: 300,
|
|
396
|
+
search: true
|
|
397
|
+
});
|
|
400
398
|
}
|
|
401
399
|
}
|
|
402
400
|
}
|
|
@@ -3,6 +3,7 @@ import RulesModule from '../rules';
|
|
|
3
3
|
import DiOrderingModule from '../di-ordering';
|
|
4
4
|
import OrderingModule from '../ordering';
|
|
5
5
|
import ReplaceModule from '../replace';
|
|
6
|
+
import SpaceToolModule from '../space-tool';
|
|
6
7
|
|
|
7
8
|
import CommandModule from 'diagram-js/lib/command';
|
|
8
9
|
import TooltipsModule from 'diagram-js/lib/features/tooltips';
|
|
@@ -10,7 +11,6 @@ import LabelSupportModule from 'diagram-js/lib/features/label-support';
|
|
|
10
11
|
import AttachSupportModule from 'diagram-js/lib/features/attach-support';
|
|
11
12
|
import SelectionModule from 'diagram-js/lib/features/selection';
|
|
12
13
|
import ChangeSupportModule from 'diagram-js/lib/features/change-support';
|
|
13
|
-
import SpaceToolModule from 'diagram-js/lib/features/space-tool';
|
|
14
14
|
|
|
15
15
|
import BpmnFactory from './BpmnFactory';
|
|
16
16
|
import BpmnUpdater from './BpmnUpdater';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import PaletteModule from 'diagram-js/lib/features/palette';
|
|
2
2
|
import CreateModule from 'diagram-js/lib/features/create';
|
|
3
|
-
import SpaceToolModule from '
|
|
3
|
+
import SpaceToolModule from '../space-tool';
|
|
4
4
|
import LassoToolModule from 'diagram-js/lib/features/lasso-tool';
|
|
5
5
|
import HandToolModule from 'diagram-js/lib/features/hand-tool';
|
|
6
6
|
import GlobalConnectModule from 'diagram-js/lib/features/global-connect';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import inherits from 'inherits-browser';
|
|
2
|
+
|
|
3
|
+
import SpaceTool from 'diagram-js/lib/features/space-tool/SpaceTool';
|
|
4
|
+
|
|
5
|
+
import { is } from '../../util/ModelUtil';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export default function BpmnSpaceTool(injector) {
|
|
9
|
+
injector.invoke(SpaceTool, this);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
BpmnSpaceTool.$inject = [
|
|
13
|
+
'injector'
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
inherits(BpmnSpaceTool, SpaceTool);
|
|
17
|
+
|
|
18
|
+
BpmnSpaceTool.prototype.calculateAdjustments = function(elements, axis, delta, start) {
|
|
19
|
+
var adjustments = SpaceTool.prototype.calculateAdjustments.call(this, elements, axis, delta, start);
|
|
20
|
+
|
|
21
|
+
// do not resize text annotations
|
|
22
|
+
adjustments.resizingShapes = adjustments.resizingShapes.filter(function(shape) {
|
|
23
|
+
return !is(shape, 'bpmn:TextAnnotation');
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
return adjustments;
|
|
27
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpmn-js",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "A bpmn 2.0 toolkit and web modeler",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -53,10 +53,13 @@
|
|
|
53
53
|
"*.css"
|
|
54
54
|
],
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@babel/core": "^7.
|
|
57
|
-
"@rollup/plugin-commonjs": "^
|
|
58
|
-
"@rollup/plugin-
|
|
59
|
-
"
|
|
56
|
+
"@babel/core": "^7.20.2",
|
|
57
|
+
"@rollup/plugin-commonjs": "^23.0.2",
|
|
58
|
+
"@rollup/plugin-json": "^5.0.1",
|
|
59
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
60
|
+
"@rollup/plugin-replace": "^5.0.1",
|
|
61
|
+
"@rollup/plugin-terser": "^0.1.0",
|
|
62
|
+
"babel-loader": "^9.1.0",
|
|
60
63
|
"babel-plugin-istanbul": "^6.1.1",
|
|
61
64
|
"bpmn-font": "^0.10.0",
|
|
62
65
|
"camunda-bpmn-moddle": "^4.0.1",
|
|
@@ -69,6 +72,7 @@
|
|
|
69
72
|
"eslint-plugin-bpmn-io": "^0.16.0",
|
|
70
73
|
"eslint-plugin-import": "^2.26.0",
|
|
71
74
|
"execa": "^5.1.1",
|
|
75
|
+
"file-drops": "^0.4.0",
|
|
72
76
|
"karma": "^6.4.1",
|
|
73
77
|
"karma-chrome-launcher": "^3.1.1",
|
|
74
78
|
"karma-coverage": "^2.2.0",
|
|
@@ -80,23 +84,20 @@
|
|
|
80
84
|
"karma-sinon-chai": "^2.0.2",
|
|
81
85
|
"karma-webpack": "^5.0.0",
|
|
82
86
|
"mkdirp": "^0.5.1",
|
|
83
|
-
"mocha": "^
|
|
87
|
+
"mocha": "^10.1.0",
|
|
84
88
|
"mocha-test-container-support": "0.2.0",
|
|
85
89
|
"npm-run-all": "^4.1.2",
|
|
86
|
-
"puppeteer": "^
|
|
87
|
-
"rollup": "^2.
|
|
88
|
-
"rollup-plugin-
|
|
89
|
-
"
|
|
90
|
-
"rollup-plugin-replace": "^2.2.0",
|
|
91
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
92
|
-
"sinon": "^7.5.0",
|
|
90
|
+
"puppeteer": "^19.2.2",
|
|
91
|
+
"rollup": "^2.79.1",
|
|
92
|
+
"rollup-plugin-license": "^2.9.1",
|
|
93
|
+
"sinon": "^14.0.0",
|
|
93
94
|
"sinon-chai": "^3.7.0",
|
|
94
95
|
"webpack": "^5.74.0"
|
|
95
96
|
},
|
|
96
97
|
"dependencies": {
|
|
97
98
|
"bpmn-moddle": "^8.0.0",
|
|
98
99
|
"css.escape": "^1.5.1",
|
|
99
|
-
"diagram-js": "^
|
|
100
|
+
"diagram-js": "^11.1.0",
|
|
100
101
|
"diagram-js-direct-editing": "^2.0.0",
|
|
101
102
|
"ids": "^1.0.0",
|
|
102
103
|
"inherits-browser": "^0.1.0",
|