🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

flatten-svg

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flatten-svg - npm Package Compare versions

Comparing version

to
0.1.2

14

dist/svg-to-paths.js

@@ -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