diff --git a/package.json b/package.json index 5cd7861..31d8a09 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "svg2roughjs", - "version": "2.3.1", + "version": "2.3.2", "description": "Leverages Rough.js to convert SVGs to a hand-drawn, sketchy representation", "author": "Fabian Schwarzkopf", "contributors": [ diff --git a/src/utils.ts b/src/utils.ts index c053724..8c60207 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -476,7 +476,7 @@ export function parseStyleConfig( if (!isIdentityTransform(svgTransform)) { const m = svgTransform!.matrix const det = m.a * m.d - m.c * m.b - scaleFactor = Math.sqrt(det) + scaleFactor = Math.sqrt(Math.abs(det)) } // incorporate the elements base opacity