@leonchabbey/norigin-spatial-navigation
Version:
React hooks based Spatial Navigation solution
18 lines (17 loc) • 517 B
TypeScript
interface NodeLayout {
left: number;
top: number;
width: number;
height: number;
}
declare class VisualDebugger {
private debugCtx;
private layoutsCtx;
constructor();
static createCanvas(id: string, zIndex: string): CanvasRenderingContext2D | null;
clear(): void;
clearLayouts(): void;
drawLayout(layout: NodeLayout, focusKey: string, parentFocusKey: string): void;
drawPoint(x: number, y: number, color?: string, size?: number): void;
}
export default VisualDebugger;