Skip to content

feat: release: v2.0.0 - #52

Merged
Deityhub merged 45 commits into
mainfrom
develop
Nov 7, 2026
Merged

Deityhub merged 45 commits into
mainfrom
develop

Conversation

@Deityhub

@Deityhub Deityhub commented Nov 7, 2026

Copy link
Copy Markdown
Owner

Release v2.0.0

Merging this into main tags v2.0.0, creates the GitHub Release from the changelog and publishes the Docker image to GHCR and Docker Hub. Use a merge commit, so the branches stay aligned.

Features

  • template gallery with 22 templates, a page for each, and sorting on the documents page
  • tool palette that adds on click, and headers that collapse to icons instead of wrapping
  • tidier property panel, a phone sheet and rulers with values (#46)
  • new logo, favicons, app icons and social preview image
  • one export dialog and a tidier editor header
  • Studio home page (#43)
  • Fluent 2 colours and a light and dark theme
  • copy, cut, paste and duplicate elements, and paste pictures (#41)
  • move elements and groups between pages (#40)
  • select, group and resize multiple elements (#39)
  • save documents automatically while editing
  • export PDFs with real text and vector shapes
  • import documents from Lienzo-exported PDFs
  • add JSON import and export for documents
  • add document schema versioning, migrations and IndexedDB tests

Bug Fixes

  • templates open in the editor exactly as designed
  • root favicon, uncut favicon icon, and a System option for the theme switch
  • scale text with the page on smaller screens

Refactors

  • slim down the canvas page
  • move canvas drag and resize into controllers
  • split CanvasElement into per-type views and extract shape geometry
  • split PropertyPanel into per-element panels
  • extract canvas geometry into tested utilities

Documentation

  • rewrite the README, add contributing, security, code of conduct and third-party notices, and fresh screenshots

- Add schemaVersion, a migration chain and document validation
- Migrate documents on read; skip unreadable records in the list
- Use a single IndexedDB connection that handles versionchange and blocked upgrades
- Show a friendly message when browser storage is full
- Add IndexedDB, migration and legacy-document tests and a coverage config
feat: add document schema versioning, migrations and IndexedDB tests
- Export one or all documents to a versioned .lienzo.json file
- Import files on the Documents page with validation, migration and a replace-or-copy choice on id conflicts
- Import a single document into the editor canvas, replacing its content
- Document the backup and transfer flow
feat: add JSON import and export for documents
- Embed the editable document in exported PDFs as an attachment
- Import PDFs on the Documents page and in the editor, with the same validation and conflict handling as JSON files
- Replace jsPDF with @cantoo/pdf-lib and load it on demand
- Run svelte-kit sync before dev, build and unit test scripts to avoid the missing tsconfig warning
feat: import documents from Lienzo-exported PDFs
- Move overlap, hit testing, snapping, clamping, drag and resize maths out of Canvas.svelte into utils/geometry.ts
- Share one drag update between touch and pointer handlers (touch drags are now clamped to the page boundaries)
- Use the topmost element for the drag-preview highlight, matching the drop target
- Add unit tests for the geometry module and e2e tests for dragging and resizing
- Raise the chunk size warning limit for the on-demand PDF library
refactor: extract canvas geometry into tested utilities
- Move text, shape, image, position and layering sections into their own components
- Add a shared RangeInput replacing nine copies of the slider markup
- Keep PropertyPanel as a thin shell (473 to 71 lines)
- Add a RangeInput component test
refactor: split PropertyPanel into per-element panels
…eometry

- Move text, shape, image and resize handles into their own components
- Describe polygon shapes as data in utils/shapes.ts instead of repeating formulas
- Use a writable $derived for the text element's local value
- Add unit tests for the shape geometry
refactor: split CanvasElement into per-type views and extract shape geometry
- Add trackPointer to register and clean up pointer and touch listeners in one place
- Add createElementDrag and createElementResize controllers used by Canvas.svelte
- Apply the final pointer position on release and end resize on touchcancel
- Update resizing once per animation frame instead of once per pointer event
- Add browser tests for both controllers with real pointer and touch events
refactor: move canvas drag and resize into controllers
- Move the header and the import dialogs into their own components
- Extract the import-into-canvas flow and the save helper into lib/canvas
- Turn the drop placement into a tested geometry function shared with the drag preview
- Replace three copies of the display scale logic with a tested viewport helper
refactor: slim down the canvas page
Font size and padding were fixed CSS pixels, so text took up a larger share
of the page on narrow screens. Stored sizes now mean the size at the full
display scale and shrink with the page, which also makes the text size
predictable for PDF export. Desktop documents are unchanged.
fix: scale text with the page on smaller screens
PDF export no longer takes screenshots of the pages. Text, shapes and images
are drawn as PDF content, so the text can be selected and edited in a PDF
editor, and the document stays embedded for importing back into Lienzo.

- generate static font instances for every editor font (scripts/generate-pdf-fonts.py)
  and pick the file for a family, weight and style like CSS does
- lay text out with the browser so line breaks, alignment and justification match the editor
- draw shapes from the same geometry as the editor, including rotation, dashes and clipping
- embed images, and warn when one cannot be included
- scale image border widths with the page, like text
- add unit tests and an e2e test that checks the exported PDF
feat: export PDFs with real text and vector shapes
Edits are saved about 1.5 seconds after the last change. A new document is
saved as "Untitled document" on its first edit, and the Save button still
names or renames it.

- saves never overlap; edits made during a save are saved right after
- pending edits are saved when leaving the editor or hiding the tab, and the
  browser warns when changes could not be saved
- the header shows Saving and Saved next to the page count, with Retry on failure
- opening a document is not an edit, so it is never rewritten
- deleting a page now counts as a change
- the Cancel button is now called Back
feat: save documents automatically while editing
* feat: select several elements and move them together

- Shift/Ctrl/Cmd-click adds or removes an element from the selection
- drag a box over the empty page to select what it touches
- dragging a selected element moves the whole selection, keeping it inside the page boundaries
- a Select multiple toggle in the header lets taps and finger drags select several elements on touch screens
- Delete or Backspace removes the selection (not while typing in a field)
- the selection is kept as element ids and read live from the document
- one property panel for one or several selected elements

* feat: group elements so they move together

- Group and Ungroup in the panel for a multiple selection, and Ctrl/Cmd+G and Ctrl/Cmd+Shift+G
- selecting any member of a group (click, Shift-click, selection box) selects the whole group, and dragging a member moves all of them
- elements get an optional groupId; no migration is needed
- a group left with fewer than two elements is dissolved
- when the page boundaries change, a group is fitted in as one block so its layout is kept; only a group too big to fit is scaled down

* feat: resize a selection or group proportionally

- corner handles on the selection box scale every selected element around the opposite corner
- positions, sizes and text sizes scale by the same factor, so the group keeps its proportions
- scaling stops at the page boundaries and when an element would get smaller than the minimum size
- applying changes to several elements is a single update for autosave
* feat: move elements and groups between pages

- dragging a selection over another page highlights it and shows where it would land; dropping moves it there
- the layout between the elements and any group is kept, and a selection too big for the page is scaled down, text sizes included
- moved elements go on top of the target page and stay selected, as one change for autosave
- dragging near the top or bottom of the page list scrolls it
- a Move to Page choice in the panel moves the selection without dragging, for touch screens
- dragging within a page follows the pointer's position on the page, so scrolling mid-drag keeps up
- wait for the page to be interactive before choosing a file in an import e2e test, which failed intermittently
* feat: copy, cut, paste and duplicate elements, and paste pictures

- Ctrl/Cmd+C, X, V and D work on a selection or group, and keep working as normal text editing inside a text box
- copies go on the system clipboard, so they can be pasted into another document or tab
- a paste goes onto the page last clicked, a little to the side on the page it came from, and keeps its position on another page; it is fitted into the page boundaries
- groups are pasted as new groups, and each paste is one change for autosave
- Copy, Cut and Duplicate in the panel and a Paste button in the header, for touch screens
- a picture on the clipboard becomes an image element; large pictures are shrunk before they are stored
- clipboard content is validated like an imported document, and picture sources are limited to embedded images and web addresses
- replace the indigo palette with the Fluent 2 communication-blue brand and neutral greys, in light and dark
- add text-safe brand and danger colours (--primary-text, --destructive-text), so text stays readable on dark surfaces
- the page being designed is always white (--paper), so a document looks the same in both themes
- a theme switch in the home, documents and editor headers: starts from the system setting, remembers the choice, and is applied before the first paint
- 4px controls, flat primary buttons and 12px dialogs, and borders of inputs at 3:1 contrast
- new two-page logo and browser theme colour; the gradient text on the home page is plain text
- tests guard the contrast of every colour pair in both themes
feat: Fluent 2 colours and a light and dark theme
* feat: Studio home page

- new hero, comparison with an image-only PDF, feature grid, FAQ and closing call to action, in the light and dark themes and responsive down to a phone
- header with Why Lienzo and My Documents, and the theme switch beside the Open the editor button; a footer with only the credit and version
- structured data now describes the web app and the FAQ from the same list the page shows
- new title and description, and a single main landmark on the home page
- the original layers mark in white on a rounded brand-blue tile
- tests for the search essentials, structured data, FAQ and the phone layout
- the export dialog previews every page, takes a file name (characters systems do not accept are replaced), shows progress while the PDF is drawn, and shows the result and any warnings inside the dialog instead of alerts
- it can be closed with Escape or cancelled while the preview is still drawing, and the backdrop is black at 60% in both themes (it was a bright wash in dark)
- the editor header shows the document title with its page count and save status (with icons), then Add page, Select multiple, Paste, Import, Save, Export PDF and the theme switch
- secondary buttons are neutral outlined with a pressed state, and buttons are semibold, as in the Fluent designs
- the renderer reports progress per page
feat: one export dialog and a tidier editor header
Deityhub and others added 13 commits November 6, 2026 20:01
feat: new logo, favicons, app icons and social preview image
* feat: tidier property panel, a phone sheet and rulers with values

- the panel is titled sections (Position and size, Layering, Copy and paste, Font, Paragraph, Colour, and the shape and image equivalents)
- style, alignment, decoration, capitalisation and stroke or border style are segmented buttons that show what is on and are named for assistive technology
- on a phone the panel is a bottom sheet that shows its title until opened, each group is its own row that scrolls sideways, and it never takes more than 55% of the screen
- rulers show numbers every 500, a tooltip with the value while a margin marker is dragged or focused, and the markers are labelled sliders that the arrow keys move
- the marker logic is shared and tested, and the ticks are neutral so they read in the dark theme
- delete buttons are a calmer tinted red
feat: tool palette and responsive headers
fix: favicon and a System option for the theme
feat: template gallery, template pages and documents sorting
… and third-party notices, and fresh screenshots
docs: project documentation and a fix for templates in the editor
@vercel

vercel Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
lienzo Ready Ready Preview Nov 7, 2026 12:16am UTC

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

@Deityhub Deityhub changed the title release: v2.0.0 chore: release: v2.0.0 Nov 7, 2026
@Deityhub Deityhub changed the title chore: release: v2.0.0 feat: release: v2.0.0 Nov 7, 2026
@Deityhub
Deityhub merged commit 19d0a29 into main Nov 7, 2026
18 checks passed

This branch was successfully deployed

1 active deployment
Preview — 22339aca Deployed Nov 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant