@mocanvas/editor · function
declare function useSharedSafeId(name: string): SafeIdA stable id derived from a name, safe for url(#…).
The opposite case to useUniqueSafeId: every mount that passes the
same name gets the same id, so many shapes can reference one shared
<defs> entry rendered once by SvgDefs.
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.