@antv/g2
Version:
the Grammar of Graphics in Javascript
24 lines (23 loc) • 868 B
TypeScript
import { DisplayObject } from '@antv/g';
/**
* highlight a group of elements.
*/
export declare function elementHighlight(root: DisplayObject, { elements: elementsof, // given the root of chart returns elements to be manipulated
datum, // given each element returns the datum of it
groupKey, // group elements by specified key
link, // draw link or not
background, // draw background or not
delay, // delay to unhighlighted element
scale, coordinate, emitter, state, }: Record<string, any>): () => void;
export declare function ElementHighlight({ delay, createGroup, background, link, ...rest }: {
[x: string]: any;
delay: any;
createGroup: any;
background?: boolean;
link?: boolean;
}): (context: any, _: any, emitter: any) => () => void;
export declare namespace ElementHighlight {
var props: {
reapplyWhenUpdate: boolean;
};
}