A simple 2D vector shape editor that supports TikZ output. Work in progress.
A demo is hosted at https://graffitikz.wnyjin.com
- Make sure node.js is installed.
- Clone this repository.
- Run
npm installto install the dependencies. Then,- run
npm run devfor development. - run
npm run buildto build the project. Artifacts will be located inbuild/directory. (To host from a subdirectory, the webpack environment needs to be changed. See this stackoverflow answer for the configurations.) - run
npm run serveto host.
- run
- Shift-Cmd-Z (redo) does not register in Firefox on macOS. This can be fixed via creating shortcuts in system preferences (see this bugzilla thread for details or this stackexchange thread for a summary). Use Cmd-Y instead for now.
- Used code from yishn/tikzcd-editor for the
CodeBoxandToolBoxcomponents. - Used code from mathjax/MathJax-demos-node for rendering TeX.