The latest version can be found at n-wach/protractr
A constraint-based 2D Sketching tool - Hosted on Github Pages
Functionality is planned to match basic Solidworks sketches containing Points, Lines, and Circles. Most of Solidworks' constraints are currently supported, with the remaining to be implemented soon.
Protractr is composed of two main modules:
gcsis used to describe and solve geometric sketches, which are composed of figures and constraints.uidisplays the current sketch and allows a user to modify it
To get started:
-
clone this repo, and cd into it
-
npm install -
Make changes to typescript source. This should be done under the
srcdirectory. Note that thedistdirectory is the product ofbrowserifyandtsc, and you should not directly edit files there. -
To test your changes, run:
./node_modules/typescript/bin/tsc npm run browserifyYou should then see that the file
dist/bundle.jshas been modified. This is the final JavaScript file that the running application actually uses: a combination of all the JavaScript in the application, together with the node modules on which the application depends. -
When you are ready to commit a change, regenerate the docs:
npm run gen-docsThen, commit the changes under
srcanddocs, and plus the changes todist/bundle.js. We commitdocsanddist/bundle.jsbecause they are used by the GitHub Pages hosted production version of the site.