@mocanvas/editor · function

getSelectionScreenBounds

declare function getSelectionScreenBounds(editor: Editor): Box | undefined

The selection's bounds in SCREEN space (window-relative pixels) — where a position: fixed toolbar has to be put to sit against the selection.

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.