hotfix: vertical view switching
This commit is contained in:
@@ -228,6 +228,9 @@ export default function cytoscapeMap(mapData, dataLayerType, dataLayerOption, cu
|
|||||||
|
|
||||||
const cytoscapeStore = CytoscapeStore();
|
const cytoscapeStore = CytoscapeStore();
|
||||||
cy.ready(() => {
|
cy.ready(() => {
|
||||||
|
if (rank === 'TB') {
|
||||||
|
return; // early return; only handle 'LR' (horizontal) case
|
||||||
|
}
|
||||||
cytoscapeStore.loadPositionsFromStorage();
|
cytoscapeStore.loadPositionsFromStorage();
|
||||||
localStorage.getItem(SAVE_KEY_NAME) && console.log(JSON.parse(localStorage.getItem(SAVE_KEY_NAME)));
|
localStorage.getItem(SAVE_KEY_NAME) && console.log(JSON.parse(localStorage.getItem(SAVE_KEY_NAME)));
|
||||||
// 判斷localStorage是否儲存過拜訪資訊
|
// 判斷localStorage是否儲存過拜訪資訊
|
||||||
|
|||||||
Reference in New Issue
Block a user