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

Refactor the interactive trees to be SVG-based #446

Open
bartfeenstra opened this issue May 2, 2020 · 4 comments
Open

Refactor the interactive trees to be SVG-based #446

bartfeenstra opened this issue May 2, 2020 · 4 comments
Labels
enhancement New feature or request javascript Pull requests that update Javascript code

Comments

@bartfeenstra
Copy link
Owner

bartfeenstra commented May 2, 2020

Refactor the interactive trees to be SVG-based, for improved interactivity as well as easier styling.

Proposals

  • What if we do the whole thing in HTML? We can then make everything fully responsive.
@bartfeenstra bartfeenstra added the enhancement New feature or request label May 2, 2020
@bartfeenstra
Copy link
Owner Author

d3.js + https://www.npmjs.com/package/d3-dtree could be a possible replacement for Cytoscape.

@fatso83
Copy link

fatso83 commented Apr 11, 2022

Is there an example of such interactive trees? I have only found one reference example page (your own): https://ancestry.bartfeenstra.com/en/person/. This does not seem to have any such interactivity?

@bartfeenstra
Copy link
Owner Author

https://ancestry.bartfeenstra.com/en/person/I0004/ shows one such example. When building your own Betty site, the betty.plugin.trees.Trees plugin (0.2.x) or the betty.trees.Trees extension (0.3.x) must be enabled, and the person whose page you're looking at must have parents or children for anything to be shown.

@fatso83
Copy link

fatso83 commented Apr 21, 2022

Wow, that is fantastic! I really love this (and the entire Betty thing, which makes sharing Gramps data so much nicer). And the zooming in/out works very smooth, so hoping the SVG code ends up as performant 😄

@bartfeenstra bartfeenstra added the javascript Pull requests that update Javascript code label Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request javascript Pull requests that update Javascript code
Projects
None yet
Development

No branches or pull requests

2 participants