रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
पाथ ऑब्जेक्ट
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
PathObject
में डीओएम में SVG एलिमेंट होते हैं, जो ब्लॉक बनाते हैं.
उदाहरण के लिए, जेरस रेंडरर में, ब्लॉक को 3d इफ़ेक्ट देने के लिए एक "मुख्य" पाथ और एक "लाइट" पाथ के साथ एक "लाइट" पाथ दिया जाता है. पाथ ऑब्जेक्ट
इन सभी पाथ के लिए SVG एलिमेंट बनाता है.

यह Thrsos रेंडरर के उलट है, जिसके ब्लॉक में स्ट्रोक वाला एक पाथ एलिमेंट होता है:

यह इन चीज़ों का भी रखरखाव करता है:
- ड्रॉर के ज़रिए जनरेट किए गए आकार को SVG एलिमेंट पर लागू करना.
- SVG एलिमेंट पर थीम के रंग लागू करना.
- SVG एलिमेंट पर अन्य स्टाइल लागू करना.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2023-07-24 (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"]],["आखिरी बार 2023-07-24 (UTC) को अपडेट किया गया."],[[["The `PathObject` manages the SVG elements that visually represent a block in Blockly, such as the main, dark, and light paths for 3D effects."],["It applies the shape created by the drawer, along with theme colors and other styling, to these SVG elements."],["Different renderers, like Geras and Thrasos, utilize `PathObject` to create unique visual styles for their blocks."]]],["The `PathObject` class manages the SVG elements that form a block's visual representation within the DOM. It generates SVG elements for different paths (e.g., main, dark, light) as seen in the Geras renderer or a single path as in the Thrasos renderer. It also applies the shape from the drawer, incorporates theme colors, and applies other styling to these SVG elements. It handles all these visual modifications of the block.\n"]]