bpmn-js 13.0.3 → 13.0.4
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 +362 -113
- package/dist/bpmn-modeler.production.min.js +2 -2
- package/dist/bpmn-navigated-viewer.development.js +195 -40
- package/dist/bpmn-navigated-viewer.production.min.js +1 -1
- package/dist/bpmn-viewer.development.js +116 -32
- package/dist/bpmn-viewer.production.min.js +1 -1
- package/lib/BaseModeler.d.ts +12 -12
- package/lib/BaseViewer.d.ts +160 -160
- package/lib/Modeler.d.ts +76 -76
- package/lib/NavigatedViewer.d.ts +8 -8
- package/lib/Viewer.d.ts +44 -44
- package/lib/core/index.d.ts +10 -10
- package/lib/draw/BpmnRenderUtil.d.ts +77 -77
- package/lib/draw/BpmnRenderUtil.js +6 -6
- package/lib/draw/BpmnRenderer.d.ts +124 -124
- package/lib/draw/PathMap.d.ts +330 -330
- package/lib/draw/TextRenderer.d.ts +74 -74
- package/lib/draw/index.d.ts +10 -10
- package/lib/features/align-elements/AlignElementsContextPadProvider.d.ts +32 -32
- package/lib/features/align-elements/AlignElementsIcons.d.ts +10 -10
- package/lib/features/align-elements/AlignElementsMenuProvider.d.ts +32 -32
- package/lib/features/align-elements/BpmnAlignElements.d.ts +9 -9
- package/lib/features/align-elements/index.d.ts +11 -11
- package/lib/features/auto-place/BpmnAutoPlace.d.ts +13 -13
- package/lib/features/auto-place/BpmnAutoPlaceUtil.d.ts +47 -47
- package/lib/features/auto-place/index.d.ts +7 -7
- package/lib/features/auto-resize/BpmnAutoResize.d.ts +25 -25
- package/lib/features/auto-resize/BpmnAutoResizeProvider.d.ts +26 -26
- package/lib/features/auto-resize/index.d.ts +8 -8
- package/lib/features/context-pad/ContextPadProvider.d.ts +60 -60
- package/lib/features/context-pad/index.d.ts +7 -7
- package/lib/features/copy-paste/BpmnCopyPaste.d.ts +17 -17
- package/lib/features/copy-paste/ModdleCopy.d.ts +45 -45
- package/lib/features/copy-paste/index.d.ts +9 -9
- package/lib/features/di-ordering/BpmnDiOrdering.d.ts +11 -11
- package/lib/features/di-ordering/index.d.ts +6 -6
- package/lib/features/distribute-elements/BpmnDistributeElements.d.ts +10 -10
- package/lib/features/distribute-elements/DistributeElementsIcons.d.ts +5 -5
- package/lib/features/distribute-elements/DistributeElementsMenuProvider.d.ts +32 -32
- package/lib/features/distribute-elements/index.d.ts +9 -9
- package/lib/features/drilldown/DrilldownBreadcrumbs.d.ts +19 -19
- package/lib/features/drilldown/DrilldownCentering.d.ts +17 -17
- package/lib/features/drilldown/DrilldownOverlayBehavior.d.ts +18 -18
- package/lib/features/drilldown/SubprocessCompatibility.d.ts +21 -21
- package/lib/features/drilldown/index.d.ts +13 -13
- package/lib/features/editor-actions/BpmnEditorActions.d.ts +13 -13
- package/lib/features/editor-actions/index.d.ts +6 -6
- package/lib/features/grid-snapping/BpmnGridSnapping.d.ts +9 -9
- package/lib/features/grid-snapping/behavior/GridSnappingAutoPlaceBehavior.d.ts +12 -12
- package/lib/features/grid-snapping/behavior/GridSnappingLayoutConnectionBehavior.d.ts +27 -27
- package/lib/features/grid-snapping/behavior/GridSnappingParticipantBehavior.d.ts +13 -13
- package/lib/features/grid-snapping/behavior/index.d.ts +10 -10
- package/lib/features/grid-snapping/index.d.ts +11 -11
- package/lib/features/interaction-events/BpmnInteractionEvents.d.ts +18 -18
- package/lib/features/interaction-events/index.d.ts +6 -6
- package/lib/features/keyboard/BpmnKeyboardBindings.d.ts +15 -15
- package/lib/features/keyboard/index.d.ts +7 -7
- package/lib/features/label-editing/LabelEditingPreview.d.ts +13 -13
- package/lib/features/label-editing/LabelEditingProvider.d.ts +62 -62
- package/lib/features/label-editing/LabelUtil.d.ts +1 -1
- package/lib/features/label-editing/cmd/UpdateLabelHandler.d.ts +22 -22
- package/lib/features/label-editing/index.d.ts +9 -9
- package/lib/features/modeling/BpmnFactory.d.ts +73 -73
- package/lib/features/modeling/BpmnLayouter.d.ts +26 -26
- package/lib/features/modeling/BpmnUpdater.d.ts +92 -92
- package/lib/features/modeling/ElementFactory.d.ts +119 -119
- package/lib/features/modeling/Modeling.d.ts +150 -150
- package/lib/features/modeling/behavior/AdaptiveLabelPositioningBehavior.d.ts +20 -20
- package/lib/features/modeling/behavior/AppendBehavior.d.ts +6 -6
- package/lib/features/modeling/behavior/AssociationBehavior.d.ts +11 -11
- package/lib/features/modeling/behavior/AttachEventBehavior.d.ts +15 -15
- package/lib/features/modeling/behavior/BoundaryEventBehavior.d.ts +15 -15
- package/lib/features/modeling/behavior/CreateBehavior.d.ts +9 -9
- package/lib/features/modeling/behavior/CreateDataObjectBehavior.d.ts +15 -15
- package/lib/features/modeling/behavior/CreateParticipantBehavior.d.ts +19 -19
- package/lib/features/modeling/behavior/DataInputAssociationBehavior.d.ts +21 -21
- package/lib/features/modeling/behavior/DataStoreBehavior.d.ts +19 -19
- package/lib/features/modeling/behavior/DeleteLaneBehavior.d.ts +15 -15
- package/lib/features/modeling/behavior/DetachEventBehavior.d.ts +15 -15
- package/lib/features/modeling/behavior/DropOnFlowBehavior.d.ts +13 -13
- package/lib/features/modeling/behavior/EventBasedGatewayBehavior.d.ts +11 -11
- package/lib/features/modeling/behavior/FixHoverBehavior.d.ts +17 -17
- package/lib/features/modeling/behavior/GroupBehavior.d.ts +26 -26
- package/lib/features/modeling/behavior/ImportDockingFix.d.ts +13 -13
- package/lib/features/modeling/behavior/IsHorizontalFix.d.ts +10 -10
- package/lib/features/modeling/behavior/LabelBehavior.d.ts +56 -56
- package/lib/features/modeling/behavior/LayoutConnectionBehavior.d.ts +16 -16
- package/lib/features/modeling/behavior/MessageFlowBehavior.d.ts +15 -15
- package/lib/features/modeling/behavior/ModelingFeedback.d.ts +13 -13
- package/lib/features/modeling/behavior/RemoveElementBehavior.d.ts +13 -13
- package/lib/features/modeling/behavior/RemoveEmbeddedLabelBoundsBehavior.d.ts +16 -16
- package/lib/features/modeling/behavior/RemoveParticipantBehavior.d.ts +15 -15
- package/lib/features/modeling/behavior/ReplaceConnectionBehavior.d.ts +15 -15
- package/lib/features/modeling/behavior/ReplaceElementBehaviour.d.ts +23 -23
- package/lib/features/modeling/behavior/ResizeBehavior.d.ts +57 -57
- package/lib/features/modeling/behavior/ResizeLaneBehavior.d.ts +16 -16
- package/lib/features/modeling/behavior/RootElementReferenceBehavior.d.ts +25 -25
- package/lib/features/modeling/behavior/SpaceToolBehavior.d.ts +10 -10
- package/lib/features/modeling/behavior/SubProcessPlaneBehavior.d.ts +28 -28
- package/lib/features/modeling/behavior/SubProcessStartEventBehavior.d.ts +15 -15
- package/lib/features/modeling/behavior/ToggleCollapseConnectionBehaviour.d.ts +14 -14
- package/lib/features/modeling/behavior/ToggleElementCollapseBehaviour.d.ts +13 -13
- package/lib/features/modeling/behavior/UnclaimIdBehavior.d.ts +19 -19
- package/lib/features/modeling/behavior/UnsetDefaultFlowBehavior.d.ts +16 -16
- package/lib/features/modeling/behavior/UpdateFlowNodeRefsBehavior.d.ts +17 -17
- package/lib/features/modeling/behavior/index.d.ts +2 -2
- package/lib/features/modeling/behavior/util/CategoryUtil.d.ts +49 -49
- package/lib/features/modeling/behavior/util/ConnectionLayoutUtil.d.ts +19 -19
- package/lib/features/modeling/behavior/util/GeometricUtil.d.ts +1 -1
- package/lib/features/modeling/behavior/util/LabelLayoutUtil.d.ts +32 -32
- package/lib/features/modeling/behavior/util/LayoutUtil.d.ts +48 -48
- package/lib/features/modeling/behavior/util/LineAttachmentUtil.d.ts +37 -37
- package/lib/features/modeling/behavior/util/LineIntersect.d.ts +13 -13
- package/lib/features/modeling/behavior/util/ResizeUtil.d.ts +1 -1
- package/lib/features/modeling/cmd/AddLaneHandler.d.ts +22 -22
- package/lib/features/modeling/cmd/IdClaimHandler.d.ts +22 -22
- package/lib/features/modeling/cmd/ResizeLaneHandler.d.ts +39 -39
- package/lib/features/modeling/cmd/SetColorHandler.d.ts +18 -18
- package/lib/features/modeling/cmd/SplitLaneHandler.d.ts +22 -22
- package/lib/features/modeling/cmd/UpdateCanvasRootHandler.d.ts +20 -20
- package/lib/features/modeling/cmd/UpdateFlowNodeRefsHandler.d.ts +21 -21
- package/lib/features/modeling/cmd/UpdateModdlePropertiesHandler.d.ts +20 -20
- package/lib/features/modeling/cmd/UpdatePropertiesHandler.d.ts +60 -60
- package/lib/features/modeling/cmd/UpdateSemanticParentHandler.d.ts +18 -18
- package/lib/features/modeling/index.d.ts +27 -27
- package/lib/features/modeling/util/LaneUtil.d.ts +46 -46
- package/lib/features/modeling/util/ModelingUtil.d.ts +12 -12
- package/lib/features/ordering/BpmnOrderingProvider.d.ts +21 -21
- package/lib/features/ordering/index.d.ts +7 -7
- package/lib/features/palette/PaletteProvider.d.ts +34 -34
- package/lib/features/palette/index.d.ts +9 -9
- package/lib/features/popup-menu/ReplaceMenuProvider.d.ts +50 -50
- package/lib/features/popup-menu/index.d.ts +11 -11
- package/lib/features/popup-menu/util/TypeUtil.d.ts +14 -14
- package/lib/features/replace/BpmnReplace.d.ts +47 -47
- package/lib/features/replace/ReplaceOptions.d.ts +75 -75
- package/lib/features/replace/index.d.ts +9 -9
- package/lib/features/replace-preview/BpmnReplacePreview.d.ts +17 -17
- package/lib/features/replace-preview/index.d.ts +7 -7
- package/lib/features/rules/BpmnRules.d.ts +172 -172
- package/lib/features/rules/index.d.ts +7 -7
- package/lib/features/search/BpmnSearchProvider.d.ts +29 -29
- package/lib/features/search/index.d.ts +7 -7
- package/lib/features/snapping/BpmnConnectSnapping.d.ts +17 -17
- package/lib/features/snapping/BpmnCreateMoveSnapping.d.ts +41 -41
- package/lib/features/snapping/BpmnSnappingUtil.d.ts +11 -11
- package/lib/features/snapping/index.d.ts +9 -9
- package/lib/features/space-tool/BpmnSpaceTool.d.ts +21 -21
- package/lib/features/space-tool/index.d.ts +6 -6
- package/lib/import/BpmnImporter.d.ts +53 -53
- package/lib/import/BpmnTreeWalker.d.ts +22 -22
- package/lib/import/Importer.d.ts +25 -25
- package/lib/import/Util.d.ts +1 -1
- package/lib/import/index.d.ts +6 -6
- package/lib/model/Types.d.ts +24 -24
- package/lib/util/CompatibilityUtil.d.ts +22 -22
- package/lib/util/DiUtil.d.ts +53 -53
- package/lib/util/DrilldownUtil.d.ts +39 -39
- package/lib/util/LabelUtil.d.ts +89 -89
- package/lib/util/ModelUtil.d.ts +40 -40
- package/lib/util/PoweredByUtil.d.ts +8 -8
- package/package.json +2 -2
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Checks if eventDefinition of the given element matches with semantic type.
|
|
3
|
-
*
|
|
4
|
-
* @param event
|
|
5
|
-
* @param eventDefinitionType
|
|
6
|
-
*
|
|
7
|
-
* @return
|
|
8
|
-
*/
|
|
9
|
-
export function isTypedEvent(event: any, eventDefinitionType: string): boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Check if element is a throw event.
|
|
12
|
-
*
|
|
13
|
-
* @param event
|
|
14
|
-
*
|
|
15
|
-
* @return
|
|
16
|
-
*/
|
|
17
|
-
export function isThrowEvent(event: any): boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Check if element is a throw event.
|
|
20
|
-
*
|
|
21
|
-
* @param element
|
|
22
|
-
*
|
|
23
|
-
* @return
|
|
24
|
-
*/
|
|
25
|
-
export function isCollection(element: any): boolean;
|
|
26
|
-
/**
|
|
27
|
-
* @param element
|
|
28
|
-
* @param defaultColor
|
|
29
|
-
*
|
|
30
|
-
* @return
|
|
31
|
-
*/
|
|
32
|
-
export function getFillColor(element: any, defaultColor?: string): string;
|
|
33
|
-
/**
|
|
34
|
-
* @param element
|
|
35
|
-
* @param defaultColor
|
|
36
|
-
*
|
|
37
|
-
* @return
|
|
38
|
-
*/
|
|
39
|
-
export function getStrokeColor(element: any, defaultColor?: string): string;
|
|
40
|
-
/**
|
|
41
|
-
* @param element
|
|
42
|
-
* @param defaultColor
|
|
43
|
-
* @param defaultStrokeColor
|
|
44
|
-
*
|
|
45
|
-
* @return
|
|
46
|
-
*/
|
|
47
|
-
export function getLabelColor(element: any, defaultColor
|
|
48
|
-
/**
|
|
49
|
-
* @param shape
|
|
50
|
-
*
|
|
51
|
-
* @return path
|
|
52
|
-
*/
|
|
53
|
-
export function getCirclePath(shape: any): string;
|
|
54
|
-
/**
|
|
55
|
-
* @param shape
|
|
56
|
-
* @param borderRadius
|
|
57
|
-
*
|
|
58
|
-
* @return path
|
|
59
|
-
*/
|
|
60
|
-
export function getRoundRectPath(shape: any, borderRadius?: number): string;
|
|
61
|
-
/**
|
|
62
|
-
* @param shape
|
|
63
|
-
*
|
|
64
|
-
* @return path
|
|
65
|
-
*/
|
|
66
|
-
export function getDiamondPath(shape: any): string;
|
|
67
|
-
/**
|
|
68
|
-
* @param shape
|
|
69
|
-
*
|
|
70
|
-
* @return path
|
|
71
|
-
*/
|
|
72
|
-
export function getRectPath(shape: any): string;
|
|
73
|
-
export const black: string;
|
|
74
|
-
export type ModdleElement = any;
|
|
75
|
-
export type
|
|
76
|
-
export type ShapeLike = any;
|
|
77
|
-
export { getDi, getBusinessObject as getSemantic } from "../util/ModelUtil";
|
|
1
|
+
/**
|
|
2
|
+
* Checks if eventDefinition of the given element matches with semantic type.
|
|
3
|
+
*
|
|
4
|
+
* @param event
|
|
5
|
+
* @param eventDefinitionType
|
|
6
|
+
*
|
|
7
|
+
* @return
|
|
8
|
+
*/
|
|
9
|
+
export function isTypedEvent(event: any, eventDefinitionType: string): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Check if element is a throw event.
|
|
12
|
+
*
|
|
13
|
+
* @param event
|
|
14
|
+
*
|
|
15
|
+
* @return
|
|
16
|
+
*/
|
|
17
|
+
export function isThrowEvent(event: any): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Check if element is a throw event.
|
|
20
|
+
*
|
|
21
|
+
* @param element
|
|
22
|
+
*
|
|
23
|
+
* @return
|
|
24
|
+
*/
|
|
25
|
+
export function isCollection(element: any): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @param element
|
|
28
|
+
* @param defaultColor
|
|
29
|
+
*
|
|
30
|
+
* @return
|
|
31
|
+
*/
|
|
32
|
+
export function getFillColor(element: any, defaultColor?: string): string;
|
|
33
|
+
/**
|
|
34
|
+
* @param element
|
|
35
|
+
* @param defaultColor
|
|
36
|
+
*
|
|
37
|
+
* @return
|
|
38
|
+
*/
|
|
39
|
+
export function getStrokeColor(element: any, defaultColor?: string): string;
|
|
40
|
+
/**
|
|
41
|
+
* @param element
|
|
42
|
+
* @param defaultColor
|
|
43
|
+
* @param defaultStrokeColor
|
|
44
|
+
*
|
|
45
|
+
* @return
|
|
46
|
+
*/
|
|
47
|
+
export function getLabelColor(element: any, defaultColor?: string, defaultStrokeColor?: string): string;
|
|
48
|
+
/**
|
|
49
|
+
* @param shape
|
|
50
|
+
*
|
|
51
|
+
* @return path
|
|
52
|
+
*/
|
|
53
|
+
export function getCirclePath(shape: any): string;
|
|
54
|
+
/**
|
|
55
|
+
* @param shape
|
|
56
|
+
* @param borderRadius
|
|
57
|
+
*
|
|
58
|
+
* @return path
|
|
59
|
+
*/
|
|
60
|
+
export function getRoundRectPath(shape: any, borderRadius?: number): string;
|
|
61
|
+
/**
|
|
62
|
+
* @param shape
|
|
63
|
+
*
|
|
64
|
+
* @return path
|
|
65
|
+
*/
|
|
66
|
+
export function getDiamondPath(shape: any): string;
|
|
67
|
+
/**
|
|
68
|
+
* @param shape
|
|
69
|
+
*
|
|
70
|
+
* @return path
|
|
71
|
+
*/
|
|
72
|
+
export function getRectPath(shape: any): string;
|
|
73
|
+
export const black: string;
|
|
74
|
+
export type ModdleElement = any;
|
|
75
|
+
export type Element = any;
|
|
76
|
+
export type ShapeLike = any;
|
|
77
|
+
export { getDi, getBusinessObject as getSemantic } from "../util/ModelUtil";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @typedef {import('../model').ModdleElement} ModdleElement
|
|
16
|
-
* @typedef {import('../model').
|
|
16
|
+
* @typedef {import('../model').Element} Element
|
|
17
17
|
*
|
|
18
18
|
* @typedef {import('../model').ShapeLike} ShapeLike
|
|
19
19
|
*/
|
|
@@ -71,7 +71,7 @@ export function isCollection(element) {
|
|
|
71
71
|
// color access //////////////////////
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
|
-
* @param {
|
|
74
|
+
* @param {Element} element
|
|
75
75
|
* @param {string} [defaultColor]
|
|
76
76
|
*
|
|
77
77
|
* @return {string}
|
|
@@ -83,7 +83,7 @@ export function getFillColor(element, defaultColor) {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
|
-
* @param {
|
|
86
|
+
* @param {Element} element
|
|
87
87
|
* @param {string} [defaultColor]
|
|
88
88
|
*
|
|
89
89
|
* @return {string}
|
|
@@ -95,9 +95,9 @@ export function getStrokeColor(element, defaultColor) {
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
|
-
* @param {
|
|
99
|
-
* @param {string} defaultColor
|
|
100
|
-
* @param {string} defaultStrokeColor
|
|
98
|
+
* @param {Element} element
|
|
99
|
+
* @param {string} [defaultColor]
|
|
100
|
+
* @param {string} [defaultStrokeColor]
|
|
101
101
|
*
|
|
102
102
|
* @return {string}
|
|
103
103
|
*/
|
|
@@ -1,124 +1,124 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A renderer for BPMN elements
|
|
3
|
-
*
|
|
4
|
-
*/
|
|
5
|
-
export default class BpmnRenderer extends BaseRenderer {
|
|
6
|
-
static $inject: string[];
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @param config
|
|
10
|
-
* @param eventBus
|
|
11
|
-
* @param styles
|
|
12
|
-
* @param pathMap
|
|
13
|
-
* @param canvas
|
|
14
|
-
* @param textRenderer
|
|
15
|
-
* @param priority
|
|
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);
|
|
18
|
-
|
|
19
|
-
handlers: {
|
|
20
|
-
'bpmn:Event': (parentGfx: any, element: any, attrs: any) => SVGCircleElement;
|
|
21
|
-
'bpmn:StartEvent': (parentGfx: any, element: any) => any;
|
|
22
|
-
'bpmn:MessageEventDefinition': (parentGfx: any, element: any, isThrowing: any) => SVGPathElement;
|
|
23
|
-
'bpmn:TimerEventDefinition': (parentGfx: any, element: any) => SVGCircleElement;
|
|
24
|
-
'bpmn:EscalationEventDefinition': (parentGfx: any, event: any, isThrowing: any) => SVGPathElement;
|
|
25
|
-
'bpmn:ConditionalEventDefinition': (parentGfx: any, event: any) => SVGPathElement;
|
|
26
|
-
'bpmn:LinkEventDefinition': (parentGfx: any, event: any, isThrowing: any) => SVGPathElement;
|
|
27
|
-
'bpmn:ErrorEventDefinition': (parentGfx: any, event: any, isThrowing: any) => SVGPathElement;
|
|
28
|
-
'bpmn:CancelEventDefinition': (parentGfx: any, event: any, isThrowing: any) => SVGPathElement;
|
|
29
|
-
'bpmn:CompensateEventDefinition': (parentGfx: any, event: any, isThrowing: any) => SVGPathElement;
|
|
30
|
-
'bpmn:SignalEventDefinition': (parentGfx: any, event: any, isThrowing: any) => SVGPathElement;
|
|
31
|
-
'bpmn:MultipleEventDefinition': (parentGfx: any, event: any, isThrowing: any) => SVGPathElement;
|
|
32
|
-
'bpmn:ParallelMultipleEventDefinition': (parentGfx: any, event: any) => SVGPathElement;
|
|
33
|
-
'bpmn:EndEvent': (parentGfx: any, element: any) => any;
|
|
34
|
-
'bpmn:TerminateEventDefinition': (parentGfx: any, element: any) => SVGCircleElement;
|
|
35
|
-
'bpmn:IntermediateEvent': (parentGfx: any, element: any) => any;
|
|
36
|
-
'bpmn:IntermediateCatchEvent': (parentGfx: any, element: any) => any;
|
|
37
|
-
'bpmn:IntermediateThrowEvent': (parentGfx: any, element: any) => any;
|
|
38
|
-
'bpmn:Activity': (parentGfx: any, element: any, attrs: any) => SVGRectElement;
|
|
39
|
-
'bpmn:Task': (parentGfx: any, element: any) => any;
|
|
40
|
-
'bpmn:ServiceTask': (parentGfx: any, element: any) => any;
|
|
41
|
-
'bpmn:UserTask': (parentGfx: any, element: any) => any;
|
|
42
|
-
'bpmn:ManualTask': (parentGfx: any, element: any) => any;
|
|
43
|
-
'bpmn:SendTask': (parentGfx: any, element: any) => any;
|
|
44
|
-
'bpmn:ReceiveTask': (parentGfx: any, element: any) => any;
|
|
45
|
-
'bpmn:ScriptTask': (parentGfx: any, element: any) => any;
|
|
46
|
-
'bpmn:BusinessRuleTask': (parentGfx: any, element: any) => any;
|
|
47
|
-
'bpmn:SubProcess': (parentGfx: any, element: any, attrs: any) => any;
|
|
48
|
-
'bpmn:AdHocSubProcess': (parentGfx: any, element: any) => any;
|
|
49
|
-
'bpmn:Transaction': (parentGfx: any, element: any) => any;
|
|
50
|
-
'bpmn:CallActivity': (parentGfx: any, element: any) => any;
|
|
51
|
-
'bpmn:Participant': (parentGfx: any, element: any) => any;
|
|
52
|
-
'bpmn:Lane': (parentGfx: any, element: any, attrs: any) => SVGRectElement;
|
|
53
|
-
'bpmn:InclusiveGateway': (parentGfx: any, element: any) => any;
|
|
54
|
-
'bpmn:ExclusiveGateway': (parentGfx: any, element: any) => any;
|
|
55
|
-
'bpmn:ComplexGateway': (parentGfx: any, element: any) => any;
|
|
56
|
-
'bpmn:ParallelGateway': (parentGfx: any, element: any) => any;
|
|
57
|
-
'bpmn:EventBasedGateway': (parentGfx: any, element: any) => any;
|
|
58
|
-
'bpmn:Gateway': (parentGfx: any, element: any) => SVGPolygonElement;
|
|
59
|
-
'bpmn:SequenceFlow': (parentGfx: any, element: any) => SVGElement;
|
|
60
|
-
'bpmn:Association': (parentGfx: any, element: any, attrs: any) => SVGElement;
|
|
61
|
-
'bpmn:DataInputAssociation': (parentGfx: any, element: any) => any;
|
|
62
|
-
'bpmn:DataOutputAssociation': (parentGfx: any, element: any) => any;
|
|
63
|
-
'bpmn:MessageFlow': (parentGfx: any, element: any) => SVGElement;
|
|
64
|
-
'bpmn:DataObject': (parentGfx: any, element: any) => SVGPathElement;
|
|
65
|
-
'bpmn:DataObjectReference': (parentGfx: any, element: any) => any;
|
|
66
|
-
'bpmn:DataInput': (parentGfx: any, element: any) => any;
|
|
67
|
-
'bpmn:DataOutput': (parentGfx: any, element: any) => any;
|
|
68
|
-
'bpmn:DataStoreReference': (parentGfx: any, element: any) => SVGPathElement;
|
|
69
|
-
'bpmn:BoundaryEvent': (parentGfx: any, element: any) => any;
|
|
70
|
-
'bpmn:Group': (parentGfx: any, element: any) => SVGRectElement;
|
|
71
|
-
label: (parentGfx: any, element: any) => SVGElement;
|
|
72
|
-
'bpmn:TextAnnotation': (parentGfx: any, element: any) => SVGRectElement;
|
|
73
|
-
ParticipantMultiplicityMarker: (parentGfx: any, element: any) => void;
|
|
74
|
-
SubProcessMarker: (parentGfx: any, element: any) => void;
|
|
75
|
-
ParallelMarker: (parentGfx: any, element: any, position: any) => void;
|
|
76
|
-
SequentialMarker: (parentGfx: any, element: any, position: any) => void;
|
|
77
|
-
CompensationMarker: (parentGfx: any, element: any, position: any) => void;
|
|
78
|
-
LoopMarker: (parentGfx: any, element: any, position: any) => void;
|
|
79
|
-
AdhocMarker: (parentGfx: any, element: any, position: any) => void;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @param element
|
|
84
|
-
*
|
|
85
|
-
* @return
|
|
86
|
-
*/
|
|
87
|
-
canRender(element: any): boolean;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Draw shape into parentGfx.
|
|
91
|
-
*
|
|
92
|
-
* @param parentGfx
|
|
93
|
-
* @param element
|
|
94
|
-
*
|
|
95
|
-
* @return mainGfx
|
|
96
|
-
*/
|
|
97
|
-
drawShape(parentGfx: SVGElement, element: any): SVGElement;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Draw connection into parentGfx.
|
|
101
|
-
*
|
|
102
|
-
* @param parentGfx
|
|
103
|
-
* @param element
|
|
104
|
-
*
|
|
105
|
-
* @return mainGfx
|
|
106
|
-
*/
|
|
107
|
-
drawConnection(parentGfx: SVGElement, element: any): SVGElement;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Get shape path.
|
|
111
|
-
*
|
|
112
|
-
* @param element
|
|
113
|
-
*
|
|
114
|
-
* @return path
|
|
115
|
-
*/
|
|
116
|
-
getShapePath(element: any): string;
|
|
117
|
-
}
|
|
118
|
-
export type BpmnRendererConfig = Partial<{
|
|
119
|
-
defaultFillColor: string;
|
|
120
|
-
defaultStrokeColor: string;
|
|
121
|
-
defaultLabelColor: string;
|
|
122
|
-
}>;
|
|
123
|
-
export type DiagramElement = any;
|
|
124
|
-
import BaseRenderer from 'diagram-js/lib/draw/BaseRenderer';
|
|
1
|
+
/**
|
|
2
|
+
* A renderer for BPMN elements
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
export default class BpmnRenderer extends BaseRenderer {
|
|
6
|
+
static $inject: string[];
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @param config
|
|
10
|
+
* @param eventBus
|
|
11
|
+
* @param styles
|
|
12
|
+
* @param pathMap
|
|
13
|
+
* @param canvas
|
|
14
|
+
* @param textRenderer
|
|
15
|
+
* @param priority
|
|
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);
|
|
18
|
+
|
|
19
|
+
handlers: {
|
|
20
|
+
'bpmn:Event': (parentGfx: any, element: any, attrs: any) => SVGCircleElement;
|
|
21
|
+
'bpmn:StartEvent': (parentGfx: any, element: any) => any;
|
|
22
|
+
'bpmn:MessageEventDefinition': (parentGfx: any, element: any, isThrowing: any) => SVGPathElement;
|
|
23
|
+
'bpmn:TimerEventDefinition': (parentGfx: any, element: any) => SVGCircleElement;
|
|
24
|
+
'bpmn:EscalationEventDefinition': (parentGfx: any, event: any, isThrowing: any) => SVGPathElement;
|
|
25
|
+
'bpmn:ConditionalEventDefinition': (parentGfx: any, event: any) => SVGPathElement;
|
|
26
|
+
'bpmn:LinkEventDefinition': (parentGfx: any, event: any, isThrowing: any) => SVGPathElement;
|
|
27
|
+
'bpmn:ErrorEventDefinition': (parentGfx: any, event: any, isThrowing: any) => SVGPathElement;
|
|
28
|
+
'bpmn:CancelEventDefinition': (parentGfx: any, event: any, isThrowing: any) => SVGPathElement;
|
|
29
|
+
'bpmn:CompensateEventDefinition': (parentGfx: any, event: any, isThrowing: any) => SVGPathElement;
|
|
30
|
+
'bpmn:SignalEventDefinition': (parentGfx: any, event: any, isThrowing: any) => SVGPathElement;
|
|
31
|
+
'bpmn:MultipleEventDefinition': (parentGfx: any, event: any, isThrowing: any) => SVGPathElement;
|
|
32
|
+
'bpmn:ParallelMultipleEventDefinition': (parentGfx: any, event: any) => SVGPathElement;
|
|
33
|
+
'bpmn:EndEvent': (parentGfx: any, element: any) => any;
|
|
34
|
+
'bpmn:TerminateEventDefinition': (parentGfx: any, element: any) => SVGCircleElement;
|
|
35
|
+
'bpmn:IntermediateEvent': (parentGfx: any, element: any) => any;
|
|
36
|
+
'bpmn:IntermediateCatchEvent': (parentGfx: any, element: any) => any;
|
|
37
|
+
'bpmn:IntermediateThrowEvent': (parentGfx: any, element: any) => any;
|
|
38
|
+
'bpmn:Activity': (parentGfx: any, element: any, attrs: any) => SVGRectElement;
|
|
39
|
+
'bpmn:Task': (parentGfx: any, element: any) => any;
|
|
40
|
+
'bpmn:ServiceTask': (parentGfx: any, element: any) => any;
|
|
41
|
+
'bpmn:UserTask': (parentGfx: any, element: any) => any;
|
|
42
|
+
'bpmn:ManualTask': (parentGfx: any, element: any) => any;
|
|
43
|
+
'bpmn:SendTask': (parentGfx: any, element: any) => any;
|
|
44
|
+
'bpmn:ReceiveTask': (parentGfx: any, element: any) => any;
|
|
45
|
+
'bpmn:ScriptTask': (parentGfx: any, element: any) => any;
|
|
46
|
+
'bpmn:BusinessRuleTask': (parentGfx: any, element: any) => any;
|
|
47
|
+
'bpmn:SubProcess': (parentGfx: any, element: any, attrs: any) => any;
|
|
48
|
+
'bpmn:AdHocSubProcess': (parentGfx: any, element: any) => any;
|
|
49
|
+
'bpmn:Transaction': (parentGfx: any, element: any) => any;
|
|
50
|
+
'bpmn:CallActivity': (parentGfx: any, element: any) => any;
|
|
51
|
+
'bpmn:Participant': (parentGfx: any, element: any) => any;
|
|
52
|
+
'bpmn:Lane': (parentGfx: any, element: any, attrs: any) => SVGRectElement;
|
|
53
|
+
'bpmn:InclusiveGateway': (parentGfx: any, element: any) => any;
|
|
54
|
+
'bpmn:ExclusiveGateway': (parentGfx: any, element: any) => any;
|
|
55
|
+
'bpmn:ComplexGateway': (parentGfx: any, element: any) => any;
|
|
56
|
+
'bpmn:ParallelGateway': (parentGfx: any, element: any) => any;
|
|
57
|
+
'bpmn:EventBasedGateway': (parentGfx: any, element: any) => any;
|
|
58
|
+
'bpmn:Gateway': (parentGfx: any, element: any) => SVGPolygonElement;
|
|
59
|
+
'bpmn:SequenceFlow': (parentGfx: any, element: any) => SVGElement;
|
|
60
|
+
'bpmn:Association': (parentGfx: any, element: any, attrs: any) => SVGElement;
|
|
61
|
+
'bpmn:DataInputAssociation': (parentGfx: any, element: any) => any;
|
|
62
|
+
'bpmn:DataOutputAssociation': (parentGfx: any, element: any) => any;
|
|
63
|
+
'bpmn:MessageFlow': (parentGfx: any, element: any) => SVGElement;
|
|
64
|
+
'bpmn:DataObject': (parentGfx: any, element: any) => SVGPathElement;
|
|
65
|
+
'bpmn:DataObjectReference': (parentGfx: any, element: any) => any;
|
|
66
|
+
'bpmn:DataInput': (parentGfx: any, element: any) => any;
|
|
67
|
+
'bpmn:DataOutput': (parentGfx: any, element: any) => any;
|
|
68
|
+
'bpmn:DataStoreReference': (parentGfx: any, element: any) => SVGPathElement;
|
|
69
|
+
'bpmn:BoundaryEvent': (parentGfx: any, element: any) => any;
|
|
70
|
+
'bpmn:Group': (parentGfx: any, element: any) => SVGRectElement;
|
|
71
|
+
label: (parentGfx: any, element: any) => SVGElement;
|
|
72
|
+
'bpmn:TextAnnotation': (parentGfx: any, element: any) => SVGRectElement;
|
|
73
|
+
ParticipantMultiplicityMarker: (parentGfx: any, element: any) => void;
|
|
74
|
+
SubProcessMarker: (parentGfx: any, element: any) => void;
|
|
75
|
+
ParallelMarker: (parentGfx: any, element: any, position: any) => void;
|
|
76
|
+
SequentialMarker: (parentGfx: any, element: any, position: any) => void;
|
|
77
|
+
CompensationMarker: (parentGfx: any, element: any, position: any) => void;
|
|
78
|
+
LoopMarker: (parentGfx: any, element: any, position: any) => void;
|
|
79
|
+
AdhocMarker: (parentGfx: any, element: any, position: any) => void;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @param element
|
|
84
|
+
*
|
|
85
|
+
* @return
|
|
86
|
+
*/
|
|
87
|
+
canRender(element: any): boolean;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Draw shape into parentGfx.
|
|
91
|
+
*
|
|
92
|
+
* @param parentGfx
|
|
93
|
+
* @param element
|
|
94
|
+
*
|
|
95
|
+
* @return mainGfx
|
|
96
|
+
*/
|
|
97
|
+
drawShape(parentGfx: SVGElement, element: any): SVGElement;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Draw connection into parentGfx.
|
|
101
|
+
*
|
|
102
|
+
* @param parentGfx
|
|
103
|
+
* @param element
|
|
104
|
+
*
|
|
105
|
+
* @return mainGfx
|
|
106
|
+
*/
|
|
107
|
+
drawConnection(parentGfx: SVGElement, element: any): SVGElement;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Get shape path.
|
|
111
|
+
*
|
|
112
|
+
* @param element
|
|
113
|
+
*
|
|
114
|
+
* @return path
|
|
115
|
+
*/
|
|
116
|
+
getShapePath(element: any): string;
|
|
117
|
+
}
|
|
118
|
+
export type BpmnRendererConfig = Partial<{
|
|
119
|
+
defaultFillColor: string;
|
|
120
|
+
defaultStrokeColor: string;
|
|
121
|
+
defaultLabelColor: string;
|
|
122
|
+
}>;
|
|
123
|
+
export type DiagramElement = any;
|
|
124
|
+
import BaseRenderer from 'diagram-js/lib/draw/BaseRenderer';
|