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

Increase weight and change color of transmission lines #1538

Open
leocaserta opened this issue Aug 5, 2022 · 2 comments
Open

Increase weight and change color of transmission lines #1538

leocaserta opened this issue Aug 5, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@leocaserta
Copy link

leocaserta commented Aug 5, 2022

(from discussion post)

Transmission lines are thin and light, what makes it difficult to see when printed in a paper

Would it be possible to customize weight and color of transmission lines?

Thank you,

Leonardo

@leocaserta leocaserta added the enhancement New feature or request label Aug 5, 2022
@victorlin
Copy link
Member

Should be possible. Currently, weight/color/opacity are hardcoded:

.attr("stroke-opacity", 0.6)
.attr("stroke-linecap", "round")
.attr("stroke", (d) => { return d.color; })
.attr("stroke-width", 1);

The solution would be to surface these somewhere in view settings.

I'd like to try doing this, but we'll discuss further at the next issue triage session.

@trvrb
Copy link
Member

trvrb commented Aug 5, 2022

The line thickness is matched to the Bezier curve logic so that lines don't overlap when there are multiple transmission events. This is how the arcs in https://next.nextstrain.org/ebola looks nicely solid.

For one off experiments for printing, I'd suggest running Auspice dev locally and just modifying the stroke-width parameter that @victorlin points to here.

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
No open projects
Status: Backlog
Development

No branches or pull requests

3 participants