Closed tbouffard closed 3 years ago
We have decided with @csouchet and @tbouffard to use mxCellOverlay for badges / overlays | mxCellOverlay | SVG.JS | popperJS (lite) |
---|---|---|---|
POC | #1112 | #1118 #1140 | #1098 |
size | 0 KB | 192 KB | 68 KB |
decoupling | coupled | decoupled | decoupled |
possibility of adding / removing badge/overlay | yes | yes | yes |
categories of overlays / badges | yes , deferrent types possible | yes | yes |
behaviour of badges (pan zoom of diagram) | it zooms along with diagram | doable / we need to recalculate the size | panning yes, zoom - perhaps / to checkby default it follows the diagram behaviour |
interactivity | yes, native with mxEvent | yes | yes |
positioning | 9 positions by default (can be customized by type) | custom | default and customizable offset |
flexibility of customization (appearance) | predefined appearanceSVG customizable to be checked with foreignObject if not Shapes like for BPMN elements | predefined appearanceSVG customizable | fully flexible |
performance | seems aligned with general mxGraph performance | hard to compare due tu differences in integration | |
DECISION: | based on above comparison | ||
mxCellOverlay |
Prerequisites
mxCellOverlay
on Edge and check if we can reuse the same position values as for shape. See #1112General
bpmn-visualization
or in another liboverlay
wording. Badges is too restrictive and we want a more generic word hereParts of the MVP
To implement later as improvements
bpmn-visualization
appends overlays at a position depending on the already existing overlaysDecisions taken and issues created, so closing this issue.
Is your feature request related to a problem? Please describe. Overlays are required to cover a large amount of use case to enrich the BPMN diagram with runtime and execution data
Describe the solution you'd like We could provide a flexible way for integration to configure the overlays
We may need