1 | import { ListItem } from '../../../dependents';
|
2 | import Element from '../../../geometry/element/';
|
3 | import StateAction from './state';
|
4 | import { ELEMENT_STATE } from '../../../constant';
|
5 | export declare const STATUS_UNACTIVE = ELEMENT_STATE.INACTIVE;
|
6 | export declare const STATUS_ACTIVE = ELEMENT_STATE.ACTIVE;
|
7 | export declare type Callback = (el: any) => boolean;
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | declare 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 | }
|
21 | export default ElementHighlight;
|