Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
let
shapeIdCounter = 0;
2
3
export
const
createShapeId = () => {
4
shapeIdCounter += 1;
5
return
`shape-${Date.now()}-${shapeIdCounter}`;
6
};
Callers
5
handlePointerDown
Function · 0.90
handlePointerDown
Function · 0.90
handlePointerDown
Function · 0.90
handlePointerDown
Function · 0.90
handlePointerDown
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected