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;
};
exports.applyTransforms = applyTransforms;
const transformAbsolutePoint = (matrix, x, y) => {
const newX = matrix[0] * x + matrix[2] * y + matrix[4];
@@ -325,4 +326,3 @@ const applyMatrixToPathData = (pathData, matrix) => {
pathItem.data = args;
}
};
exports.applyTransforms = applyTransforms;

View File

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