diff --git a/.gitignore b/.gitignore index b0a273f0..2ea17d1d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /node_modules /dist /coverage +CONTRIBUTING-UPSTREAM.md diff --git a/GRID-NUMBERING-README.md b/GRID-NUMBERING-README.md new file mode 100644 index 00000000..7ea6ce65 --- /dev/null +++ b/GRID-NUMBERING-README.md @@ -0,0 +1,250 @@ +# Grid Auto-Numbering Feature for Azgaar Fantasy Map Generator + +## Overview + +Added sequential auto-numbering to the grid overlay system, allowing users to reference specific grid cells (e.g., "POI located in grid 0247"). Numbers are displayed centered within each grid cell with customizable size and color. + +## Features Added + +- ✅ Sequential numbering starting from top-left (0001, 0002, 0003...) +- ✅ Works with: **Pointy Hex**, **Square**, and **Truncated Square** grids +- ✅ Customizable font size (1-50px) +- ✅ Customizable color +- ✅ Toggle on/off via checkbox +- ✅ Proper centering in grid cells +- ✅ Full map coverage + +## Known Limitations + +**Grid Types Not Yet Supported**: +The following grid types require additional positioning calculations and are not currently supported: +- ❌ Hex grid (flat) +- ❌ Square 45 degrees grid +- ❌ Tetrakis square grid +- ❌ Triangle grid (horizontal) +- ❌ Triangle grid (vertical) +- ❌ Trihexagonal grid +- ❌ Rhombille grid + +The numbering feature will display on these grid types but numbers will not align correctly with cell centers. Each grid type has unique geometry that requires specific positioning logic in the `getGridCellCenter()` function. + +## Files Modified + +### 1. `index.html` +**Location**: Lines 889-910 (in `
` section) + +**Changes**: Added UI controls for grid numbering in the Style panel: +```html +