🧹 utils remove

This commit is contained in:
ful1e5 2020-08-29 17:31:16 +05:30
parent 2a6a26f7ad
commit 3a6d9f7200

View file

@ -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);
};