# ShapeType enum 参考 (/zh-CN/api-reference/whiteboard/whiteboard-sdk/harmonyos/enum-shape-type)

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

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

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

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

几何图形类型枚举，用于形状工具配置。

可从 @shengwang/whiteboard 直接导入 ShapeType。导入后可访问枚举成员。

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

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

```text
export enum ShapeType
```

| [TRIANGLE](/zh-CN/api-reference/whiteboard/whiteboard-sdk/harmonyos/enum-shape-type#a7ea4b8bb0a03b0e5746145b770f2fda8) | `TRIANGLE = "triangle",` |
| --- | --- |
| [RHOMBUS](/zh-CN/api-reference/whiteboard/whiteboard-sdk/harmonyos/enum-shape-type#a21520a6cec79470ce82043d39196fab1) | `RHOMBUS = "rhombus",` |
| [PENTAGRAM](/zh-CN/api-reference/whiteboard/whiteboard-sdk/harmonyos/enum-shape-type#a10f4e5d770b6589a412257a91b7aa30f) | `PENTAGRAM = "pentagram",` |
| [SPEECH_BALLOON](/zh-CN/api-reference/whiteboard/whiteboard-sdk/harmonyos/enum-shape-type#abdd686a88beb415b60694a46d605c487) | `SPEECH_BALLOON = "speechBalloon",` |

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

<a id="a7ea4b8bb0a03b0e5746145b770f2fda8"></a>

### TRIANGLE [#triangle]

```text
TRIANGLE = "triangle",
```

`TRIANGLE`：（默认）三角形。

<a id="a21520a6cec79470ce82043d39196fab1"></a>

### RHOMBUS [#rhombus]

```text
RHOMBUS = "rhombus",
```

`RHOMBUS`：菱形。

<a id="a10f4e5d770b6589a412257a91b7aa30f"></a>

### PENTAGRAM [#pentagram]

```text
PENTAGRAM = "pentagram",
```

`PENTAGRAM`：五角星。

<a id="abdd686a88beb415b60694a46d605c487"></a>

### SPEECH_BALLOON [#speech_balloon]

```text
SPEECH_BALLOON = "speechBalloon",
```

`SPEECH_BALLOON`：对话气泡。
