render.d.ts 577 B

12345
  1. import { DisplayObject } from '@antv/g';
  2. import { G2Context, G2ViewTree } from './types/options';
  3. export declare function render<T extends G2ViewTree = G2ViewTree>(options: T, context?: G2Context, resolve?: () => void, reject?: (e?: any) => void): HTMLElement;
  4. export declare function renderToMountedElement<T extends G2ViewTree = G2ViewTree>(options: T, context?: G2Context, resolve?: () => void, reject?: (e?: any) => never): DisplayObject;
  5. export declare function destroy<T extends G2ViewTree = G2ViewTree>(options: T, context?: G2Context, isDestroyCanvas?: boolean): void;