blockly > LabelFlyoutInflater > gapForItem
LabelFlyoutInflater.gapForItem() 方法
傳回應接續此標籤的空格量。
Signature:
gapForItem(state: object, defaultGap: number): number;
參數
參數 | 類型 | 說明 |
---|---|---|
州 | 物件 | 彈出式標籤的 JSON 表示法。 |
defaultGap | 數字 | 彈出式項目的預設間距。 |
退貨:
數字
應在標籤後方加上的空格數量。