kisst / mindmap

d3j + yaml + html = magic
Apache License 2.0
3 stars 2 forks source link

root item parameter #8

Closed kisst closed 4 years ago

kisst commented 4 years ago

if only a sub section of the map is interesting, with url parameter the relevant data section should be possible to be trimmed. Like so:

$ yq r data-to-be.yaml 
this project:
  yaml: null
  rich text:
    color:
      mm-font-color: ff0000
    icon:
      mm-icon: fa-heart
    background:
      mm-background: 0000ff
    allinment: null
  d3j: null
  tooling:
    GitHub:
      mm-hyperlink: https://github.com/kisst/mindmap
  MVP:
    It works: null
  Design principals:
    Data + View should be split: null
    Source data should be human editable: null
    Option to share view: null
    data should version controlled: null
  Implementation:
    In progress: null

vs.

yq r data-to-be.yaml "this project.tooling"
GitHub:
  mm-hyperlink: https://github.com/kisst/mindmap
evenicoulddoit commented 4 years ago

Questions:

kisst commented 4 years ago

My idea was that setting the route, does remove the parent data, and load in only the partial map, so the initial would be relative to that. So given this-project.design-principals as a root and option-to-share-view.foo as initial would give a map of the Design principals with everything but the Option to share view Foo closed.

Reasoning behind the thinking is that you might want to share a smaller section of the map without any of the noise around it. Maybe if root is set, a navigation bar can show as an indication that you are watching only part of the map, like in webshops, just the categories, so if you choose to you can zoom back out ( without just click and no url edit )

evenicoulddoit commented 4 years ago

Got it