Skip to content

Commit

Permalink
Set default value of focus to false
Browse files Browse the repository at this point in the history
This is more consistent with other booleans.
  • Loading branch information
victorlin committed Nov 7, 2024
1 parent 9f6b56a commit 302439f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/tree/phyloTree/change.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ export const change = function change(
svgHasChangedDimensions = false,
animationInProgress = false,
changeNodeOrder = false,
focus = undefined,
newDistance = undefined,
newLayout = undefined,
updateLayout = undefined,
Expand All @@ -309,7 +310,6 @@ export const change = function change(
visibility = undefined,
tipRadii = undefined,
branchThickness = undefined,
focus = undefined,
scatterVariables = undefined,
performanceFlags = undefined,
}: ChangeParams
Expand Down
2 changes: 1 addition & 1 deletion src/components/tree/phyloTree/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ export interface ChangeParams {
svgHasChangedDimensions?: boolean
animationInProgress?: boolean
changeNodeOrder?: boolean
focus?: boolean

// change these things to provided value (unless undefined) //
newDistance?: Distance
Expand All @@ -214,7 +215,6 @@ export interface ChangeParams {
branchThickness?: number[]

// other data //
focus?: boolean
scatterVariables?: ScatterVariables
performanceFlags?: PerformanceFlags
}
Expand Down

0 comments on commit 302439f

Please sign in to comment.