构造
new Arrow()
成员
| 名称 | 说明 |
|---|---|
| arrowSize | 箭头大小 |
| background | 空心箭头的背景色 |
方法列表
| 名称 | 说明 |
|---|---|
| circle(ctx, point) | 空心圆 |
| circleSolid(ctx, point) | 实心圆 |
| diamond(ctx, point) | 空心菱形箭头 |
| diamondSolid(ctx, point) | 实心菱形箭头 |
| line(ctx, point) | 单线箭头 |
| lineDown(ctx, point) | 下线箭头 |
| lineEnd(ctx, point) | 上线箭头 |
| lineUp(ctx, point) | 上线箭头 |
| triangle(ctx, point) | 空心三角形箭头 |
| triangleSolid(ctx, point) | 实心三角形箭头 |
详细说明
circle(ctx, point)
空心圆
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
ctx |
CanvasRenderingContext2D | ||
point |
Object | {x, y, angle} |
circleSolid(ctx, point)
实心圆
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
ctx |
CanvasRenderingContext2D | ||
point |
Object | {x, y, angle} |
diamond(ctx, point)
空心菱形箭头
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
ctx |
CanvasRenderingContext2D | ||
point |
Object | {x, y, angle} |
diamondSolid(ctx, point)
实心菱形箭头
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
ctx |
CanvasRenderingContext2D | ||
point |
Object | {x, y, angle} |
line(ctx, point)
单线箭头
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
ctx |
CanvasRenderingContext2D | ||
point |
Object | {x, y, angle} |
lineDown(ctx, point)
下线箭头
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
ctx |
CanvasRenderingContext2D | ||
point |
Object | {x, y, angle} |
lineEnd(ctx, point)
上线箭头
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
ctx |
CanvasRenderingContext2D | ||
point |
Object | {x, y, angle} |
lineUp(ctx, point)
上线箭头
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
ctx |
CanvasRenderingContext2D | ||
point |
Object | {x, y, angle} |
triangle(ctx, point)
空心三角形箭头
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
ctx |
CanvasRenderingContext2D | ||
point |
Object | {x, y, angle} |
triangleSolid(ctx, point)
实心三角形箭头
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
ctx |
CanvasRenderingContext2D | ||
point |
Object | {x, y, angle} |
搜索