()
| 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) { |