Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin topic (node) position on the graph layout #638

Open
Casyfill opened this issue May 15, 2021 · 1 comment
Open

Pin topic (node) position on the graph layout #638

Casyfill opened this issue May 15, 2021 · 1 comment
Labels
foam-dataviz Related to data visualization

Comments

@Casyfill
Copy link

Casyfill commented May 15, 2021

The basic graph layout is simple but does it job... most of the time.
It would be nice though to somehow pin certain core nodes at specific positions relative to each other, so they will remain further apart and stable.

I recognize this is an exotic request, so perhaps this does not require any UI solution, but simple hard-coding of the coordinates in the graph settings. I have ~0 experience with Typescript but will be happy to work on that feature. I see it as one of two options:

Option 1.

In foam.settings.json, add graph settings per node, e.g:

...
"graph_settings": {
"pinned_nodes": {
"root" : [0, 0],
"family": [100, 100],
"work": [-100, -100],
"sport":[-100, 100]
}
}

or

Option 2

Via tags in markdown file's settings, e.g.

# Root
---
markdown-node-style:
    position: [0, 0]
---
my root markdown

That would be aligned with the proposals here

@riccardoferretti riccardoferretti added the foam-dataviz Related to data visualization label May 16, 2021
@riccardoferretti
Copy link
Collaborator

thanks for this, I am definitely open to the idea. We have various graph related proposal but atm no-one available to work on the, so for now I am tagging this for easy future retrieval

@Casyfill Casyfill changed the title Pin topics on the graph layout Pin topic (node) position on the graph layout May 17, 2021
movermeyer pushed a commit to movermeyer/foam that referenced this issue May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
foam-dataviz Related to data visualization
Projects
None yet
Development

No branches or pull requests

2 participants