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

Show tooltip when hovering node #28

Open
nikolay-borzov opened this issue May 12, 2019 · 3 comments
Open

Show tooltip when hovering node #28

nikolay-borzov opened this issue May 12, 2019 · 3 comments

Comments

@nikolay-borzov
Copy link

Useful when node is too small to fit caption

@evmar
Copy link
Owner

evmar commented May 12, 2019

Good idea! Might be as simple as adding a title attribute on the DOM node.

@nikolay-borzov
Copy link
Author

I believe the first version has it.
But It would be great to provide a hook method where a user can attach custom behaviour to node element (e.g. add multiline tooltip)

@evmar
Copy link
Owner

evmar commented May 12, 2019

I guess it would go somewhere around here:

https://github.com/evmar/webtreemap/blob/master/src/treemap.ts#L115

I experimented with letting the user provide a function here, I can't remember why I removed it.

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

No branches or pull requests

2 participants