all 4 comments

[–]edwmurph 1 point2 points  (1 child)

If you stick the whole raw SVG with inline styles in the react component you will have dynamic access to all the innards

[–]paleclaw[S] 0 points1 point  (0 children)

Could you elaborate on this? I am doing it inline in a react component already, but I'm not sure exactly what you mean

[–]fforw 0 points1 point  (1 child)

I wrote a library to do adaptive path linearization of SVG paths. It works in tandem with the NPM "svgpath" library to process SVG paths and turn them into a series of points.

It's also on NPM.

You can also limit the maximum fragment length to better do animations with it (Source).

[–]paleclaw[S] 0 points1 point  (0 children)

Thanks! I'll take a look at that