64 lines
1.1 KiB
TypeScript
64 lines
1.1 KiB
TypeScript
import { Types } from "mongoose";
|
|
|
|
export class DrawData{
|
|
state!:"inactive" | "active" | "error";
|
|
svg!:string;
|
|
xaml!:string;
|
|
xamlBase64!:string;
|
|
}
|
|
|
|
export class DrawDto {
|
|
name!:string;
|
|
raster!:number;
|
|
scale!:number;
|
|
height!: number;
|
|
length!:number;
|
|
px_height!:number;
|
|
px_width!:number;
|
|
offset_x!:number;
|
|
offset_y!:number;
|
|
svg!:string;
|
|
xaml?:string;
|
|
graphicsData?:DrawData[]
|
|
|
|
}
|
|
|
|
export class DrawDataDto {
|
|
name!:string;
|
|
height!: number;
|
|
width!:number;
|
|
varianten!: { state: string; svg: string; xaml: string; xamlBase64: string }[];
|
|
}
|
|
|
|
export class DrawShapeOptionenDto{
|
|
text?: string;
|
|
fontSize?: number;
|
|
frame?: boolean;
|
|
direction?: 'oben' | 'unten' | 'rechts' | 'links';
|
|
stroke?:string;
|
|
strokeWidth?:number;
|
|
fill?:string;
|
|
scale?:number;
|
|
raster?:number;
|
|
angle?:number;
|
|
width?:number;
|
|
height?:number;
|
|
fullSvg?:boolean;
|
|
xaml?:boolean;
|
|
variant?:string;
|
|
state?:"inactive" | "active" | "error";
|
|
colorInactive?:string;
|
|
colorActive?:string;
|
|
colorError?:string;
|
|
|
|
}
|
|
|
|
export class DrawParameterDto{
|
|
height?:number;
|
|
width?:number;
|
|
colorInactive?:string;
|
|
colorActive?:string;
|
|
colorError?:string;
|
|
|
|
}
|