Showing
1 changed file
with
52 additions
and
4 deletions
| @@ -7,20 +7,68 @@ | @@ -7,20 +7,68 @@ | ||
| 7 | ### 画板动作消息 | 7 | ### 画板动作消息 |
| 8 | 8 | ||
| 9 | * 打开画板 | 9 | * 打开画板 |
| 10 | -如果采取发送教师端截图的方式,需要附加一个图片消息 | 10 | +``` |
| 11 | + type:templateAction | ||
| 12 | + subtype:drawPanelAction | ||
| 13 | + command:openDrawPanel | ||
| 14 | + attachmentType:image | ||
| 15 | +``` | ||
| 16 | +附加的附件是教师版当前页面的截图 | ||
| 11 | 17 | ||
| 12 | * 关闭画板 | 18 | * 关闭画板 |
| 19 | +``` | ||
| 20 | + type:templateAction | ||
| 21 | + subtype:drawPanelAction | ||
| 22 | + command:closeDrawPanel | ||
| 23 | +``` | ||
| 24 | + | ||
| 13 | * 更换画笔 | 25 | * 更换画笔 |
| 26 | +``` | ||
| 27 | + type:templateAction | ||
| 28 | + subtype:drawPanelAction | ||
| 29 | + command:changeBrush | ||
| 30 | +``` | ||
| 31 | + | ||
| 14 | * Undo操作 | 32 | * Undo操作 |
| 33 | +``` | ||
| 34 | + type:templateAction | ||
| 35 | + subtype:drawPanelAction | ||
| 36 | + command:undo | ||
| 37 | +``` | ||
| 38 | + | ||
| 15 | * 清空画面 | 39 | * 清空画面 |
| 40 | +``` | ||
| 41 | + type:templateAction | ||
| 42 | + subtype:drawPanelAction | ||
| 43 | + command:clear | ||
| 44 | +``` | ||
| 16 | 45 | ||
| 17 | ### 绘画消息 | 46 | ### 绘画消息 |
| 18 | 47 | ||
| 19 | * 开始绘画消息 | 48 | * 开始绘画消息 |
| 49 | +``` | ||
| 50 | + type:templateAction | ||
| 51 | + subtype:drawPanelAction | ||
| 52 | + command:beginDraw | ||
| 53 | + startX:100 | ||
| 54 | + startY:100 | ||
| 55 | + firstX:100 | ||
| 56 | + firstY:100 | ||
| 57 | +``` | ||
| 20 | 58 | ||
| 21 | * 绘画中的消息 | 59 | * 绘画中的消息 |
| 22 | -绘画过程中的所有点的信息,可以采用小文件的方式一次性发送。 | 60 | +``` |
| 61 | + type:templateAction | ||
| 62 | + subtype:drawPanelAction | ||
| 63 | + command:drawing | ||
| 64 | + attachment:smallFile | ||
| 65 | +``` | ||
| 66 | +附件记录了绘画过程中的所有点的信息。 | ||
| 23 | 67 | ||
| 24 | * 绘画结束消息 | 68 | * 绘画结束消息 |
| 25 | - | 69 | +``` |
| 26 | -to do | 70 | + type:templateAction |
| 71 | + subtype:drawPanelAction | ||
| 72 | + command:endDraw | ||
| 73 | + positionInfoArray:最后一个点的位置信息 | ||
| 74 | +``` |
-
Please register or login to post a comment