@mocanvas/editor · function
declare function registerCoreShape(util: ShapeUtilConstructor): () => voidAdd a shape util to coreShapes.
Registering the same type twice replaces the earlier entry rather than
throwing: a module re-evaluated by a bundler in dev, or a test that imports
the flagship twice, should not make the second editor unconstructable.
Returns a function that unregisters it again.
Mentioned here
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.