रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
ब्लॉकली > IMetricsManager > getViewMetrics
IMetricsManager.getViewMetrics() तरीका
इससे पिक्सल या फ़ाइल फ़ोल्डर कोऑर्डिनेट में दिखने वाले फ़ाइल फ़ोल्डर की मेट्रिक देखी जा सकती है. दिखाई देने वाले फ़ाइल फ़ोल्डर में टूलबॉक्स या फ़्लायआउट शामिल नहीं है.
हस्ताक्षर:
getViewMetrics(opt_getWorkspaceCoordinates?: boolean): ContainerRegion;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
opt_getWorkspaceCoordinates |
बूलियन |
(ज़रूरी नहीं) फ़ाइल फ़ोल्डर के कोऑर्डिनेट में व्यू मेट्रिक पाने के लिए सही है, उन्हें पिक्सल कोऑर्डिनेट में पाने के लिए गलत. |
लौटाए जाने वाले प्रॉडक्ट:
ContainerRegion
फ़ाइल फ़ोल्डर के निर्देशांक या पिक्सल निर्देशांक में, व्यूपोर्ट की चौड़ाई, ऊंचाई, ऊपर और बाईं ओर.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-10-14 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-10-14 (UTC) को अपडेट किया गया."],[[["`getViewMetrics()` returns the dimensions and position of the visible workspace area."],["This method provides measurements in either pixel or workspace coordinates, depending on the optional parameter."],["The returned metrics represent the viewport excluding the toolbox and flyout."]]],["The `getViewMetrics()` method retrieves the dimensions of the visible workspace, excluding the toolbox and flyout. It offers the option to return these metrics in either pixel or workspace coordinates via the `opt_getWorkspaceCoordinates` parameter (defaulting to pixel coordinates). The method returns a `ContainerRegion` object containing the width, height, top, and left values of the viewport.\n"]]