more interfaces into api.ts

This commit is contained in:
Jörn-Michael Miehe 2023-09-12 16:55:34 +00:00
parent a24773ec64
commit 51beac231c
3 changed files with 13 additions and 11 deletions

View file

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

View file

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

View file

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