UNPKG

1.21 kBTypeScriptView Raw
1import { G2ViewTree } from '../runtime';
2import { Node } from './node';
3export declare const VIEW_KEYS: string[];
4export declare const REMOVE_FLAG = "__remove__";
5export declare const CALLBACK_NODE = "__callback__";
6/** Minimum chart width */
7export declare const MIN_CHART_WIDTH = 1;
8/** Minimum chart height */
9export declare const MIN_CHART_HEIGHT = 1;
10export declare function normalizeContainer(container: string | HTMLElement): HTMLElement;
11export declare function removeContainer(container: HTMLElement): void;
12export declare function normalizeRoot(node: Node): Node<Record<string, any>, Record<string, any>, Record<string, any>>;
13export declare function valueOf(node: Node): Record<string, any>;
14export declare function sizeOf(options: any, container: any): {
15 width: number;
16 height: number;
17 depth: any;
18};
19export declare function optionsOf(node: Node): Record<string, any>;
20export declare function updateRoot(node: Node, options: G2ViewTree, definedType: string, mark: Record<string, new () => Node>, composition: Record<string, new () => Node>): void;
21export declare function createEmptyPromise<T>(): [
22 Promise<T>,
23 (reason?: any) => void,
24 (value: T | PromiseLike<T>) => void
25];