1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- import { CompUI } from "./components/CompUI";
- export type ICompKeys = keyof typeof CompUI;
- export type EditorMode = "editPage" | "editComp" | "preview";
- export type Layout = {
- position?: "absolute";
- visible?: boolean;
- size?: number[]; // width height
- alignSelf?: string;
- transform?: {
- r?: number; // rotate
- x?: number; // translateX
- y?: number; // marginTop
- s?: number; // scale
- };
- zIndex?: number;
- margin?: string;
- padding?: string;
- };
- export type Background = {
- color?: string;
- image?: string;
- imageStyle?: string;
- position?:
- | "bottom"
- | "center"
- | "left"
- | "left-bottom"
- | "left-top"
- | "right"
- | "right-bottom"
- | "right-top"
- | "top";
- repeat?:
- | "repeat"
- | "no-repeat"
- | "repeat-x"
- | "repeat-y"
- | "repeat-round"
- | "repeat-space";
- size?: "auto" | "cover" | "contain";
- clipPath?: string;
- // origin?: "border" | "padding" | "content";
- };
|