diff options
Diffstat (limited to 'scripts/lib.js')
-rw-r--r-- | scripts/lib.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/lib.js b/scripts/lib.js new file mode 100644 index 0000000..4e4850e --- /dev/null +++ b/scripts/lib.js | |||
@@ -0,0 +1,10 @@ | |||
1 | const h = preact.h; | ||
2 | const CELL_SIZE = 32; | ||
3 | const GRID_SIZE_X = 21; | ||
4 | const GRID_SIZE_Y = 21; | ||
5 | |||
6 | const ASSET_SVG_PROPS = {"width": CELL_SIZE, "height": CELL_SIZE, | ||
7 | "version": "1.1"}; | ||
8 | const ASSET_WHITE_BG = h("rect", {"x": 0, "y": 0, "width": CELL_SIZE, | ||
9 | "height": CELL_SIZE, "fill": "white", | ||
10 | "stroke-width": 0 }); | ||