[AETHER-1213] GUI1 enhanced to allow scaling host icons and host text.
Scale is proportional to the current zoom level, but can be toggled in
four increments via SHIFT-[ (text) and SHIFT-] (icon) keyboard shortcuts.
The icon size limit was increased to be min 20 and max 70.
Change-Id: I49e983d34a2465fb12d48395c34c1f22911f4f51
diff --git a/web/gui/src/main/webapp/app/view/topo/topo.js b/web/gui/src/main/webapp/app/view/topo/topo.js
index ab803f6..1348eec 100644
--- a/web/gui/src/main/webapp/app/view/topo/topo.js
+++ b/web/gui/src/main/webapp/app/view/topo/topo.js
@@ -83,6 +83,7 @@
function uiDragTxt() { return topoLion('qh_gest_drag'); }
function uiCmdScrTxt() { return topoLion('qh_gest_cmd_scroll'); }
function uiCmdDragTxt() { return topoLion('qh_gest_cmd_drag'); }
+ function quiet() { return ""; }
actionMap = {
I: [toggleInstances, togInst],
@@ -109,6 +110,9 @@
dot: [ttbs.toggleToolbar, togtb],
E: [equalizeMasters, eqmaster],
+ "shift-openBracket": [tfs.toggleHostTextSize, quiet],
+ "shift-closeBracket": [tfs.toggleHostIconSize, quiet],
+
// -- instance color palette debug
// 9: function () { sus.cat7().testCard(svg); },
@@ -305,7 +309,7 @@
// keep the map lines constant width while zooming
mapG.style('stroke-width', (2.0 / sc) + 'px');
- tfs.setNodeScale(sc);
+ tfs.adjustNodeScale();
}
function setUpZoom() {