import { fabric } from "fabric"; import Layer from "../board/layer"; import TileSet from "./tileset"; export default class TileMap extends Layer { /** * @param {TileSet} tileset * @param {{chunkSiz:number}} opts */ constructor(tileset, opts = {}) { super(); this.tileset = tileset; this.opts = { chunkSize: 8, ...opts, } this.rows = []; } }