From 302439fbf0426513d4c23f355277747ba69491a7 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 6e78baa6f..912c43f99 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 bea49152d..53051b679 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 }