SVG Stroke ဂုဏ်သတ္တိများ
SVG Stroke ဂုဏ်သတ္တိများ
SVG သည် လေဖြတ်ခြင်းဆိုင်ရာ ဂုဏ်သတ္တိများစွာကို ပေးဆောင်သည်။ ဤအခန်းတွင် အောက်ပါတို့ကို လေ့လာပါမည်။
- လေဖြတ်ခြင်း။
- လေဖြတ်-အကျယ်
- လေဖြတ်-လိုင်းထုပ်
- လေဖြတ်-dasharray
လေဖြတ်ခြင်းဆိုင်ရာ ဂုဏ်သတ္တိအားလုံးကို စက်ဝိုင်းကဲ့သို့ မျဉ်းကြောင်းများ၊ စာသားနှင့် အကွက်များကို အသုံးချနိုင်သည်။
SVG stroke Property
လေဖြတ်ခြင်းဆိုင်ရာ ပိုင်ဆိုင်မှုသည် ဒြပ်စင်တစ်ခု၏ မျဉ်းတစ်ကြောင်း၊ စာသား သို့မဟုတ် ကောက်ကြောင်း၏ အရောင်ကို သတ်မှတ်သည်-
ဤသည်မှာ SVG ကုဒ်ဖြစ်သည်
ဥပမာ
<svg height="80" width="300">
<g fill="none">
<path stroke="red" d="M5 20 l215 0" />
<path stroke="black" d="M5 40 l215 0" />
<path stroke="blue" d="M5 60 l215 0" />
</g>
</svg>
SVG လေဖြတ်-အကျယ် ပိုင်ဆိုင်မှု
လေဖြတ်-အကျယ် ပိုင်ဆိုင်မှုသည် ဒြပ်စင်တစ်ခု၏ အထူ၊ စာကြောင်း သို့မဟုတ် အကြမ်းထည်ကို သတ်မှတ်သည်-
ဤသည်မှာ SVG ကုဒ်ဖြစ်သည်
ဥပမာ
<svg height="80" width="300">
<g fill="none" stroke="black">
<path stroke-width="2" d="M5 20 l215 0" />
<path stroke-width="4" d="M5 40 l215 0" />
<path stroke-width="6" d="M5 60 l215 0" />
</g>
</svg>
SVG stroke-linecap အိမ်ခြံမြေ
stroke-linecap ပိုင်ဆိုင်မှုသည် အဖွင့်လမ်းကြောင်းသို့ အဆုံးသတ်အမျိုးမျိုးကို သတ်မှတ်သည်-
ဤသည်မှာ SVG ကုဒ်ဖြစ်သည်
ဥပမာ
<svg height="80" width="300">
<g fill="none" stroke="black" stroke-width="6">
<path stroke-linecap="butt" d="M5 20 l215 0" />
<path stroke-linecap="round" d="M5 40 l215 0" />
<path stroke-linecap="square" d="M5 60 l215 0" />
</g>
</svg>
SVG stroke-dasharray အိမ်ခြံမြေ
stroke-dasharray ပိုင်ဆိုင်မှုကို dashed လိုင်းများဖန်တီးရန်အသုံးပြုသည်-
ဤသည်မှာ SVG ကုဒ်ဖြစ်သည်
ဥပမာ
<svg height="80" width="300">
<g fill="none" stroke="black" stroke-width="4">
<path stroke-dasharray="5,5" d="M5 20 l215 0" />
<path stroke-dasharray="10,10" d="M5 40 l215 0" />
<path stroke-dasharray="20,10,5,5,5,10" d="M5 60 l215 0" />
</g>
</svg>