mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-11-23 08:13:01 +00:00
RectangleCanvas.rectangles is a prop, don't init
This commit is contained in:
parent
6628efe957
commit
1695e8651c
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ export default class extends Vue {
|
||||||
private preview_rect = new Rectangle();
|
private preview_rect = new Rectangle();
|
||||||
private drag_rect?: Rectangle;
|
private drag_rect?: Rectangle;
|
||||||
private drag_origin = new Vector2D();
|
private drag_origin = new Vector2D();
|
||||||
private rectangles: Rectangle[] = [];
|
private rectangles!: Rectangle[];
|
||||||
|
|
||||||
private get preview_visible(): boolean {
|
private get preview_visible(): boolean {
|
||||||
return this.state !== CanvasState.Idle;
|
return this.state !== CanvasState.Idle;
|
||||||
|
|
Loading…
Reference in a new issue