auspice icon indicating copy to clipboard operation
auspice copied to clipboard

Increase weight and change color of transmission lines

Open leocaserta opened this issue 2 years ago • 2 comments

(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 avatar Aug 05 '22 14:08 leocaserta

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

https://github.com/nextstrain/auspice/blob/0728ceca060f3c3681113bf7f903f3bc81630ad3/src/components/map/mapHelpers.js#L164-L167

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.

victorlin avatar Aug 05 '22 18:08 victorlin

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.

trvrb avatar Aug 05 '22 18:08 trvrb