@mocanvas/editor · function

createRootState

declare function createRootState(tools: readonly StateNodeConstructor[], initial: string): StateNodeConstructor

Build a root state class with the given tools and initial tool id.

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.