MCPcopy
hub / github.com/tldraw/tldraw / isShapeId

Function isShapeId

packages/tlschema/src/records/TLShape.ts:405–408  ·  view source on GitHub ↗
(id?: string)

Source from the content-addressed store, hash-verified

403 * @public
404 */
405export function isShapeId(id?: string): id is TLShapeId {
406 if (!id) return false
407 return id.startsWith('shape:')
408}
409
410/**
411 * Creates a new shape ID.

Callers 15

constructorMethod · 0.90
getShapeMethod · 0.90
getShapeParentMethod · 0.90
createShapesMethod · 0.90
selectOnCanvasPointerUpFunction · 0.85
updateDraggingShapesMethod · 0.85
getLevelMethod · 0.85
putExcalidrawContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…