process-analytics / icpm-demo-2022

The demo presented at ICPM 2022
https://process-analytics.github.io/icpm-demo-2022/
Apache License 2.0
3 stars 1 forks source link

conformance-data/LinearGradient: it shouldn't disappear after navigation #2

Open assynour opened 2 years ago

assynour commented 2 years ago

The gradient should be updated after navigation and/or zooming.

assynour commented 2 years ago
assynour commented 2 years ago

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 svg-linearGradient1

assynour commented 2 years ago

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.

tbouffard commented 1 year ago

ℹ️ Same root cause as in https://github.com/process-analytics/icpm-demo-2022/issues/4#issuecomment-1228709866