README.md

KnitStichGrid Web

Konva.js web conversion of the KnitStichGrid WPF desktop app.

Layout

  • src/main.js boots the app, wires the sidebar, and attaches the shared store
  • src/konva/ contains the canvas layers and stage wrapper
  • src/services/ holds the grid, sketch, size, and persistence logic
  • src/models/ contains the plain data objects used by the store and services
  • css/app.css is the app stylesheet imported by src/main.js
  • tests/ contains Vitest coverage for the app services and store

Setup

npm install

Development

npm run dev

Build

npm run build

Testing

npm test

Run the browser regression test with:

npm run test:e2e

Build

npm run build

Notes

  • web/dist/main.js and web/dist/main.css are the built outputs consumed by templates/knitstitch.twig
  • coverage/ and Vite timestamp files are generated locally and should stay untracked