How to apply transforms to paths, rectangles etc.
Demo case (will attach svg): I have two rectangles with identical calculated sizes that I wish to apply the same filter to. Currently the filter comes out radically differently on each rectangle.
Excepting the demo case with two colour-filled rectangles, in my real world problem these numerous rectangles have been positioned and sized over many hours designing; they contain carefully positioned pattern fills.
The problem is that the rectangles (happy to use paths that describe rectangle but interested in both cases), which have been scaled as part of a group, have different co-ordinate lengths and transforms, even though the result of the combination of those is the same set of lengths. e.g. one might be d='m 0,0 v 1 h 1 v-1 z' with an identity/no transform, and the other might be d='m 0,0 v2 h2 v-2 z' with a transform that scales it 50%.
It seems the filters are applied on the pre-transformed size, meaning that when the filter is applied to the second it is "zoomed in", for want of a better description.
I've come across this problem lots of times, e.g. text sizes are another example, where you want to apply the scale transform to the actual lengths. For a path made of nodes, this seems at least a possibility for any transform matrix; I understand that you can't apply all transforms on other native objects like shapes or text.
Is there a way to do this sort of transform normalization?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Inkscape Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask shinyblue for more information if necessary.