base.d.ts 973 B

12345678910111213141516171819202122232425262728
  1. import { Coordinate } from '@antv/coord';
  2. import { DisplayObject } from '@antv/g';
  3. import { Scale, G2Theme, G2ViewDescriptor } from '../../runtime';
  4. import { Node } from '../node';
  5. export declare class CompositionNode<Value extends Record<string, any> = Record<string, any>, ParentValue extends Record<string, any> = Record<string, any>, ChildValue extends Record<string, any> = Record<string, any>> extends Node<Value, ParentValue, ChildValue> {
  6. protected _key: string;
  7. /**
  8. * Change current node data and its children data.
  9. */
  10. changeData(data: any): Promise<import("..").Chart>;
  11. /**
  12. * Get view instance by key.
  13. */
  14. getView(): G2ViewDescriptor;
  15. getScale(): Record<string, Scale>;
  16. getScaleByChannel(channel: string): Scale;
  17. getCoordinate(): Coordinate;
  18. getTheme(): G2Theme;
  19. getGroup(): DisplayObject;
  20. /**
  21. * Show the view.
  22. */
  23. show(): void;
  24. /**
  25. * Hide the view.
  26. */
  27. hide(): void;
  28. }