গবেষণা সমীক্ষা: ব্লকলি
স্টার্ট সার্ভে নিয়ে আপনার অভিজ্ঞতা সম্পর্কে আমাদের বলুন
ব্লকলি > HorizontalFlyout > setMetrics_
HorizontalFlyout.setMetrics_() পদ্ধতি
স্ক্রলবারের সাথে মেলে ফ্লাইআউটের অনুবাদ সেট করে।
স্বাক্ষর:
protected setMetrics_(xyRatio: {
x: number;
y: number;
}): void;
পরামিতি
প্যারামিটার | টাইপ | বর্ণনা |
---|
xyRatio | { x: সংখ্যা; y: সংখ্যা; } | ay প্রপার্টি রয়েছে যা 0 এবং 1 এর মধ্যে একটি ফ্লোট যা স্ক্রোলিং ডিগ্রী এবং একটি অনুরূপ x সম্পত্তি নির্দিষ্ট করে। |
রিটার্ন:
অকার্যকর
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-11-10 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2024-11-10 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["The `HorizontalFlyout.setMetrics_()` method adjusts the flyout's position to align with the scrollbars."],["It uses the `xyRatio` parameter, which includes `x` and `y` properties (between 0 and 1) indicating the horizontal and vertical scroll positions, to determine the translation."]]],["The `setMetrics_()` method in `HorizontalFlyout` adjusts the flyout's position based on scrollbar activity. It accepts an `xyRatio` parameter, which contains `x` and `y` properties, both floating-point numbers between 0 and 1. These values indicate the extent of scrolling in each direction. This method then translates the flyout to align with the current scroll positions, it doesn't return any value.\n"]]