blockly > blockRendering > MarkerSvg > positionBlock_

blockRendering.MarkerSvg.positionBlock_() 方法

將方塊的標記定位。顯示方塊上半部的外框。

Signature:

protected positionBlock_(width: number, markerOffset: number, markerHeight: number): void;

參數

參數 類型 說明
width 號碼 區塊的寬度。
markerOffset 號碼 區塊周圍的額外邊框間距。
markerHeight 號碼 標記的高度。

傳回:

void