We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bfb1f2 commit b6811acCopy full SHA for b6811ac
src/helper/selectable-shapes.js
@@ -340,7 +340,7 @@ const generateShapeSVG = (shapeObj) => {
340
if (!window.test && shapeObj._cachedSVG) return shapeObj._cachedSVG;
341
342
const strokeColor = "#575e75";
343
- const strokeWidth = window.test ? window.test(shapeObj) ? 1;
+ const strokeWidth = window.test ? window.test(shapeObj) : 1;
344
const path = new paper.Path(shapeObj.path);
345
const bounds = path.getBounds();
346
const viewbox = `${bounds.x - strokeWidth} ${bounds.y - strokeWidth} ${bounds.width + (strokeWidth * 2)} ${bounds.height + (strokeWidth * 2)}`;
0 commit comments