🗃️ Core files moved to cursors directory

This commit is contained in:
ful1e5 2020-08-15 09:56:51 +05:30
parent 518b0ea145
commit efa60f2891
2 changed files with 1 additions and 1 deletions

View file

@ -1,17 +0,0 @@
import path from "path";
import fs from "fs";
import { staticCursors, animatedCursors, animatedClip } from "./cursors.json";
// Source Directory
const svgsDir = path.resolve(__dirname, "svg");
// Resolve Paths for svg
const staticSvgs = staticCursors.map((svg: string) =>
path.resolve(svgsDir, svg)
);
// Out Directory
const bitmapsDir = path.resolve(process.cwd(), "bitmaps");
if (!fs.existsSync(bitmapsDir)) fs.mkdirSync(bitmapsDir);
export { staticSvgs, animatedCursors, svgsDir, bitmapsDir, animatedClip };

View file

@ -1,75 +0,0 @@
{
"staticCursors": [
"all_scroll.svg",
"bd_double_arrow.svg",
"bottom_left_corner.svg",
"bottom_right_corner.svg",
"bottom_side.svg",
"bottom_tee.svg",
"center_ptr.svg",
"circle.svg",
"context_menu.svg",
"copy.svg",
"cross.svg",
"crossed_circle.svg",
"crosshair.svg",
"dnd_ask.svg",
"dnd_copy.svg",
"dnd_link.svg",
"dnd_move.svg",
"dnd_no_drop.svg",
"dnd_none.svg",
"dotbox.svg",
"fd_double_arrow.svg",
"grabbing.svg",
"hand1.svg",
"hand2.svg",
"left_ptr.svg",
"left_side.svg",
"left_tee.svg",
"link.svg",
"ll_angle.svg",
"lr_angle.svg",
"move.svg",
"pencil.svg",
"plus.svg",
"pointer_move.svg",
"question_arrow.svg",
"right_ptr.svg",
"right_side.svg",
"right_tee.svg",
"sb_down_arrow.svg",
"sb_h_double_arrow.svg",
"sb_left_arrow.svg",
"sb_right_arrow.svg",
"sb_up_arrow.svg",
"sb_v_double_arrow.svg",
"tcross.svg",
"top_left_corner.svg",
"top_right_corner.svg",
"top_side.svg",
"top_tee.svg",
"ul_angle.svg",
"ur_angle.svg",
"vertical_text.svg",
"wayland_cursor.svg",
"x_cursor.svg",
"xterm.svg",
"zoom_in.svg",
"zoom_out.svg"
],
"animatedCursors": {
"left_ptr_watch.svg": {
"frames": 62
},
"wait.svg": {
"frames": 62
}
},
"animatedClip": {
"x": 4,
"y": 4,
"width": 200,
"height": 200
}
}