Skip to content

Commit b6811ac

Browse files
authored
Update selectable-shapes.js
1 parent 9bfb1f2 commit b6811ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helper/selectable-shapes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ const generateShapeSVG = (shapeObj) => {
340340
if (!window.test && shapeObj._cachedSVG) return shapeObj._cachedSVG;
341341

342342
const strokeColor = "#575e75";
343-
const strokeWidth = window.test ? window.test(shapeObj) ? 1;
343+
const strokeWidth = window.test ? window.test(shapeObj) : 1;
344344
const path = new paper.Path(shapeObj.path);
345345
const bounds = path.getBounds();
346346
const viewbox = `${bounds.x - strokeWidth} ${bounds.y - strokeWidth} ${bounds.width + (strokeWidth * 2)} ${bounds.height + (strokeWidth * 2)}`;

0 commit comments

Comments
 (0)