संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
blockly > blockRendering > Renderer > refreshDom
blockRendering.Renderer.refreshDom() तरीका
थीम बदलने के बाद, रेंडरर को रीफ़्रेश करें.
हस्ताक्षर:
refreshDom(svg: SVGElement, theme: Theme, injectionDivIfIsParent?: HTMLElement): void;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
svg |
SVGElement |
वर्कस्पेस के एसवीजी का रूट. |
थीम |
थीम |
वर्कस्पेस की थीम का ऑब्जेक्ट. |
injectionDivIfIsParent |
HTMLElement |
(ज़रूरी नहीं) अगर यह रेंडरर पैरंट वर्कस्पेस के लिए है, तो पैरंट वर्कस्पेस और उससे जुड़े सभी वर्कस्पेस और ब्लॉक कंटेनर वाला div. एसवीजी पैटर्न दिखाने वाले सीएसएस वैरिएबल, इस कंटेनर के दायरे में होंगे. चाइल्ड वर्कस्पेस को पैरंट वर्कस्पेस के बनाए गए सीएसएस वैरिएबल को बदलना नहीं चाहिए. इसलिए, उन्हें इंजेक्शन डिव का ऐक्सेस नहीं चाहिए. |
लौटाए जाने वाले प्रॉडक्ट:
अमान्य
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],["The `refreshDom` method updates the renderer following a theme modification. It accepts two parameters: `svg`, which is the root SVG element of the workspace, and `theme`, which represents the new workspace theme. This method ensures the rendering reflects the current theme settings. The method returns no value (void).\n"]]