echo

Updated 远程教学之画板相关消息 (markdown)

... ... @@ -7,20 +7,68 @@
### 画板动作消息
* 打开画板
如果采取发送教师端截图的方式,需要附加一个图片消息
```
type:templateAction
subtype:drawPanelAction
command:openDrawPanel
attachmentType:image
```
附加的附件是教师版当前页面的截图
* 关闭画板
```
type:templateAction
subtype:drawPanelAction
command:closeDrawPanel
```
* 更换画笔
```
type:templateAction
subtype:drawPanelAction
command:changeBrush
```
* Undo操作
```
type:templateAction
subtype:drawPanelAction
command:undo
```
* 清空画面
```
type:templateAction
subtype:drawPanelAction
command:clear
```
### 绘画消息
* 开始绘画消息
```
type:templateAction
subtype:drawPanelAction
command:beginDraw
startX:100
startY:100
firstX:100
firstY:100
```
* 绘画中的消息
绘画过程中的所有点的信息,可以采用小文件的方式一次性发送。
```
type:templateAction
subtype:drawPanelAction
command:drawing
attachment:smallFile
```
附件记录了绘画过程中的所有点的信息。
* 绘画结束消息
to do
\ No newline at end of file
```
type:templateAction
subtype:drawPanelAction
command:endDraw
positionInfoArray:最后一个点的位置信息
```
\ No newline at end of file
... ...