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>
44 lines
2.2 KiB
JSON
44 lines
2.2 KiB
JSON
{
|
|
"name": "hexmaker-plugin",
|
|
"version": "1.2.0",
|
|
"description": "A plugin to power hex crawl worldbuilding and running.",
|
|
"main": "main.js",
|
|
"scripts": {
|
|
"dev": "node esbuild.config.mjs",
|
|
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
|
|
"version": "node version-bump.mjs && git add manifest.json versions.json",
|
|
"test": "tsx --tsconfig ./tsconfig.test.json --import ./tests/register.mjs --test tests/frontmatter.test.ts tests/hexEditorModal.test.ts tests/randomTable.test.ts tests/sections.test.ts tests/utils.test.ts tests/workflow.test.ts tests/token.test.ts tests/randomTableExport.test.ts tests/singleNoteExport.test.ts tests/hexGeometry.test.ts tests/mapWithTableExport.test.ts tests/singleHexExport.test.ts tests/workflowExport.test.ts",
|
|
"test:watch": "tsx --tsconfig ./tsconfig.test.json --import ./tests/register.mjs --test --watch tests/frontmatter.test.ts tests/hexEditorModal.test.ts tests/randomTable.test.ts tests/sections.test.ts tests/utils.test.ts tests/workflow.test.ts tests/token.test.ts tests/randomTableExport.test.ts tests/singleNoteExport.test.ts tests/hexGeometry.test.ts tests/mapWithTableExport.test.ts tests/singleHexExport.test.ts tests/workflowExport.test.ts",
|
|
"test:integration": "tsx --tsconfig ./tsconfig.test.json --import ./tests/register.mjs --test tests/integration/*.integration.ts",
|
|
"test:e2e": "tsx --tsconfig ./tsconfig.test.json --import ./tests/register.mjs --test tests/integration/e2e-*.integration.ts",
|
|
"lint": "eslint . --ext .js,.ts"
|
|
},
|
|
"keywords": [
|
|
"obsidian",
|
|
"plugin"
|
|
],
|
|
"author": "Mark B",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@codemirror/lang-markdown": "^6.5.0",
|
|
"@codemirror/language-data": "^6.5.2",
|
|
"@codemirror/state": "6.5.0",
|
|
"@codemirror/view": "6.38.6",
|
|
"@eslint/js": "^9.30.1",
|
|
"@types/node": "^25.5.0",
|
|
"esbuild": "0.27.4",
|
|
"eslint": "^9.30.1",
|
|
"eslint-plugin-obsidianmd": "^0.1.9",
|
|
"expect": "^30.3.0",
|
|
"globals": "^17.4.0",
|
|
"jiti": "^2.6.1",
|
|
"obsidian": "latest",
|
|
"tslib": "2.8.1",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "6.0.2",
|
|
"typescript-eslint": "^8.58.0"
|
|
},
|
|
"dependencies": {
|
|
"minisearch": "^7.2.0"
|
|
}
|
|
}
|