rumble-charts
Version:
Truly declarative React charts components
16 lines (15 loc) • 653 B
TypeScript
import type { ReactElement, ReactNode } from 'react';
import type { Position, CommonProps, Size, Style } from './types';
export declare type LayerProps = CommonProps & {
className?: string;
style?: Style;
width?: Size;
height?: Size;
position?: Position;
children?: ReactNode;
};
/**
* Creates a new layer using specific `width` and `height` at specific `position`. It's useful when
* you have two or more graphics on the same chart. Or in case you to have a margins.
*/
export declare function Layer({ width, height, position, layerWidth, layerHeight, className, scaleX, scaleY, style, ...props }: LayerProps): ReactElement;