Field Notes
    Preparing search index...

    Interface ElementInteractionAdapter<T>

    interface ElementInteractionAdapter<T extends BaseElement> {
        hitTestHandle?(
            el: T,
            point: Point,
            context: ExtensionInteractionContext,
        ): ExtensionInteractionHandle | null;
        renderSelection?(
            ctx: CanvasRenderingContext2D,
            el: T,
            context: { selectedCount: number; theme: ResolvedTheme; zoom: number },
        ): void;
        rotate?(el: T, pivot: Point, delta: number): T;
        updateHandle?(
            el: T,
            handleId: string,
            point: Point,
            context: ExtensionInteractionContext,
        ): T;
    }

    Type Parameters

    Index
    • Parameters

      • ctx: CanvasRenderingContext2D
      • el: T
      • context: { selectedCount: number; theme: ResolvedTheme; zoom: number }

      Returns void