HTML canvas lineJoin attribute
Definition and usage
lineJoin
Property sets or returns the type of corner created when two lines intersect.
মন্তব্যঃThe value "miter" is affected by miterLimit The influence of properties.
Example
When two lines intersect, create circular corners:
JavaScript:
var c=document.getElementById("myCanvas"); var ctx=c.getContext("2d"); ctx.beginPath(); ctx.lineJoin="round"; ctx.moveTo(20,20); ctx.lineTo(100,50); ctx.lineTo(20,100); ctx.stroke();
সংগঠন
context.lineJoin="bevel|round|miter";
এট্রিবিউট মান
মান | বর্ণনা |
---|---|
bevel | অসমতল কোণ তৈরি করুন |
round | কোণ সংযুক্ত করুন |
miter | ডিফল্ট।ক্ষুদ্র কোণ তৈরি করুন |
প্রযুক্তিগত বিবরণ
ডিফল্ট মান: | miter |
---|
ব্রাউজার সমর্থন
সারণীতে সংখ্যাগুলি এই এট্রিবিউটটি যারা প্রথম এই এট্রিবিউটটি সম্পূর্ণভাবে সমর্থন করেছে তা উল্লেখ করা হয়েছে।
চ্রোম | এডজ | ফায়ারফক্স | স্যাফারি | ওপেরা |
---|---|---|---|---|
চ্রোম | এডজ | ফায়ারফক্স | স্যাফারি | ওপেরা |
4.0 | 9.0 | 3.6 | 4.0 | 10.1 |
মন্তব্যঃInternet Explorer 8 এবং তার পূর্ববর্তী সংস্করণগুলি <canvas> এলিমেন্টটি সমর্থন করে না。