blockly > WorkspaceSvg > getGrid
Metoda WorkspaceSvg.getGrid()
Pobierz obiekt siatki dla tego obszaru roboczego lub wartość null, jeśli nie ma żadnego.
Podpis:
getGrid(): Grid | null;
Zwroty:
Siatka | wartość null
Obiekt siatki dla tego obszaru roboczego.
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: 2024-08-22 UTC.
[null,null,["Ostatnia aktualizacja: 2024-08-22 UTC."],[[["The `WorkspaceSvg.getGrid()` method retrieves the grid object associated with the workspace, which can be used for visual organization and snapping."],["If the workspace doesn't have a grid, the method will return `null`."],["The returned grid object, if present, is of the `Grid` class and provides functionalities related to the workspace's grid system."]]],[]]