An open API service indexing awesome lists of open source software.

https://github.com/sillyfreak/typst-plum

Create UML class diagrams in Typst; inspired by but *not* compatible with PlantUML
https://github.com/sillyfreak/typst-plum

typst typst-package

Last synced: over 1 year ago
JSON representation

Create UML class diagrams in Typst; inspired by but *not* compatible with PlantUML

Awesome Lists containing this project

README

          

# Plum

_Plum_ lets you create UML class diagrams in Typst; inspired by but _not_ compatible with PlantUML.

## Getting Started

To add this package to your project, use this:

````typ
#import "@preview/plum:0.0.1"

#let diagram = ```
#[pos(0, 1)]
class Foo as X {
- attr
attr2
}

#[pos(1, 0)]
interface Bar {
+ attr
}

#[pos(2, 1)]
abstract class Baz {
# bars
}

#[bend(45deg)]
X ..|> Bar
#[via((1, 0.4), (2, 0.4))]
Bar <--x-o Baz
```

#plum.plum(diagram)
````

![Example](./thumbnail.png)

## Usage

See the [manual](docs/manual.pdf) for details.