blockly > blockRendering > MarkerSvg > positionPrevious_
Método blockRendering.MarkerSvg.positionPrevious_()
Posicione o marcador de uma conexão anterior. Mostra um meio retângulo com um entalhe na parte superior para representar a conexão anterior.
Signature:
protected positionPrevious_(width: number, markerOffset: number, markerHeight: number, connectionShape: Notch): void;
Parâmetros
Parâmetro |
Tipo |
Descrição |
largura |
number |
A largura do bloco. |
markerOffset |
number |
O deslocamento do marcador ao redor do bloco. |
markerHeight |
number |
A altura do marcador. |
connectionShape |
Notch (link em inglês) |
O objeto de forma da conexão. |
Retorna:
void
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2024-09-09 UTC.
[null,null,["Última atualização 2024-09-09 UTC."],[[["The `blockRendering.MarkerSvg.positionPrevious_()` method positions a marker to visually represent a previous connection on a block."],["This method utilizes the block's width, marker offset, marker height, and connection shape to accurately place a half-rectangle marker with a notch, indicating the previous connection point."],["The function is called internally during block rendering and does not return any value."]]],["The `positionPrevious_` method in `blockRendering.MarkerSvg` positions a marker for a previous connection, visually represented as a half rectangle with a notch. This method takes four parameters: `width` (block's width), `markerOffset` (marker's offset), `markerHeight` (marker's height), and `connectionShape` (connection's shape object). It modifies the marker's position to represent the previous connection. The method does not return a value.\n"]]