Li3zhen1 Grape Versions Save

A Swift library for graph visualization and efficient force simulation.

0.7.3-beta

1 month ago

What's Changed

Full Changelog: https://github.com/li3zhen1/Grape/compare/0.7.1...0.7.3-beta

0.7.1

2 months ago

What's Changed

Full Changelog: https://github.com/li3zhen1/Grape/compare/0.7.0...0.7.1

0.7.0

2 months ago

What's Changed

This version introduces Observation based state management API. This enables a bi-direction state control for running state and canvas transformation, and reduces re-render times.

https://github.com/li3zhen1/Grape/assets/45376537/e667e0b3-6d88-4310-b13d-0e9b983b5d75

All the examples are updated with the new API.

Full Changelog: https://github.com/li3zhen1/Grape/compare/0.6.2...0.7.0

0.6.2

2 months ago

What's Changed

Full Changelog: https://github.com/li3zhen1/Grape/compare/0.6.1...0.6.2

0.6.1

4 months ago

Changelog

New Documentation

Check out Grape | Documentation.

Grape

  • State management: added state binding.
  • Gesture handing: callback supports.
    • onGraphMagnified(perform:)
    • onNodeDragChanged(perform:)
    • onNodeDragEnded(shouldBeFixed:)
    • onNodeTapped(perform:)
  • Rendering: introduced a set of mark modifier, including color/shape style, label(SwiftUI Views), stroke styles.

ForceSimulation

  • Performance: Reduced retain/release traffic.
  • Fix buffer resize.

Examples

  • Added an example MermaidVisualization.swift to explain these features.

https://github.com/li3zhen1/Grape/assets/45376537/80d933c1-8b5b-4b1a-9062-9628577bd2e0

Source code: MermaidVisualization.swift

What's Changed

Full Changelog: https://github.com/li3zhen1/Grape/compare/0.5.8...0.6.0

0.6.0

4 months ago

Changelog

Grape

  • State management: added state binding.
  • Gesture handing: callback supports.
    • onGraphMagnified(perform:)
    • onNodeDragChanged(perform:)
    • onNodeDragEnded(shouldBeFixed:)
    • onNodeTapped(perform:)
  • Rendering: introduced a rich set of mark modifier, including color, label(SwiftUI Views), stroke.

ForceSimulation

  • Performance: Reduced retain/release traffic.

Examples

  • Added an example MermaidVisualization.swift to explain these features.

https://github.com/li3zhen1/Grape/assets/45376537/80d933c1-8b5b-4b1a-9062-9628577bd2e0

Source code: MermaidVisualization.swift

What's Changed

Full Changelog: https://github.com/li3zhen1/Grape/compare/0.5.8...0.6.0

0.5.8

4 months ago

0.5.7

5 months ago
  • Fix: Buffer resize

0.5.6

5 months ago

Changelog

  • Added a new data structure BufferedKDTree. It reuses a managed buffer as forces tick (so there won't be frequent allocation/deallocation). This approach improves performance by ~40%.
  • Bugfixes.