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:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user