Skip to content

Commit

Permalink
Merge pull request #53 from li3zhen1/observation-retain-cycle-fix
Browse files Browse the repository at this point in the history
[API] Remove obsolete `initialViewportTransform`
  • Loading branch information
li3zhen1 committed Mar 21, 2024
2 parents af79ef7 + dd1ee36 commit e7459ac
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Sources/Grape/Views/ForceDirectedGraph.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,8 @@ where NodeID == Content.NodeID {

@inlinable
public init(
// _ isRunning: Binding<Bool> = .constant(true),
// _ modelTransform: Binding<ViewportTransform> = .constant(.identity),
states: ForceDirectedGraphState = ForceDirectedGraphState(),
ticksPerSecond: Double = 60.0,
initialViewportTransform: ViewportTransform = .identity,
@GraphContentBuilder<NodeID> _ graph: () -> Content,
@SealedForce2DBuilder force: () -> [SealedForce2D.ForceEntry] = Self.defaulForce,
emittingNewNodesWithStates state: @escaping (NodeID) -> KineticState = { _ in
Expand All @@ -98,7 +95,6 @@ where NodeID == Content.NodeID {
graph()._attachToGraphRenderingContext(&gctx)

self._graphRenderingContextShadow = gctx
// self._isRunning = isRunning

self._forceDescriptors = force()

Expand All @@ -107,7 +103,6 @@ where NodeID == Content.NodeID {
gctx,
force,
stateMixin: states,
// modelTransform: modelTransform,
emittingNewNodesWith: state,
ticksPerSecond: ticksPerSecond
)
Expand Down

0 comments on commit e7459ac

Please sign in to comment.