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

simplify copying nodes #110

Open
wonder-mice opened this issue Sep 20, 2018 · 5 comments
Open

simplify copying nodes #110

wonder-mice opened this issue Sep 20, 2018 · 5 comments
Labels
enhancement New feature or request

Comments

@wonder-mice
Copy link

It's very hard to select node's text to copy it in clipboard. Either node is clicked or several nodes are selected. It would be nice to be able to copy-paste interesting nodes to share them via messenger or email.

@spiermar spiermar changed the title Node selection doesn't work reliably simplify copying nodes Sep 20, 2018
@spiermar spiermar added the enhancement New feature or request label Sep 20, 2018
@wonder-mice wonder-mice changed the title simplify copying nodes Usability: hard to copy node's text into clipboard Sep 20, 2018
@wonder-mice
Copy link
Author

Oh, sorry, didn't see you renamed the title (renamed it back), thought it was me who come up with this title and decided to make it more clear %)

@wonder-mice wonder-mice changed the title Usability: hard to copy node's text into clipboard simplify copying nodes Sep 20, 2018
@spiermar
Copy link
Owner

Might try to tie this to #93. Can create a right click handler and default it to copy the node name.

@spiermar spiermar added this to the 2.1 milestone Sep 20, 2018
@spiermar spiermar self-assigned this Sep 20, 2018
@wonder-mice
Copy link
Author

It's up to you of course, but as a single data point I hate when pages redefine right click in any way.

To through in some possible alternatives:

  • Make it possible to mouse over tooltip and select there (tooltip can have some extra info as well, so making it selectable sounds appealing)?
  • Make it draggable (so I can drag and drop it in mail/text editor)? Not sure how browser will handle so many draggable objects though and how it'll impact performance...
  • I have no idea how click/selection disambiguation works in web browsers, but questions like this imply that it's a common problem and maybe there ways to disambiguate cleanly?
  • Last resort could be that I have a label at the bottom with last clicked item, so I can select it there.

@spiermar
Copy link
Owner

The last option is fairly simple to implement right now. The click handler can be changed to zoom and set the text of another element, or copy. The example page right now prints the name to the console.
The tooltips are attached to mouseout and mouseover events on each rect. I don't have a better idea right now on how to change this behavior and allow for mouse over the tooltip.
Changing the cursor and blocking zoom on select might be possible, I just need to check how browsers will behave with those options in an svg.

@spiermar spiermar removed their assignment Sep 20, 2018
@spiermar
Copy link
Owner

Possibly related to #21 and #94

@spiermar spiermar self-assigned this Oct 23, 2018
@spiermar spiermar removed this from the 3.0 milestone Oct 12, 2021
@spiermar spiermar removed their assignment Oct 12, 2021
@spiermar spiermar added feature-request enhancement New feature or request and removed enhancement New feature or request feature-request labels Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants