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
When I leave my polyline with default width scaling the library works fine. However when I introduce vector-effect="non-scaling-stroke" to it (which keeps the line width consistent across all aspect ratios and SVG sizes), the library animates the line incorrectly.
Clearly the line length calculation (distance between points) doesn't work when the line is scaled?
The text was updated successfully, but these errors were encountered:
alexgurr
changed the title
Offset doesn't seem to be calculated properly when using vectorEffect on the line
Offset/animation doesn't seem to be calculated properly when using vectorEffect on the line
Apr 2, 2021
alexgurr
changed the title
Offset/animation doesn't seem to be calculated properly when using vectorEffect on the line
Offset/animation doesn't seem to be calculated properly when using vector-effect on the line
Apr 2, 2021
When I leave my polyline with default width scaling the library works fine. However when I introduce
vector-effect="non-scaling-stroke"
to it (which keeps the line width consistent across all aspect ratios and SVG sizes), the library animates the line incorrectly.Clearly the line length calculation (distance between points) doesn't work when the line is scaled?
Without vector effect (working):
With vector effect (not working):
SVG to reproduce
The text was updated successfully, but these errors were encountered: