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;
|
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;
|
|
||||||
|
@@ -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"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user