File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,9 @@ import SwiftUI
76
76
)
77
77
self . proxy. modelTransform = newModelTransform
78
78
79
- // guard let action = self.proxy._onGraphMagnified else { return }
80
- // action()
79
+ if let action {
80
+ action ( )
81
+ }
81
82
}
82
83
83
84
@inlinable
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ public protocol _AnyGraphProxyProtocol {
28
28
}
29
29
30
30
extension ForceDirectedGraphModel : _AnyGraphProxyProtocol {
31
+ @inlinable
31
32
public func locateNode( at locationInViewportCoordinate: CGPoint ) -> AnyHashable ? {
32
33
if let nodeID = findNode ( at: locationInViewportCoordinate) {
33
34
return AnyHashable ( nodeID)
@@ -36,6 +37,7 @@ extension ForceDirectedGraphModel: _AnyGraphProxyProtocol {
36
37
}
37
38
}
38
39
40
+ @inlinable
39
41
public func setNodeFixation( nodeID: some Hashable , fixation: CGPoint ? ) {
40
42
guard let nodeID = nodeID as? NodeID else {
41
43
return
You can’t perform that action at this time.
0 commit comments