UNPKG

949 BTypeScriptView Raw
1import { ListItem } from '../../../dependents';
2import Element from '../../../geometry/element/';
3import StateAction from './state';
4import { ELEMENT_STATE } from '../../../constant';
5export declare const STATUS_UNACTIVE = ELEMENT_STATE.INACTIVE;
6export declare const STATUS_ACTIVE = ELEMENT_STATE.ACTIVE;
7export declare type Callback = (el: any) => boolean;
8/**
9 * @ignore
10 * highlight,指定图形高亮,其他图形变暗
11 */
12declare class ElementHighlight extends StateAction {
13 protected stateName: string;
14 protected setElementsStateByItem(elements: Element[], field: string, item: ListItem, enable: boolean): void;
15 protected setElementHighlight(el: Element, callback: Callback): void;
16 protected setHighlightBy(elements: Element[], callback: Callback, enable: boolean): void;
17 protected setElementState(element: Element, enable: boolean): void;
18 highlight(): void;
19 clear(): void;
20}
21export default ElementHighlight;