89-poster-defaults (#96)

* print defaults in printproducts

* Add default to printproduct mutation

* added insertDefaults when changing productgroup

* fixed bug for square in square

* cleanup, and tests for calculations

* small fixes, added return values for update
This commit is contained in:
Arwid Thornström
2021-12-08 11:00:15 +01:00
committed by GitHub
parent b556bb8df2
commit 6741e82479
9 changed files with 3669 additions and 20 deletions
+14
View File
@@ -0,0 +1,14 @@
export enum BorderType {
NONE = 0,
WHITE = 1,
BLACK = 2,
}
export interface PrintProductDefaults {
printId: number;
widthMm: number;
heightMm: number;
cropX: number;
cropY: number;
border: string;
}