@visactor/vtable
Version:
canvas table width high performance
35 lines (34 loc) • 1.12 kB
TypeScript
import type { FederatedPointerEvent, IStage, IGraphic } from './../../vrender';
export interface DebugToolOptions {
container?: HTMLElement;
infoPosition?: 'tl' | 'tr' | 'bl' | 'br';
infoWidth?: number;
infoHeight?: number;
mode?: 'hover' | 'click';
customGrapicKeys?: string[];
}
export declare class DebugTool {
_stage: IStage;
_infoContainer: HTMLElement;
_highlightRect: HTMLElement;
_target: IGraphic;
_mode: 'hover' | 'click';
_customGrapicKeys?: string[];
_modeTip: HTMLElement;
_callback: {
pointermove: (e: FederatedPointerEvent) => void;
pointerup: (e: FederatedPointerEvent) => void;
pointerleave: (e: FederatedPointerEvent) => void;
keydown: (e: KeyboardEvent) => void;
};
constructor(stage: IStage, options?: DebugToolOptions);
createInfoContainer(options?: DebugToolOptions): void;
createHighlightRect(): void;
bindStageEvent(): void;
addHighlightBounds(bounds: any): void;
updateInfo(): void;
clearInfo(): void;
updateMode(): void;
bindKeyEvent(): void;
release(): void;
}