From 7f43bb51941899f1e1f766aadc66b1efc2399387 Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Wed, 6 Nov 2024 16:27:12 -0800 Subject: [PATCH] Set default value of focus to false This is more consistent with other booleans. --- src/components/tree/phyloTree/change.ts | 2 +- src/components/tree/phyloTree/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/tree/phyloTree/change.ts b/src/components/tree/phyloTree/change.ts index e07d5c743..299361d02 100644 --- a/src/components/tree/phyloTree/change.ts +++ b/src/components/tree/phyloTree/change.ts @@ -297,6 +297,7 @@ export const change = function change( svgHasChangedDimensions = false, animationInProgress = false, changeNodeOrder = false, + focus = undefined, newDistance = undefined, newLayout = undefined, updateLayout = undefined, @@ -309,7 +310,6 @@ export const change = function change( visibility = undefined, tipRadii = undefined, branchThickness = undefined, - focus = undefined, scatterVariables = undefined, performanceFlags = undefined, }: ChangeParams diff --git a/src/components/tree/phyloTree/types.ts b/src/components/tree/phyloTree/types.ts index da7bb5684..3ed139188 100644 --- a/src/components/tree/phyloTree/types.ts +++ b/src/components/tree/phyloTree/types.ts @@ -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 @@ -214,7 +215,6 @@ export interface ChangeParams { branchThickness?: number[] // other data // - focus?: boolean scatterVariables?: ScatterVariables performanceFlags?: PerformanceFlags }