-
Notifications
You must be signed in to change notification settings - Fork 36
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
Fixes #25 #26
base: master
Are you sure you want to change the base?
Fixes #25 #26
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! Would like to understand the use-case a bit better — please see some comments inline.
@@ -51,9 +51,9 @@ object Primitives { | |||
cellSpacing = Some(0), cellPadding = Some(6), cellBorder = Some(0), columns = Some("*"), | |||
bgColor = Some(background), style = Some("rounded") | |||
)) | |||
val tooltip = anchorId.map(a ⇒ s"anchor-$a") | |||
val tooltip = tip.orElse(anchorId.map(a ⇒ s"anchor-$a")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this create extra anchors as a side effect and therefore affect alignment? Maybe if “pretty” tooltips are important, it would be better to use some other mechanism for anchors.
val renderer = Renderer( | ||
renderingOptions = RenderingOptions( | ||
density = 75, | ||
nodeURLs = Map("1" -> "http://www.example.org", "2" -> "http://www.foobar.org"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you give a real-life example of the URL you would use?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another thing, I am not sure I like the idea of attaching this to internal ids, because those ids are not guessable or even deterministic. Is it important to you to specify the tip explicitly? What if reftree generated tips automatically using toString
or something like that? Or maybe it could just set all tooltips to an empty string.
No description provided.