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:
@@ -949,12 +949,12 @@ function BatchCommand(text) {
|
|||||||
|
|
||||||
var remap = function(x,y) {
|
var remap = function(x,y) {
|
||||||
return {
|
return {
|
||||||
'x':round(((x-box.x)/box.width)*selectedBBox.width + selectedBBox.x),
|
'x':(((x-box.x)/box.width)*selectedBBox.width + selectedBBox.x),
|
||||||
'y':round(((y-box.y)/box.height)*selectedBBox.height + selectedBBox.y)
|
'y':(((y-box.y)/box.height)*selectedBBox.height + selectedBBox.y)
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
var scalew = function(w) {return round(w*selectedBBox.width/box.width);}
|
var scalew = function(w) {return (w*selectedBBox.width/box.width);}
|
||||||
var scaleh = function(h) {return round(h*selectedBBox.height/box.height);}
|
var scaleh = function(h) {return (h*selectedBBox.height/box.height);}
|
||||||
|
|
||||||
var batchCmd = new BatchCommand("Transform");
|
var batchCmd = new BatchCommand("Transform");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user