Skip to content

Daniel devtools tree#140

Closed
dkrasner wants to merge 30 commits intodaniel-devtoolsfrom
daniel-devtools-tree
Closed

Daniel devtools tree#140
dkrasner wants to merge 30 commits intodaniel-devtoolsfrom
daniel-devtools-tree

Conversation

@dkrasner
Copy link
Contributor

Motivation and Context

This PR adds our own tree plotting JS library (I tried many others and they all had their drawbacks).

Approach

The tree library is comprised of two main components/dom element tree-graph and tree-node, and svg bezier curves connecting these. Leaf nodes are either terminal (orange) or roots of subtrees (blue). The latter handle a dbl-click event to drill down the tree. Use the up-arrow to up the tree.

How Has This Been Tested?

The tree lib has been integrated into the cells devtools (chrome) plugin code and tested out in the UI.

Screenshots or console output (if appropriate)

Screen Shot 2022-12-31 at 6 33 13 PM

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

fixing up navigation bugs
when tree nodes are (almost) vertically aligned, use a basic svg path line
instead of a bezier curve
adding hover (mouseover mouseleave) handling on the target window object and
corresponding no-op methods to tree
setup these methods
@dkrasner
Copy link
Contributor Author

dkrasner commented Jan 2, 2023

update

I added better event handling for navigation, as well as mouseover/leave to highlight target cells.

@dkrasner dkrasner mentioned this pull request Jun 19, 2023
5 tasks
@dkrasner
Copy link
Contributor Author

closing with #145

@dkrasner dkrasner closed this Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant