site/node_modules/speech-rule-engine/js/walker/table_walker.d.ts

30 lines
1 KiB
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
import { KeyCode } from '../common/event_util';
import { Highlighter } from '../highlighter/highlighter';
import { SemanticRole, SemanticType } from '../semantic_tree/semantic_meaning';
import { SpeechGenerator } from '../speech_generator/speech_generator';
import { Focus } from './focus';
import { SyntaxWalker } from './syntax_walker';
export declare class TableWalker extends SyntaxWalker {
node: Element;
generator: SpeechGenerator;
highlighter: Highlighter;
static ELIGIBLE_CELL_ROLES: SemanticRole[];
static ELIGIBLE_TABLE_TYPES: SemanticType[];
firstJump: Focus;
moved: any;
private key_;
private row_;
private currentTable_;
constructor(node: Element, generator: SpeechGenerator, highlighter: Highlighter, xml: string);
move(key: KeyCode): boolean;
up(): Focus;
down(): Focus;
protected jumpCell(): Focus | null;
undo(): Focus;
private eligibleCell_;
private verticalMove_;
private jumpCell_;
private isLegalJump_;
private isInTable_;
}