blockly > [オプション]

オプション クラス

動作が指定されていないときは、妥当なデフォルトを使用して、ユーザー指定のオプションを解析します。

署名:

export declare class Options 

コンストラクタ

コンストラクタ 修飾子 説明
(コンストラクタ)(オプション) Options クラスの新しいインスタンスを作成します。

プロパティ

プロパティ 修飾子 種類 説明
閉じる boolean
comments boolean
無効にする boolean
getMetrics? () => 指標 (省略可)現在のワークスペースを表す指標オブジェクトを返す関数。
gridOptions GridOptions
gridPattern SVGElement | null グリッド パターンの SVG 要素。インジェクション中に作成されます。
hasCategories boolean
hasCss boolean
hasScrollbars boolean
hasSounds boolean
hasTrashcan boolean
horizontalLayout boolean
languageTree toolbox.ToolboxInfo | null
maxBlocks 数値
maxInstances { [key: string]: number; } | null
maxTrashcanContents 数値
modalInputs boolean
moveOptions MoveOptions
oneBasedIndex boolean
parentWorkspace WorkspaceSvg | null
pathToMedia string
プラグイン { [key: string]: (new (...p1: any[]) => any) | string; }
readOnly boolean
レンダラ string
rendererOverrides { [rendererConstant: string]: any; } | null
RTL boolean
setMetrics (p1: { x?: number; y?: number; }) => void (省略可)設定すると、スクロールバーに合わせてワークスペースの移動が設定されます。スクロールバーに合わせてワークスペースの移動を設定する関数。引数には x プロパティや y プロパティが含まれます。このプロパティは、スクロールの度合いを指定する 0 ~ 1 の浮動小数点数です。
テーマ テーマ
toolboxPosition toolbox.Position
zoomOptions ZoomOptions