Function: builtInShapeId()
builtInShapeId(
image):string|undefined
Defined in: src/lib/brushes/shapes/index.ts:46
Which built-in shape a brush uses: its id, "round" for a brush without an image (drawn round), or undefined for one of the user's own (uploaded or pasted).
Parameters
image
unknown
Returns
string | undefined
Example
builtInShapeId(undefined); // "round"
builtInShapeId("data:image/png;base64,…"); // undefined, unless it's a built-in shape's image