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是否儲存過拜訪資訊