base.d.ts 784 B

12345678910111213141516171819202122
  1. import { DisplayObject } from '@antv/g';
  2. import { Node } from '../node';
  3. import { G2MarkState, Scale } from '../../runtime';
  4. export declare class MarkNode<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> {
  5. changeData(data: any): Promise<import("..").Chart>;
  6. /**
  7. * Get mark from chart views.
  8. */
  9. getMark(): G2MarkState;
  10. /**
  11. * Get all scales instance.
  12. */
  13. getScale(): Record<string, Scale>;
  14. /**
  15. * Get the scale instance by channel.
  16. */
  17. getScaleByChannel(channel: string): Scale;
  18. /**
  19. * Get canvas group.
  20. */
  21. getGroup(): DisplayObject;
  22. }