From 364d2a58b4b4a88e5a137e606ba4d4a5d7caa24a Mon Sep 17 00:00:00 2001 From: Cindy Chang Date: Tue, 3 Sep 2024 14:26:51 +0800 Subject: [PATCH] hotfix: vertical view switching --- src/module/cytoscapeMap.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/module/cytoscapeMap.js b/src/module/cytoscapeMap.js index aca353e..6287c3a 100644 --- a/src/module/cytoscapeMap.js +++ b/src/module/cytoscapeMap.js @@ -228,6 +228,9 @@ export default function cytoscapeMap(mapData, dataLayerType, dataLayerOption, cu const cytoscapeStore = CytoscapeStore(); cy.ready(() => { + if (rank === 'TB') { + return; // early return; only handle 'LR' (horizontal) case + } cytoscapeStore.loadPositionsFromStorage(); localStorage.getItem(SAVE_KEY_NAME) && console.log(JSON.parse(localStorage.getItem(SAVE_KEY_NAME))); // 判斷localStorage是否儲存過拜訪資訊