Fix Issue 219: Remove rounding of dimensions when objects are moved, resized, etc

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@666 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jeff Schiller
2009-09-21 00:03:47 +00:00
parent 4015137b3e
commit c8c8fdb9f3

View File

@@ -949,12 +949,12 @@ function BatchCommand(text) {
var remap = function(x,y) {
return {
'x':round(((x-box.x)/box.width)*selectedBBox.width + selectedBBox.x),
'y':round(((y-box.y)/box.height)*selectedBBox.height + selectedBBox.y)
'x':(((x-box.x)/box.width)*selectedBBox.width + selectedBBox.x),
'y':(((y-box.y)/box.height)*selectedBBox.height + selectedBBox.y)
};
};
var scalew = function(w) {return round(w*selectedBBox.width/box.width);}
var scaleh = function(h) {return round(h*selectedBBox.height/box.height);}
var scalew = function(w) {return (w*selectedBBox.width/box.width);}
var scaleh = function(h) {return (h*selectedBBox.height/box.height);}
var batchCmd = new BatchCommand("Transform");