Skip to content

Commit 5609a73

Browse files
committed
Merge branch 'GraphProxy'
2 parents 9fa1e9a + 8ad6880 commit 5609a73

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Sources/Grape/Gestures/GraphMagnifyGesture.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ import SwiftUI
7676
)
7777
self.proxy.modelTransform = newModelTransform
7878

79-
// guard let action = self.proxy._onGraphMagnified else { return }
80-
// action()
79+
if let action {
80+
action()
81+
}
8182
}
8283

8384
@inlinable

Sources/Grape/Views/ForceDirectedGraphModel.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public protocol _AnyGraphProxyProtocol {
2828
}
2929

3030
extension ForceDirectedGraphModel: _AnyGraphProxyProtocol {
31+
@inlinable
3132
public func locateNode(at locationInViewportCoordinate: CGPoint) -> AnyHashable? {
3233
if let nodeID = findNode(at: locationInViewportCoordinate) {
3334
return AnyHashable(nodeID)
@@ -36,6 +37,7 @@ extension ForceDirectedGraphModel: _AnyGraphProxyProtocol {
3637
}
3738
}
3839

40+
@inlinable
3941
public func setNodeFixation(nodeID: some Hashable, fixation: CGPoint?) {
4042
guard let nodeID = nodeID as? NodeID else {
4143
return

0 commit comments

Comments
 (0)