blockly > blockRendering > PathObject > setPath
متد ()blockRendering.PathObject.setPath
مسیر تولید شده توسط رندر را روی عنصر SVG مربوطه تنظیم کنید.
امضا:
setPath(pathString: string): void;
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
pathString | رشته | مسیر. |
برمی گرداند:
باطل
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-11-12 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-11-12 بهوقت ساعت هماهنگ جهانی."],[[["The `setPath` method updates the SVG element of a `PathObject` with a new path defined by the provided `pathString`."],["This method is part of the `blockRendering.PathObject` class within the Blockly library and is essential for visually rendering blocks."],["It accepts a single argument, `pathString`, which is a string representing the SVG path data."],["Calling `setPath` does not return any value, it simply updates the visual representation of the `PathObject`."]]],["The `setPath()` method, part of the `blockRendering.PathObject` class, updates the SVG element with a new path. It takes a single parameter, `pathString`, which is a string defining the path to be applied. This method does not return any value. It essentially sets the visual path of the rendered element based on the input string.\n"]]