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
if I parse('M 0 12.5 L 28 12.5 M 12.5 0 L 12.5 28')
it returns serialized: M 0 12.5 C 0 12.5 28 12.5 28 12.5 C 12.5 0 12.5 28 12.5 28
which is wrong svg.
Currently I looked at the code & if i do const segments: SVGNormalizedCommands = normalizeSVG(absSVG(parseSVG(d)))
& serialize segments back to the string, it work ok. So problem is somewhere else :(
Thanks for help! :)
The text was updated successfully, but these errors were encountered:
Indeed, it normalizes path as a sequence of bezier curves (for interpolation) so it won't return the same commands but the path should look the same when you draw it. does this helps?
I have mismatch with parsing svgPath...
if I parse('M 0 12.5 L 28 12.5 M 12.5 0 L 12.5 28')
it returns serialized: M 0 12.5 C 0 12.5 28 12.5 28 12.5 C 12.5 0 12.5 28 12.5 28
which is wrong svg.
Currently I looked at the code & if i do
const segments: SVGNormalizedCommands = normalizeSVG(absSVG(parseSVG(d)))
& serialize segments back to the string, it work ok. So problem is somewhere else :(
Thanks for help! :)
The text was updated successfully, but these errors were encountered: