---
title: Interface: IDraw
source: https://vjmap.com/doc/Interface_IDraw.html
---

# Interface: IDraw

### Table of contents

#### Properties

- [Tool](#tool)
- [actionDraw](#actiondraw)
- [actionDrawCircle](#actiondrawcircle)
- [actionDrawLineSting](#actiondrawlinesting)
- [actionDrawPoint](#actiondrawpoint)
- [actionDrawPolygon](#actiondrawpolygon)
- [actionDrawRectangle](#actiondrawrectangle)
- [actionDrawSlantRectangle](#actiondrawslantrectangle)
- [actionSelect](#actionselect)
- [defaultOptions](#defaultoptions)
- [modes](#modes)

### Properties

#### Tool

• **Tool**: (`options?`: [*IDrawOptions*](#interfacesdefaultidrawoptionsmd)) => [*IDrawTool*](#interfacesdefaultidrawtoolmd)

工具类.

##### Type declaration

\+ **new IDraw**(`options?`: [*IDrawOptions*](#interfacesdefaultidrawoptionsmd)): [*IDrawTool*](#interfacesdefaultidrawtoolmd)

##### Parameters

| Name | Type |
| :------ | :------ |
| `options?` | [*IDrawOptions*](#interfacesdefaultidrawoptionsmd) |

**Returns:** [*IDrawTool*](#interfacesdefaultidrawtoolmd)

___

#### actionDraw

• **actionDraw**: (`map`: *any*, `modename`: *string*, `options?`: *Record*<string, any\>) => *any*

绘制动作.

##### Type declaration

▸ (`map`: *any*, `modename`: *string*, `options?`: *Record*<string, any\>): *any*

##### Parameters

| Name | Type |
| :------ | :------ |
| `map` | *any* |
| `modename` | *string* |
| `options?` | *Record*<string, any\> |

**Returns:** *any*

___

#### actionDrawCircle

• **actionDrawCircle**: (`map`: *any*, `options?`: *Record*<string, any\>) => *any*

绘制圆动作.

##### Type declaration

▸ (`map`: *any*, `options?`: *Record*<string, any\>): *any*

##### Parameters

| Name | Type |
| :------ | :------ |
| `map` | *any* |
| `options?` | *Record*<string, any\> |

**Returns:** *any*

___

#### actionDrawLineSting

• **actionDrawLineSting**: (`map`: *any*, `options?`: *Record*<string, any\>) => *any*

绘制线动作.

##### Type declaration

▸ (`map`: *any*, `options?`: *Record*<string, any\>): *any*

##### Parameters

| Name | Type |
| :------ | :------ |
| `map` | *any* |
| `options?` | *Record*<string, any\> |

**Returns:** *any*

___

#### actionDrawPoint

• **actionDrawPoint**: (`map`: *any*, `options?`: *Record*<string, any\>) => *any*

绘制点动作.

##### Type declaration

▸ (`map`: *any*, `options?`: *Record*<string, any\>): *any*

##### Parameters

| Name | Type |
| :------ | :------ |
| `map` | *any* |
| `options?` | *Record*<string, any\> |

**Returns:** *any*

___

#### actionDrawPolygon

• **actionDrawPolygon**: (`map`: *any*, `options?`: *Record*<string, any\>) => *any*

绘制多边形动作.

##### Type declaration

▸ (`map`: *any*, `options?`: *Record*<string, any\>): *any*

##### Parameters

| Name | Type |
| :------ | :------ |
| `map` | *any* |
| `options?` | *Record*<string, any\> |

**Returns:** *any*

___

#### actionDrawRectangle

• **actionDrawRectangle**: (`map`: *any*, `options?`: *Record*<string, any\>) => *any*

绘制矩形动作.

##### Type declaration

▸ (`map`: *any*, `options?`: *Record*<string, any\>): *any*

##### Parameters

| Name | Type |
| :------ | :------ |
| `map` | *any* |
| `options?` | *Record*<string, any\> |

**Returns:** *any*

___

#### actionDrawSlantRectangle

• **actionDrawSlantRectangle**: (`map`: *any*, `options?`: *Record*<string, any\>) => *any*

绘制斜矩形动作.

##### Type declaration

▸ (`map`: *any*, `options?`: *Record*<string, any\>): *any*

##### Parameters

| Name | Type |
| :------ | :------ |
| `map` | *any* |
| `options?` | *Record*<string, any\> |

**Returns:** *any*

___

#### actionSelect

• **actionSelect**: (`map`: *any*, `draw`: *any*, `options?`: *Record*<string, any\>) => *any*

选择实体. 如果只能选择一个实体，options选项请输入selectSingle为true

##### Type declaration

▸ (`map`: *any*, `draw`: *any*, `options?`: *Record*<string, any\>): *any*

##### Parameters

| Name | Type |
| :------ | :------ |
| `map` | *any* |
| `draw` | *any* |
| `options?` | *Record*<string, any\> |

**Returns:** *any*

___

#### defaultOptions

• **defaultOptions**: () => *any*

缺省配置项.

##### Type declaration

▸ (): *any*

**Returns:** *any*

___

#### modes

• **modes**: *Record*<string, any\>

模式.


<a name="interfacesidrawoptionsmd"></a>

[vjmap](#readmemd) / [Exports](#modulesmd) / IDrawOptions
