@mocanvas/editor · function

getSelectionHandlePositions

declare function getSelectionHandlePositions(editor: Editor): {
    bounds: Box;
    rotation: number;
    handles: SelectionHandleHit[];
    screenW: number;
    screenH: number;
} | null

Screen-space positions of the selection handles for the current selection, or null if nothing is selected / handles are hidden.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.