شی مسیر
PathObject
حاوی عناصر SVG در DOM است که بلوک را تشکیل می دهند.
به عنوان مثال، در رندر Geras ، بلوک ها دارای یک مسیر "اصلی"، یک مسیر "تاریک" و یک مسیر "نور" هستند تا جلوه ای سه بعدی به آنها بدهد. شی path عناصر SVG را برای هر یک از این مسیرها ایجاد می کند.

این با رندر Thrasos مخالف است، که بلوکهای آن دارای یک عنصر مسیر واحد با یک ضربه هستند:

همچنین رسیدگی می کند:
- اعمال شکل ایجاد شده توسط کشو به عناصر SVG.
- اعمال رنگ های تم به عناصر SVG.
- اعمال سبک های دیگر به عناصر SVG.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-10-30 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-10-30 بهوقت ساعت هماهنگ جهانی."],[[["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"]]