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

Fixes #25 #26

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

NicolasRouquette
Copy link

No description provided.

Copy link
Owner

@stanch stanch left a 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"))
Copy link
Owner

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"),
Copy link
Owner

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?

Copy link
Owner

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.

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.

2 participants