UNPKG

@qn-pandora/pandora-visualization

Version:

Pandora 通用可视化库

19 lines (18 loc) 736 B
/// <reference types="react" /> import { EThemeTypes } from '../../../../constants'; interface IGridOption { cols: number; rowHeight: number; margin: [number, number]; } export declare function getResponsiveObj<T>(obj: T): { lg: T; md: T; sm: T; xs: T; xxs: T; }; export declare function calcLayoutH(oldH: number, oldOption: IGridOption, newOption: IGridOption): number; export declare function calcLayoutW(containerWidth: number, oldW: number, oldOption: IGridOption, newOption: IGridOption): number; export declare function calcGridBackgroundStyle(containerWidth: number, { cols, rowHeight: height, margin: [mainMargin, crossMargin] }: IGridOption, theme: EThemeTypes): React.CSSProperties; export {};