lazy-widgets
Version:
Typescript retained mode GUI for the HTML canvas API
13 lines (12 loc) • 692 B
TypeScript
import { type TooltipContainer } from '../widgets/TooltipContainer.js';
import { type Widget } from '../widgets/Widget.js';
import { BaseTooltipController } from './BaseTooltipController.js';
/**
* The default implementation of {@link BaseTooltipController}. Used by
* {@link TooltipContainer}, which lets you provide an anchor point to position
* the tooltip around.
*/
export declare class TooltipController<W extends Widget = Widget, C extends TooltipContainer = TooltipContainer> extends BaseTooltipController<W, C, readonly [relAnchorX: number, relAnchorY: number]> {
addLayer(relAnchorPos: readonly [x: number, y: number]): boolean;
protected doTooltipRectUpdate(): void;
}