Interface implemented by a view that hosts hover behavior.

AcEdHoverController is deliberately UI-framework-agnostic and relies on this interface to delegate view-specific operations such as spatial picking and visual feedback.

This abstraction allows hover logic to be tested independently and reused across different view implementations.

interface AcEdHoverHost {
    get curMousePos(): AcGePoint2d;
    onHover(id: string): void;
    onUnhover(id: string): void;
    pick(point: { x: number; y: number }): { id: string }[];
}

Accessors

Methods

  • Perform a spatial pick at the given world coordinate.

    The controller assumes the first returned result has the highest hover priority.

    Parameters

    • point: { x: number; y: number }

      Pick location in world coordinates

    Returns { id: string }[]

    An array of pick results containing object ids