process-analytics / bpmn-visualization-js

A TypeScript library for visualizing process execution data on BPMN diagrams
https://process-analytics.github.io/bpmn-visualization-js/
Apache License 2.0
216 stars 29 forks source link

[FEAT] Study "having a way to add overlays to the BPMN Diagram" #955

Closed tbouffard closed 3 years ago

tbouffard commented 3 years ago

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

aibcmars commented 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

tbouffard commented 3 years ago

Decisions after Team review

General

Parts of the MVP

To implement later as improvements

tbouffard commented 3 years ago

Decisions taken and issues created, so closing this issue.