fixing multiple icons
parent
3adad1fdd7
commit
c8da5c159d
|
@ -263,7 +263,6 @@ svgEditor.addExtension("shapes", function() {
|
|||
cur_shape.setAttribute('transform', "translate(" + x + "," + y + ") scale(0.005) translate(" + -x + "," + -y + ")");
|
||||
// console.time('b');
|
||||
canv.recalculateDimensions(cur_shape);
|
||||
console.log(cur_shape.getAttribute('d'));
|
||||
var tlist = canv.getTransformList(cur_shape);
|
||||
lastBBox = cur_shape.getBBox();
|
||||
return {
|
||||
|
|
|
@ -573,7 +573,7 @@
|
|||
selectedElement = elems[0];
|
||||
}
|
||||
} else {
|
||||
setIcon('#tool_select', 'select');
|
||||
setIcon('#tool_select', 'select');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -680,8 +680,7 @@
|
|||
updateToolbar();
|
||||
}
|
||||
|
||||
} // if (elem != null)
|
||||
// Deal with pathedit mode
|
||||
}
|
||||
togglePathEditMode(is_node, elems);
|
||||
updateContextPanel();
|
||||
svgCanvas.runExtensions("selectedChanged", {
|
||||
|
@ -2914,7 +2913,7 @@
|
|||
return;
|
||||
}
|
||||
|
||||
$(elem).append(icon);
|
||||
$(elem).find("img").replaceWith(icon);
|
||||
}
|
||||
|
||||
var ua_prefix;
|
||||
|
|
Loading…
Reference in New Issue