import { menu as Menu } from "../../application/menu"; import { app as App } from "../../../app"; export class Component { constructor(drawer, options) { this.options = options; // this.genericObject; this.states; this.drawer; this.setDrawer(drawer); this._bootstrap(); } _bootstrap() { if (this.options == undefined) return; Menu.add(this); } setDrawer(drawer) { this.drawer = drawer; } draw() { this.drawer.draw(); } click() { App.setSelectedTool(this); this.draw(); } }