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 install
to install the dependencies. Then,- run
npm run dev
for development. - run
npm run build
to 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 serve
to 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
CodeBox
andToolBox
components. - Used code from mathjax/MathJax-demos-node for rendering TeX.