add window class
This commit is contained in:
parent
81181ffe40
commit
c30e83249c
14
src/ui/window.ts
Normal file
14
src/ui/window.ts
Normal file
@ -0,0 +1,14 @@
|
||||
export default class Window {
|
||||
element: HTMLDialogElement = document.createElement("dialog");
|
||||
initial_size = { w: 500, h: 500 } as const;
|
||||
|
||||
constructor() {
|
||||
this.element.style.backgroundColor = "black";
|
||||
this.element.style.width = `${this.initial_size.w}`;
|
||||
this.element.style.height = `${this.initial_size.h}`;
|
||||
}
|
||||
|
||||
start(): HTMLDialogElement {
|
||||
return this.element;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user