size.d.ts 439 B

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