SimpleKit
Learned in CS349 - User Interfaces.
Repo: simplekit
npm install simplekit
A UI toolkit
- Creates different toolkits in the browser (e.g. canvas, imperative)
- By design, it’s somewhat incomplete and very limited
- We’ll examine how it’s built to illustrate UI architecture
- You’ll use it for A1 and A2
The demo repo includes SimpleKit as a git submodule (You’ll use SimpleKit as an npm package in you assignments)
- See README for cloning and updating instructions
- Vite projects for demos have config to point to simplekit
simplekit-canvas
Most basic usage for SimpleKit “canvas mode”
- Import what you need
- Start it up (creates full page canvas, etc.)
- Set the drawing callback
simplekit-canvas rectangleDemo()
simplekit-canvas pathDemo()
…