Skip to content
This repository has been archived by the owner on Oct 30, 2021. It is now read-only.

Add support for gradientTransform matrix #238

Open
ghost opened this issue Jun 3, 2021 · 4 comments
Open

Add support for gradientTransform matrix #238

ghost opened this issue Jun 3, 2021 · 4 comments

Comments

@ghost
Copy link

ghost commented Jun 3, 2021

Doesn't minify a or with a gradientTransform attribute set to a matrix() function.

@RazrFalcon
Copy link
Owner

gradientTransform is supported.

@ghost
Copy link
Author

ghost commented Jun 4, 2021

I had an SVG with gradientTransform="matrix(0.03 0 0 0.3 2 2)" but this was not processed so I did it manually :/ Are you sure matrix() is supported as well as transform() and/or scale()

@RazrFalcon
Copy link
Owner

Only proportional scale and translate are supported. Everything else cannot be applied.
I'm not sure how exactly you're applying it manually.

@ghost
Copy link
Author

ghost commented Jun 4, 2021

I calculated the translated and scaled gradient handles, then checked my working with Inkscape.

Gradients are simple to support this feature with, I assume paths are much more complex

https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/scale()

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant