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
Is it possible to NOT flatten the transformation matrices when saving the .svg output file?
I'm doing this kind of steps for a project:
read all parent groups of an svg element
read all transforms matrices of the parent groups
convert all svg transform matrices in numpy arrays
concatenate all transforms in a single matrix using numpy matrix multiplication (@ operator)
make a lot of numpy/scipy complex computations that ends producing a final numpy transform matrix
apply this transform matrix to one or more groups of elements in the svg file but without applying the transform and flattening the paths
save the resulting svg file (with the resulting transform matrix still explicitly written in the transform attribute of the parent group, so I can add or remove elements from the group, or move an element from a group to another, without any changes to the elements/paths).
Currently it is impossible to do this with the svgpathtools API.
The text was updated successfully, but these errors were encountered:
Is it possible to NOT flatten the transformation matrices when saving the .svg output file?
I'm doing this kind of steps for a project:
Currently it is impossible to do this with the svgpathtools API.
The text was updated successfully, but these errors were encountered: