lunasvg icon indicating copy to clipboard operation
lunasvg copied to clipboard

Local transformations and high-level function capable of simplifying some tasks

Open rossanoparis opened this issue 10 months ago • 2 comments

I noticed a commit [ Add getBBox and getLocalTransform ]

Which mentions local and absolute transformations, transformations stand for rotation scale and so on? How it works?

Another inquiry I'd like to address pertains to the attached object, which serves as an example of what I mean. Could you suggest an easy method, or perhaps implement a feature in your library capable of changing the primary color to another?

For instance, the main color of the attached object is currently green. However, if I wish to change it to red, the process becomes complex, requiring digging into the SVG structure to locate and modify relevant IDs. While this is not necessarily a problem, it would be advantageous to have a high-level function capable of simplifying this task

attached object glossy-green-button.zip

rossanoparis avatar Apr 09 '24 12:04 rossanoparis