1.1.7 • Published 4 years ago

svelte-dependency-viz v1.1.7

Weekly downloads
-
License
-
Repository
github
Last release
4 years ago

This package is inspired heavily by Exercism's syllabus aka concept map. I needed something like it in an upcoming project and decided to publish it as a separate package.

In essence, a skill tree or progression map is just a graph in which each transitive dependency is only connected to it's direct parent.

Use

npm install --save-dev svelte-dependency-viz

Because this is just a graph, the component takes a nodes and edges prop, where:

type NodeId = number | string;

interface Node {
  id: NodeId;
  name: string;
}

interface Edge {
  source: NodeId;
  target: NodeId;
}

Developing

npm install && npm run dev

To do

(PRs welcome)

  • Allow edge/path customization
  • Optimize resize calculations by debouncing
  • Build to web component so it can be used with any framework
1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago