@e280/quay
Version:
File-browser and outliner UI for the web
17 lines • 414 B
JavaScript
import { MapG } from "@e280/stz";
/**
* Quay's global state
* - manages groups
* - each group is a different hierarchy, which can have unique types and stuff
*/
export class Brain {
#groups = new MapG();
setGroup(name, group) {
this.#groups.set(name, group);
return group;
}
getGroup(name) {
return this.#groups.require(name);
}
}
//# sourceMappingURL=brain.js.map