summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlvin Penner <penner@vaxxine.com>2009-02-08 11:12:51 +0000
committeralvinpenner <alvinpenner@users.sourceforge.net>2009-02-08 11:12:51 +0000
commit54b56c06911ac17f3febeb94d105363b3b4b9616 (patch)
treed665b1d8d1b945b80a73b23b9de02d1a0e75388f
parentgcc warning cleanup (diff)
downloadinkscape-54b56c06911ac17f3febeb94d105363b3b4b9616.tar.gz
inkscape-54b56c06911ac17f3febeb94d105363b3b4b9616.zip
scale x-axis-rotation angle in elliptical arc
(bzr r7250)
-rwxr-xr-xshare/extensions/simplepath.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/extensions/simplepath.py b/share/extensions/simplepath.py
index 4cfedcac9..f62b1b4b3 100755
--- a/share/extensions/simplepath.py
+++ b/share/extensions/simplepath.py
@@ -68,7 +68,7 @@ pathdefs = {
'S':['S', 4, [float, float, float, float], ['x','y','x','y']],
'Q':['Q', 4, [float, float, float, float], ['x','y','x','y']],
'T':['T', 2, [float, float], ['x','y']],
- 'A':['A', 7, [float, float, float, int, int, float, float], ['r','r',0,0,'s','x','y']],
+ 'A':['A', 7, [float, float, float, int, int, float, float], ['r','r','a',0,'s','x','y']],
'Z':['L', 0, [], []]
}
def parsePath(d):
@@ -189,6 +189,9 @@ def scalePath(p, x, y):
elif defs[3][i] == 's': # sweep-flag parameter
if x*y < 0:
params[i] = 1 - params[i]
+ elif defs[3][i] == 'a': # x-axis-rotation angle
+ if y < 0:
+ params[i] = - params[i]
def rotatePath(p, a, cx = 0, cy = 0):
if a == 0: