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>
|
||
|---|---|---|
| .. | ||
| __mocks__ | ||
| fixtures | ||
| helpers | ||
| integration | ||
| asset-hooks.mjs | ||
| frontmatter.test.ts | ||
| hexEditorModal.test.ts | ||
| hexGeometry.test.ts | ||
| mapWithTableExport.test.ts | ||
| randomTable.test.ts | ||
| randomTableExport.test.ts | ||
| register.mjs | ||
| sections.test.ts | ||
| singleHexExport.test.ts | ||
| singleNoteExport.test.ts | ||
| token.test.ts | ||
| utils.test.ts | ||
| workflow.test.ts | ||
| workflowExport.test.ts | ||