Open assynour opened 2 years ago
click on show conformance data button
activity SRM subprocess is filled with LinearGradient (function createLinearGradient in src/conformance.js)
After navigating or zooming the diagram, the linearGradient disappears
After inspecting the html, I found that after navigation or zooming, the LinearGradient element is still there, but the fill property of the svg rect is reinitialized.
after navigation
As a first solution, I tried to use the MutationObserver in index.js to observe changes and re-add the gradients each time a navigation or zooming is detected. I just added the code skeleton but didn't implement it yet.
ℹ️ Same root cause as in https://github.com/process-analytics/icpm-demo-2022/issues/4#issuecomment-1228709866
The gradient should be updated after navigation and/or zooming.