Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > blockRendering > PathObject > setPath
Metoda blockRendering.PathObject.setPath()
Ustaw ścieżkę wygenerowaną przez mechanizm renderowania do odpowiedniego elementu SVG.
Podpis:
setPath(pathString: string): void;
Parametry
| Parametr |
Typ |
Opis |
| pathString |
ciąg znaków |
Ścieżka. |
Zwroty:
nieważne
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[],["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"]]