summaryrefslogtreecommitdiff
path: root/lib/svg/path.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-08-25 11:47:48 -0400
committerLex Neva <github.com@lexneva.name>2018-08-25 11:47:48 -0400
commit11d3cea80caeb9738a2eb02473801487c2acba3b (patch)
tree13510f23e5041628ef96997f14d852482ff04000 /lib/svg/path.py
parentc5bd1878846c17309c99ad7554d4645088de9629 (diff)
parent6a16e90081e619eac5921bd8614c0c46dc83f852 (diff)
Merge remote-tracking branch 'origin/master' into simulator-timeline
Diffstat (limited to 'lib/svg/path.py')
-rw-r--r--lib/svg/path.py4
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"""