diff --git a/Assets/ForceDirectedGraph.png b/Assets/ForceDirectedGraph.png new file mode 100644 index 0000000..fb822a8 Binary files /dev/null and b/Assets/ForceDirectedGraph.png differ diff --git a/Examples/GrapeView b/Examples/GrapeView new file mode 160000 index 0000000..e5e66f6 --- /dev/null +++ b/Examples/GrapeView @@ -0,0 +1 @@ +Subproject commit e5e66f6b1ce3d784dafa3a5df1605052c509aac4 diff --git a/README.md b/README.md index bf3fbb9..6a40ef7 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,22 @@ ![swift workflow](https://github.com/li3zhen1/Grape/actions/workflows/swift.yml/badge.svg) -A visualization-purposed force simulation library that behaves like d3-force. \ No newline at end of file +A visualization-purposed force simulation library that behaves like d3-force. + + +### Examples + +This is a force directed graph visualizing the data from [Force Directed Graph Component](https://observablehq.com/@d3/force-directed-graph-component), running at 120FPS on a SwiftUI Canvas. + +![Force Directed Graph](./Assets/ForceDirectedGraph.png) + +### Features + +| Feature | Status | +| --- | --- | +| LinkForce | ✅ | +| ManyBodyForce | ✅ | +| CenterForce | ✅ | +| CollisionForce | | +| PositionForce | | +| RadialForce | |