We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7089cff commit 5c9bd93Copy full SHA for 5c9bd93
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "svg2roughjs",
3
- "version": "2.3.1",
+ "version": "2.3.2",
4
"description": "Leverages Rough.js to convert SVGs to a hand-drawn, sketchy representation",
5
"author": "Fabian Schwarzkopf",
6
"contributors": [
src/utils.ts
@@ -476,7 +476,7 @@ export function parseStyleConfig(
476
if (!isIdentityTransform(svgTransform)) {
477
const m = svgTransform!.matrix
478
const det = m.a * m.d - m.c * m.b
479
- scaleFactor = Math.sqrt(det)
+ scaleFactor = Math.sqrt(Math.abs(det))
480
}
481
482
// incorporate the elements base opacity
0 commit comments