bpmn-js 17.11.0 → 18.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.
Files changed (181) hide show
  1. package/dist/assets/diagram-js.css +17 -8
  2. package/dist/bpmn-modeler.development.js +1396 -1161
  3. package/dist/bpmn-modeler.production.min.js +47 -46
  4. package/dist/bpmn-navigated-viewer.development.js +305 -767
  5. package/dist/bpmn-navigated-viewer.production.min.js +5 -5
  6. package/dist/bpmn-viewer.development.js +277 -699
  7. package/dist/bpmn-viewer.production.min.js +5 -5
  8. package/lib/BaseModeler.d.ts +3 -3
  9. package/lib/BaseViewer.d.ts +8 -8
  10. package/lib/Modeler.d.ts +2 -2
  11. package/lib/Modeler.js +3 -1
  12. package/lib/NavigatedViewer.d.ts +1 -1
  13. package/lib/Viewer.d.ts +1 -1
  14. package/lib/Viewer.js +0 -2
  15. package/lib/core/index.d.ts +1 -1
  16. package/lib/draw/BpmnRenderUtil.d.ts +12 -12
  17. package/lib/draw/BpmnRenderer.d.ts +4 -4
  18. package/lib/draw/TextRenderer.d.ts +2 -2
  19. package/lib/draw/index.d.ts +4 -4
  20. package/lib/features/align-elements/AlignElementsContextPadProvider.d.ts +6 -6
  21. package/lib/features/align-elements/AlignElementsIcons.d.ts +7 -7
  22. package/lib/features/align-elements/AlignElementsMenuProvider.d.ts +6 -6
  23. package/lib/features/align-elements/BpmnAlignElements.d.ts +1 -1
  24. package/lib/features/align-elements/index.d.ts +5 -5
  25. package/lib/features/append-preview/AppendPreview.d.ts +7 -7
  26. package/lib/features/append-preview/index.d.ts +3 -3
  27. package/lib/features/auto-place/BpmnAutoPlace.d.ts +2 -2
  28. package/lib/features/auto-place/BpmnAutoPlaceUtil.d.ts +4 -4
  29. package/lib/features/auto-place/index.d.ts +3 -3
  30. package/lib/features/auto-resize/BpmnAutoResize.d.ts +3 -3
  31. package/lib/features/auto-resize/BpmnAutoResizeProvider.d.ts +3 -3
  32. package/lib/features/auto-resize/index.d.ts +3 -3
  33. package/lib/features/context-pad/ContextPadProvider.d.ts +16 -16
  34. package/lib/features/context-pad/ContextPadProvider.js +2 -6
  35. package/lib/features/context-pad/index.d.ts +3 -3
  36. package/lib/features/copy-paste/BpmnCopyPaste.d.ts +3 -3
  37. package/lib/features/copy-paste/ModdleCopy.d.ts +4 -4
  38. package/lib/features/copy-paste/index.d.ts +4 -4
  39. package/lib/features/di-ordering/BpmnDiOrdering.d.ts +2 -2
  40. package/lib/features/di-ordering/index.d.ts +2 -2
  41. package/lib/features/distribute-elements/BpmnDistributeElements.d.ts +1 -1
  42. package/lib/features/distribute-elements/DistributeElementsIcons.d.ts +2 -2
  43. package/lib/features/distribute-elements/DistributeElementsMenuProvider.d.ts +6 -6
  44. package/lib/features/distribute-elements/index.d.ts +4 -4
  45. package/lib/features/drilldown/DrilldownBreadcrumbs.d.ts +5 -5
  46. package/lib/features/drilldown/DrilldownCentering.d.ts +2 -2
  47. package/lib/features/drilldown/DrilldownOverlayBehavior.d.ts +7 -7
  48. package/lib/features/drilldown/SubprocessCompatibility.d.ts +6 -6
  49. package/lib/features/drilldown/index.d.ts +6 -6
  50. package/lib/features/editor-actions/BpmnEditorActions.d.ts +1 -1
  51. package/lib/features/editor-actions/index.d.ts +2 -2
  52. package/lib/features/grid-snapping/BpmnGridSnapping.d.ts +1 -1
  53. package/lib/features/grid-snapping/behavior/GridSnappingAutoPlaceBehavior.d.ts +4 -4
  54. package/lib/features/grid-snapping/behavior/GridSnappingLayoutConnectionBehavior.d.ts +4 -4
  55. package/lib/features/grid-snapping/behavior/GridSnappingParticipantBehavior.d.ts +3 -3
  56. package/lib/features/grid-snapping/behavior/index.d.ts +4 -4
  57. package/lib/features/grid-snapping/index.d.ts +3 -3
  58. package/lib/features/interaction-events/BpmnInteractionEvents.d.ts +4 -4
  59. package/lib/features/interaction-events/BpmnInteractionEvents.js +2 -6
  60. package/lib/features/interaction-events/index.d.ts +2 -2
  61. package/lib/features/keyboard/BpmnKeyboardBindings.d.ts +3 -3
  62. package/lib/features/keyboard/index.d.ts +3 -3
  63. package/lib/features/label-editing/LabelEditingPreview.d.ts +3 -3
  64. package/lib/features/label-editing/LabelEditingProvider.d.ts +8 -8
  65. package/lib/features/label-editing/cmd/UpdateLabelHandler.d.ts +4 -4
  66. package/lib/features/label-editing/index.d.ts +4 -4
  67. package/lib/features/modeling/BpmnFactory.d.ts +3 -3
  68. package/lib/features/modeling/BpmnLayouter.d.ts +5 -5
  69. package/lib/features/modeling/BpmnUpdater.d.ts +8 -8
  70. package/lib/features/modeling/BpmnUpdater.js +9 -28
  71. package/lib/features/modeling/ElementFactory.d.ts +11 -11
  72. package/lib/features/modeling/ElementFactory.js +1 -2
  73. package/lib/features/modeling/Modeling.d.ts +15 -15
  74. package/lib/features/modeling/Modeling.test.ts +4 -4
  75. package/lib/features/modeling/behavior/AdaptiveLabelPositioningBehavior.d.ts +7 -8
  76. package/lib/features/modeling/behavior/AdaptiveLabelPositioningBehavior.js +7 -3
  77. package/lib/features/modeling/behavior/AppendBehavior.d.ts +1 -1
  78. package/lib/features/modeling/behavior/AssociationBehavior.d.ts +2 -2
  79. package/lib/features/modeling/behavior/AttachEventBehavior.d.ts +2 -2
  80. package/lib/features/modeling/behavior/BoundaryEventBehavior.d.ts +2 -2
  81. package/lib/features/modeling/behavior/CompensateBoundaryEventBehavior.d.ts +2 -2
  82. package/lib/features/modeling/behavior/CreateBehavior.d.ts +1 -1
  83. package/lib/features/modeling/behavior/CreateDataObjectBehavior.d.ts +2 -2
  84. package/lib/features/modeling/behavior/CreateParticipantBehavior.d.ts +3 -3
  85. package/lib/features/modeling/behavior/DataInputAssociationBehavior.d.ts +2 -2
  86. package/lib/features/modeling/behavior/DataStoreBehavior.d.ts +4 -4
  87. package/lib/features/modeling/behavior/DeleteLaneBehavior.d.ts +2 -2
  88. package/lib/features/modeling/behavior/DetachEventBehavior.d.ts +2 -2
  89. package/lib/features/modeling/behavior/DropOnFlowBehavior.d.ts +3 -3
  90. package/lib/features/modeling/behavior/EventBasedGatewayBehavior.d.ts +2 -2
  91. package/lib/features/modeling/behavior/FixHoverBehavior.d.ts +3 -3
  92. package/lib/features/modeling/behavior/GroupBehavior.d.ts +9 -9
  93. package/lib/features/modeling/behavior/ImportDockingFix.d.ts +1 -1
  94. package/lib/features/modeling/behavior/IsHorizontalFix.d.ts +1 -1
  95. package/lib/features/modeling/behavior/LabelBehavior.d.ts +6 -6
  96. package/lib/features/modeling/behavior/LayoutConnectionBehavior.d.ts +2 -2
  97. package/lib/features/modeling/behavior/MessageFlowBehavior.d.ts +2 -2
  98. package/lib/features/modeling/behavior/RemoveElementBehavior.d.ts +3 -3
  99. package/lib/features/modeling/behavior/RemoveEmbeddedLabelBoundsBehavior.d.ts +2 -2
  100. package/lib/features/modeling/behavior/RemoveParticipantBehavior.d.ts +2 -2
  101. package/lib/features/modeling/behavior/ReplaceConnectionBehavior.d.ts +4 -4
  102. package/lib/features/modeling/behavior/ReplaceElementBehaviour.d.ts +6 -6
  103. package/lib/features/modeling/behavior/ResizeBehavior.d.ts +5 -8
  104. package/lib/features/modeling/behavior/ResizeBehavior.js +3 -6
  105. package/lib/features/modeling/behavior/ResizeLaneBehavior.d.ts +2 -2
  106. package/lib/features/modeling/behavior/RootElementReferenceBehavior.d.ts +8 -8
  107. package/lib/features/modeling/behavior/SetCompensationActivityAfterPasteBehavior.d.ts +3 -3
  108. package/lib/features/modeling/behavior/SpaceToolBehavior.d.ts +2 -2
  109. package/lib/features/modeling/behavior/SubProcessPlaneBehavior.d.ts +10 -10
  110. package/lib/features/modeling/behavior/SubProcessStartEventBehavior.d.ts +2 -2
  111. package/lib/features/modeling/behavior/TextAnnotationBehavior.d.ts +1 -1
  112. package/lib/features/modeling/behavior/ToggleCollapseConnectionBehaviour.d.ts +5 -5
  113. package/lib/features/modeling/behavior/ToggleElementCollapseBehaviour.d.ts +3 -3
  114. package/lib/features/modeling/behavior/UnclaimIdBehavior.d.ts +4 -4
  115. package/lib/features/modeling/behavior/UnsetDefaultFlowBehavior.d.ts +2 -2
  116. package/lib/features/modeling/behavior/UpdateFlowNodeRefsBehavior.d.ts +2 -2
  117. package/lib/features/modeling/behavior/index.d.ts +1 -1
  118. package/lib/features/modeling/behavior/util/CategoryUtil.d.ts +6 -6
  119. package/lib/features/modeling/behavior/util/ConnectionLayoutUtil.d.ts +2 -2
  120. package/lib/features/modeling/behavior/util/LabelLayoutUtil.d.ts +4 -4
  121. package/lib/features/modeling/behavior/util/LayoutUtil.d.ts +2 -2
  122. package/lib/features/modeling/behavior/util/LineAttachmentUtil.d.ts +2 -2
  123. package/lib/features/modeling/behavior/util/LineIntersect.d.ts +1 -1
  124. package/lib/features/modeling/cmd/AddLaneHandler.d.ts +3 -3
  125. package/lib/features/modeling/cmd/AddLaneHandler.js +5 -10
  126. package/lib/features/modeling/cmd/IdClaimHandler.d.ts +2 -2
  127. package/lib/features/modeling/cmd/ResizeLaneHandler.d.ts +5 -5
  128. package/lib/features/modeling/cmd/SetColorHandler.d.ts +3 -3
  129. package/lib/features/modeling/cmd/SplitLaneHandler.d.ts +2 -2
  130. package/lib/features/modeling/cmd/UpdateCanvasRootHandler.d.ts +3 -3
  131. package/lib/features/modeling/cmd/UpdateFlowNodeRefsHandler.d.ts +3 -3
  132. package/lib/features/modeling/cmd/UpdateModdlePropertiesHandler.d.ts +4 -4
  133. package/lib/features/modeling/cmd/UpdatePropertiesHandler.d.ts +7 -7
  134. package/lib/features/modeling/cmd/UpdateSemanticParentHandler.d.ts +2 -2
  135. package/lib/features/modeling/index.d.ts +8 -8
  136. package/lib/features/modeling/util/LaneUtil.d.ts +2 -2
  137. package/lib/features/modeling/util/ModelingUtil.d.ts +2 -2
  138. package/lib/features/modeling-feedback/ModelingFeedback.d.ts +2 -2
  139. package/lib/features/modeling-feedback/index.d.ts +3 -3
  140. package/lib/features/ordering/BpmnOrderingProvider.d.ts +2 -2
  141. package/lib/features/ordering/index.d.ts +2 -2
  142. package/lib/features/outline/OutlineProvider.d.ts +4 -4
  143. package/lib/features/outline/OutlineUtil.d.ts +1 -1
  144. package/lib/features/outline/index.d.ts +3 -3
  145. package/lib/features/palette/PaletteProvider.d.ts +8 -8
  146. package/lib/features/palette/index.d.ts +3 -3
  147. package/lib/features/popup-menu/ReplaceMenuProvider.d.ts +15 -15
  148. package/lib/features/popup-menu/ReplaceMenuProvider.js +14 -16
  149. package/lib/features/popup-menu/index.d.ts +3 -3
  150. package/lib/features/popup-menu/util/TypeUtil.d.ts +2 -2
  151. package/lib/features/replace/BpmnReplace.d.ts +9 -11
  152. package/lib/features/replace/index.d.ts +2 -2
  153. package/lib/features/replace-preview/BpmnReplacePreview.d.ts +5 -5
  154. package/lib/features/replace-preview/index.d.ts +3 -3
  155. package/lib/features/rules/BpmnRules.d.ts +9 -9
  156. package/lib/features/rules/index.d.ts +3 -3
  157. package/lib/features/search/BpmnSearchProvider.d.ts +12 -7
  158. package/lib/features/search/BpmnSearchProvider.js +40 -152
  159. package/lib/features/search/index.d.ts +3 -3
  160. package/lib/features/search/index.js +3 -1
  161. package/lib/features/snapping/BpmnConnectSnapping.d.ts +5 -5
  162. package/lib/features/snapping/BpmnCreateMoveSnapping.d.ts +7 -7
  163. package/lib/features/snapping/BpmnSnappingUtil.d.ts +3 -3
  164. package/lib/features/snapping/index.d.ts +4 -4
  165. package/lib/features/space-tool/BpmnSpaceTool.d.ts +4 -4
  166. package/lib/features/space-tool/index.d.ts +2 -2
  167. package/lib/import/BpmnImporter.d.ts +11 -11
  168. package/lib/import/BpmnTreeWalker.d.ts +2 -2
  169. package/lib/import/Importer.d.ts +1 -1
  170. package/lib/import/index.d.ts +2 -2
  171. package/lib/index.d.ts +1 -0
  172. package/lib/index.js +3 -0
  173. package/lib/util/CompatibilityUtil.d.ts +1 -1
  174. package/lib/util/DiUtil.d.ts +2 -2
  175. package/lib/util/DrilldownUtil.d.ts +2 -2
  176. package/lib/util/LabelUtil.d.ts +6 -6
  177. package/lib/util/LabelUtil.js +5 -1
  178. package/lib/util/ModelUtil.d.ts +2 -2
  179. package/lib/util/PoweredByUtil.d.ts +2 -2
  180. package/package.json +23 -24
  181. package/index.js +0 -3
