aboutsummaryrefslogtreecommitdiff
path: root/src/content/usecases/ConsoleFrameUseCase.ts
blob: 7a0891dc91593a2979775f6762bb7238675c97f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { injectable, inject } from "tsyringe";
import ConsoleFramePresenter from "../presenters/ConsoleFramePresenter";

@injectable()
export default class ConsoleFrameUseCase {
  constructor(
    @inject("ConsoleFramePresenter")
    private consoleFramePresenter: ConsoleFramePresenter
  ) {}

  unfocus() {
    window.focus();
    this.consoleFramePresenter.blur();
  }

  resize(width: number, height: number) {
    this.consoleFramePresenter.resize(width, height);
  }
}