mirror of
https://github.com/svg/svgo.git
synced 2025-08-09 02:22:08 +03:00
Fix ts
This commit is contained in:
@@ -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;
|
||||
|
@@ -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"
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user