elementSelect.d.ts 695 B

12345678910111213141516
  1. import { DisplayObject } from '@antv/g';
  2. /**
  3. * Active a group of elements.
  4. */
  5. export declare function elementSelect(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. single, // single select or not
  10. coordinate, background, scale, emitter, state, }: Record<string, any>): () => void;
  11. export declare function ElementSelect({ createGroup, background, link, ...rest }: {
  12. [x: string]: any;
  13. createGroup: any;
  14. background?: boolean;
  15. link?: boolean;
  16. }): (context: any, _: any, emitter: any) => () => void;