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 + ")");
|
cur_shape.setAttribute('transform', "translate(" + x + "," + y + ") scale(0.005) translate(" + -x + "," + -y + ")");
|
||||||
// console.time('b');
|
// console.time('b');
|
||||||
canv.recalculateDimensions(cur_shape);
|
canv.recalculateDimensions(cur_shape);
|
||||||
console.log(cur_shape.getAttribute('d'));
|
|
||||||
var tlist = canv.getTransformList(cur_shape);
|
var tlist = canv.getTransformList(cur_shape);
|
||||||
lastBBox = cur_shape.getBBox();
|
lastBBox = cur_shape.getBBox();
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -680,8 +680,7 @@
|
||||||
updateToolbar();
|
updateToolbar();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // if (elem != null)
|
}
|
||||||
// Deal with pathedit mode
|
|
||||||
togglePathEditMode(is_node, elems);
|
togglePathEditMode(is_node, elems);
|
||||||
updateContextPanel();
|
updateContextPanel();
|
||||||
svgCanvas.runExtensions("selectedChanged", {
|
svgCanvas.runExtensions("selectedChanged", {
|
||||||
|
@ -2914,7 +2913,7 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$(elem).append(icon);
|
$(elem).find("img").replaceWith(icon);
|
||||||
}
|
}
|
||||||
|
|
||||||
var ua_prefix;
|
var ua_prefix;
|
||||||
|
|
Loading…
Reference in New Issue