@mocanvas/mocanvas · function

getTextTextureKey

declare function getTextTextureKey(spec: TextTextureSpec): string

Cache key for a spec. Stable for equal specs and different for every field that changes the pixels — the resolution bucket and the rich-text document included.

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.