Remove some logging debug code
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@972 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
1387116be6
commit
7b6a304520
|
@ -2730,7 +2730,6 @@ function BatchCommand(text) {
|
||||||
cx = round(box.x + box.width/2),
|
cx = round(box.x + box.width/2),
|
||||||
cy = round(box.y + box.height/2);
|
cy = round(box.y + box.height/2);
|
||||||
var m = transformListToTransform(canvas.getTransformList(selected)).matrix;
|
var m = transformListToTransform(canvas.getTransformList(selected)).matrix;
|
||||||
logMatrix(m);
|
|
||||||
var center = transformPoint(cx,cy,m);
|
var center = transformPoint(cx,cy,m);
|
||||||
cx = center.x;
|
cx = center.x;
|
||||||
cy = center.y;
|
cy = center.y;
|
||||||
|
@ -3843,7 +3842,6 @@ function BatchCommand(text) {
|
||||||
// Returns:
|
// Returns:
|
||||||
// This function returns false if the set was unsuccessful, true otherwise.
|
// This function returns false if the set was unsuccessful, true otherwise.
|
||||||
this.setSvgString = function(xmlString) {
|
this.setSvgString = function(xmlString) {
|
||||||
console.log(xmlString);
|
|
||||||
try {
|
try {
|
||||||
// convert string into XML document
|
// convert string into XML document
|
||||||
var newDoc = Utils.text2xml(xmlString);
|
var newDoc = Utils.text2xml(xmlString);
|
||||||
|
@ -4908,19 +4906,16 @@ function BatchCommand(text) {
|
||||||
// if we are not rotated yet, insert a dummy xform
|
// if we are not rotated yet, insert a dummy xform
|
||||||
var m = transformListToTransform(tlist).matrix;
|
var m = transformListToTransform(tlist).matrix;
|
||||||
var center = transformPoint(cx,cy,m);
|
var center = transformPoint(cx,cy,m);
|
||||||
// console.log("before: " + elem.getAttribute("transform"));
|
|
||||||
// console.log([center.x,center.y]);
|
|
||||||
var newrot = svgroot.createSVGTransform();
|
var newrot = svgroot.createSVGTransform();
|
||||||
newrot.setRotate(val, center.x, center.y);
|
newrot.setRotate(val, center.x, center.y);
|
||||||
tlist.insertItemBefore(newrot, rotIndex);
|
tlist.insertItemBefore(newrot, rotIndex);
|
||||||
if (!preventUndo) {
|
if (!preventUndo) {
|
||||||
// FIXME: we need to undo it, then redo it so it can be undo-able! :)
|
// we need to undo it, then redo it so it can be undo-able! :)
|
||||||
// TODO: figure out how to make changes to transform list undo-able cross-browser?
|
// TODO: figure out how to make changes to transform list undo-able cross-browser?
|
||||||
var newTransform = elem.getAttribute("transform");
|
var newTransform = elem.getAttribute("transform");
|
||||||
elem.setAttribute("transform", oldTransform);
|
elem.setAttribute("transform", oldTransform);
|
||||||
this.changeSelectedAttribute("transform",newTransform,selectedElements);
|
this.changeSelectedAttribute("transform",newTransform,selectedElements);
|
||||||
}
|
}
|
||||||
// console.log("after: " + elem.getAttribute("transform"));
|
|
||||||
var pointGripContainer = document.getElementById("pathpointgrip_container");
|
var pointGripContainer = document.getElementById("pathpointgrip_container");
|
||||||
if(elem.nodeName == "path" && pointGripContainer) {
|
if(elem.nodeName == "path" && pointGripContainer) {
|
||||||
setPointContainerTransform(elem.getAttribute("transform"));
|
setPointContainerTransform(elem.getAttribute("transform"));
|
||||||
|
|
Loading…
Reference in New Issue