bpmn-js 17.9.0 → 17.9.2
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 +71 -65
- package/dist/bpmn-modeler.production.min.js +10 -10
- package/dist/bpmn-navigated-viewer.development.js +2 -2
- package/dist/bpmn-navigated-viewer.production.min.js +1 -1
- package/dist/bpmn-viewer.development.js +2 -2
- package/dist/bpmn-viewer.production.min.js +1 -1
- package/lib/features/context-pad/ContextPadProvider.js +20 -28
- package/lib/features/modeling/ElementFactory.js +9 -2
- package/lib/features/replace/BpmnReplace.js +13 -4
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
|
|
11
11
|
import {
|
|
12
12
|
is,
|
|
13
|
+
getDi,
|
|
13
14
|
getBusinessObject
|
|
14
15
|
} from '../../util/ModelUtil';
|
|
15
16
|
|
|
@@ -19,7 +20,8 @@ import {
|
|
|
19
20
|
|
|
20
21
|
import {
|
|
21
22
|
isExpanded,
|
|
22
|
-
isEventSubProcess
|
|
23
|
+
isEventSubProcess,
|
|
24
|
+
isHorizontal
|
|
23
25
|
} from '../../util/DiUtil';
|
|
24
26
|
|
|
25
27
|
import { getPropertyNames } from '../copy-paste/ModdleCopy';
|
|
@@ -284,9 +286,16 @@ export default function BpmnReplace(
|
|
|
284
286
|
hints.moveChildren = false;
|
|
285
287
|
}
|
|
286
288
|
|
|
287
|
-
// apply same
|
|
288
|
-
|
|
289
|
-
|
|
289
|
+
// apply same directionality
|
|
290
|
+
var isHorizontalPool = isHorizontal(element);
|
|
291
|
+
if (!getDi(element).isHorizontal) {
|
|
292
|
+
getDi(newElement).isHorizontal = isHorizontalPool;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
// keep the existing size of the pool's direction to
|
|
296
|
+
// prevent dangling message flows
|
|
297
|
+
newElement.width = isHorizontalPool ? element.width : elementFactory.getDefaultSize(newElement).width;
|
|
298
|
+
newElement.height = isHorizontalPool ? elementFactory.getDefaultSize(newElement).height : element.height;
|
|
290
299
|
}
|
|
291
300
|
|
|
292
301
|
if (!rules.allowed('shape.resize', { shape: newBusinessObject })) {
|