@antv/g2
Version:
the Grammar of Graphics in Javascript
18 lines (17 loc) • 459 B
TypeScript
import { G2View } from '../runtime';
type Size = {
width: number;
height: number;
depth?: number;
};
/**
* @description Get the element's bounding size.
* @param container dom element.
* @returns the element width and height
*/
export declare function getContainerSize(container: HTMLElement): Size;
/**
* @description Calculate the real canvas size by view options.
*/
export declare function getBBoxSize(options: G2View): Size;
export {};