mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-27 21:44:14 -04:00
🧹 animatedClip
Config cleanup
This commit is contained in:
parent
79234d06de
commit
316c3ea5af
4 changed files with 4 additions and 14 deletions
|
@ -9,7 +9,6 @@ interface Config {
|
|||
bitmapsDir: string;
|
||||
svgsDir: string;
|
||||
animatedCursors: AnimatedCursors;
|
||||
animatedClip: AnimatedClip;
|
||||
}
|
||||
|
||||
export { Config, AnimatedCursors, AnimatedClip };
|
||||
|
|
|
@ -20,8 +20,7 @@ export const renderCursors = async ({
|
|||
staticCursors,
|
||||
bitmapsDir,
|
||||
svgsDir,
|
||||
animatedCursors,
|
||||
animatedClip
|
||||
animatedCursors
|
||||
}: Config) => {
|
||||
const browser = await puppeteer.launch({
|
||||
ignoreDefaultArgs: [" --single-process ", "--no-sandbox"],
|
||||
|
@ -92,8 +91,7 @@ export const renderCursors = async ({
|
|||
// Render
|
||||
await svgElement.screenshot({
|
||||
omitBackground: true,
|
||||
path: out,
|
||||
clip: animatedClip
|
||||
path: out
|
||||
});
|
||||
// console.log(`${svg} frame ${frame}/${frames} rendered at ${out}`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue