elementHighlight.d.ts 762 B

123456789101112131415161718
  1. import { DisplayObject } from '@antv/g';
  2. /**
  3. * highlight a group of elements.
  4. */
  5. export declare function elementHighlight(root: DisplayObject, { elements: elementsof, // given the root of chart returns elements to be manipulated
  6. datum, // given each element returns the datum of it
  7. groupKey, // group elements by specified key
  8. link, // draw link or not
  9. background, // draw background or not
  10. delay, // delay to unhighlighted element
  11. scale, coordinate, emitter, state, }: Record<string, any>): () => void;
  12. export declare function ElementHighlight({ delay, createGroup, background, link, ...rest }: {
  13. [x: string]: any;
  14. delay: any;
  15. createGroup: any;
  16. background?: boolean;
  17. link?: boolean;
  18. }): (context: any, _: any, emitter: any) => () => void;