Skip to content

feat(api): add PageBackgroundFill band factory helpers#76

Merged
DemchaAV merged 1 commit into
developfrom
feat/pagebackgroundfill-band-helpers
May 30, 2026
Merged

feat(api): add PageBackgroundFill band factory helpers#76
DemchaAV merged 1 commit into
developfrom
feat/pagebackgroundfill-band-helpers

Conversation

@DemchaAV
Copy link
Copy Markdown
Owner

Summary

Adds full-width horizontal-band factory helpers to PageBackgroundFill, built on the v1.6.5 y-coordinate fix (#75).

New API

  • topBand(heightRatio, color) — band flush with the page top
  • bottomBand(heightRatio, color) — band flush with the page bottom
  • band(yRatioFromTop, heightRatio, color) — band at an arbitrary vertical offset
  • topBandPoints(heightPoints, pageHeight, color) / bandPoints(yFromTopPoints, heightPoints, pageHeight, color) — point-based convenience

Complements the existing fullPage / leftColumn / rightColumn / column helpers.

Test plan

  • bandFactoryHelpersComputeRatiosCorrectly — ratio + points conversion
  • topBandAndBottomBandHelpersRenderAtCorrectEdges — end-to-end placement (top → y=252, bottom → y=0 at H=300)
  • PageBackgroundTest 15/15
  • mvnw clean verify -pl . — 999 tests, 0 failures
  • javadoc:javadoc clean (new {@link} refs resolve)
  • CHANGELOG Public API entry under v1.6.5

Completes the v1.6.5 engine work (audit §4.6 / R5).

Adds topBand, bottomBand, band, topBandPoints, and bandPoints factory
methods for full-width horizontal background bands (top, bottom, or an
arbitrary vertical offset; ratio- or point-based), complementing the
existing column helpers and building on the v1.6.5 y-coordinate fix.
Includes ratio-equality and render-placement tests plus a CHANGELOG entry.
@DemchaAV DemchaAV merged commit 0c072f1 into develop May 30, 2026
9 checks passed
@DemchaAV DemchaAV deleted the feat/pagebackgroundfill-band-helpers branch May 30, 2026 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant