summaryrefslogtreecommitdiff
path: root/lib/svg/path.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-08-21 20:32:50 -0400
committerLex Neva <github.com@lexneva.name>2018-08-21 20:32:50 -0400
commit038875f876d79d0f1e971886fe42f5bee4f9f31e (patch)
tree296c60d3b490f988802f9bec884eed32dcbf9c0c /lib/svg/path.py
parentf26042f477f1520443b1d9dad0bb88ef3ad7ca47 (diff)
autopep8
Diffstat (limited to 'lib/svg/path.py')
-rw-r--r--lib/svg/path.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/svg/path.py b/lib/svg/path.py
index 0a8dcb74..51100e38 100644
--- a/lib/svg/path.py
+++ b/lib/svg/path.py
@@ -3,6 +3,7 @@ import cubicsuperpath
from .units import get_viewbox_transform
+
def apply_transforms(path, node):
transform = get_node_transform(node)
@@ -11,6 +12,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 +28,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"""