stroke-linejoin
Baseline
Widely available
This feature is well established and works across many devices and browser versions. Itâs been available across browsers since â¨2020ë 3ìâ©.
stroke-linejoin í¹ì±ì ê²½ë¡ì ì¤í¸ë¡í¬ë¥¼ ì í ë 모ì리ì ì¬ì©ë 모ìì ì ìí©ëë¤.
ì°¸ê³ :
íí í¹ì±ì¼ë¡ì¨ì stroke-linejoin ë ì´ì ììíë CSS ìì±ì´ stroke-linejoin ì¡´ì¬í©ëë¤. ë í¹ì±ì´ 모ë ì ìëì´ ìë¤ë©´ CSS ìì±ì´ ì°ì ë©ëë¤.
You can use this attribute with the following SVG elements:
ìì
<svg viewBox="0 0 18 12" xmlns="http://www.w3.org/2000/svg">
<!--
ìë¨ ì¢ì¸¡ ê²½ë¡ :
"miter" ê°ì í¨ê³¼
-->
<path
d="M1,5 a2,2 0,0,0 2,-3 a3,3 0 0 1 2,3.5"
stroke="black"
fill="none"
stroke-linejoin="miter" />
<!--
ì¤ì ê²½ë¡:
"round" ê°ì í¨ê³¼
-->
<path
d="M7,5 a2,2 0,0,0 2,-3 a3,3 0 0 1 2,3.5"
stroke="black"
fill="none"
stroke-linejoin="round" />
<!--
ìë¨ ì°ì¸¡ ê²½ë¡:
Upper right path:
"bevel" ê°ì í¨ê³¼
-->
<path
d="M13,5 a2,2 0,0,0 2,-3 a3,3 0 0 1 2,3.5"
stroke="black"
fill="none"
stroke-linejoin="bevel" />
<!--
Bottom left path:
íë¨ ì£ì¸¡ ê²½ë¡:
"miter" ê°ì´ ì§ìëì§ ìì ëì í´ë°±ì¼ë¡ì¨ "miter-clip" ê°ì í¨ê³¼
-->
<path
d="M3,11 a2,2 0,0,0 2,-3 a3,3 0 0 1 2,3.5"
stroke="black"
fill="none"
stroke-linejoin="miter-clip" />
<!--
íë¨ ì°ì¸¡ ê²½ë¡:
Bottom right path:
"miter" ê°ì´ ì§ìëì§ ìì ëì í´ë°±ì¼ë¡ì¨ "arcs" ê°ì í¨ê³¼
-->
<path
d="M9,11 a2,2 0,0,0 2,-3 a3,3 0 0 1 2,3.5"
stroke="black"
fill="none"
stroke-linejoin="arcs" />
<!--
ë¤ì ë¶íìì ì ì ê° ì¤í¸ë¡í¬ ê²½ë¡ì ìì¹ë¥¼ ê°ì¡°í©ëë¤.
-->
<g id="highlight">
<path
d="M1,5 a2,2 0,0,0 2,-3 a3,3 0 0 1 2,3.5"
stroke="pink"
fill="none"
stroke-width="0.025" />
<circle cx="1" cy="5" r="0.05" fill="pink" />
<circle cx="3" cy="2" r="0.05" fill="pink" />
<circle cx="5" cy="5.5" r="0.05" fill="pink" />
</g>
<use href="#highlight" x="6" />
<use href="#highlight" x="12" />
<use href="#highlight" x="2" y="6" />
<use href="#highlight" x="8" y="6" />
</svg>
ì¬ì© ë§¥ë½
| ê° |
arcs | bevel | miter |
miter-clip | round
|
|---|---|
| 기본 ê° | miter |
| ì ëë©ì´ì ê°ë¥ | discrete |
arcs
ì°¸ê³ :
ì°¸ê³ :>arcs ê°ì íëê² ì§ìëê³ ìì§ë ììµëë¤.
arcs ê°ì ê²½ë¡ ì¸ê·¸ë¨¼í¸ë¥¼ ì°ê²°í ë í¸ ëª¨ìì 모ì리를 ì¬ì©íë¤ë ê²ì ëíë
ëë¤. í¸ ëª¨ìì ì°ê²°ì ìì ì¤í¸ë¡í¬ì ì¸ë¶ ê°ì¥ì리를 ì°ê²°ì ì ì¸ë¶ ê°ì¥ì리ì ê°ì ê³¡ë¥ ì ê°ì§ í¸ë¡ ì°ì¥íì¬ íì±ë©ëë¤.
<svg viewBox="0 0 6 6" xmlns="http://www.w3.org/2000/svg">
<!-- "arcs" ê°ì í¨ê³¼ -->
<path
d="M1,5 a2,2 0,0,0 2,-3 a3,3 0 0 1 2,3"
stroke="black"
fill="none"
stroke-linejoin="arcs" />
<!--
ë¤ì ë¶íìì ì ì ê° ì¤í¸ë¡í¬ ê²½ë¡ì ìì¹ë¥¼ ê°ì¡°í©ëë¤.
-->
<g id="p">
<path
d="M1,5 a2,2 0,0,0 2,-3 a3,3 0 0 1 2,3"
stroke="pink"
fill="none"
stroke-width="0.025" />
<circle cx="1" cy="5" r="0.05" fill="pink" />
<circle cx="3" cy="2" r="0.05" fill="pink" />
<circle cx="5" cy="5" r="0.05" fill="pink" />
</g>
</svg>
bevel
bevel ê°ì ê²½ë¡ ì¸ê·¸ë¨¼í¸ë¥¼ ì°ê²°í ë ë² ë²¨ 모ìì ì¬ì©íë¤ë ê²ì ëíë
ëë¤.
<svg viewBox="0 0 6 6" xmlns="http://www.w3.org/2000/svg">
<!-- "bevel" ê°ì í¨ê³¼ -->
<path
d="M1,5 l2,-3 l2,3"
stroke="black"
fill="none"
stroke-linejoin="bevel" />
<!--
ë¤ì ë¶íìì ì ì ê° ì¤í¸ë¡í¬ ê²½ë¡ì ìì¹ë¥¼ ê°ì¡°í©ëë¤.
-->
<g id="p">
<path d="M1,5 l2,-3 l2,3" stroke="pink" fill="none" stroke-width="0.025" />
<circle cx="1" cy="5" r="0.05" fill="pink" />
<circle cx="3" cy="2" r="0.05" fill="pink" />
<circle cx="5" cy="5" r="0.05" fill="pink" />
</g>
</svg>
miter
miter ê°ì ê²½ë¡ ì¸ê·¸ë¨¼í¸ë¥¼ ì°ê²°í ë 뾰족í 모ì리를 ì¬ì©íë¤ë ê²ì ëíë
ëë¤. 모ì리ë ê²½ë¡ ì¸ê·¸ë¨¼í¸ì ì ì ìì ì¤í¸ë¡í¬ì ì¸ë¶ ê°ì¥ì리를 êµì°¨í ëê¹ì§ íì¥ëì´ íì±ë©ëë¤.
ì°¸ê³ :> stroke-miterlimit ê° íì¥ëë©´, ì ì¡°ì¸ì´ ë¤ìbevel ë¡ ëìê°ëë¤.
<svg viewBox="0 -1 10 7" xmlns="http://www.w3.org/2000/svg">
<!-- "miter" ê°ì í¨ê³¼ -->
<path
d="M1,5 l2,-3 l2,3"
stroke="black"
fill="none"
stroke-linejoin="miter" />
<!-- 기본 ë§ì´í° íê³ê° ì´ê³¼ëë 뾰족í ê°ëììì "miter" ê°ì í¨ê³¼ -->
<path
d="M7,5 l0.75,-3 l0.75,3"
stroke="black"
fill="none"
stroke-linejoin="miter" />
<!-- ë¤ì ë¹¨ê° ì ì ì ì´ëìì í´ë¦¬íì´ë§ì´í° ê°ì´ ë² ë²¨ ê°ì¼ë¡ ëìê°ëì§ ë³´ì¬ì¤ëë¤. -->
<path
d="M0,0 h10"
stroke="red"
stroke-dasharray="0.05"
stroke-width="0.025" />
<!-- ë¤ì ë¶íìì ì ì ê° ì¤í¸ë¡í¬ ê²½ë¡ì ìì¹ë¥¼ ê°ì¡°í©ëë¤. -->
<g>
<path d="M1,5 l2,-3 l2,3" stroke="pink" fill="none" stroke-width="0.025" />
<circle cx="1" cy="5" r="0.05" fill="pink" />
<circle cx="3" cy="2" r="0.05" fill="pink" />
<circle cx="5" cy="5" r="0.05" fill="pink" />
<path
d="M7,5 l0.75,-3 l0.75,3"
stroke="pink"
fill="none"
stroke-width="0.025" />
<circle cx="7" cy="5" r="0.05" fill="pink" />
<circle cx="7.75" cy="2" r="0.05" fill="pink" />
<circle cx="8.5" cy="5" r="0.05" fill="pink" />
</g>
</svg>
miter-clip
ì°¸ê³ :>miter-clip ê°ì íëê² ì§ìëê³ ìì§ë ììµëë¤.
miter-clip ê°ì ê²½ë¡ ì¸ê·¸ë¨¼í¸ ì ì¬ì©ëë 뾰족í 모ì리를 ëíë
ëë¤. 모ì리ë ê²½ë¡ ì¸ê·¸ë¨¼í¸ê° ë§ë¿ì ê²½ê³ìì ì¤í¸ë¡í¬ì ì¸ë¶ ê°ì¥ì리를 ì°ì¥íì¬ êµì°¨í ëê¹ì§ íì¥íë©° íì±ë©ëë¤.
stroke-miterlimit ê° íì¥ëë©´, ë§ì´í°ë ê²½ë¡ ì¸ê·¸ë¨¼í¸ì êµì°¨ì ìì stroke-miterlimit ê°ì ì ë°ì ì¤í¸ë¡í¬ ëë¹ë¥¼ ê³±í 거리ë§í¼ ë¨ì´ì§ ì§ì ìì ìë ¤ì§ëë¤. ì´ë ë§¤ì° ë ì¹´ë¡ì´ ì¡°ì¸ì´ë ì ëë©ì´ì
ì ê²½ì° miter ë³´ë¤ ë ëì ë ëë§ì ì ê³µí©ëë¤.
<svg viewBox="0 -1 10 7" xmlns="http://www.w3.org/2000/svg">
<!-- "miter-clip" ê°ì í¨ê³¼ -->
<path
d="M1,5 l2,-3 l2,3"
stroke="black"
fill="none"
stroke-linejoin="miter-clip" />
<!-- 기본 ë§ì´í° íê³ê° ì´ê³¼ëë 뾰족í ê°ëììì "miter-clip" ê°ì í¨ê³¼ -->
<path
d="M7,5 l0.75,-3 l0.75,3"
stroke="black"
fill="none"
stroke-linejoin="miter-clip" />
<!-- ë¤ì ë¹¨ê° ì ì ì ì´ëìì í´ë¦¬íì´ ë°ìí ì§ë¥¼ ë³´ì¬ì¤ëë¤. -->
<path
d="M0,0 h10"
stroke="red"
stroke-dasharray="0.05"
stroke-width="0.025" />
<!-- ë¤ì ë¶íìì ì ì ê° ì¤í¸ë¡í¬ ê²½ë¡ì ìì¹ë¥¼ ê°ì¡°í©ëë¤. -->
<g>
<path d="M1,5 l2,-3 l2,3" stroke="pink" fill="none" stroke-width="0.025" />
<circle cx="1" cy="5" r="0.05" fill="pink" />
<circle cx="3" cy="2" r="0.05" fill="pink" />
<circle cx="5" cy="5" r="0.05" fill="pink" />
<path
d="M7,5 l0.75,-3 l0.75,3"
stroke="pink"
fill="none"
stroke-width="0.025" />
<circle cx="7" cy="5" r="0.05" fill="pink" />
<circle cx="7.75" cy="2" r="0.05" fill="pink" />
<circle cx="8.5" cy="5" r="0.05" fill="pink" />
</g>
</svg>
round
round ê°ì ê²½ë¡ ì¸ê·¸ë¨¼í¸ë¥¼ ì°ê²°í ë ë¥ê·¼ 모ìë¦¬ê° ì¬ì©ëìë¤ë ê²ì ëíë
ëë¤.
<svg viewBox="0 0 6 6" xmlns="http://www.w3.org/2000/svg">
<!-- Effect of the "round" value -->
<path
d="M1,5 l2,-3 l2,3"
stroke="black"
fill="none"
stroke-linejoin="round" />
<!--
ë¤ì ë¶íìì ì ì ê° ì¤í¸ë¡í¬ ê²½ë¡ì ìì¹ë¥¼ ê°ì¡°í©ëë¤.
-->
<g id="p">
<path d="M1,5 l2,-3 l2,3" stroke="pink" fill="none" stroke-width="0.025" />
<circle cx="1" cy="5" r="0.05" fill="pink" />
<circle cx="3" cy="2" r="0.05" fill="pink" />
<circle cx="5" cy="5" r="0.05" fill="pink" />
</g>
</svg>
ëª ì¸ì
| Specification |
|---|
| Scalable Vector Graphics (SVG) 2 > # LineJoin > |
ë¸ë¼ì°ì í¸íì±
ê°ì´ 보기
- CSS
stroke-linejoinproperty