Compare commits

..

7 Commits

Author SHA1 Message Date
0e9500196f add trackHover toggle 2026-01-02 00:28:20 -05:00
77cb74ad10 add screenshot script 2026-01-02 00:10:38 -05:00
4e5b4fb249 update screenshot 2026-01-02 00:07:58 -05:00
0753ef40d5 add border radius to rects; constrain to integeral cooridnates only 2026-01-01 23:58:22 -05:00
09ff88289b use ascii 2026-01-01 23:45:41 -05:00
388f7633e5 add screenshot 2026-01-01 23:40:27 -05:00
0db7cab23b fix README rectangle descriptions and remove unused Counter component
- Corrected rectangle corner coordinates to accurately show (cx, ay) and (ax, cy)
- Removed unused Counter.svelte component

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-01 23:24:39 -05:00

View File

@ -76,20 +76,7 @@
}; };
} }
function handleCanvasClick(event) { function handleCanvasClick() {
// If we're about to turn off tracking, update position one last time
if (trackHover) {
const rect = canvas.getBoundingClientRect();
const mouseX = event.clientX - rect.left;
const mouseY = event.clientY - rect.top;
// Add half grid unit offset for snapping to closest grid intersection
userPoint = {
x: Math.floor((mouseX + GRID_SIZE / 2) / GRID_SIZE),
y: Math.floor((HEIGHT - mouseY + GRID_SIZE / 2) / GRID_SIZE)
};
}
trackHover = !trackHover; trackHover = !trackHover;
} }