@mocanvas/editor · function

suffixSafeId

declare function suffixSafeId(id: string, suffix: string): SafeId

Add a suffix to a safe id and keep it safe.

The pattern one id, several defs needs: suffixSafeId(id, "clip") and suffixSafeId(id, "shadow") are distinct, stable, and both referencable.

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.