import { Coordinate } from '@antv/coord'; import { DisplayObject } from '@antv/g'; import { Scale, G2Theme, G2ViewDescriptor } from '../runtime'; import { Composition as Spec } from '../spec'; import { Node } from './node'; import { compositionProps } from './props'; import { PropsOf } from './types'; export interface CompositionNode extends PropsOf { } export declare class CompositionNode extends Node { protected _key: string; /** * Change current node data and its children data. */ changeData(data: any): Promise>; /** * Get view instance by key. */ getView(): G2ViewDescriptor; getScale(): Record; getScaleByChannel(channel: string): Scale; getCoordinate(): Coordinate; getTheme(): G2Theme; getGroup(): DisplayObject; /** * Show the view. */ show(): void; /** * Hide the view. */ hide(): void; }