diff options
Diffstat (limited to 'lib/svg/path.py')
| -rw-r--r-- | lib/svg/path.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/svg/path.py b/lib/svg/path.py index 0a8dcb74..4502b2ea 100644 --- a/lib/svg/path.py +++ b/lib/svg/path.py @@ -1,8 +1,8 @@ import simpletransform -import cubicsuperpath from .units import get_viewbox_transform + def apply_transforms(path, node): transform = get_node_transform(node) @@ -11,6 +11,7 @@ def apply_transforms(path, node): return path + def get_node_transform(node): # start with the identity transform transform = [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0]] @@ -26,6 +27,7 @@ def get_node_transform(node): return transform + def get_correction_transform(node, child=False): """Get a transform to apply to new siblings or children of this SVG node""" |
