sbuffkin_hexmaker/tests
isaprettycoolguy@protonmail.com f9e292c5f0 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 11:53:04 -04:00
..
__mocks__ auto update links in the random tables 2026-04-04 11:51:53 -04:00
fixtures feat: export module — PDF/Markdown for notes, hexes, maps, tables, workflows (1.2.0) 2026-06-05 20:46:41 -04:00
helpers feat: export module — PDF/Markdown for notes, hexes, maps, tables, workflows (1.2.0) 2026-06-05 20:46:41 -04:00
integration feat: export module — PDF/Markdown for notes, hexes, maps, tables, workflows (1.2.0) 2026-06-05 20:46:41 -04:00
asset-hooks.mjs auto update links in the random tables 2026-04-04 11:51:53 -04:00
frontmatter.test.ts add submap links: link hex to another map, centre-dot nav, back button, map link insert 2026-05-23 12:29:22 -04:00
hexEditorModal.test.ts add submap links: link hex to another map, centre-dot nav, back button, map link insert 2026-05-23 12:29:22 -04:00
hexGeometry.test.ts feat: export module — PDF/Markdown for notes, hexes, maps, tables, workflows (1.2.0) 2026-06-05 20:46:41 -04:00
mapWithTableExport.test.ts feat: export module — PDF/Markdown for notes, hexes, maps, tables, workflows (1.2.0) 2026-06-05 20:46:41 -04:00
overlayPatterns.test.ts feat: faction & region overlay patterns (1.3.0) 2026-06-17 11:53:04 -04:00
randomTable.test.ts fix a bunch of linter issues 2026-03-30 17:57:01 -04:00
randomTableExport.test.ts feat: export module — PDF/Markdown for notes, hexes, maps, tables, workflows (1.2.0) 2026-06-05 20:46:41 -04:00
register.mjs auto update links in the random tables 2026-04-04 11:51:53 -04:00
sections.test.ts auto update links in the random tables 2026-04-04 11:51:53 -04:00
singleHexExport.test.ts feat: export module — PDF/Markdown for notes, hexes, maps, tables, workflows (1.2.0) 2026-06-05 20:46:41 -04:00
singleNoteExport.test.ts feat: export module — PDF/Markdown for notes, hexes, maps, tables, workflows (1.2.0) 2026-06-05 20:46:41 -04:00
token.test.ts add token layer: place, edit, and inspect tokens on the hex map 2026-05-22 08:26:20 -04:00
utils.test.ts auto update links in the random tables 2026-04-04 11:51:53 -04:00
workflow.test.ts auto update links in the random tables 2026-04-04 11:51:53 -04:00
workflowExport.test.ts feat: export module — PDF/Markdown for notes, hexes, maps, tables, workflows (1.2.0) 2026-06-05 20:46:41 -04:00