Automatic graph layout for fletcher
https://typst.app/universe/package/autograph โ// momentum
// why it's here
- Active: last commit today
- Built almost entirely by one person
- Health 80/100 with only 6 stars
// how to help
// readme
autograph
A Typst package for drawing graphs with automatic layout, built on top of fletcher and Graphviz.
Documentation
See the manual for a guide on styling and mixing with fletcher, and a reference of all functions.
Usage Examples
#import "@preview/autograph:0.1.3": diagram, node, edge
#diagram(
node(<foo>),
node(<bar>),
node(<baz>),
edge(<foo>, <bar>),
edge(<foo>, <baz>),
edge(<baz>, <bar>),
)
Changelog
Upcoming
- Decouple graph styles from diagram styles: You can now pass something like
graph-options: (node-shape: "rect")and it will only apply to autograph nodes. - Add a manual
0.1.3
- Implement strong ordering guarantees: The order of all elements inside a
diagramis completely preserved, including fletcher elements. - Re-export dependencies (
fletcher,diagraph-layout, โฆ) - Refactor:
- Restructure source files
- Add tests and linting (
tytanic,tinymist,typst-package-check) - Add CI