Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
блочный > BlockRendering > IPathObject > setPath
Метод blockRendering.IPathObject.setPath()
Установите путь, сгенерированный средством рендеринга, для соответствующего элемента SVG.
Подпись:
setPath(pathString: string): void;
Параметры
Параметр | Тип | Описание |
---|
путьСтрока | нить | Путь. |
Возврат:
пустота
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-01-04 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-01-04 UTC."],[[["The `setPath` method applies a rendered path to an SVG element within a Blockly block."],["This method, part of the `blockRendering.IPathObject` interface, takes a single string argument representing the SVG path data."],["Calling `setPath` updates the visual representation of the block by setting the path of its corresponding SVG element, and it does not return any value."]]],["The `setPath` method, part of the `IPathObject` interface, updates the SVG element's path. It accepts a single string parameter, `pathString`, which defines the new path. This method essentially renders or re-renders the shape on the SVG element by setting its path attribute according to the provided string. The function returns void, indicating that it does not return any value.\n"]]