Conversation
Add _origin_top_left() helper that converts each element's stored left/top (origin-relative) to the true top-left corner before pasting. Applied at all three sites: the main draw loop, the continuous-canvas bottommost accumulation, and detect_overflow. Templates using the default left/top origin are unaffected (helper is a no-op). Fixes the "elements fan out right" bug on templates saved with originX/Y: 'center' (e.g. testt). Adds backend/tests/test_render_origin.py with three regression tests confirming pixel-identical output between center-origin and equivalent left-origin placements.
Add GET /api/fonts/{name}/file (FileResponse, auth-gated, long Cache-Control,
path resolved exclusively via get_font_path() allow-list — no traversal).
Add frontend/src/editor/fonts.ts: loadServerFonts() fetches each font via an
authenticated fetch() → ArrayBuffer → FontFace, registered under FontInfo.name
which is the same identifier Fabric uses for fontFamily. Guards double-registration.
Wire into main.ts (app-wide on startup) and template-editor.ts bootstrap (awaited
before canvas load, re-render after loadCanvasJSON). ADR in docs/decisions.md
documents why ArrayBuffer fetch was chosen over bare url() (header-based auth).
…sions) Quick Print, New Template modal, and Save As modal now default to the last label media the user selected. The choice is persisted in localStorage (key: lf:last-label) and shared across all three pickers. Editing an existing template continues to use the template's stored label_media unchanged.
…ess update nag on dev
- pyproject.toml bumped to 0.1.3 - CHANGELOG: rolled [Unreleased] → [0.1.3] — 2026-06-07 - README: version badge + status line + compact What's New entry - CLAUDE.md: Build Status "Last shipped" → v0.1.3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[0.1.3] — 2026-06-07
Changed
/release-prepStep 4 updated to match.Added
-dev+<sha>suffix in the version footer (e.g.v0.1.2-dev+8e32bb1) and never show the "Update available" nag; release builds remain plainv0.1.2.Fixed
originX: 'center'/originY: 'center'); previously such elements were shifted right and down by half their box size, fanning wider elements further than narrow ones.GET /api/fonts/{name}/fileendpoint and registered with the FontFace API on startup.