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

Function getCursorForTool

components/CanvasComponent.tsx:66–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64 const MAX_SCALE = 4;
65
66 const getCursorForTool = () => {
67 if (selectedTool === "hand") return isPanning ? "grabbing" : "grab";
68 if (selectedTool === "pointer") return "default";
69 if (selectedTool === "text") return "text";
70 if (selectedTool === "image" || selectedTool === "duplicate") return "copy";
71 if (selectedTool === "lock") return "not-allowed";
72 return "crosshair";
73 };
74
75 useEffect(() => {
76 if (!selectedTransformableShape) {

Callers 1

CanvasComponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected