1
0
mirror of https://github.com/svg/svgo.git synced 2025-08-09 02:22:08 +03:00
This commit is contained in:
Bogdan Chadkin
2021-03-15 21:34:36 +03:00
parent 61657433e1
commit c925e4da0a
2 changed files with 4 additions and 7 deletions

View File

@@ -122,6 +122,7 @@ const applyTransforms = (elem, pathData, params) => {
return; return;
}; };
exports.applyTransforms = applyTransforms;
const transformAbsolutePoint = (matrix, x, y) => { const transformAbsolutePoint = (matrix, x, y) => {
const newX = matrix[0] * x + matrix[2] * y + matrix[4]; const newX = matrix[0] * x + matrix[2] * y + matrix[4];
@@ -325,4 +326,3 @@ const applyMatrixToPathData = (pathData, matrix) => {
pathItem.data = args; pathItem.data = args;
} }
}; };
exports.applyTransforms = applyTransforms;

View File

@@ -10,11 +10,7 @@
"resolveJsonModule": true, "resolveJsonModule": true,
"noImplicitAny": false "noImplicitAny": false
}, },
"include": [ "include": ["lib/**/*", "plugins/**/*", "test/**/*"],
"lib/**/*",
"plugins/**/*",
"test/**/*",
],
"exclude": [ "exclude": [
"lib/svgo-node.js", "lib/svgo-node.js",
"lib/style.test.js", "lib/style.test.js",
@@ -26,6 +22,7 @@
"lib/svgo.js", "lib/svgo.js",
"plugins/_path.js", "plugins/_path.js",
"plugins/_transforms.js", "plugins/_transforms.js",
"plugins/_applyTransforms.js",
"plugins/cleanupAttrs.js", "plugins/cleanupAttrs.js",
"plugins/cleanupEnableBackground.js", "plugins/cleanupEnableBackground.js",
"plugins/cleanupIDs.js", "plugins/cleanupIDs.js",
@@ -78,6 +75,6 @@
"test/plugins/_index.js", "test/plugins/_index.js",
"test/regression.js", "test/regression.js",
"test/svg2js/_index.js", "test/svg2js/_index.js",
"test/svgo/_index.js", "test/svgo/_index.js"
] ]
} }