Vis4Sense / HistoryMap

http://sensemap.io
45 stars 7 forks source link

Encode visible tab on historymap #169

Closed Yuu-Han closed 3 weeks ago

Yuu-Han commented 1 month ago

This helps to locate the current tab on historymap.

Yuu-Han commented 3 weeks ago

b0b11363129a07f2d9ea8ee62b40daed01c340d7

When a tab is activated, try to locate the page in hmPages

Issues:

kaidatavis commented 3 weeks ago

Is it possible that an activated tab is not a node in history map?

Yuu-Han commented 3 weeks ago

Yes. The current behaviour is adding a virtual node.

  • Otherwise, add a virtual node to the bottom of the hm tree
    • How to save the node? Automatically add it to the array or let the user decide?

I haven't decided whether to directly add it to hmPages or add on user's demand.

Yuu-Han commented 3 weeks ago

Decision: add the page to hmPages on activating the tab.

Yuu-Han commented 3 weeks ago

Fixed issues in https://github.com/Vis4Sense/HistoryMap/issues/169#issuecomment-2155889901.