Skip to content

Add configurable horizontalBias and verticalBias to GraphView#153

Open
rashidotm wants to merge 2 commits intonabil6391:masterfrom
rashidotm:master
Open

Add configurable horizontalBias and verticalBias to GraphView#153
rashidotm wants to merge 2 commits intonabil6391:masterfrom
rashidotm:master

Conversation

@rashidotm
Copy link

Summary

  • Adds horizontalBias and verticalBias parameters to GraphView and GraphView.builder constructors
  • Allows consumers to control where the graph is positioned within the viewport (e.g., verticalBias: 0.3 shifts the graph upward)
  • Defaults to 0.5 (centered), preserving existing behavior

Closes #146

Test plan

  • flutter analyze — no new warnings or errors
  • Run the example app — default behavior unchanged (bias = 0.5)
  • Test with non-default values (e.g., verticalBias: 0.3) to confirm graph shifts as expected

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nodes is not centered after toggleNodeExpanded

1 participant