2026-02-13 00:27:36 +00:00
|
|
|
{
|
2026-03-29 15:08:32 +00:00
|
|
|
"name": "hexmaker-plugin",
|
2026-06-30 11:05:32 +00:00
|
|
|
"version": "1.4.6",
|
2026-03-29 15:08:32 +00:00
|
|
|
"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",
|
feat: faction & region overlay patterns (1.3.0)
Adds per-overlay pattern fills so factions and regions can be visually
distinguished when they overlap (issue #25). Each faction note and each
region note now carries a pattern, scale, and opacity in its
frontmatter, edited via the existing FactionEditor / GeoRegionEditor
modals (dropdown + sliders + live preview swatch).
Pattern set (10 total): solid (the existing flat fill, default),
diagonal stripes ↗ / ↖, crosshatch, polka dots, grid, zigzag,
triangles, scales, checker.
On screen: SVG <pattern> defs are deduped per (key,color,scale) and
referenced from each overlay path's fill. Stroke stays solid color so
blob boundaries remain crisp. Per-overlay opacity replaces the
hardcoded 0.45 group opacity.
PNG export: mirrored via Canvas patterns built from an offscreen tile
per (key,color,scale), cached for the render pass.
Backwards compatible — overlays without the new frontmatter keys fall
back to solid + 0.45 opacity, matching pre-1.3.0 behavior.
2026-06-17 15:53:04 +00:00
|
|
|
"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 tests/overlayPatterns.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 tests/overlayPatterns.test.ts",
|
feat: export module — PDF/Markdown for notes, hexes, maps, tables, workflows (1.2.0)
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>
2026-06-06 00:46:41 +00:00
|
|
|
"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",
|
2026-03-30 20:51:13 +00:00
|
|
|
"lint": "eslint . --ext .js,.ts"
|
2026-03-29 15:08:32 +00:00
|
|
|
},
|
|
|
|
|
"keywords": [
|
|
|
|
|
"obsidian",
|
|
|
|
|
"plugin"
|
|
|
|
|
],
|
|
|
|
|
"author": "Mark B",
|
|
|
|
|
"license": "MIT",
|
|
|
|
|
"devDependencies": {
|
|
|
|
|
"@codemirror/lang-markdown": "^6.5.0",
|
|
|
|
|
"@codemirror/language-data": "^6.5.2",
|
2026-03-29 15:10:57 +00:00
|
|
|
"@codemirror/state": "6.5.0",
|
|
|
|
|
"@codemirror/view": "6.38.6",
|
2026-03-30 22:58:07 +00:00
|
|
|
"@eslint/js": "^9.30.1",
|
2026-03-29 15:08:32 +00:00
|
|
|
"@types/node": "^25.5.0",
|
|
|
|
|
"esbuild": "0.27.4",
|
2026-03-30 22:58:07 +00:00
|
|
|
"eslint": "^9.30.1",
|
2026-03-30 20:51:13 +00:00
|
|
|
"eslint-plugin-obsidianmd": "^0.1.9",
|
2026-03-29 15:08:32 +00:00
|
|
|
"expect": "^30.3.0",
|
2026-03-30 20:51:13 +00:00
|
|
|
"globals": "^17.4.0",
|
|
|
|
|
"jiti": "^2.6.1",
|
2026-03-29 15:08:32 +00:00
|
|
|
"obsidian": "latest",
|
|
|
|
|
"tslib": "2.8.1",
|
|
|
|
|
"tsx": "^4.21.0",
|
2026-03-30 20:51:13 +00:00
|
|
|
"typescript": "6.0.2",
|
|
|
|
|
"typescript-eslint": "^8.58.0"
|
2026-03-29 15:08:32 +00:00
|
|
|
},
|
|
|
|
|
"dependencies": {
|
|
|
|
|
"minisearch": "^7.2.0"
|
|
|
|
|
}
|
2026-03-29 02:42:39 +00:00
|
|
|
}
|