UNPKG

@helpscout/artboard

Version:

A tool kit for React UI development and design

146 lines (145 loc) 2.71 kB
/** * GENERAL */ export declare const onReady: (props: any) => { type: string; payload: { props: Object; }; }; export declare const loadLocalState: (props: any) => { type: string; payload: { state: Object; }; }; export declare const saveLocalState: () => { type: string; }; export declare const resetSettings: (initialProps: any) => { type: string; payload: { props: any; }; }; export declare const performActionStart: () => { type: string; }; export declare const performActionEnd: () => { type: string; }; /** * DARK MODE */ export declare const toggleDarkMode: () => { type: string; }; /** * INTERFACE */ export declare const toggleInterface: () => { type: string; }; /** * GUIDES */ export declare const toggleGuides: () => { type: string; }; /** * BOX INSPECTOR */ export declare const toggleBoxInspector: () => { type: string; }; /** * SIZE INSPECTOR */ export declare const toggleSizeInspector: () => { type: string; }; /** * EYEDROPPER */ export declare const startEyeDropper: () => { type: string; }; export declare const readyEyeDropper: () => { type: string; }; export declare const stopEyeDropper: () => { type: string; }; /** * CROSSHAIR */ export declare const startCrosshair: () => { type: string; }; export declare const stopCrosshair: () => { type: string; }; export declare const toggleCrosshair: () => { type: string; }; export declare const addCrosshairSnapshot: (snapshot: any) => { type: string; payload: { snapshot: any; }; }; export declare const clearCrosshairSnapshots: () => { type: string; }; /** * RESIZER */ export declare const onResize: (event: any, resizeProps: any) => { type: string; payload: { artboardHeight: any; artboardWidth: any; }; }; /** * MOVE */ export declare const moveStart: () => { type: string; }; export declare const moveEnd: () => { type: string; }; export declare const moveDragStart: () => { type: string; }; export declare const moveDrag: (positions: any) => { type: string; payload: any; }; export declare const moveDragEnd: () => { type: string; }; /** * ZOOM */ export declare const zoomIn: () => { type: string; }; export declare const zoomOut: () => { type: string; }; export declare const zoomInStart: () => { type: string; }; export declare const zoomOutStart: () => { type: string; }; export declare const zoomReset: () => { type: string; }; /** * UTILS */ export declare const mergePropsWithState: (props: any, state: any) => Object; export declare const mergeStateWithProps: (state: any, props: any) => Object;