Skip to content

Commit 0dac7cb

Browse files
committed
update drawByPath
1 parent 670ee97 commit 0dac7cb

File tree

5 files changed

+34
-9
lines changed

5 files changed

+34
-9
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,13 @@ Vue.use(Fabric);
152152
| width | Number | 三角形底边宽度 |
153153
| height | Number | 三角形高 |
154154

155+
#### drawByPath(pathArray,options) 根据轨迹绘制图形
156+
157+
| params | Type | Description |
158+
| --------- | ------ | -------------------------------------------------------------------------------- |
159+
| pathArray | Array | 轨迹所在点数组,按顺序正时针或逆时针,如三角形 [[50, 50], [120, 120], [80, 160]] |
160+
| options | Object | left,top,strokeColor,strokeWidth,fillColor |
161+
155162
#### createCircle(options) 绘制圆
156163

157164
| options | Type | Description |

0 commit comments

Comments
 (0)