mirror of
https://github.com/ful1e5/apple_cursor.git
synced 2025-05-17 08:35:03 -04:00
📸 itterate over static cursors
This commit is contained in:
parent
2d85f3caaa
commit
4c1e73308c
1 changed files with 9 additions and 1 deletions
10
src/index.ts
10
src/index.ts
|
@ -1,15 +1,23 @@
|
|||
import fs from "fs";
|
||||
import path from "path";
|
||||
|
||||
import { generateRenderTemplate } from "./helpers/htmlTemplate";
|
||||
import { staticSvgs } from "./config";
|
||||
// import { renderSvg } from "./helpers/render";
|
||||
import { staticSvgs, bitmapsDir } from "./config";
|
||||
|
||||
const generateStaticSvgBitmaps = (svg: string) => {
|
||||
fs.readFile(svg, "utf8", (error, data) => {
|
||||
if (error) {
|
||||
return console.log(error);
|
||||
}
|
||||
|
||||
// Generating HTML Template
|
||||
generateRenderTemplate(data);
|
||||
|
||||
// rendering svg
|
||||
let bitmap = path.parse(svg).base;
|
||||
bitmap = path.resolve(bitmapsDir, bitmap);
|
||||
console.log(bitmap);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue