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.
Files changed (48) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/assets/bpmn-js.css +57 -0
  3. package/dist/assets/diagram-js.css +2 -0
  4. package/dist/bpmn-modeler.development.js +1289 -795
  5. package/dist/bpmn-modeler.production.min.js +8 -7
  6. package/dist/bpmn-navigated-viewer.development.js +20635 -19973
  7. package/dist/bpmn-navigated-viewer.production.min.js +22 -20
  8. package/dist/bpmn-viewer.development.js +19836 -19174
  9. package/dist/bpmn-viewer.production.min.js +22 -20
  10. package/lib/BaseViewer.js +0 -13
  11. package/lib/Viewer.js +3 -1
  12. package/lib/draw/BpmnRenderUtil.js +6 -4
  13. package/lib/draw/BpmnRenderer.js +363 -296
  14. package/lib/features/context-pad/ContextPadProvider.js +1 -1
  15. package/lib/features/copy-paste/BpmnCopyPaste.js +13 -13
  16. package/lib/features/copy-paste/ModdleCopy.js +15 -3
  17. package/lib/features/di-ordering/BpmnDiOrdering.js +2 -3
  18. package/lib/features/drilldown/DrilldownCentering.js +41 -0
  19. package/lib/features/drilldown/DrilldownOverlays.js +109 -0
  20. package/lib/features/drilldown/SubprocessCompatibility.js +193 -0
  21. package/lib/features/drilldown/index.js +14 -0
  22. package/lib/features/label-editing/LabelEditingPreview.js +3 -3
  23. package/lib/features/label-editing/cmd/UpdateLabelHandler.js +2 -1
  24. package/lib/features/modeling/BpmnFactory.js +8 -8
  25. package/lib/features/modeling/BpmnUpdater.js +35 -27
  26. package/lib/features/modeling/ElementFactory.js +60 -37
  27. package/lib/features/modeling/behavior/DataStoreBehavior.js +3 -1
  28. package/lib/features/modeling/behavior/IsHorizontalFix.js +7 -4
  29. package/lib/features/modeling/behavior/LabelBehavior.js +8 -7
  30. package/lib/features/modeling/behavior/ToggleElementCollapseBehaviour.js +6 -6
  31. package/lib/features/modeling/cmd/UpdateCanvasRootHandler.js +8 -6
  32. package/lib/features/modeling/cmd/UpdatePropertiesHandler.js +19 -12
  33. package/lib/features/modeling/cmd/UpdateSemanticParentHandler.js +5 -3
  34. package/lib/features/palette/PaletteProvider.js +3 -1
  35. package/lib/features/popup-menu/ReplaceMenuProvider.js +5 -5
  36. package/lib/features/popup-menu/util/TypeUtil.js +1 -1
  37. package/lib/features/replace/BpmnReplace.js +29 -29
  38. package/lib/import/BpmnImporter.js +27 -22
  39. package/lib/import/BpmnTreeWalker.js +19 -17
  40. package/lib/import/Importer.js +17 -6
  41. package/lib/util/CompatibilityUtil.js +21 -1
  42. package/lib/util/DiUtil.js +10 -3
  43. package/lib/util/LabelUtil.js +2 -3
  44. package/lib/util/ModelUtil.js +11 -0
  45. package/package.json +2 -2
  46. package/test/matchers/BoundsMatchers.js +10 -10
  47. package/test/matchers/ConnectionMatchers.js +5 -5
  48. package/test/util/MockEvents.js +10 -2
@@ -3,7 +3,7 @@ import {
3
3
  } from 'min-dash';
4
4
 
5
5
  import {
6
- getBusinessObject
6
+ getDi
7
7
  } from 'lib/util/ModelUtil';
8
8
 
9
9
  var POSITION_ATTRS = [ 'x', 'y' ];
@@ -61,13 +61,13 @@ export default function(chai, utils) {
61
61
  Assertion.addMethod('diWaypoints', function(exp) {
62
62
  var obj = this._obj;
63
63
 
64
- var bo = getBusinessObject(obj);
64
+ var di = getDi(obj);
65
65
 
66
- expect(bo).to.have.property('di');
66
+ expect(di).to.exist;
67
67
 
68
- expect(bo.di).to.have.property('waypoint');
68
+ expect(di).to.have.property('waypoint');
69
69
 
70
- assertWaypoints(this, obj.id + '#di#waypoint', getPoints(bo.di.waypoint), getPoints(exp));
70
+ assertWaypoints(this, di + '#waypoint', getPoints(di.waypoint), getPoints(exp));
71
71
  });
72
72
 
73
73
 
@@ -13,7 +13,7 @@ import {
13
13
  * specified canvas local coordinates.
14
14
  *
15
15
  * @param {Point} point of the event local the canvas (closure)
16
- * @param {Object} data
16
+ * @param {Object} [data]
17
17
  *
18
18
  * @return {Event} event, scoped to the given canvas
19
19
  */
@@ -34,7 +34,15 @@ export function createCanvasEvent(position, data) {
34
34
  });
35
35
  }
36
36
 
37
-
37
+ /**
38
+ * Create an Event
39
+ *
40
+ * @param {Element} target
41
+ * @param { { x: number, y: number } } position
42
+ * @param {any} [data]
43
+ *
44
+ * @return {Event}
45
+ */
38
46
  export function createEvent(target, position, data) {
39
47
 
40
48
  return getBpmnJS().invoke(function(eventBus) {