@@ -71,17 +71,17 @@ Vue.use(Fabric);
7171
7272#### createImage(url,options) 绘制图片
7373
74- | params | Type | Description |
75- | ------- | ------ | ------------------------------------------------------------------- |
76- | url | String | image url |
77- | options | Object | width,height,left,top,registeObjectEvent (Boolean 是否注册对象事件) |
74+ | params | Type | Description |
75+ | ------- | ------ | ------------------------------------------------------------------------------------------------------------------------ |
76+ | url | String | image url |
77+ | options | Object | id(唯一标识该元素,以下每个方法 options 参数都带 id), width,height,left,top,registeObjectEvent (Boolean 是否注册对象事件) |
7878
7979#### createTextbox(text,options) 绘制文本
8080
81- | params | Type | Description |
82- | ------- | ------ | ---------------------------------------- |
83- | text | String | text content |
84- | options | Object | width,left,top,fillColor(颜色),fontSize, |
81+ | params | Type | Description |
82+ | ------- | ------ | ------------------------------------------ |
83+ | text | String | text content |
84+ | options | Object | width,left,top,fillColor(颜色),fontSize,id |
8585
8686#### createRect(options) 绘制矩形
8787
@@ -92,6 +92,7 @@ Vue.use(Fabric);
9292| width | Number | Rect width |
9393| height | Number | Rect height |
9494| fillColor | String | Rect fillColor |
95+ | id | String | 唯一标识 id |
9596
9697#### freeDrawConfig(options) 开启/关闭自由绘制(画笔)
9798
0 commit comments