Skip to content

A method to compile a small subset of graphviz functions to wasm for use as a typst plugin

Notifications You must be signed in to change notification settings

taylorh140/typst-graphviz-plugin

Repository files navigation

typst-graphviz-plugin

A method to compile a small subset of graphviz functions to wasm for use as a typst plugin

It should contain everything needed to compile but the following tools are needed:

  • Linux OS (It might work elsewhere but i didn't try it)
  • python3 (for stub replacement)
  • wabt (for conversion between wat/wasm)
  • emcc (for compiling the plugin)

after cloning the repo (do it recursively) the ./Build should create the wasm file (let me know if there are problems).

Work left to do

  • Fonts are not appropriately handled and basically cause the plugin to lock up. I think this needs to be figured out, but is fairly easy to work around.

About

A method to compile a small subset of graphviz functions to wasm for use as a typst plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published