You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Svelte introduces runes and changes to event.
I rewrote your component using svelte 5 and typescript.
I do not know your opinion on typescript and therefore did not create pull request.
BTW, the update interval is 2 milliseconds (while (duration / ((value - initial) / step) < 2) {) this is way too aggressive. I would suggest set something as 50ms.
Persistence of Vision: ~50 milliseconds.
Average Visual Reaction Time: 200-250 milliseconds.
High-Speed Perception: Can be as fast as 100 milliseconds in trained individuals.
Thank you.
Using runes is not backward compatible so the component will be incompatible with all Svelte 4 and Svelte 3 apps if we use runes.
I think it's still too soon. Especially when stable version of Svelte 5 is not released yet.
Svelte introduces runes and changes to event.
I rewrote your component using svelte 5 and typescript.
I do not know your opinion on typescript and therefore did not create pull request.
Here is the code for your reference:
The text was updated successfully, but these errors were encountered: