This is a TypeScript class for a CAD grid with features like zooming, panning, and drawing lines on an HTML canvas.
- install dependencies
npm i
- run the dev server
npm start
- it will be open on http://localhost:4040
- click on
d
key to toggle between drawing and panning
- use the mouse wheel to zoom in and out