# Interface: IDraw
# Table of contents
# Properties
- Tool
- actionDraw
- actionDrawCircle
- actionDrawLineSting
- actionDrawPoint
- actionDrawPolygon
- actionDrawRectangle
- actionDrawSlantRectangle
- actionSelect
- defaultOptions
- modes
# Properties
# Tool
• Tool: (options?
: IDrawOptions) => IDrawTool
工具类.
# Type declaration
+ new IDraw(options?
: IDrawOptions): IDrawTool
# Parameters
Name | Type |
---|---|
options? | IDrawOptions |
Returns: IDrawTool
# 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>
模式.