@3plate/graph-core 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -0
- package/README.md +42 -0
- package/dist/index.cjs +1648 -0
- package/dist/index.d.mts +51 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.js +1612 -0
- package/dist/index.mjs +323 -0
- package/package.json +36 -0
package/README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# @3plate/graph-core
|
|
2
|
+
|
|
3
|
+
Graph library with stable layout and incremental updates.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @3plate/graph-core
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { createGraph } from '@3plate/graph-core'
|
|
15
|
+
|
|
16
|
+
const graph = createGraph({
|
|
17
|
+
nodes: [
|
|
18
|
+
{ id: '1', label: 'Node 1' },
|
|
19
|
+
{ id: '2', label: 'Node 2' },
|
|
20
|
+
],
|
|
21
|
+
edges: [{ id: 'e1', source: '1', target: '2' }],
|
|
22
|
+
})
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Features
|
|
26
|
+
|
|
27
|
+
- Custom node rendering
|
|
28
|
+
- Automatic graph layout
|
|
29
|
+
- Stable layouts
|
|
30
|
+
- Multiple orientations
|
|
31
|
+
- Interactive features
|
|
32
|
+
- Cycle detection
|
|
33
|
+
- Edge styling
|
|
34
|
+
- Pan and zoom
|
|
35
|
+
- Mini-map
|
|
36
|
+
- Animations
|
|
37
|
+
- SVG for crisp details
|
|
38
|
+
- Fast rendering
|
|
39
|
+
- Builder mode
|
|
40
|
+
- Incremental updates
|
|
41
|
+
- Railroad-style edges
|
|
42
|
+
- Configurable layout
|