I LOVE graph paper, but sometimes I want to plot something on a different tiling than square. I wrote this app to give myself the option for triangular and hexagonal grids and produce a PDF to print and draw on. This is written in JavaScript/React using the Material UI sensible defaults, and does PDF generation entirely client-side using the jsPDF package.
This uses Basis vectors for computing the grid points, and uses the Strategy pattern for selecting the drawing method.
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
Builds the app for Github Pages to the docs
folder. It uses all settings of npm run build
.