123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- declare interface BackgroundOptions {
-
- type: 'color' | 'image' | 'none';
-
- color?: string;
-
- image?: string;
-
- fillType?: "cover" | "contain" | "fill" | "";
- }
- declare interface CustomElement {
-
- key: string;
-
- name: string;
-
- componentType: string | 'group';
-
- zIndex: number;
-
- visible: boolean;
-
- locked: boolean;
-
- container: {
-
- style: Record<string, any>;
-
- props: Record<string, any>;
- };
-
- events: Record<string, any>;
-
- animations: Record<string, any>;
-
- props: Record<string, any>;
-
- children?: CustomElement[];
-
- collapsed?: boolean;
-
- parentKey?: string;
- }
- declare export interface ReferLine {
-
- key: string;
-
- type: 'horizontal' | 'vertical' | null;
-
- value: number;
-
- x: number;
-
- y: number;
- }
- declare interface Page {
-
- key: string;
-
- name: string;
-
- background: BackgroundOptions;
-
- elements: CustomElement[];
-
- referLines: ReferLine[];
- }
- declare export interface ProjectInfo {
-
- pageId: string;
-
- name: string;
-
- description: string;
-
- sizeType: string;
-
- width: number;
-
- height: number;
-
- fillType?: ScreenFillEnum;
-
- pages: Page[];
- }
|