रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
ब्लॉकली > DragTarget > getClientRect
DragonTarget.getClientRect() विधि
ब्लॉकली इंजेक्शन div के संबंध में पिक्सेल इकाइयों में ड्रैग टारगेट क्षेत्र का बाउंडिंग रेक्टैंगल देता है.
हस्ताक्षर:
getClientRect(): Rect | null;
लौटाए जाने वाले प्रॉडक्ट:
रेक्टैंगल | शून्य
कॉम्पोनेंट का बाउंडिंग बॉक्स. अगर खींचें और छोड़ें टारगेट एरिया को अनदेखा करना है, तो शून्य.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-08-21 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-08-21 (UTC) को अपडेट किया गया."],[[["`getClientRect()` provides the coordinates and dimensions of the drag target area within the Blockly workspace."],["It returns a `Rect` object representing the bounding box, or `null` if the area should not be considered for dragging."],["Coordinates returned by `getClientRect()` are relative to the Blockly injection div, which is the main container of the workspace."]]],[]]