10-03-2017 03:08
10-03-2017 03:08
An SVG <line> appears to have a round head and a flat tail. Is this by design or is it configurable? I prefer a round head and tail, but I can see how different people have different preferences.
Answered! Go to the Best Answer.
Best Answer05-21-2018 23:15
05-21-2018 23:15
Either do this in your index.gui:
<line stroke-linecap="round" />
Or put this line in your styles.css:
line {stroke-linecap: round}
10-03-2017 03:17 - edited 10-03-2017 03:18
10-03-2017 03:17 - edited 10-03-2017 03:18
If the svg <line> doesn't work for you, try the svg <rect> and two svg <circle> at both ends.
Best Answer10-03-2017 03:32
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
10-03-2017 03:32
@Anthoang wrote:
If the svg <line> doesn't work for you, try the svg <rect> and two svg <circle> at both ends.
That sounds like a good idea, perhaps make it a template symbol. https://dev.fitbit.com/guides/user-interface/svg/#template-symbols
Best Answer10-03-2017 16:48 - edited 10-03-2017 16:49
10-03-2017 16:48 - edited 10-03-2017 16:49
@Anthoang wrote:If the svg <line> doesn't work for you, try the svg <rect> and two svg <circle> at both ends.
I haven't tried that, but I did try a <line> with two svg <circle>, but it doesn't work, because in my experience the rendering engine can never get the width of the line/rectangle equal exactly to the diameter of the circle.
I think it's something to do with the rendering algorithm or anti-aliasing algorithm. There always appears to be a slight bulge caused by the circle, as opposed to a seamless transition from the circle to the line/rectangle.
I'm just asking if it was by design because I intend to incorporate this phenomenon into my design.
Best Answer05-21-2018 11:03
05-21-2018 11:03
I am also interested for this
Best Answer05-21-2018 23:15
05-21-2018 23:15
Either do this in your index.gui:
<line stroke-linecap="round" />
Or put this line in your styles.css:
line {stroke-linecap: round}
05-22-2018 00:52
05-22-2018 00:52
WHAT?!? @JonFitbit why isn't this attribute documented?
05-22-2018 00:59