@mocanvas/editor · function

getPageStates

declare function getPageStates(editor: Editor): InstancePageState[]

The session state of every page: what is selected, hovered, being edited or cropped on each one.

The list a page menu needs in order to show which pages have work in progress on them, and the list a "close without saving" prompt needs in order to know whether anything is mid-edit anywhere.

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.