How mthbrt/leaders-editor works
This is a browser-based hex-board game position editor. Users place and manage pieces from a palette, arrange board state, annotate it with arrows and traps, and use hints/status indicators to assess captures and encirclement. The excerpts establish the editor’s shared board state and the individual feature modules, but not the page’s script-loading or event-wiring details; edges are limited to documented or directly shown relationships.
Main entry points: editor.js Board editor · tooltip.js Tooltips · right_pal.js Piece palette · left_pal.js Saved positions
Components 7
Board editing
- Board editor
editor.js
Piece palettes
- Saved positions
left_pal.js - Piece palette
right_pal.js
Position analysis
- Status hints
hints.js
Board annotations
- Arrow annotations
arrows.js
Piece reference
- Tooltips
tooltip.js
Other components
- Player
Connections 6
- Player → Board editor: edits position
editor.js - Board editor → Saved positions: defers undo
left_pal.js - Board editor → Status hints: provides board state
editor.js - Board editor → Arrow annotations: shares board state
arrows.js - Board editor → Tooltips: schedules tooltips
editor.js - Piece palette → Tooltips: shows item details