blockly > navigateBlock

指定されたブロックの子を基準として、次にナビゲート可能な項目を返します。

署名:

export declare function navigateBlock(current: Icon | Field | RenderedConnection | BlockSvg, delta: number): IFocusableNode | null;

パラメータ

パラメータ 説明
現在 アイコン | フィールド | RenderedConnection | BlockSvg 相対的に移動するナビゲーション可能なブロックの子アイテム。
デルタ 数値 移動するインデックスの差。正の値は n だけ前方に移動し、負の値は n だけ後方に移動します。

戻り値:

IFocusableNode | null

current を基準とした、ナビゲーション可能なブロックの子の delta オフセット。