MCPcopy Create free account
hub / github.com/Shitanshukumar607/Drawspace / createShapeId

Function createShapeId

hooks/createShapeId.ts:3–6  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1let shapeIdCounter = 0;
2
3export const createShapeId = () => {
4 shapeIdCounter += 1;
5 return `shape-${Date.now()}-${shapeIdCounter}`;
6};

Callers 5

handlePointerDownFunction · 0.90
handlePointerDownFunction · 0.90
handlePointerDownFunction · 0.90
handlePointerDownFunction · 0.90
handlePointerDownFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected