रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
blockly > blockRendering > ConstantProvider > createDom
blockRendering.ConstantProvider.createDom() तरीका
इस रेंडरर के लिए ज़रूरी डीओएम एलिमेंट (फ़िल्टर, पैटर्न वगैरह) बनाएं.
हस्ताक्षर:
createDom(svg: SVGElement, tagName: string, selector: string, injectionDivIfIsParent?: HTMLElement): void;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
svg |
SVGElement |
वर्कस्पेस के एसवीजी का रूट. |
tagName |
स्ट्रिंग |
सीएसएस स्टाइल टैग के लिए इस्तेमाल किया जाने वाला नाम. |
चुनने वाला |
स्ट्रिंग |
इस्तेमाल किया जाने वाला सीएसएस सिलेक्टर. |
injectionDivIfIsParent |
HTMLElement |
(ज़रूरी नहीं) अगर यह रेंडरर पैरंट वर्कस्पेस के लिए है, तो पैरंट वर्कस्पेस और उससे जुड़े सभी वर्कस्पेस और ब्लॉक कंटेनर वाला div. एसवीजी पैटर्न दिखाने वाले सीएसएस वैरिएबल, इस कंटेनर के दायरे में होंगे. चाइल्ड वर्कस्पेस को पैरंट वर्कस्पेस के बनाए गए सीएसएस वैरिएबल को बदलना नहीं चाहिए. इसलिए, उन्हें इंजेक्शन डिव का ऐक्सेस नहीं चाहिए. |
लौटाए जाने वाले प्रॉडक्ट:
अमान्य
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-05-16 (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-05-16 (UTC) को अपडेट किया गया."],[[["The `blockRendering.ConstantProvider.createDom()` method generates necessary DOM elements within the workspace's SVG for the renderer, such as filters and patterns."],["It accepts the workspace's SVG root, a style tag name, and a CSS selector as parameters to facilitate DOM element creation."],["This method modifies the SVG structure but does not return any specific value."]]],["The `createDom()` method, part of `blockRendering.ConstantProvider`, generates necessary DOM elements for the renderer, such as filters and patterns. It accepts three parameters: `svg` (the workspace's SVG root), `tagName` (CSS style tag name), and `selector` (CSS selector). This method does not return anything, and its primary function is to set up DOM elements within the workspace's SVG structure.\n"]]