mirror of
https://github.com/sbuffkin/hexmaker.git
synced 2026-07-22 14:30:24 +00:00
Adds a unified export pipeline under src/export/ with exporters for single notes,
structured hexes, maps (with reference table), random tables, and workflows
(with rolled samples). PDF rendering reuses Obsidian's MarkdownRenderer + theme
CSS; map PNG/PDF goes through a dedicated canvas renderer.
UI surface:
- "Export" tab in MapModal (PNG/PDF with overlay + size options)
- "Export" link in HexEditorModal + HexExportModal
- "Export PDF/Markdown" links in RandomTableView header
- "Export…" button in WorkflowEditorModal + WorkflowExportModal
- Commands: export current note (PDF/MD), current hex, current workflow
- File-menu items on any .md file: Export to PDF / Markdown
Other:
- New `exportFolder` setting (defaults to {worldFolder}/exports)
- hexGeometry: add hexSize / hexCenter / hexPolygonPoints / gridBoundingBox
- HexTableView + HexEditorModal: first-wins on duplicate palette names
(matches HexMapView's .find() behaviour)
- Tests: unit + integration suites for all exporters; sim-vault fixture
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
15 lines
308 B
Markdown
15 lines
308 B
Markdown
---
|
|
dice: 20
|
|
---
|
|
|
|
A small fixture table used by the integration test. **Wandering monsters** for a forest hex.
|
|
|
|
| Result | Weight |
|
|
|--------|--------|
|
|
| Pack of wolves | 4 |
|
|
| Lost merchant | 2 |
|
|
| Bandit ambush | 3 |
|
|
| Druid circle | 1 |
|
|
| Wild boar | 5 |
|
|
| Travelling minstrel | 2 |
|
|
| Goblin scouts | 3 |
|