Scaffolding for creating custom diagram widgets in ClearCalcs
- Node > v19 - For installation instructions for various operating systems. https://nodejs.org/en/download/package-manager
- Clone this repository
- In your terminal navigate into the folder
cd path/to/repository/folder
- Install packages
npm install
For developing your widget, you can start a web server that will automatically update as you make code changes, by running:
npm start
It will start a server at http://localhost:1234, you can open that in your browser to see your widget running
All your code should exist entirely inside the /src
directory.
When you're ready to compile your code for use inside ClearCalcs, you can run:
npm run-script compile
When completed, this will produce an index.html
file in the /output
folder. This is the finished file you can upload into the ClearCalcs Diagram widget.