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.
- package/dist/assets/diagram-js.css +17 -8
- package/dist/bpmn-modeler.development.js +1396 -1161
- package/dist/bpmn-modeler.production.min.js +47 -46
- package/dist/bpmn-navigated-viewer.development.js +305 -767
- package/dist/bpmn-navigated-viewer.production.min.js +5 -5
- package/dist/bpmn-viewer.development.js +277 -699
- package/dist/bpmn-viewer.production.min.js +5 -5
- package/lib/BaseModeler.d.ts +3 -3
- package/lib/BaseViewer.d.ts +8 -8
- package/lib/Modeler.d.ts +2 -2
- package/lib/Modeler.js +3 -1
- package/lib/NavigatedViewer.d.ts +1 -1
- package/lib/Viewer.d.ts +1 -1
- package/lib/Viewer.js +0 -2
- package/lib/core/index.d.ts +1 -1
- package/lib/draw/BpmnRenderUtil.d.ts +12 -12
- package/lib/draw/BpmnRenderer.d.ts +4 -4
- package/lib/draw/TextRenderer.d.ts +2 -2
- package/lib/draw/index.d.ts +4 -4
- package/lib/features/align-elements/AlignElementsContextPadProvider.d.ts +6 -6
- package/lib/features/align-elements/AlignElementsIcons.d.ts +7 -7
- package/lib/features/align-elements/AlignElementsMenuProvider.d.ts +6 -6
- package/lib/features/align-elements/BpmnAlignElements.d.ts +1 -1
- package/lib/features/align-elements/index.d.ts +5 -5
- package/lib/features/append-preview/AppendPreview.d.ts +7 -7
- package/lib/features/append-preview/index.d.ts +3 -3
- package/lib/features/auto-place/BpmnAutoPlace.d.ts +2 -2
- package/lib/features/auto-place/BpmnAutoPlaceUtil.d.ts +4 -4
- package/lib/features/auto-place/index.d.ts +3 -3
- package/lib/features/auto-resize/BpmnAutoResize.d.ts +3 -3
- package/lib/features/auto-resize/BpmnAutoResizeProvider.d.ts +3 -3
- package/lib/features/auto-resize/index.d.ts +3 -3
- package/lib/features/context-pad/ContextPadProvider.d.ts +16 -16
- package/lib/features/context-pad/ContextPadProvider.js +2 -6
- package/lib/features/context-pad/index.d.ts +3 -3
- package/lib/features/copy-paste/BpmnCopyPaste.d.ts +3 -3
- package/lib/features/copy-paste/ModdleCopy.d.ts +4 -4
- package/lib/features/copy-paste/index.d.ts +4 -4
- package/lib/features/di-ordering/BpmnDiOrdering.d.ts +2 -2
- package/lib/features/di-ordering/index.d.ts +2 -2
- package/lib/features/distribute-elements/BpmnDistributeElements.d.ts +1 -1
- package/lib/features/distribute-elements/DistributeElementsIcons.d.ts +2 -2
- package/lib/features/distribute-elements/DistributeElementsMenuProvider.d.ts +6 -6
- package/lib/features/distribute-elements/index.d.ts +4 -4
- package/lib/features/drilldown/DrilldownBreadcrumbs.d.ts +5 -5
- package/lib/features/drilldown/DrilldownCentering.d.ts +2 -2
- package/lib/features/drilldown/DrilldownOverlayBehavior.d.ts +7 -7
- package/lib/features/drilldown/SubprocessCompatibility.d.ts +6 -6
- package/lib/features/drilldown/index.d.ts +6 -6
- package/lib/features/editor-actions/BpmnEditorActions.d.ts +1 -1
- package/lib/features/editor-actions/index.d.ts +2 -2
- package/lib/features/grid-snapping/BpmnGridSnapping.d.ts +1 -1
- package/lib/features/grid-snapping/behavior/GridSnappingAutoPlaceBehavior.d.ts +4 -4
- package/lib/features/grid-snapping/behavior/GridSnappingLayoutConnectionBehavior.d.ts +4 -4
- package/lib/features/grid-snapping/behavior/GridSnappingParticipantBehavior.d.ts +3 -3
- package/lib/features/grid-snapping/behavior/index.d.ts +4 -4
- package/lib/features/grid-snapping/index.d.ts +3 -3
- package/lib/features/interaction-events/BpmnInteractionEvents.d.ts +4 -4
- package/lib/features/interaction-events/BpmnInteractionEvents.js +2 -6
- package/lib/features/interaction-events/index.d.ts +2 -2
- package/lib/features/keyboard/BpmnKeyboardBindings.d.ts +3 -3
- package/lib/features/keyboard/index.d.ts +3 -3
- package/lib/features/label-editing/LabelEditingPreview.d.ts +3 -3
- package/lib/features/label-editing/LabelEditingProvider.d.ts +8 -8
- package/lib/features/label-editing/cmd/UpdateLabelHandler.d.ts +4 -4
- package/lib/features/label-editing/index.d.ts +4 -4
- package/lib/features/modeling/BpmnFactory.d.ts +3 -3
- package/lib/features/modeling/BpmnLayouter.d.ts +5 -5
- package/lib/features/modeling/BpmnUpdater.d.ts +8 -8
- package/lib/features/modeling/BpmnUpdater.js +9 -28
- package/lib/features/modeling/ElementFactory.d.ts +11 -11
- package/lib/features/modeling/ElementFactory.js +1 -2
- package/lib/features/modeling/Modeling.d.ts +15 -15
- package/lib/features/modeling/Modeling.test.ts +4 -4
- package/lib/features/modeling/behavior/AdaptiveLabelPositioningBehavior.d.ts +7 -8
- package/lib/features/modeling/behavior/AdaptiveLabelPositioningBehavior.js +7 -3
- package/lib/features/modeling/behavior/AppendBehavior.d.ts +1 -1
- package/lib/features/modeling/behavior/AssociationBehavior.d.ts +2 -2
- package/lib/features/modeling/behavior/AttachEventBehavior.d.ts +2 -2
- package/lib/features/modeling/behavior/BoundaryEventBehavior.d.ts +2 -2
- package/lib/features/modeling/behavior/CompensateBoundaryEventBehavior.d.ts +2 -2
- package/lib/features/modeling/behavior/CreateBehavior.d.ts +1 -1
- package/lib/features/modeling/behavior/CreateDataObjectBehavior.d.ts +2 -2
- package/lib/features/modeling/behavior/CreateParticipantBehavior.d.ts +3 -3
- package/lib/features/modeling/behavior/DataInputAssociationBehavior.d.ts +2 -2
- package/lib/features/modeling/behavior/DataStoreBehavior.d.ts +4 -4
- package/lib/features/modeling/behavior/DeleteLaneBehavior.d.ts +2 -2
- package/lib/features/modeling/behavior/DetachEventBehavior.d.ts +2 -2
- package/lib/features/modeling/behavior/DropOnFlowBehavior.d.ts +3 -3
- package/lib/features/modeling/behavior/EventBasedGatewayBehavior.d.ts +2 -2
- package/lib/features/modeling/behavior/FixHoverBehavior.d.ts +3 -3
- package/lib/features/modeling/behavior/GroupBehavior.d.ts +9 -9
- package/lib/features/modeling/behavior/ImportDockingFix.d.ts +1 -1
- package/lib/features/modeling/behavior/IsHorizontalFix.d.ts +1 -1
- package/lib/features/modeling/behavior/LabelBehavior.d.ts +6 -6
- package/lib/features/modeling/behavior/LayoutConnectionBehavior.d.ts +2 -2
- package/lib/features/modeling/behavior/MessageFlowBehavior.d.ts +2 -2
- package/lib/features/modeling/behavior/RemoveElementBehavior.d.ts +3 -3
- package/lib/features/modeling/behavior/RemoveEmbeddedLabelBoundsBehavior.d.ts +2 -2
- package/lib/features/modeling/behavior/RemoveParticipantBehavior.d.ts +2 -2
- package/lib/features/modeling/behavior/ReplaceConnectionBehavior.d.ts +4 -4
- package/lib/features/modeling/behavior/ReplaceElementBehaviour.d.ts +6 -6
- package/lib/features/modeling/behavior/ResizeBehavior.d.ts +5 -8
- package/lib/features/modeling/behavior/ResizeBehavior.js +3 -6
- package/lib/features/modeling/behavior/ResizeLaneBehavior.d.ts +2 -2
- package/lib/features/modeling/behavior/RootElementReferenceBehavior.d.ts +8 -8
- package/lib/features/modeling/behavior/SetCompensationActivityAfterPasteBehavior.d.ts +3 -3
- package/lib/features/modeling/behavior/SpaceToolBehavior.d.ts +2 -2
- package/lib/features/modeling/behavior/SubProcessPlaneBehavior.d.ts +10 -10
- package/lib/features/modeling/behavior/SubProcessStartEventBehavior.d.ts +2 -2
- package/lib/features/modeling/behavior/TextAnnotationBehavior.d.ts +1 -1
- package/lib/features/modeling/behavior/ToggleCollapseConnectionBehaviour.d.ts +5 -5
- package/lib/features/modeling/behavior/ToggleElementCollapseBehaviour.d.ts +3 -3
- package/lib/features/modeling/behavior/UnclaimIdBehavior.d.ts +4 -4
- package/lib/features/modeling/behavior/UnsetDefaultFlowBehavior.d.ts +2 -2
- package/lib/features/modeling/behavior/UpdateFlowNodeRefsBehavior.d.ts +2 -2
- package/lib/features/modeling/behavior/index.d.ts +1 -1
- package/lib/features/modeling/behavior/util/CategoryUtil.d.ts +6 -6
- package/lib/features/modeling/behavior/util/ConnectionLayoutUtil.d.ts +2 -2
- package/lib/features/modeling/behavior/util/LabelLayoutUtil.d.ts +4 -4
- package/lib/features/modeling/behavior/util/LayoutUtil.d.ts +2 -2
- package/lib/features/modeling/behavior/util/LineAttachmentUtil.d.ts +2 -2
- package/lib/features/modeling/behavior/util/LineIntersect.d.ts +1 -1
- package/lib/features/modeling/cmd/AddLaneHandler.d.ts +3 -3
- package/lib/features/modeling/cmd/AddLaneHandler.js +5 -10
- package/lib/features/modeling/cmd/IdClaimHandler.d.ts +2 -2
- package/lib/features/modeling/cmd/ResizeLaneHandler.d.ts +5 -5
- package/lib/features/modeling/cmd/SetColorHandler.d.ts +3 -3
- package/lib/features/modeling/cmd/SplitLaneHandler.d.ts +2 -2
- package/lib/features/modeling/cmd/UpdateCanvasRootHandler.d.ts +3 -3
- package/lib/features/modeling/cmd/UpdateFlowNodeRefsHandler.d.ts +3 -3
- package/lib/features/modeling/cmd/UpdateModdlePropertiesHandler.d.ts +4 -4
- package/lib/features/modeling/cmd/UpdatePropertiesHandler.d.ts +7 -7
- package/lib/features/modeling/cmd/UpdateSemanticParentHandler.d.ts +2 -2
- package/lib/features/modeling/index.d.ts +8 -8
- package/lib/features/modeling/util/LaneUtil.d.ts +2 -2
- package/lib/features/modeling/util/ModelingUtil.d.ts +2 -2
- package/lib/features/modeling-feedback/ModelingFeedback.d.ts +2 -2
- package/lib/features/modeling-feedback/index.d.ts +3 -3
- package/lib/features/ordering/BpmnOrderingProvider.d.ts +2 -2
- package/lib/features/ordering/index.d.ts +2 -2
- package/lib/features/outline/OutlineProvider.d.ts +4 -4
- package/lib/features/outline/OutlineUtil.d.ts +1 -1
- package/lib/features/outline/index.d.ts +3 -3
- package/lib/features/palette/PaletteProvider.d.ts +8 -8
- package/lib/features/palette/index.d.ts +3 -3
- package/lib/features/popup-menu/ReplaceMenuProvider.d.ts +15 -15
- package/lib/features/popup-menu/ReplaceMenuProvider.js +14 -16
- package/lib/features/popup-menu/index.d.ts +3 -3
- package/lib/features/popup-menu/util/TypeUtil.d.ts +2 -2
- package/lib/features/replace/BpmnReplace.d.ts +9 -11
- package/lib/features/replace/index.d.ts +2 -2
- package/lib/features/replace-preview/BpmnReplacePreview.d.ts +5 -5
- package/lib/features/replace-preview/index.d.ts +3 -3
- package/lib/features/rules/BpmnRules.d.ts +9 -9
- package/lib/features/rules/index.d.ts +3 -3
- package/lib/features/search/BpmnSearchProvider.d.ts +12 -7
- package/lib/features/search/BpmnSearchProvider.js +40 -152
- package/lib/features/search/index.d.ts +3 -3
- package/lib/features/search/index.js +3 -1
- package/lib/features/snapping/BpmnConnectSnapping.d.ts +5 -5
- package/lib/features/snapping/BpmnCreateMoveSnapping.d.ts +7 -7
- package/lib/features/snapping/BpmnSnappingUtil.d.ts +3 -3
- package/lib/features/snapping/index.d.ts +4 -4
- package/lib/features/space-tool/BpmnSpaceTool.d.ts +4 -4
- package/lib/features/space-tool/index.d.ts +2 -2
- package/lib/import/BpmnImporter.d.ts +11 -11
- package/lib/import/BpmnTreeWalker.d.ts +2 -2
- package/lib/import/Importer.d.ts +1 -1
- package/lib/import/index.d.ts +2 -2
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/util/CompatibilityUtil.d.ts +1 -1
- package/lib/util/DiUtil.d.ts +2 -2
- package/lib/util/DrilldownUtil.d.ts +2 -2
- package/lib/util/LabelUtil.d.ts +6 -6
- package/lib/util/LabelUtil.js +5 -1
- package/lib/util/ModelUtil.d.ts +2 -2
- package/lib/util/PoweredByUtil.d.ts +2 -2
- package/package.json +23 -24
- package/index.js +0 -3
package/lib/BaseModeler.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export default class BaseModeler<ServiceMap = null> extends BaseViewer<ServiceMap> {}
|
|
11
11
|
|
|
12
|
-
type BaseViewerOptions = import(
|
|
13
|
-
type ModdleElementsById = import(
|
|
14
|
-
type ModdleElement = import(
|
|
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';
|
package/lib/BaseViewer.d.ts
CHANGED
|
@@ -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(
|
|
275
|
-
type EventBusEventCallback<T> = import(
|
|
276
|
-
type ModuleDeclaration = import(
|
|
277
|
-
type Moddle = import(
|
|
278
|
-
type ModdleElement = import(
|
|
279
|
-
type ModdleExtension = import(
|
|
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]:
|
|
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:
|
|
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(
|
|
83
|
-
type ImportXMLResult = import(
|
|
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
|
|
package/lib/NavigatedViewer.d.ts
CHANGED
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(
|
|
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
|
package/lib/core/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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(
|
|
122
|
-
type Rect = import(
|
|
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(
|
|
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(
|
|
114
|
-
type Shape = import(
|
|
115
|
-
type Connection = import(
|
|
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(
|
|
74
|
-
type Rect = import(
|
|
73
|
+
type TextLayoutConfig = import("diagram-js/lib/util/Text").TextLayoutConfig;
|
|
74
|
+
type Rect = import("diagram-js/lib/util/Types").Rect;
|
package/lib/draw/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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(
|
|
27
|
-
type ContextPad = import(
|
|
28
|
-
type PopupMenu = import(
|
|
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(
|
|
31
|
-
type ContextPadEntries = import(
|
|
32
|
-
type ContextPadProvider = import(
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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(
|
|
27
|
-
type PopupMenu = import(
|
|
28
|
-
type Rules = import(
|
|
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(
|
|
31
|
-
type PopupMenuProvider = import(
|
|
32
|
-
type PopupMenuTarget = import(
|
|
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(
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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(
|
|
31
|
-
type ConnectionDocking = import(
|
|
32
|
-
type ElementFactory = import(
|
|
33
|
-
type EventBus = import(
|
|
34
|
-
type BpmnLayouter = import(
|
|
35
|
-
type Rules = import(
|
|
36
|
-
type Shape = import(
|
|
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
|
-
|
|
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
|
-
|
|
13
|
-
|
|
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(
|
|
15
|
-
type ElementRegistry = import(
|
|
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(
|
|
50
|
-
type ElementRegistry = import(
|
|
51
|
-
type Point = import(
|
|
52
|
-
type DirectionTRBL = import(
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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(
|
|
23
|
-
type Shape = import(
|
|
24
|
-
type Rect = import(
|
|
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(
|
|
24
|
-
type Modeling = import(
|
|
25
|
-
type Shape = import(
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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:
|
|
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(
|
|
43
|
-
type EventBus = import(
|
|
44
|
-
type ContextPad = import(
|
|
45
|
-
type Modeling = import(
|
|
46
|
-
type ElementFactory = import(
|
|
47
|
-
type AppendPreview = import(
|
|
48
|
-
type Connect = import(
|
|
49
|
-
type Create = import(
|
|
50
|
-
type PopupMenu = import(
|
|
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(
|
|
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(
|
|
55
|
-
type ModdleElement = import(
|
|
56
|
-
type BaseContextPadProvider = import(
|
|
57
|
-
type ContextPadEntries = import(
|
|
58
|
-
type ContextPadEntry = import(
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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(
|
|
16
|
-
type EventBus = import(
|
|
17
|
-
type ModdleCopy = import(
|
|
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(
|
|
43
|
-
type BpmnFactory = import(
|
|
44
|
-
type Moddle = import(
|
|
45
|
-
type ModdleElement = import(
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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(
|
|
11
|
-
type Canvas = import(
|
|
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
|
-
|
|
3
|
-
|
|
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(
|
|
9
|
+
type EventBus = import("diagram-js/lib/core/EventBus").default;
|
|
10
10
|
import RuleProvider from 'diagram-js/lib/features/rules/RuleProvider';
|