# ApplianceCanvasOptions interface 参考 (/zh-CN/api-reference/whiteboard/whiteboard-sdk/harmonyos/interface-appliance-canvas-options)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

<a id="details"></a>

## 详细描述 [#详细描述]

适用版本：**@shengwang/whiteboard 0.2.11**。

画布参数，通过 appliancePluginOptions.extras.canvasOpt 使用。

当前版本未从 SDK 包入口单独导出此类型名；通过所述配置、参数或返回值使用其结构。

## 类型结构（源码声明） [#类型结构源码声明]

下方源码文件的 export 声明不等同于 SDK 包入口导出；业务导入方式以上方说明为准。

```text
export interface ApplianceCanvasOptions
```

| [contextType](/zh-CN/api-reference/whiteboard/whiteboard-sdk/harmonyos/interface-appliance-canvas-options#a8fd577b9c0c7ef30f5e0851f18ea5002) | `contextType?: string` |
| --- | --- |

## 变量说明 [#变量说明]

<a id="a8fd577b9c0c7ef30f5e0851f18ea5002"></a>

### contextType [#contexttype]

```text
contextType?: string
```

画布上下文类型，例如 "2d"
