Don't flip SVG Y values anymore, since we're working in pixel space these days,

and the Y transforms just make working with the SVG directly -- for example,
with people modifying it to support text -- more difficult than it should be.


git-svn-id: http://svn.openlayers.org/trunk/openlayers@5430 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-12-15 16:24:31 +00:00
parent fb3c02354f
commit 45c420782c
2 changed files with 7 additions and 14 deletions
+3 -3
View File
@@ -144,7 +144,7 @@
r.drawCircle(node, geometry, 3);
t.eq(node.getAttributeNS(null, 'cx'), '2', "cx is correct");
t.eq(node.getAttributeNS(null, 'cy'), '4', "cy is correct");
t.eq(node.getAttributeNS(null, 'cy'), '-4', "cy is correct");
t.eq(node.getAttributeNS(null, 'r'), '3', "r is correct");
}
@@ -271,7 +271,7 @@
r.drawRectangle(node, geometry);
t.eq(node.getAttributeNS(null, "x"), "2", "x attribute is correctly set");
t.eq(node.getAttributeNS(null, "y"), "4", "y attribute is correctly set");
t.eq(node.getAttributeNS(null, "y"), "-4", "y attribute is correctly set");
t.eq(node.getAttributeNS(null, "width"), "6", "width attribute is correctly set");
t.eq(node.getAttributeNS(null, "height"), "8", "height attribute is correctly set");
}
@@ -355,7 +355,7 @@
};
var string = r.getShortString(point);
t.eq(string, "2,4", "returned string is correct");
t.eq(string, "2,-4", "returned string is correct");
}