bpmn-js 8.8.1 → 9.0.0-subprocesses.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/CHANGELOG.md +9 -0
- package/dist/assets/bpmn-js.css +57 -0
- package/dist/assets/diagram-js.css +2 -0
- package/dist/bpmn-modeler.development.js +1289 -795
- package/dist/bpmn-modeler.production.min.js +8 -7
- package/dist/bpmn-navigated-viewer.development.js +20635 -19973
- package/dist/bpmn-navigated-viewer.production.min.js +22 -20
- package/dist/bpmn-viewer.development.js +19836 -19174
- package/dist/bpmn-viewer.production.min.js +22 -20
- package/lib/BaseViewer.js +0 -13
- package/lib/Viewer.js +3 -1
- package/lib/draw/BpmnRenderUtil.js +6 -4
- package/lib/draw/BpmnRenderer.js +363 -296
- package/lib/features/context-pad/ContextPadProvider.js +1 -1
- package/lib/features/copy-paste/BpmnCopyPaste.js +13 -13
- package/lib/features/copy-paste/ModdleCopy.js +15 -3
- package/lib/features/di-ordering/BpmnDiOrdering.js +2 -3
- package/lib/features/drilldown/DrilldownCentering.js +41 -0
- package/lib/features/drilldown/DrilldownOverlays.js +109 -0
- package/lib/features/drilldown/SubprocessCompatibility.js +193 -0
- package/lib/features/drilldown/index.js +14 -0
- package/lib/features/label-editing/LabelEditingPreview.js +3 -3
- package/lib/features/label-editing/cmd/UpdateLabelHandler.js +2 -1
- package/lib/features/modeling/BpmnFactory.js +8 -8
- package/lib/features/modeling/BpmnUpdater.js +35 -27
- package/lib/features/modeling/ElementFactory.js +60 -37
- package/lib/features/modeling/behavior/DataStoreBehavior.js +3 -1
- package/lib/features/modeling/behavior/IsHorizontalFix.js +7 -4
- package/lib/features/modeling/behavior/LabelBehavior.js +8 -7
- package/lib/features/modeling/behavior/ToggleElementCollapseBehaviour.js +6 -6
- package/lib/features/modeling/cmd/UpdateCanvasRootHandler.js +8 -6
- package/lib/features/modeling/cmd/UpdatePropertiesHandler.js +19 -12
- package/lib/features/modeling/cmd/UpdateSemanticParentHandler.js +5 -3
- package/lib/features/palette/PaletteProvider.js +3 -1
- package/lib/features/popup-menu/ReplaceMenuProvider.js +5 -5
- package/lib/features/popup-menu/util/TypeUtil.js +1 -1
- package/lib/features/replace/BpmnReplace.js +29 -29
- package/lib/import/BpmnImporter.js +27 -22
- package/lib/import/BpmnTreeWalker.js +19 -17
- package/lib/import/Importer.js +17 -6
- package/lib/util/CompatibilityUtil.js +21 -1
- package/lib/util/DiUtil.js +10 -3
- package/lib/util/LabelUtil.js +2 -3
- package/lib/util/ModelUtil.js +11 -0
- package/package.json +2 -2
- package/test/matchers/BoundsMatchers.js +10 -10
- package/test/matchers/ConnectionMatchers.js +5 -5
- package/test/util/MockEvents.js +10 -2
package/lib/BaseViewer.js
CHANGED
|
@@ -528,19 +528,6 @@ BaseViewer.prototype.clear = function() {
|
|
|
528
528
|
return;
|
|
529
529
|
}
|
|
530
530
|
|
|
531
|
-
// remove businessObject#di binding
|
|
532
|
-
//
|
|
533
|
-
// this is necessary, as we establish the bindings
|
|
534
|
-
// in the BpmnTreeWalker (and assume none are given
|
|
535
|
-
// on reimport)
|
|
536
|
-
this.get('elementRegistry').forEach(function(element) {
|
|
537
|
-
var bo = element.businessObject;
|
|
538
|
-
|
|
539
|
-
if (bo && bo.di) {
|
|
540
|
-
delete bo.di;
|
|
541
|
-
}
|
|
542
|
-
});
|
|
543
|
-
|
|
544
531
|
// remove drawn elements
|
|
545
532
|
Diagram.prototype.clear.call(this);
|
|
546
533
|
};
|
package/lib/Viewer.js
CHANGED
|
@@ -4,6 +4,7 @@ import CoreModule from './core';
|
|
|
4
4
|
import TranslateModule from 'diagram-js/lib/i18n/translate';
|
|
5
5
|
import SelectionModule from 'diagram-js/lib/features/selection';
|
|
6
6
|
import OverlaysModule from 'diagram-js/lib/features/overlays';
|
|
7
|
+
import DrilldownModdule from './features/drilldown';
|
|
7
8
|
|
|
8
9
|
import BaseViewer from './BaseViewer';
|
|
9
10
|
|
|
@@ -66,7 +67,8 @@ Viewer.prototype._modules = [
|
|
|
66
67
|
CoreModule,
|
|
67
68
|
TranslateModule,
|
|
68
69
|
SelectionModule,
|
|
69
|
-
OverlaysModule
|
|
70
|
+
OverlaysModule,
|
|
71
|
+
DrilldownModdule
|
|
70
72
|
];
|
|
71
73
|
|
|
72
74
|
// default moddle extensions the viewer is composed of
|
|
@@ -3,10 +3,16 @@ import {
|
|
|
3
3
|
some
|
|
4
4
|
} from 'min-dash';
|
|
5
5
|
|
|
6
|
+
import {
|
|
7
|
+
getDi
|
|
8
|
+
} from '../util/ModelUtil';
|
|
9
|
+
|
|
6
10
|
import {
|
|
7
11
|
componentsToPath
|
|
8
12
|
} from 'diagram-js/lib/util/RenderUtil';
|
|
9
13
|
|
|
14
|
+
// re-export getDi for compatibility
|
|
15
|
+
export { getDi };
|
|
10
16
|
|
|
11
17
|
// element utils //////////////////////
|
|
12
18
|
|
|
@@ -42,10 +48,6 @@ export function isCollection(element) {
|
|
|
42
48
|
return element.isCollection || (dataObject && dataObject.isCollection);
|
|
43
49
|
}
|
|
44
50
|
|
|
45
|
-
export function getDi(element) {
|
|
46
|
-
return element.businessObject.di;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
51
|
export function getSemantic(element) {
|
|
50
52
|
return element.businessObject;
|
|
51
53
|
}
|