Skip to content

Exponent notation is not parsed correctly in transform attribute #83

@OzymandiasTheGreat

Description

@OzymandiasTheGreat

So this took me couple hours to debug. When parsing transform attribute and using toSVG on it, it's not uncommon to get values in exponent notation. Upon parsing these values again, exponent part is ignored and we get a very different matrix.
You should either update the parser or if that's not viable, you could check for exponent and apply some rounding.
I don't think dropping decimals that far down would affect results in any way.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions