Skip to content

Commit

Permalink
Document spacingFactor for preset layout
Browse files Browse the repository at this point in the history
Ref: Add official support for spacingFactor in the preset layout #3172
  • Loading branch information
maxkfranz committed Oct 26, 2023
1 parent edd0810 commit 4c115ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/extensions/layout/preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ let defaults = {
pan: undefined, // the pan level to set (prob want fit = false if set)
fit: true, // whether to fit to viewport
padding: 30, // padding on fit
spacingFactor: undefined, // Applies a multiplicative factor (>0) to expand or compress the overall area that the nodes take up
animate: false, // whether to transition the node positions
animationDuration: 500, // duration of animation in ms if enabled
animationEasing: undefined, // easing of animation if enabled
Expand Down

0 comments on commit 4c115ca

Please sign in to comment.