Skip to content

v0.5.4 - bug fix

Choose a tag to compare

@markforster markforster released this 28 Feb 21:14
· 302 commits to main since this release
ef60949

Fixed

  • Fixed image scaling behavior so zoom levels are now intuitive and consistent in the editor:
    • 1x, 2x, and 3x now behave as literal scale multipliers.
    • A separate dynamic Cover marker is shown so users can still reach full-card coverage when needed.
    • Slider marker alignment with the thumb was improved for clearer visual feedback.
  • Fixed a rendering issue on small-treasure and large-treasure cards where thin left/right edge artifacts could appear at higher image zoom levels.

Root Cause

  • Zoom labels previously mixed semantic targets with multiplier labels, which made scaling feel inconsistent.
  • Slider tick placement used percentage-only positioning, which could drift from native thumb positioning.
  • Textured border mask/texture assets (742x1045) were composited into a 750x1050 canvas using preserveAspectRatio="xMidYMid meet", which could leave narrow side gutters.

Change

  • Updated zoom mapping so relative-mode slider values use literal multiplier behavior (1x -> 1, 2x -> 2, 3x -> 3).
  • Added/retained dynamic max bounds so full-card coverage remains reachable, plus a separate Cover marker.
  • Updated marker positioning to use pixel-based thumb-travel math for better alignment.
  • Updated textured border rendering to use preserveAspectRatio="none" for both mask and texture layers, ensuring full edge coverage and preventing artwork bleed-through.

Impact

  • More predictable zoom behavior across templates.
  • Full-card coverage remains available.
  • No schema/data migration changes.
  • Legacy card compatibility behavior remains intact.

Validation

  • Added/updated automated tests for zoom mapping behavior and marker positioning.
  • Added regression coverage for CardTexturedBorder to ensure mask/texture fill mode remains correct.