UNPKG

@superset-ui/core

Version:
35 lines 1.1 kB
import { CSSProperties, ReactNode, PureComponent } from 'react'; declare const defaultProps: { className: string; height: string | number; position: string; width: string | number; }; type Props = { className: string; debounceTime?: number; width: number | string; height: number | string; legendJustifyContent?: 'center' | 'flex-start' | 'flex-end'; position: 'top' | 'left' | 'bottom' | 'right'; renderChart: (dim: { width: number; height: number; }) => ReactNode; renderLegend?: (params: { direction: string; }) => ReactNode; } & Readonly<typeof defaultProps>; declare class WithLegend extends PureComponent<Props, {}> { static defaultProps: { className: string; height: string | number; position: string; width: string | number; }; getContainerDirection(): CSSProperties['flexDirection']; getLegendJustifyContent(): "center" | "flex-start" | "flex-end"; render(): import("react").JSX.Element; } export default WithLegend; //# sourceMappingURL=WithLegend.d.ts.map