रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
ब्लॉकली > utils > डॉम > startTextWidthCache
utils.dom.startTextWidthकैश() फ़ंक्शन
टेक्स्ट की चौड़ाई को कैश मेमोरी में सेव करना शुरू करें. इस फ़ंक्शन को किए जाने वाले हर कॉल के लिए स्टॉपवॉच को कॉल करना ज़रूरी है. एक्ज़ीक्यूशन थ्रेड के बीच कैश मेमोरी में सेव नहीं होना चाहिए.
हस्ताक्षर:
export declare function startTextWidthCache(): void;
लौटाए जाने वाले प्रॉडक्ट:
अमान्य
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-08-22 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-08-22 (UTC) को अपडेट किया गया."],[[["Initializes a cache for measuring text widths, improving performance for frequent text measurements."],["This function must be paired with `stopTextWidthCache()` to properly manage the cache and prevent memory leaks."],["Text width caches should not persist across different execution threads to avoid data inconsistencies."],["The function primarily serves as an internal optimization for Blockly and does not typically require direct user interaction."]]],[]]