Skip to content

Commit fad72ac

Browse files
committed
Remove old event handlers
1 parent f79de13 commit fad72ac

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

Sources/Grape/Grape.docc/Documentation.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ Grape supports localization features. You can localize the labels in the graph v
3939
* ``GraphComponent``
4040

4141
### Adding interactivity
42-
* ``View/graphOverlay(_:content:)``
43-
* ``View/graphBackground(_:content:)``
4442
* ``GraphProxy``
45-
* ``View/withGraphTapGesture(_:action:)``
46-
* ``View/withGraphDragGesture(_:action:)``
47-
* ``View/withGraphMagnifyGesture(_:action:)``
43+
* ``SwiftUICore/View/graphOverlay(alignment:content:)``
44+
* ``SwiftUICore/View/graphBackground(alignment:content:)``
45+
* ``SwiftUICore/View/withGraphTapGesture(_:action:)``
46+
* ``SwiftUICore/View/withGraphDragGesture(_:action:)``
47+
* ``SwiftUICore/View/withGraphMagnifyGesture(_:action:)``
4848

4949
### Managing the view state
5050

Sources/Grape/Views/ForceDirectedGraphModel.swift

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,6 @@ public final class ForceDirectedGraphModel<NodeID: Hashable> {
182182
@usableFromInline
183183
var _onTicked: ((UInt) -> Void)? = nil
184184

185-
@usableFromInline
186-
var _onNodeDragChanged: ((NodeID, CGPoint) -> Void)? = nil
187-
188-
@usableFromInline
189-
var _onNodeDragEnded: ((NodeID, CGPoint) -> Bool)? = nil
190-
191-
// @usableFromInline
192-
// var _onNodeTapped: ((NodeID?) -> Void)? = nil
193185

194186
@usableFromInline
195187
var _onViewportTransformChanged: ((ViewportTransform, Bool) -> Void)? = nil
@@ -200,9 +192,6 @@ public final class ForceDirectedGraphModel<NodeID: Hashable> {
200192
@usableFromInline
201193
var _emittingNewNodesWith: (NodeID) -> KineticState
202194

203-
@usableFromInline
204-
var _onGraphMagnified: (() -> Void)? = nil
205-
206195
// records the transform right before a magnification gesture starts
207196
public var obsoleteState = ObsoleteState(cgSize: .zero)
208197

0 commit comments

Comments
 (0)