0

what is the use of the attribute stroke-linejoin:miter; in svg ?

https://code.sololearn.com/WjJ2ye196Ug0/?ref=app

9th Jun 2018, 2:02 AM
Hussein Araj
4 Antworten
+ 1
It is how the lines join at the angle. Miter means they join at equal angles. For two line segments meeting at a 90 degree angle, miter would be 45. Sometimes for angles beyond 45, it is undesired for a miter join because the "point" will stick out much further than the widths of the lines.
9th Jun 2018, 2:20 AM
Zeke Williams
Zeke Williams - avatar
+ 1
Check this one out to see the difference: https://code.sololearn.com/W2kis8l2PRYL/?ref=app
9th Jun 2018, 2:21 AM
Zeke Williams
Zeke Williams - avatar
+ 1
You can use: miter, round, bevel, or inherit. Check here for more details: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linejoin
9th Jun 2018, 2:34 AM
Zeke Williams
Zeke Williams - avatar
0
thanks
9th Jun 2018, 2:37 AM
Hussein Araj