@@ -9,7 +9,7 @@
9
9
  */
10
10
  export default class BaseModeler<ServiceMap = null> extends BaseViewer<ServiceMap> {}
11
11
 
12
- type BaseViewerOptions = import('./BaseViewer').BaseViewerOptions;
13
- type ModdleElementsById = import('./BaseViewer').ModdleElementsById;
14
- type ModdleElement = import('./model/Types').ModdleElement;
12
+ type BaseViewerOptions = import("./BaseViewer").BaseViewerOptions;
13
+ type ModdleElementsById = import("./BaseViewer").ModdleElementsById;
14
+ type ModdleElement = import("./model/Types").ModdleElement;
15
15
  import BaseViewer from './BaseViewer';
@@ -271,12 +271,12 @@ export default class BaseViewer<ServiceMap = null> extends Diagram<ServiceMap> {
271
271
  detach(): void;
272
272
  }
273
273
 
274
- type EventBus<T> = import('diagram-js/lib/core/EventBus').default<T>;
275
- type EventBusEventCallback<T> = import('diagram-js/lib/core/EventBus').EventBusEventCallback<T>;
276
- type ModuleDeclaration = import('didi').ModuleDeclaration;
277
- type Moddle = import('./model/Types').Moddle;
278
- type ModdleElement = import('./model/Types').ModdleElement;
279
- type ModdleExtension = import('./model/Types').ModdleExtension;
274
+ type EventBus<T> = import("diagram-js/lib/core/EventBus").default<T>;
275
+ type EventBusEventCallback<T> = import("diagram-js/lib/core/EventBus").EventBusEventCallback<T>;
276
+ type ModuleDeclaration = import("didi").ModuleDeclaration;
277
+ type Moddle = import("./model/Types").Moddle;
278
+ type ModdleElement = import("./model/Types").ModdleElement;
279
+ type ModdleExtension = import("./model/Types").ModdleExtension;
280
280
 
