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

20 lines
681 B
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
import { SemanticNode } from '../semantic_tree/semantic_node';
import { RebuildStree } from './rebuild_stree';
export declare class Focus {
private nodes;
private primary;
private domNodes;
private domPrimary_;
private allNodes;
static factory(primaryId: string, nodeIds: string[], rebuilt: RebuildStree, dom: Element): Focus;
private static generateAllVisibleNodes_;
constructor(nodes: SemanticNode[], primary: SemanticNode);
getSemanticPrimary(): SemanticNode;
getSemanticNodes(): SemanticNode[];
getNodes(): Element[];
getDomNodes(): (Element | null)[];
getDomPrimary(): Element;
toString(): string;
clone(): Focus;
}