From a8674514dd68633f8439c4aa0f8fe8ffde1e5576 Mon Sep 17 00:00:00 2001 From: Jordi Date: Fri, 10 Nov 2023 18:05:37 +0100 Subject: [PATCH] Better naming for "zoom around node" -> "smart zoom" --- doc/tutorial/tutorial_smartview.rst | 2 +- ete4/smartview/gui/static/js/menu.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/tutorial/tutorial_smartview.rst b/doc/tutorial/tutorial_smartview.rst index cc2924a60..86e5d16a2 100644 --- a/doc/tutorial/tutorial_smartview.rst +++ b/doc/tutorial/tutorial_smartview.rst @@ -222,7 +222,7 @@ Layout tab contains most of the general settings of the tree visualization. It i - **tooltip on hover**, whether to show tooltip when mouse hover on the node. If *False*, tooltip will be shown on left-click. Default *False*. -- **zoom around node**, If set to True, SmartView restricts the zoom-out level to maintain the node as the focal point, ensuring it remains clearly visible. The default setting is **True**. +- **smart zoom**, If set to True, SmartView will adjust the horizontal and vertical zoom so that the current node under the cursor tends to occupy the full area. The default setting is **True**. - **zoom in aligned panel**, If set to True, users can zoom in the aligned panel for aligned node faces. The default setting is **False**. diff --git a/ete4/smartview/gui/static/js/menu.js b/ete4/smartview/gui/static/js/menu.js index 4ffb6f263..5887f1db4 100644 --- a/ete4/smartview/gui/static/js/menu.js +++ b/ete4/smartview/gui/static/js/menu.js @@ -84,7 +84,7 @@ function create_menu_basic(menu, trees) { menu.addInput(view.tooltip, "auto", { label: "tooltip on hover" }); // zooms - menu.addInput(view, "smart_zoom", { label: "zoom around node" }); + menu.addInput(view, "smart_zoom", { label: "smart zoom" }); menu.addInput(view.aligned, "zoom", { label: "zoom in aligned panel" });