UNPKG

459 BTypeScriptView Raw
1import { G2View } from '../runtime';
2type Size = {
3 width: number;
4 height: number;
5 depth?: number;
6};
7/**
8 * @description Get the element's bounding size.
9 * @param container dom element.
10 * @returns the element width and height
11 */
12export declare function getContainerSize(container: HTMLElement): Size;
13/**
14 * @description Calculate the real canvas size by view options.
15 */
16export declare function getBBoxSize(options: G2View): Size;
17export {};