sbuffkin_hexmaker/src
isaprettycoolguy@protonmail.com d062bef610 fix: HTML coord labels honor coordPlacement setting (top/middle/bottom)
After the SVG coord-label rendering was removed in 3cc956e, the
top/middle/bottom placement setting silently stopped working — the
HTML `.duckmage-hex-label` spans were just flex-centered inside the
hex, ignoring the setting.

Restored honour via CSS:
- `.duckmage-hex-label` is now `position: absolute; left: 50%;
  transform: translate(-50%, -50%)` so the parent's flex centering
  doesn't pin it. `top` is set per-placement class.
- `renderGrid` writes a `duckmage-coord-{top,middle,bottom}` class on
  the viewport, derived from `settings.coordPlacement`. Three CSS
  rules anchor the label at top: 22% / 50% / 78% (matching the
  previous SVG ±0.28 hex-height offsets so visual position is
  unchanged for users who never touched the setting).
- Default (when no class set) renders at top: 78% so an
  uninitialized state still looks like "bottom" — the same fallback
  the dropdown UI defaults to.

Coord-slip regression test in
frontend-testing/examples/coord-slip-on-zoom still PASSes: 0 slips
in the NEW bake mid-frame.
2026-06-21 11:29:11 -04:00
..
export fix: legend swatch shows pattern at readable density (1.3.1) 2026-06-17 12:33:00 -04:00
hex-map fix: HTML coord labels honor coordPlacement setting (top/middle/bottom) 2026-06-21 11:29:11 -04:00
hex-table chore: address obsidianmd lint and popout-window compat (1.2.1) 2026-06-05 23:04:11 -04:00
random-tables chore: address obsidianmd lint and popout-window compat (1.2.1) 2026-06-05 23:04:11 -04:00
bundledIcons.ts feat: bundle built-in icons into main.js as data URLs 2026-03-23 16:17:52 -04:00
constants.ts feat: coord placement setting + terrain tables in onboarding (1.2.2) 2026-06-16 10:34:57 -04:00
defaultHexTemplate.md clean up workflow view, remove encounter column from hex table 2026-03-17 22:39:46 -04:00
defaultTableTemplate.md add delete table function to tree view 2026-03-14 20:32:10 -04:00
frontmatter.ts feat: multi-GM-icon support per hex (closes hexmaker#28) 2026-06-21 10:27:12 -04:00
HexmakerModal.ts fix: pin HexEditorModal to viewport on open (1.2.3) 2026-06-17 10:26:30 -04:00
HexmakerPlugin.ts feat: export module — PDF/Markdown for notes, hexes, maps, tables, workflows (1.2.0) 2026-06-05 20:46:41 -04:00
HexmakerSettingTab.ts fix: address obsidianmd reviewer rules (1.4.2) 2026-06-17 18:48:13 -04:00
md.d.ts feat: bundle built-in icons into main.js as data URLs 2026-03-23 16:17:52 -04:00
overlayPatterns.ts fix: overlay pattern editor — hex preview, palette refresh, thin outline 2026-06-17 12:22:28 -04:00
sections.ts auto update links in the random tables 2026-04-04 11:51:53 -04:00
SetupWizardView.ts feat: coord placement setting + terrain tables in onboarding (1.2.2) 2026-06-16 10:34:57 -04:00
types.ts feat: background image + grid calibration mode (1.4.0) 2026-06-17 17:01:24 -04:00
utils.ts feat: background image + grid calibration mode (1.4.0) 2026-06-17 17:01:24 -04:00