281
281
  export type BaseViewerOptions = {
282
282
  width?: number | string;
@@ -290,7 +290,7 @@ export type BaseViewerOptions = {
290
290
  export type ModdleElementsById = Record<string, ModdleElement>;
291
291
 
292
292
  export type ModdleExtensions = {
293
- [key: string]: import("./model/Types").ModdleExtension;
293
+ [key: string]: ModdleExtension;
294
294
  };
295
295
 
296
296
  export type ImportXMLResult = {
@@ -346,7 +346,7 @@ export type SaveSVGDoneEvent = {
346
346
  };
347
347
 
348
348
  export type EventMap<Type> = Type extends {
349
- eventBus: import("diagram-js/lib/core/EventBus").default<infer X>;
349
+ eventBus: EventBus<infer X>;
350
350
  } ? X : never;
351
351
 
352
352
  import Diagram from 'diagram-js';
package/lib/Modeler.d.ts CHANGED
@@ -79,8 +79,8 @@ export default class Modeler<ServiceMap = null> extends BaseModeler<ServiceMap>
79
79
  createDiagram(): Promise<ImportXMLResult>;
80
80
  }
81
81
 
82
- type BaseViewerOptions = import('./BaseViewer').BaseViewerOptions;
83
- type ImportXMLResult = import('./BaseViewer').ImportXMLResult;
82
+ type BaseViewerOptions = import("./BaseViewer").BaseViewerOptions;
83
+ type ImportXMLResult = import("./BaseViewer").ImportXMLResult;
84
84
  import BaseModeler from './BaseModeler';
85
85
  import Viewer from './Viewer';
86
86
  import NavigatedViewer from './NavigatedViewer';
package/lib/Modeler.js CHANGED
@@ -34,6 +34,7 @@ import ReplacePreviewModule from './features/replace-preview';
34
34
  import ResizeModule from 'diagram-js/lib/features/resize';
35
35
  import SnappingModule from './features/snapping';
36
36
  import SearchModule from './features/search';
37
+ import OutlineModule from './features/outline';
37
38
 
38
39
  var initialDiagram =
39
40
  '<?xml version="1.0" encoding="UTF-8"?>' +
@@ -187,7 +188,8 @@ Modeler.prototype._modelingModules = [
187
188
  ReplacePreviewModule,
188
189
  ResizeModule,
189
190
  SnappingModule,
190
- SearchModule
191
+ SearchModule,
192
+ OutlineModule
191
193
  ];
192
194
 
193
195
 
@@ -7,5 +7,5 @@
7
7
  */
8
8
  export default class NavigatedViewer<ServiceMap = null> extends Viewer<ServiceMap> {}
9
9
 
10
- type BaseViewerOptions = import('./BaseViewer').BaseViewerOptions;
10
+ type BaseViewerOptions = import("./BaseViewer").BaseViewerOptions;
11
11
  import Viewer from './Viewer';
package/lib/Viewer.d.ts CHANGED
@@ -43,5 +43,5 @@
43
43
  */
44
44
  export default class Viewer<ServiceMap = null> extends BaseViewer<ServiceMap> {}
45
45
 
46
- type BaseViewerOptions = import('./BaseViewer').BaseViewerOptions;
46
+ type BaseViewerOptions = import("./BaseViewer").BaseViewerOptions;
47
47
  import BaseViewer from './BaseViewer';
package/lib/Viewer.js CHANGED
@@ -2,7 +2,6 @@ import inherits from 'inherits-browser';
2
2
 
3
3
  import CoreModule from './core';
4
4
  import DrilldownModdule from './features/drilldown';
5
- import OutlineModule from './features/outline';
6
5
  import OverlaysModule from 'diagram-js/lib/features/overlays';
7
6
  import SelectionModule from 'diagram-js/lib/features/selection';
8
7
  import TranslateModule from 'diagram-js/lib/i18n/translate';
@@ -69,7 +68,6 @@ inherits(Viewer, BaseViewer);
69
68
  Viewer.prototype._modules = [
70
69
  CoreModule,
71
70
  DrilldownModdule,
72
- OutlineModule,
73
71
  OverlaysModule,
74
72
  SelectionModule,
75
73
  TranslateModule
@@ -1,5 +1,5 @@
1
1
  declare namespace _default {
2
- const __depends__: ({
2
+ let __depends__: ({
3
3
  bpmnRenderer: (string | typeof import("../draw/BpmnRenderer").default)[];
4
4
  textRenderer: (string | typeof import("../draw/TextRenderer").default)[];
5
5
  pathMap: (string | typeof import("../draw/PathMap").default)[];
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @return
8
8
  */
9
- export function isTypedEvent(event: any, eventDefinitionType: string): boolean;
9
+ export function isTypedEvent(event: ModdleElement, eventDefinitionType: string): boolean;
10
10
 
11
11
  /**
12
12
  * Check if element is a throw event.
@@ -15,7 +15,7 @@ export function isTypedEvent(event: any, eventDefinitionType: string): boolean;
15
15
  *
16
16
  * @return
17
17
  */
18
- export function isThrowEvent(event: any): boolean;
18
+ export function isThrowEvent(event: ModdleElement): boolean;
19
19
 
20
20
  /**
21
21
  * Check if element is a throw event.
@@ -24,7 +24,7 @@ export function isThrowEvent(event: any): boolean;
24
24
  *
25
25
  * @return
26
26
  */
27
- export function isCollection(element: any): boolean;
27
+ export function isCollection(element: ModdleElement): boolean;
28
28
 
29
29
  /**
30
30
  * @param element
@@ -33,7 +33,7 @@ export function isCollection(element: any): boolean;
33
33
  *
34
34
  * @return
35
35
  */
36
- export function getFillColor(element: any, defaultColor?: string, overrideColor?: string): string;
36
+ export function getFillColor(element: Element, defaultColor?: string, overrideColor?: string): string;
37
37
 
38
38
  /**
39
39
  * @param element
@@ -42,7 +42,7 @@ export function getFillColor(element: any, defaultColor?: string, overrideColor?
42
42
  *
43
43
  * @return
44
44
  */
45
- export function getStrokeColor(element: any, defaultColor?: string, overrideColor?: string): string;
45
+ export function getStrokeColor(element: Element, defaultColor?: string, overrideColor?: string): string;
46
46
 
47
47
  /**
48
48
  * @param element
@@ -52,14 +52,14 @@ export function getStrokeColor(element: any, defaultColor?: string, overrideColo
52
52
  *
53
53
  * @return
54
54
  */
55
- export function getLabelColor(element: any, defaultColor?: string, defaultStrokeColor?: string, overrideColor?: string): string;
55
+ export function getLabelColor(element: Element, defaultColor?: string, defaultStrokeColor?: string, overrideColor?: string): string;
56
56
 
57
57
  /**
58
58
  * @param shape
59
59
  *
60
60
  * @return path
61
61
  */
62
- export function getCirclePath(shape: any): string;
62
+ export function getCirclePath(shape: ShapeLike): string;
63
63
 
64
64
  /**
65
65
  * @param shape
@@ -67,21 +67,21 @@ export function getCirclePath(shape: any): string;
67
67
  *
68
68
  * @return path
69
69
  */
70
- export function getRoundRectPath(shape: any, borderRadius?: number): string;
70
+ export function getRoundRectPath(shape: ShapeLike, borderRadius?: number): string;
71
71
 
72
72
  /**
73
73
  * @param shape
74
74
  *
75
75
  * @return path
76
76
  */
77
- export function getDiamondPath(shape: any): string;
77
+ export function getDiamondPath(shape: ShapeLike): string;
78
78
 
79
79
  /**
80
80
  * @param shape
81
81
  *
82
82
  * @return path
83
83
  */
84
- export function getRectPath(shape: any): string;
84
+ export function getRectPath(shape: ShapeLike): string;
85
85
 
86
86
  /**
87
87
  * Get width and height from element or overrides.
@@ -118,6 +118,6 @@ export const white: string;
118
118
  export type ModdleElement = any;
119
119
  export type Element = any;
120
120
  export type ShapeLike = any;
121
- type Dimensions = import('diagram-js/lib/util/Types').Dimensions;
122
- type Rect = import('diagram-js/lib/util/Types').Rect;
121
+ type Dimensions = import("diagram-js/lib/util/Types").Dimensions;
122
+ type Rect = import("diagram-js/lib/util/Types").Rect;
123
123
  export { getDi, getBusinessObject as getSemantic } from "../util/ModelUtil";
@@ -14,7 +14,7 @@ export default class BpmnRenderer extends BaseRenderer {
14
14
  * @param textRenderer
15
15
  * @param priority
16
16
  */
17
- constructor(config: BpmnRendererConfig, eventBus: import('diagram-js/lib/core/EventBus').default, styles: import('diagram-js/lib/draw/Styles').default, pathMap: import('./PathMap').default, canvas: import('diagram-js/lib/core/Canvas').default, textRenderer: import('./TextRenderer').default, priority?: number);
17
+ constructor(config: BpmnRendererConfig, eventBus: import("diagram-js/lib/core/EventBus").default, styles: import("diagram-js/lib/draw/Styles").default, pathMap: import("./PathMap").default, canvas: import("diagram-js/lib/core/Canvas").default, textRenderer: import("./TextRenderer").default, priority?: number);
18
18
 
19
19
  handlers: {
20
20
  'bpmn:AdHocSubProcess': (parentGfx: any, element: any, attrs?: {}) => SVGRectElement;
@@ -110,7 +110,7 @@ export type Attrs = Partial<{
110
110
  height: string;
111
111
  }>;
112
112
 
113
- type Element = import('../model/Types').Element;
114
- type Shape = import('../model/Types').Shape;
115
- type Connection = import('../model/Types').Connection;
113
+ type Element = import("../model/Types").Element;
114
+ type Shape = import("../model/Types").Shape;
115
+ type Connection = import("../model/Types").Connection;
116
116
  import BaseRenderer from 'diagram-js/lib/draw/BaseRenderer';
@@ -70,5 +70,5 @@ export type TextRendererConfig = {
70
70
  externalStyle?: Partial<TextRendererStyle>;
71
71
  };
72
72
 
73
- type TextLayoutConfig = import('diagram-js/lib/util/Text').TextLayoutConfig;
74
- type Rect = import('diagram-js/lib/util/Types').Rect;
73
+ type TextLayoutConfig = import("diagram-js/lib/util/Text").TextLayoutConfig;
74
+ type Rect = import("diagram-js/lib/util/Types").Rect;
@@ -1,8 +1,8 @@
1
1
  declare namespace _default {
2
- const __init__: string[];
3
- const bpmnRenderer: (string | typeof BpmnRenderer)[];
4
- const textRenderer: (string | typeof TextRenderer)[];
5
- const pathMap: (string | typeof PathMap)[];
2
+ let __init__: string[];
3
+ let bpmnRenderer: (string | typeof BpmnRenderer)[];
4
+ let textRenderer: (string | typeof TextRenderer)[];
5
+ let pathMap: (string | typeof PathMap)[];
6
6
  }
7
7
  export default _default;
8
8
  import BpmnRenderer from './BpmnRenderer';
@@ -23,10 +23,10 @@ export default class AlignElementsContextPadProvider implements ContextPadProvid
23
23
  getMultiElementContextPadEntries(elements: Element[]): ContextPadEntries;
24
24
  }
25
25
 
26
- type Canvas = import('diagram-js/lib/core/Canvas').default;
27
- type ContextPad = import('diagram-js/lib/features/context-pad/ContextPad').default;
28
- type PopupMenu = import('diagram-js/lib/features/popup-menu/PopupMenu').default;
26
+ type Canvas = import("diagram-js/lib/core/Canvas").default;
27
+ type ContextPad = import("diagram-js/lib/features/context-pad/ContextPad").default;
28
+ type PopupMenu = import("diagram-js/lib/features/popup-menu/PopupMenu").default;
29
29
  export type Translate = typeof import("diagram-js/lib/i18n/translate/translate").default;
30
- type Element = import('../../model/Types').Element;
31
- type ContextPadEntries = import('diagram-js/lib/features/context-pad/ContextPad').ContextPadEntries;
32
- type ContextPadProvider = import('diagram-js/lib/features/context-pad/ContextPadProvider').default<Element>;
30
+ type Element = import("../../model/Types").Element;
31
+ type ContextPadEntries = import("diagram-js/lib/features/context-pad/ContextPad").ContextPadEntries;
32
+ type ContextPadProvider = import("diagram-js/lib/features/context-pad/ContextPadProvider").default<Element>;
@@ -1,10 +1,10 @@
1
1
  export default icons;
2
2
  declare namespace icons {
3
- const align: string;
4
- const bottom: string;
5
- const center: string;
6
- const left: string;
7
- const right: string;
8
- const top: string;
9
- const middle: string;
3
+ let align: string;
4
+ let bottom: string;
5
+ let center: string;
6
+ let left: string;
7
+ let right: string;
8
+ let top: string;
9
+ let middle: string;
10
10
  }
@@ -23,10 +23,10 @@ export default class AlignElementsMenuProvider implements PopupMenuProvider {
23
23
  getPopupMenuEntries(target: PopupMenuTarget): PopupMenuEntries;
24
24
  }
25
25
 
26
- type AlignElements = import('diagram-js/lib/features/align-elements/AlignElements').default;
27
- type PopupMenu = import('diagram-js/lib/features/popup-menu/PopupMenu').default;
28
- type Rules = import('diagram-js/lib/features/rules/Rules').default;
26
+ type AlignElements = import("diagram-js/lib/features/align-elements/AlignElements").default;
27
+ type PopupMenu = import("diagram-js/lib/features/popup-menu/PopupMenu").default;
28
+ type Rules = import("diagram-js/lib/features/rules/Rules").default;
29
29
  export type Translate = typeof import("diagram-js/lib/i18n/translate/translate").default;
30
- type PopupMenuEntries = import('diagram-js/lib/features/popup-menu/PopupMenu').PopupMenuEntries;
31
- type PopupMenuProvider = import('diagram-js/lib/features/popup-menu/PopupMenuProvider').default;
32
- type PopupMenuTarget = import('diagram-js/lib/features/popup-menu/PopupMenu').PopupMenuTarget;
30
+ type PopupMenuEntries = import("diagram-js/lib/features/popup-menu/PopupMenu").PopupMenuEntries;
31
+ type PopupMenuProvider = import("diagram-js/lib/features/popup-menu/PopupMenuProvider").default;
32
+ type PopupMenuTarget = import("diagram-js/lib/features/popup-menu/PopupMenu").PopupMenuTarget;
@@ -5,5 +5,5 @@
5
5
  export default class BpmnAlignElements extends RuleProvider {
6
6
  }
7
7
 
8
- type EventBus = import('diagram-js/lib/core/EventBus').default;
8
+ type EventBus = import("diagram-js/lib/core/EventBus").default;
9
9
  import RuleProvider from 'diagram-js/lib/features/rules/RuleProvider';
@@ -1,9 +1,9 @@
1
1
  declare namespace _default {
2
- const __depends__: import("didi").ModuleDeclaration[];
3
- const __init__: string[];
4
- const alignElementsContextPadProvider: (string | typeof AlignElementsContextPadProvider)[];
5
- const alignElementsMenuProvider: (string | typeof AlignElementsMenuProvider)[];
6
- const bpmnAlignElements: (string | typeof BpmnAlignElements)[];
2
+ let __depends__: import("didi").ModuleDeclaration[];
3
+ let __init__: string[];
4
+ let alignElementsContextPadProvider: (string | typeof AlignElementsContextPadProvider)[];
5
+ let alignElementsMenuProvider: (string | typeof AlignElementsMenuProvider)[];
6
+ let bpmnAlignElements: (string | typeof BpmnAlignElements)[];
7
7
  }
8
8
  export default _default;
9
9
  import AlignElementsContextPadProvider from './AlignElementsContextPadProvider';
@@ -27,10 +27,10 @@ export default class AppendPreview {
27
27
  cleanUp(): void;
28
28
  }
29
29
 
30
- type ComplexPreview = import('diagram-js/lib/features/complex-preview/ComplexPreview').default;
31
- type ConnectionDocking = import('diagram-js/lib/layout/ConnectionDocking').default;
32
- type ElementFactory = import('../modeling/ElementFactory').default;
33
- type EventBus = import('diagram-js/lib/core/EventBus').default;
34
- type BpmnLayouter = import('../modeling/BpmnLayouter').default;
35
- type Rules = import('diagram-js/lib/features/rules/Rules').default;
36
- type Shape = import('../../model/Types').Shape;
30
+ type ComplexPreview = import("diagram-js/lib/features/complex-preview/ComplexPreview").default;
31
+ type ConnectionDocking = import("diagram-js/lib/layout/ConnectionDocking").default;
32
+ type ElementFactory = import("../modeling/ElementFactory").default;
33
+ type EventBus = import("diagram-js/lib/core/EventBus").default;
34
+ type BpmnLayouter = import("../modeling/BpmnLayouter").default;
35
+ type Rules = import("diagram-js/lib/features/rules/Rules").default;
36
+ type Shape = import("../../model/Types").Shape;
@@ -1,5 +1,5 @@
1
1
  declare namespace _default {
2
- const __depends__: (import("didi").ModuleDeclaration | {
2
+ let __depends__: (import("didi").ModuleDeclaration | {
3
3
  bpmnAutoPlace: (string | typeof import("../auto-place/BpmnAutoPlace").default)[];
4
4
  } | {
5
5
  bpmnFactory: (string | typeof import("../modeling/BpmnFactory").default)[];
@@ -9,8 +9,8 @@ declare namespace _default {
9
9
  layouter: (string | typeof import("../modeling/BpmnLayouter").default)[];
10
10
  connectionDocking: (string | typeof import("diagram-js/lib/layout/CroppingConnectionDocking").default)[];
11
11
  })[];
12
- const __init__: string[];
13
- const appendPreview: (string | typeof AppendPreview)[];
12
+ let __init__: string[];
13
+ let appendPreview: (string | typeof AppendPreview)[];
14
14
  }
15
15
  export default _default;
16
16
  import AppendPreview from './AppendPreview';
@@ -11,5 +11,5 @@ export default class AutoPlace {
11
11
  constructor(eventBus: EventBus, elementRegistry: ElementRegistry);
12
12
  }
13
13
 
14
- type EventBus = import('diagram-js/lib/core/EventBus').default;
15
- type ElementRegistry = import('diagram-js/lib/core/ElementRegistry').default;
14
+ type EventBus = import("diagram-js/lib/core/EventBus").default;
15
+ type ElementRegistry = import("diagram-js/lib/core/ElementRegistry").default;
@@ -46,7 +46,7 @@ export function getTextAnnotationPosition(source: Shape, element: Shape, placeHo
46
46
  */
47
47
  export function getDataElementPosition(source: Shape, element: Shape, placeHorizontally: boolean): Point;
48
48
 
49
- type Shape = import('../../model/Types').Shape;
50
- type ElementRegistry = import('diagram-js/lib/core/ElementRegistry').default;
51
- type Point = import('diagram-js/lib/util/Types').Point;
52
- type DirectionTRBL = import('diagram-js/lib/util/Types').DirectionTRBL;
49
+ type Shape = import("../../model/Types").Shape;
50
+ type ElementRegistry = import("diagram-js/lib/core/ElementRegistry").default;
51
+ type Point = import("diagram-js/lib/util/Types").Point;
52
+ type DirectionTRBL = import("diagram-js/lib/util/Types").DirectionTRBL;
@@ -1,7 +1,7 @@
1
1
  declare namespace _default {
2
- const __depends__: import("didi").ModuleDeclaration[];
3
- const __init__: string[];
4
- const bpmnAutoPlace: (string | typeof BpmnAutoPlace)[];
2
+ let __depends__: import("didi").ModuleDeclaration[];
3
+ let __init__: string[];
4
+ let bpmnAutoPlace: (string | typeof BpmnAutoPlace)[];
5
5
  }
6
6
  export default _default;
7
7
  import BpmnAutoPlace from './BpmnAutoPlace';
@@ -19,7 +19,7 @@ export default class BpmnAutoResize extends AutoResize {
19
19
  }): void;
20
20
  }
21
21
 
22
- type Injector = import('didi').Injector;
23
- type Shape = import('../../model/Types').Shape;
24
- type Rect = import('diagram-js/lib/util/Types').Rect;
22
+ type Injector = import("didi").Injector;
23
+ type Shape = import("../../model/Types").Shape;
24
+ type Rect = import("diagram-js/lib/util/Types").Rect;
25
25
  import AutoResize from 'diagram-js/lib/features/auto-resize/AutoResize';
@@ -20,7 +20,7 @@ export default class BpmnAutoResizeProvider extends AutoResizeProvider {
20
20
  canResize(elements: Shape[], target: Shape): boolean;
21
21
  }
22
22
 
23
- type EventBus = import('diagram-js/lib/core/EventBus').default;
24
- type Modeling = import('../modeling/Modeling').default;
25
- type Shape = import('../../model/Types').Shape;
23
+ type EventBus = import("diagram-js/lib/core/EventBus").default;
24
+ type Modeling = import("../modeling/Modeling").default;
25
+ type Shape = import("../../model/Types").Shape;
26
26
  import AutoResizeProvider from 'diagram-js/lib/features/auto-resize/AutoResizeProvider';
@@ -1,7 +1,7 @@
1
1
  declare namespace _default {
2
- const __init__: string[];
3
- const bpmnAutoResize: (string | typeof BpmnAutoResize)[];
4
- const bpmnAutoResizeProvider: (string | typeof BpmnAutoResizeProvider)[];
2
+ let __init__: string[];
3
+ let bpmnAutoResize: (string | typeof BpmnAutoResize)[];
4
+ let bpmnAutoResizeProvider: (string | typeof BpmnAutoResizeProvider)[];
5
5
  }
6
6
  export default _default;
7
7
  import BpmnAutoResize from './BpmnAutoResize';
@@ -22,7 +22,7 @@ export default class ContextPadProvider implements BaseContextPadProvider {
22
22
  * @param translate
23
23
  * @param appendPreview
24
24
  */
25
- constructor(config: ContextPadConfig, injector: Injector, eventBus: EventBus, contextPad: ContextPad, modeling: Modeling, elementFactory: ElementFactory, connect: Connect, create: Create, popupMenu: PopupMenu, canvas: any, rules: Rules, translate: Translate, appendPreview: AppendPreview);
25
+ constructor(config: ContextPadConfig, injector: Injector, eventBus: EventBus, contextPad: ContextPad, modeling: Modeling, elementFactory: ElementFactory, connect: Connect, create: Create, popupMenu: PopupMenu, canvas: Canvas, rules: Rules, translate: Translate, appendPreview: AppendPreview);
26
26
 
27
27
  /**
28
28
  * @param elements
@@ -39,23 +39,23 @@ export default class ContextPadProvider implements BaseContextPadProvider {
39
39
  getContextPadEntries(element: Element): ContextPadEntries;
40
40
  }
41
41
 
42
- type Injector = import('didi').Injector;
43
- type EventBus = import('diagram-js/lib/core/EventBus').default;
44
- type ContextPad = import('diagram-js/lib/features/context-pad/ContextPad').default;
45
- type Modeling = import('../modeling/Modeling').default;
46
- type ElementFactory = import('../modeling/ElementFactory').default;
47
- type AppendPreview = import('../append-preview/AppendPreview').default;
48
- type Connect = import('diagram-js/lib/features/connect/Connect').default;
49
- type Create = import('diagram-js/lib/features/create/Create').default;
50
- type PopupMenu = import('diagram-js/lib/features/popup-menu/PopupMenu').default;
42
+ type Injector = import("didi").Injector;
43
+ type EventBus = import("diagram-js/lib/core/EventBus").default;
44
+ type ContextPad = import("diagram-js/lib/features/context-pad/ContextPad").default;
45
+ type Modeling = import("../modeling/Modeling").default;
46
+ type ElementFactory = import("../modeling/ElementFactory").default;
47
+ type AppendPreview = import("../append-preview/AppendPreview").default;
48
+ type Connect = import("diagram-js/lib/features/connect/Connect").default;
49
+ type Create = import("diagram-js/lib/features/create/Create").default;
50
+ type PopupMenu = import("diagram-js/lib/features/popup-menu/PopupMenu").default;
51
51
  export type Canvas = any;
52
- type Rules = import('diagram-js/lib/features/rules/Rules').default;
52
+ type Rules = import("diagram-js/lib/features/rules/Rules").default;
53
53
  export type Translate = typeof import("diagram-js/lib/i18n/translate/translate").default;
54
- type Element = import('../../model/Types').Element;
55
- type ModdleElement = import('../../model/Types').ModdleElement;
56
- type BaseContextPadProvider = import('diagram-js/lib/features/context-pad/ContextPadProvider').default<Element>;
57
- type ContextPadEntries = import('diagram-js/lib/features/context-pad/ContextPadProvider').ContextPadEntries;
58
- type ContextPadEntry = import('diagram-js/lib/features/context-pad/ContextPadProvider').ContextPadEntry;
54
+ type Element = import("../../model/Types").Element;
55
+ type ModdleElement = import("../../model/Types").ModdleElement;
56
+ type BaseContextPadProvider = import("diagram-js/lib/features/context-pad/ContextPadProvider").default<Element>;
57
+ type ContextPadEntries = import("diagram-js/lib/features/context-pad/ContextPadProvider").ContextPadEntries;
58
+ type ContextPadEntry = import("diagram-js/lib/features/context-pad/ContextPadProvider").ContextPadEntry;
59
59
 
60
60
  export type ContextPadConfig = {
61
61
  autoPlace?: boolean;
@@ -406,9 +406,7 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
406
406
  { eventDefinitionType: 'bpmn:SignalEventDefinition' }
407
407
  )
408
408
  });
409
- } else
410
-
411
- if (isEventType(businessObject, 'bpmn:BoundaryEvent', 'bpmn:CompensateEventDefinition')) {
409
+ } else if (isEventType(businessObject, 'bpmn:BoundaryEvent', 'bpmn:CompensateEventDefinition')) {
412
410
 
413
411
  assign(actions, {
414
412
  'append.compensation-activity':
@@ -421,9 +419,7 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) {
421
419
  }
422
420
  )
423
421
  });
424
- } else
425
-
426
- if (!is(businessObject, 'bpmn:EndEvent') &&
422
+ } else if (!is(businessObject, 'bpmn:EndEvent') &&
427
423
  !businessObject.isForCompensation &&
428
424
  !isEventType(businessObject, 'bpmn:IntermediateThrowEvent', 'bpmn:LinkEventDefinition') &&
429
425
  !isEventSubProcess(businessObject)) {
@@ -1,7 +1,7 @@
1
1
  declare namespace _default {
2
- const __depends__: any[];
3
- const __init__: string[];
4
- const contextPadProvider: (string | typeof ContextPadProvider)[];
2
+ let __depends__: any[];
3
+ let __init__: string[];
4
+ let contextPadProvider: (string | typeof ContextPadProvider)[];
5
5
  }
6
6
  export default _default;
7
7
  import ContextPadProvider from './ContextPadProvider';
@@ -12,6 +12,6 @@ export default class BpmnCopyPaste {
12
12
  constructor(bpmnFactory: BpmnFactory, eventBus: EventBus, moddleCopy: ModdleCopy);
13
13
  }
14
14
 
15
- type BpmnFactory = import('../modeling/BpmnFactory').default;
16
- type EventBus = import('diagram-js/lib/core/EventBus').default;
17
- type ModdleCopy = import('./ModdleCopy').default;
15
+ type BpmnFactory = import("../modeling/BpmnFactory").default;
16
+ type EventBus = import("diagram-js/lib/core/EventBus").default;
17
+ type ModdleCopy = import("./ModdleCopy").default;
@@ -39,7 +39,7 @@ export default class ModdleCopy {
39
39
  copyProperty(property: any, parent: ModdleElement, propertyName: string, clone?: boolean): any;
40
40
  }
41
41
 
42
- type EventBus = import('diagram-js/lib/core/EventBus').default;
43
- type BpmnFactory = import('../modeling/BpmnFactory').default;
44
- type Moddle = import('../../model/Types').Moddle;
45
- type ModdleElement = import('../../model/Types').ModdleElement;
42
+ type EventBus = import("diagram-js/lib/core/EventBus").default;
43
+ type BpmnFactory = import("../modeling/BpmnFactory").default;
44
+ type Moddle = import("../../model/Types").Moddle;
45
+ type ModdleElement = import("../../model/Types").ModdleElement;
@@ -1,8 +1,8 @@
1
1
  declare namespace _default {
2
- const __depends__: import("didi").ModuleDeclaration[];
3
- const __init__: string[];
4
- const bpmnCopyPaste: (string | typeof BpmnCopyPaste)[];
5
- const moddleCopy: (string | typeof ModdleCopy)[];
2
+ let __depends__: import("didi").ModuleDeclaration[];
3
+ let __init__: string[];
4
+ let bpmnCopyPaste: (string | typeof BpmnCopyPaste)[];
5
+ let moddleCopy: (string | typeof ModdleCopy)[];
6
6
  }
7
7
  export default _default;
8
8
  import BpmnCopyPaste from './BpmnCopyPaste';
@@ -7,5 +7,5 @@ export default class BpmnDiOrdering {
7
7
  constructor(eventBus: EventBus, canvas: Canvas);
8
8
  }
9
9
 
10
- type EventBus = import('diagram-js/lib/core/EventBus').default;
11
- type Canvas = import('diagram-js/lib/core/Canvas').default;
10
+ type EventBus = import("diagram-js/lib/core/EventBus").default;
11
+ type Canvas = import("diagram-js/lib/core/Canvas").default;
@@ -1,6 +1,6 @@
1
1
  declare namespace _default {
2
- const __init__: string[];
3
- const bpmnDiOrdering: (string | typeof BpmnDiOrdering)[];
2
+ let __init__: string[];
3
+ let bpmnDiOrdering: (string | typeof BpmnDiOrdering)[];
4
4
  }
5
5
  export default _default;
6
6
  import BpmnDiOrdering from '../di-ordering/BpmnDiOrdering';
@@ -6,5 +6,5 @@
6
6
  export default class BpmnDistributeElements extends RuleProvider {
7
7
  }
8
8
 
9
- type EventBus = import('diagram-js/lib/core/EventBus').default;
9
+ type EventBus = import("diagram-js/lib/core/EventBus").default;
10
10
  import RuleProvider from 'diagram-js/lib/features/rules/RuleProvider';
@@ -1,5 +1,5 @@
1
1
  export default icons;
2
2
  declare namespace icons {
3
- const horizontal: string;
4
- const vertical: string;
3
+ let horizontal: string;
4
+ let vertical: string;
5
5
  }