@mocanvas/editor · function

getSelectionRotatedScreenBounds

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

getSelectionRotatedPageBounds in screen space: the rotated box scaled and offset by the camera, still expressed in its own rotated frame.

The caller applies getSelectionRotation() to it, exactly as with the page space version.

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.