utils.d.ts 863 B

123456789101112131415161718
  1. import { G2ViewTree } from '../runtime';
  2. import { Node } from './node';
  3. export declare const VIEW_KEYS: string[];
  4. export declare function normalizeContainer(container: string | HTMLElement): HTMLElement;
  5. export declare function removeContainer(container: HTMLElement): void;
  6. export declare function normalizeRoot(node: Node): Node<Record<string, any>, Record<string, any>, Record<string, any>>;
  7. export declare function valueOf(node: Node): Record<string, any>;
  8. export declare function sizeOf(options: any, container: any): {
  9. width: any;
  10. height: any;
  11. };
  12. export declare function optionsOf(node: Node): Record<string, any>;
  13. export declare function updateRoot(node: Node, options: G2ViewTree, definedType: string): void;
  14. export declare function createEmptyPromise<T>(): [
  15. Promise<T>,
  16. (reason?: any) => void,
  17. (value: T | PromiseLike<T>) => void
  18. ];