Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
2474d6a
feat: add document schema versioning, migrations and IndexedDB tests
Deityhub Nov 5, 2026
c5ba67a
Merge pull request #28 from Deityhub/test-idb
Deityhub Nov 5, 2026
2b9795f
feat: add JSON import and export for documents
Deityhub Nov 5, 2026
64056a4
Merge pull request #29 from Deityhub/feat-document-import-export
Deityhub Nov 5, 2026
3ca7dae
feat: import documents from Lienzo-exported PDFs
Deityhub Nov 5, 2026
9472fe4
Merge pull request #30 from Deityhub/feat-pdf-import
Deityhub Nov 6, 2026
b32a216
refactor: extract canvas geometry into tested utilities
Deityhub Nov 6, 2026
657e973
Merge pull request #31 from Deityhub/refactor-canvas-geometry
Deityhub Nov 6, 2026
1f5d04b
refactor: split PropertyPanel into per-element panels
Deityhub Nov 6, 2026
ccabb8d
Merge pull request #32 from Deityhub/refactor-property-panel
Deityhub Nov 6, 2026
981d197
refactor: split CanvasElement into per-type views and extract shape g…
Deityhub Nov 6, 2026
fad3d43
Merge pull request #33 from Deityhub/refactor-canvas-element
Deityhub Nov 6, 2026
ae92046
refactor: move canvas drag and resize into controllers
Deityhub Nov 6, 2026
071aa64
Merge pull request #34 from Deityhub/refactor-canvas-interactions
Deityhub Nov 6, 2026
72b62f5
refactor: slim down the canvas page
Deityhub Nov 6, 2026
1197953
Merge pull request #35 from Deityhub/refactor-canvas-page
Deityhub Nov 6, 2026
4ae74f9
fix: scale text with the page on smaller screens
Deityhub Nov 6, 2026
7a3eb9f
Merge pull request #36 from Deityhub/fix/scale-text-with-page
Deityhub Nov 6, 2026
c3c8795
feat: export PDFs with real text and vector shapes
Deityhub Nov 6, 2026
868fa32
Merge pull request #37 from Deityhub/feat/vector-pdf-export
Deityhub Nov 6, 2026
2f7bf18
feat: save documents automatically while editing
Deityhub Nov 6, 2026
d386c7e
Merge pull request #38 from Deityhub/feat/autosave
Deityhub Nov 6, 2026
592ac2c
feat: select, group and resize multiple elements (#39)
Deityhub Nov 6, 2026
b01d02e
feat: move elements and groups between pages (#40)
Deityhub Nov 6, 2026
9988876
feat: copy, cut, paste and duplicate elements, and paste pictures (#41)
Deityhub Nov 6, 2026
6713861
feat: Fluent 2 colours and a light and dark theme
Deityhub Nov 6, 2026
6eb7ee6
Merge pull request #42 from Deityhub/feat/design-tokens-dark-theme
Deityhub Nov 6, 2026
d834a37
feat: Studio home page (#43)
Deityhub Nov 6, 2026
8e5f8ed
feat: one export dialog and a tidier editor header
Deityhub Nov 6, 2026
f26b48f
Merge pull request #44 from Deityhub/feat/export-dialog-header
Deityhub Nov 6, 2026
f10d9fb
feat: new logo, favicons, app icons and social preview image
Deityhub Nov 6, 2026
e8bcebd
Merge pull request #45 from Deityhub/feat/brand-assets
Deityhub Nov 6, 2026
c06c976
feat: tidier property panel, a phone sheet and rulers with values (#46)
Deityhub Nov 6, 2026
74fbf3b
feat: tool palette that adds on click, and headers that collapse to i…
Deityhub Nov 6, 2026
8fbc3cc
Merge pull request #47 from Deityhub/feat/tool-palette
Deityhub Nov 6, 2026
f584b39
fix: root favicon, uncut favicon icon, and a System option for the th…
Deityhub Nov 6, 2026
968b032
Merge pull request #48 from Deityhub/fix/root-favicon
Deityhub Nov 6, 2026
59f8175
feat: template gallery with 22 templates, a page for each, and sortin…
Deityhub Nov 6, 2026
1d1c0e7
Merge pull request #49 from Deityhub/feat/template-gallery
Deityhub Nov 6, 2026
20e0446
fix: templates open in the editor exactly as designed
Deityhub Nov 6, 2026
b669048
docs: rewrite the README, add contributing, security, code of conduct…
Deityhub Nov 6, 2026
3d99146
Merge pull request #50 from Deityhub/docs/project-documentation
Deityhub Nov 7, 2026
5791c92
chore(release): v2.0.0
github-actions[bot] Nov 7, 2026
1471581
Merge pull request #51 from Deityhub/release/v2.0.0
Deityhub Nov 7, 2026
22339ac
Merge branch 'main' into develop
Deityhub Nov 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
run: |
docker run -d --name lienzo -p 3000:3000 -e ORIGIN=http://localhost:3000 lienzo:ci
for i in $(seq 1 30); do curl -fsS http://localhost:3000/ >/dev/null 2>&1 && break; sleep 1; done
curl -fsS http://localhost:3000/ | grep -q "Create Beautiful Documents"
curl -fsS http://localhost:3000/ | grep -q "Design it. Export it. Edit it again."
curl -fsS http://localhost:3000/sitemap.xml | grep -q "<loc>"
curl -fsS http://localhost:3000/canvas >/dev/null
- name: Container logs
Expand Down
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,44 @@

All notable changes to this project are documented in this file. New entries are generated by the Prepare Release workflow from [Conventional Commits](https://www.conventionalcommits.org/), following [Semantic Versioning](https://semver.org/).

## [2.0.0](https://github.com/Deityhub/lienzo/compare/v1.1.0...v2.0.0) (2026-11-07)

### 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](https://github.com/Deityhub/lienzo/pull/46))
- new logo, favicons, app icons and social preview image
- one export dialog and a tidier editor header
- Studio home page ([#43](https://github.com/Deityhub/lienzo/pull/43))
- Fluent 2 colours and a light and dark theme
- copy, cut, paste and duplicate elements, and paste pictures ([#41](https://github.com/Deityhub/lienzo/pull/41))
- move elements and groups between pages ([#40](https://github.com/Deityhub/lienzo/pull/40))
- select, group and resize multiple elements ([#39](https://github.com/Deityhub/lienzo/pull/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

## [1.1.0](https://github.com/Deityhub/lienzo/compare/v1.0.0...v1.1.0) (2026-11-05)

### Features
Expand Down
79 changes: 79 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our community include:

- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
- Focusing on what is best not just for us as individuals, but for the overall community

Examples of unacceptable behavior include:

- The use of sexualized language or imagery, and sexual attention or advances of any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email address, without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.

Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official email address, posting via an official social media account, or acting as an appointed representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [contact@deityhub.com](mailto:contact@deityhub.com). All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the reporter of any incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series of actions.

**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within the community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at <https://www.contributor-covenant.org/version/2/1/code_of_conduct.html>.

Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).

For answers to common questions about this code of conduct, see the FAQ at <https://www.contributor-covenant.org/faq>. Translations are available at <https://www.contributor-covenant.org/translations>.

[homepage]: https://www.contributor-covenant.org
77 changes: 77 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Contributing to Lienzo

Thanks for helping. Bug reports, ideas, documentation fixes and code are all welcome. By taking part you agree to follow the [Code of Conduct](CODE_OF_CONDUCT.md). For a security problem, please follow [SECURITY.md](SECURITY.md) instead of opening an issue.

## Ways to help

- **Report a bug or suggest something:** open a [GitHub issue](https://github.com/Deityhub/lienzo/issues). For a bug, say what you did, what you expected, what happened, and your browser. A screenshot or a `.lienzo.json` file that shows it helps.
- **Ask a question or share an idea:** use [GitHub Discussions](https://github.com/Deityhub/lienzo/discussions).
- **Send a change:** see below. For anything bigger than a small fix, please open an issue first so we can agree on the approach before you spend time on it.

## Set up

You need Node.js 22 (see `.nvmrc`) and Yarn 4 (`corepack enable` picks the pinned version).

```bash
git clone https://github.com/<your-username>/lienzo.git
cd lienzo
yarn install
yarn dev # http://localhost:5173
```

## Make a change

1. Fork the repository and create a branch from `develop`, for example `feat/text-alignment` or `fix/resize-offset`.
2. Make the change, and add or update tests for it.
3. Run the same checks CI runs:

```bash
yarn lint # Prettier and ESLint
yarn check # types
yarn test:unit:run # unit and browser-component tests
yarn test:e2e # builds the app and runs the Playwright tests (Chromium)
```

`yarn format` fixes formatting. The first time, run `yarn playwright install chromium`.

4. Open a pull request into `develop` and fill in the template.

### Pull request titles and commits

Pull requests are squash-merged, and the PR title becomes the commit message, so it must follow [Conventional Commits](https://www.conventionalcommits.org/) (CI checks this): `feat: add text alignment`, `fix: resize handle offset`, `docs: explain backups`. `feat`, `fix`, `perf`, `refactor` and `docs` appear in the changelog; `chore`, `ci`, `test` and similar do not.

### Code style

- TypeScript and Svelte 5 with runes (`$state`, `$derived`, `$effect`). State shared between components lives in `.svelte.ts` files.
- Keep pure logic (geometry, sorting, file formats) in `src/lib/utils` as plain functions with unit tests, apart from the components.
- Colours, spacing and radii come from the theme tokens in `src/app.css`, so both the light and the dark theme work. Please check a change in both.
- Interfaces must work with the keyboard and a screen reader: real buttons, labels for icon-only controls, visible focus, and touch targets of at least 44px on phones.

### Tests

- **Unit tests** (`*.spec.ts`) run in Node. Tests that need a browser (`*.browser.spec.ts`) run in Chromium.
- **End-to-end tests** (`e2e/`) run against a production build on port 4173. To keep them reliable on any machine:
- wait for hydration (`waitForLoadState('networkidle')`) before the first click;
- assert on the saved data (read from IndexedDB, in page units) rather than on screen pixels;
- use `dragTo` for drags, and `hasTouch: true` for tap tests.

## Documentation and generated files

- Update the README and other docs when behaviour changes.
- If you add or remove a runtime dependency or a font, run `yarn notices` to refresh [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
- If you add a font, also regenerate the PDF export fonts with `python3 scripts/generate-pdf-fonts.py` (needs `fonttools` and `brotli`).
- The icons and the social image are generated by `yarn brand:assets`; the screenshots in the README by `yarn docs:screenshots`.

## Releases

Lienzo follows [Semantic Versioning](https://semver.org/) and keeps a [CHANGELOG](CHANGELOG.md) generated from the commit titles.

1. In GitHub, go to Actions, then **Prepare Release**, and run it on `develop` with `patch`, `minor` or `major`. It opens a `chore(release): vX.Y.Z` pull request that bumps `package.json` and the changelog.
2. Merge that pull request into `develop`.
3. Open a pull request from `develop` into `main` and merge it with a merge commit. The **Release** workflow tags the version and creates the GitHub release; the Docker image is published to GHCR and Docker Hub.

To run CI on the release pull request, add a personal access token as the repository secret `RELEASE_TOKEN`.

## License

Lienzo is licensed under the [GNU GPLv3](LICENSE). By contributing you agree that your contribution is licensed under the same terms.
Loading
Loading