flatten-svg
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -76,8 +76,10 @@ "use strict"; | ||
const ctm = path.getCTM(); | ||
const xf = ([x, y]) => { | ||
svgPoint.x = x; | ||
svgPoint.y = y; | ||
const xfd = svgPoint.matrixTransform(ctm); | ||
return [xfd.x, xfd.y]; | ||
}; | ||
const xf = ctm == null | ||
? ([x, y]) => { return [x, y]; } | ||
: ([x, y]) => { | ||
svgPoint.x = x; | ||
svgPoint.y = y; | ||
const xfd = svgPoint.matrixTransform(ctm); | ||
return [xfd.x, xfd.y]; | ||
}; | ||
const pathData = path_data_polyfill_1.getPathData(path, { normalize: true }); | ||
@@ -84,0 +86,0 @@ let cur = null; |
{ | ||
"name": "flatten-svg", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
86913
1052