選項類別
使用未指定行為的合理預設值剖析使用者指定的選項。
Signature:
export declare class Options
建構函式
| 建構函式 | 修飾符 | 說明 |
|---|---|---|
| (建構函式)(選項) | 建構 Options 類別的新例項 |
屬性
| 屬性 | 修飾符 | 類型 | 說明 |
|---|---|---|---|
| 收合 | 布林值 | ||
| 留言 | 布林值 | ||
| 停用 | 布林值 | ||
| getMetrics? | () =>指標 | (選用) 此函式會傳回說明目前工作區的指標物件。 | |
| gridOptions | GridOptions | ||
| gridPattern | SVGElement |空值 | 格線模式的 SVG 元素。在插入期間建立。 | |
| hasCategories | 布林值 | ||
| hasCss | 布林值 | ||
| hasScrollbars | 布林值 | ||
| hasSounds | 布林值 | ||
| hasTrashcan | 布林值 | ||
| horizontalLayout | 布林值 | ||
| languageTree | toolbox.ToolboxInfo |空值 | ||
| maxBlocks | 數字 | ||
| maxInstances | { [key: string]: number;} |空值 | ||
| maxTrashcanContents | 數字 | ||
| modalInputs | 布林值 | ||
| moveOptions | MoveOptions | ||
| oneBasedIndex | 布林值 | ||
| parentWorkspace | WorkspaceSvg |空值 | ||
| pathToMedia | 字串 | ||
| 外掛程式 | { [key: string]: (new (...p1: any[]) => any) |字串;} | ||
| readOnly | 布林值 | ||
| 轉譯器 | 字串 | ||
| rendererOverrides | { [rendererConstant: string]: any;} |空值 | ||
| RTL | 布林值 | ||
| setMetrics? | (p1:{ x?: 數字; y?: 數字; }) =>void | (選用) 如果已設定,請將工作區翻譯設為與捲軸相符。這個函式會將工作區轉譯與捲軸相符。引數包含 x 和/或 y 屬性,該屬性是介於 0 和 1 之間的浮點值,可指定捲動角度。 | |
| 主題 | 主題 | ||
| toolboxPosition | toolbox.Position | ||
| zoomOptions | ZoomOptions |