diff --git a/editor/extensions/ext-shapes.js b/editor/extensions/ext-shapes.js index 828b4d0..a702b3b 100644 --- a/editor/extensions/ext-shapes.js +++ b/editor/extensions/ext-shapes.js @@ -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 { diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 87d3070..9d3f54a 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -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;