Skip to content

Commit

Permalink
fix: flow diagram fits center
Browse files Browse the repository at this point in the history
  • Loading branch information
yvonneyx committed Dec 5, 2024
1 parent 70a4cfd commit 77703e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/FlowDiagram/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface FlowDiagramProps extends GraphProps {}

const defaultConfig: FlowGraphOptions = {
autoResize: true,
autoFit: 'center',
node: {
style: {
component: (d: G6.NodeData) => {
Expand Down

0 comments on commit 77703e5

Please sign in to comment.