mirror of
https://github.com/ful1e5/apple_cursor.git
synced 2025-05-19 01:35:20 -04:00
🧹 utils remove
This commit is contained in:
parent
2a6a26f7ad
commit
3a6d9f7200
1 changed files with 0 additions and 13 deletions
|
@ -1,13 +0,0 @@
|
||||||
import path from "path";
|
|
||||||
import { bitmapsDir } from "../config";
|
|
||||||
|
|
||||||
export const getOutPath = (number: number, length: number, svgFile: string) => {
|
|
||||||
let frame = "" + number;
|
|
||||||
while (frame.length < length) {
|
|
||||||
frame = "0" + frame;
|
|
||||||
}
|
|
||||||
|
|
||||||
const bitmap = `${path.basename(svgFile, ".svg")}-${frame}.png`;
|
|
||||||
|
|
||||||
return path.resolve(bitmapsDir, bitmap);
|
|
||||||
};
|
|
Loading…
Add table
Add a link
Reference in a new issue