Add tag enum

This commit is contained in:
Idrees Hassan
2026-01-18 18:14:40 -05:00
parent 579967a302
commit 9f7d864e57
9 changed files with 131 additions and 99 deletions

View File

@@ -1,9 +1,14 @@
export const TAG = {
DEFAULT: "default",
TUFT: "tuft",
};
class Layer {
/**
* @param {string[][]} pixels
* @param {string} [tag]
*/
constructor(pixels, tag = "default") {
constructor(pixels, tag = TAG.DEFAULT) {
this.pixels = pixels;
this.tag = tag;
}