গবেষণা সমীক্ষা: ব্লকলি
স্টার্ট সার্ভে নিয়ে আপনার অভিজ্ঞতা সম্পর্কে আমাদের বলুন
ব্লকলি > IDragTarget > getClientRect
IDragTarget.getClientRect() পদ্ধতি
ভিউপোর্টের সাপেক্ষে পিক্সেল ইউনিটে ড্র্যাগ টার্গেট এলাকার বাউন্ডিং আয়তক্ষেত্র দেখায়।
স্বাক্ষর:
getClientRect(): Rect | null;
রিটার্ন:
রেক্ট | নাল
কম্পোনেন্টের বাউন্ডিং বক্স। ড্র্যাগ টার্গেট এলাকা উপেক্ষা করা উচিত হলে শূন্য।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-01-08 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-01-08 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["`IDragTarget.getClientRect()` returns the drag target's bounding box in pixel units, relative to the viewport."],["The returned value is a `Rect` object containing the bounding box dimensions, or `null` if the drag target area should be ignored."]]],["The `getClientRect()` method, part of the `IDragTarget` interface, returns the drag target area's bounding rectangle. This rectangle's dimensions are in pixel units relative to the viewport. The method's output is either a `Rect` object representing the bounding box or `null`. A `null` return value indicates that the drag target area should be disregarded during drag operations.\n"]]