mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-11-23 00:03:07 +00:00
more interfaces into api.ts
This commit is contained in:
parent
a24773ec64
commit
51beac231c
3 changed files with 13 additions and 11 deletions
|
@ -46,7 +46,8 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Door, DoorsSaved } from "@/lib/door";
|
import { DoorsSaved } from "@/lib/api";
|
||||||
|
import { Door } from "@/lib/door";
|
||||||
import { Options, Vue } from "vue-class-component";
|
import { Options, Vue } from "vue-class-component";
|
||||||
|
|
||||||
import Calendar from "./Calendar.vue";
|
import Calendar from "./Calendar.vue";
|
||||||
|
|
|
@ -26,3 +26,13 @@ export interface DayPartModel {
|
||||||
day: number;
|
day: number;
|
||||||
part: string;
|
part: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface DoorSaved {
|
||||||
|
day: number;
|
||||||
|
x1: number;
|
||||||
|
y1: number;
|
||||||
|
x2: number;
|
||||||
|
y2: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export type DoorsSaved = DoorSaved[];
|
||||||
|
|
|
@ -1,16 +1,7 @@
|
||||||
|
import { DoorSaved } from "./api";
|
||||||
import { Rectangle } from "./rectangle";
|
import { Rectangle } from "./rectangle";
|
||||||
import { Vector2D } from "./vector2d";
|
import { Vector2D } from "./vector2d";
|
||||||
|
|
||||||
export interface DoorSaved {
|
|
||||||
day: number;
|
|
||||||
x1: number;
|
|
||||||
y1: number;
|
|
||||||
x2: number;
|
|
||||||
y2: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export type DoorsSaved = DoorSaved[];
|
|
||||||
|
|
||||||
export class Door {
|
export class Door {
|
||||||
public static readonly MIN_DAY = 1;
|
public static readonly MIN_DAY = 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue