For diagrams in books and other content.
- Mac OS X (run on Intel)
- Draw.io v15.4.0+
You can run this script in your directory of graphics. The directory should look as follows:
$ tree -L 1
.
├── CH\ 01
├── CH\ 02
├── CH\ 03
└── export.shYou need to download the ${CHAPTER_NO_SPACES}.drawio file into the corresponding chapter directory.
Then, check the number of figures in the diagram set. (Unfortunately, there's no way to export all.)
Run the following in your shell. The arguments include the directory, the prefix for the chapter, the number of figures, and the suffix you want to append.
$ bash export.sh "CH 02" CH02 8 WangAfter you run it, you get the diagrams in *.png and *.svg form.