bupaverse / processanimateR

Token replay animation for process maps created with processmapR by using SVG animations (SMIL) and the htmlwidget package.
https://bupaverse.github.io/processanimateR/
Other
66 stars 11 forks source link

Better visualisation of token going out of start and going to end node #10

Closed serkserk closed 6 years ago

serkserk commented 6 years ago

Hello, firstly thank you for this package, it's very helpfull !

I was wondering is there is any way to change the way token appear and disapear when coming out of start node and going into end node: For example, in the traffic fine demo, I had a hard time seing any token on the bottom edge even if it said 185 because they just spawned at the end while I was looking on the other part off the edge : image

fmannhardt commented 6 years ago

I just committed a change that adds an epsilon_time parameter. This parameter makes the time assigned to 'zero' (or almost zero) duration transitions configurable. It works by adding the epsilon_time value to every duration used to calculate the animation. So be careful not to assign to large values since this introduces time that is actually not spend in the process. It is initialised to 1/1000th of the duration so that it should not have a big impact for most processes.

Does this help? If you have a better idea how to deal with this please let me know.

serkserk commented 6 years ago

I just tried it and it work great, I can clearly see when a process start or end now Thank you !