গবেষণা সমীক্ষা: ব্লকলি
স্টার্ট সার্ভে নিয়ে আপনার অভিজ্ঞতা সম্পর্কে আমাদের বলুন
blockly > blockRendering > RenderInfo > getSpacerRowWidth_
blockRendering.RenderInfo.getSpacerRowWidth_() পদ্ধতি
একটি স্পেসার সারির প্রস্থ গণনা করুন।
স্বাক্ষর:
protected getSpacerRowWidth_(_prev: Row, _next: Row): number;
পরামিতি
প্যারামিটার | টাইপ | বর্ণনা |
---|
_আগের | সারি | স্পেসারের আগে সারি। |
_পরের | সারি | স্পেসারের পরে সারি। |
রিটার্ন:
সংখ্যা
এই দুটি সারির মধ্যে স্পেসার সারির কাঙ্খিত প্রস্থ।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-11-13 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2024-11-13 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["The `getSpacerRowWidth_` method calculates the width needed for a spacer row between two other rows in a Blockly block."],["This method is used internally by the Blockly rendering engine and takes the preceding and succeeding rows as input to determine the appropriate spacer width."],["The calculated width ensures proper spacing and alignment of elements within the rendered block."]]],["The `getSpacerRowWidth_` method, part of the `RenderInfo` class, calculates the width required for a spacer row. It accepts two `Row` objects, `_prev` and `_next`, representing the rows immediately before and after the spacer. The method determines and returns a numerical value representing the optimal width for the spacer row positioned between these two input rows. The output of this function is the calculated width.\n"]]