RectangleCanvas.rectangles is a prop, don't init

This commit is contained in:
Jörn-Michael Miehe 2023-02-02 15:29:04 +00:00
parent 6628efe957
commit 1695e8651c

View file

@ -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;