0.1.0 • Published 5 months ago

slidev-addon-graph v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

slidev-addon-graph

npm version npm downloads bundle JSDocs License

Slidev addon for draggable graphs

!WARNING This is work in progress.

Usage

pnpm add -D slidev-addon-graph

In the frontmatter of your slides.md:

---
addons:
  - slidev-addon-graph
---

In your slides:

<SlidevGraph
  id="graph1"
  :items="[
    { name: 'foo', color: '#155' },
    { name: 'bar', color: '#551', from: 'foo' },
  ]"
/>

id is required and should be unique for each graph. When the graph is rendered, you can double click the graph to make it draggable, new positions of the nodes will be saved under .slidev/graph/${id}.json that you should commit to your source control.

Sponsors

License

MIT License © 2024-PRESENT Anthony Fu

0.1.0

5 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago

0.0.0

8 months ago