sbuffkin_hexmaker/tests
isaprettycoolguy@protonmail.com b69131f16d perf: cut redundant per-item work on map + table load
Map grid: the per-hex render loop called getTerrainFromFile +
getIconOverrideFromFile + getGmIconsFromFile, each re-running
getAbstractFileByPath + getFileCache — 3 identical cache lookups per hex
(~11.5k redundant ops on a 3843-hex map). Fetch frontmatter once and feed
three new pure extractors (terrainFromFm/iconOverrideFromFm/gmIconsFromFm).
Reuse the bg-image layer across renders (bgLayerEl/bgLayerSrc) so
renderGrid()'s viewportEl.empty() no longer re-decodes the image each time.
Tag painted hexes with .duckmage-hex-painted (setHexColor) and switch the
bg-image empty-hex rule to a class selector instead of a slower
:not([style*="background-color"]) attribute-substring match.

Table view: memoise the name→entry palette Map per region instead of
rebuilding it per row, and re-filter only the rows just filled in each batch
(applyFilters(rows?)) instead of re-scanning all rows after every batch.

Adds dev/bg-hex-recalc-bench + unit tests for the new pure extractors.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-30 07:03:23 -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 perf: cut redundant per-item work on map + table load 2026-06-30 07:03:23 -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 fix: render road/river chains in parallel + skip zoom-bake on bg-image maps 2026-06-30 06:56:46 -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