रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
ब्लॉकली > फ़्लाइट > createRect_
Flyout.createRect_() मेथड
दिए गए ब्लॉक के हिसाब से एक आयत बनाएं और उसे रखें.
हस्ताक्षर:
protected createRect_(block: BlockSvg, x: number, y: number, blockHW: {
height: number;
width: number;
}, index: number): SVGElement;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
ब्लॉक करें |
BlockSvg |
रेक्टैंगल को जोड़ने के लिए ब्लॉक. |
x |
संख्या |
इस लेआउट पास के दौरान कर्सर की x पोज़िशन. |
y |
संख्या |
इस लेआउट पास के दौरान कर्सर की y पोज़िशन. |
blockHW |
{ height: number; चौड़ाई: संख्या; } पर स्विच करने के मकसद से, हमसे संपर्क करने के लिए धन्यवाद. |
ब्लॉक की ऊंचाई और चौड़ाई. |
इंडेक्स |
संख्या |
मैट सूची में वह इंडेक्स जहां इस रेक्ट को रखना चाहिए. |
लौटाए जाने वाले प्रॉडक्ट:
SVGElement
ब्लॉक के पीछे वाले रेक्टैंगल के लिए, नया बनाया गया SVG एलिमेंट.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-12 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-09-12 (UTC) को अपडेट किया गया."],[[["The `Flyout.createRect_` method generates an SVG rectangle element positioned behind a given block within the flyout."],["This method utilizes the block's dimensions and position to create the rectangle, associating it with the block for visual representation."],["The created rectangle is then inserted into the flyout's layout structure, contributing to the overall organization of blocks."]]],["The `createRect_` method creates a rectangle associated with a given block. It takes a `BlockSvg` object, x and y coordinates for positioning, the block's height and width, and an index for placement in a list. This method then generates and returns a new SVG element representing the rectangle positioned behind the specified block. It uses parameters to define the block to be associated to, its coordinates and size, and index placement.\n"]]