blockly > blockRendering > MarkerSvg > positionBlock_
Metoda blockRendering.MarkerSvg.positionBlock_()
Umieść znacznik dla bryły. Wyświetla kontur górnej połowy prostokąta wokół bryły.
Podpis:
protected positionBlock_(width: number, markerOffset: number, markerHeight: number): void;
Parametry
Parametr |
Typ |
Opis |
szerokość |
liczba |
Szerokość bryły. |
markerOffset |
liczba |
Dodatkowe dopełnienie wokół bryły. |
markerHeight |
liczba |
Wysokość znacznika. |
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: 2024-09-09 UTC.
[null,null,["Ostatnia aktualizacja: 2024-09-09 UTC."],[[["This method positions a marker with an outline to highlight the top half of a block."],["It uses the `width`, `markerOffset` and `markerHeight` parameters to determine the outline's size and positioning."],["The `positionBlock_` method is protected within the `blockRendering.MarkerSvg` class and doesn't return any explicit value."]]],[]]