We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff41f91 commit 5111c98Copy full SHA for 5111c98
src/helper/selectable-shapes.js
@@ -342,7 +342,7 @@ const generateShapeSVG = (shapeObj) => {
342
const bounds = path.getBounds();
343
const viewbox = `${bounds.x} ${bounds.y} ${bounds.width} ${bounds.height}`;
344
345
- return `<svg xmlns="" viewBox="${viewbox}">`;
+ return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${viewbox}">`
346
+ `<path d="${shapeObj.path}" stroke-width="${shapeObj.strokeWidth}" stroke="${strokeColor}" fill="none"/></svg>`;
347
};
348
0 commit comments