drawer-manager.js 434 B

123456789101112131415161718192021
  1. import { Stage } from "../drawers/stage";
  2. class DrawerManager {
  3. constructor() {
  4. this.currentStage = this.newStage();
  5. this.stages = [this.currentStage];
  6. }
  7. newStage() {
  8. const stage = new Stage();
  9. stage.newStage();
  10. return stage;
  11. }
  12. getStages() {
  13. this.stages;
  14. }
  15. draw(object) {
  16. this.currentStage.draw(object);
  17. }
  18. addAggregator(aggregator) {}
  19. }
  20. export const drawerManager = new DrawerManager();