Explorer.d.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { A11yDocument, Region } from './Region.js';
  2. import Sre from '../sre.js';
  3. export interface Explorer {
  4. active: boolean;
  5. stoppable: boolean;
  6. Attach(): void;
  7. Detach(): void;
  8. Start(): void;
  9. Stop(): void;
  10. AddEvents(): void;
  11. RemoveEvents(): void;
  12. Update(force?: boolean): void;
  13. }
  14. export declare class AbstractExplorer<T> implements Explorer {
  15. document: A11yDocument;
  16. protected region: Region<T>;
  17. protected node: HTMLElement;
  18. stoppable: boolean;
  19. protected events: [string, (x: Event) => void][];
  20. protected highlighter: Sre.highlighter;
  21. private _active;
  22. protected static stopEvent(event: Event): void;
  23. static create<T>(document: A11yDocument, region: Region<T>, node: HTMLElement, ...rest: any[]): Explorer;
  24. protected constructor(document: A11yDocument, region: Region<T>, node: HTMLElement, ..._rest: any[]);
  25. protected Events(): [string, (x: Event) => void][];
  26. get active(): boolean;
  27. set active(flag: boolean);
  28. Attach(): void;
  29. Detach(): void;
  30. Start(): void;
  31. Stop(): void;
  32. AddEvents(): void;
  33. RemoveEvents(): void;
  34. Update(force?: boolean): void;
  35. protected getHighlighter(): Sre.highlighter;
  36. protected stopEvent(event: Event): void;
  37. }