new Board(userId, width, height, backgroundColor, backgroundImage)
Board构造函数。
Parameters:
Name | Type | Description |
---|---|---|
userId |
String | 创建者userId |
width |
int | 白板的宽度 |
height |
int | 白板的高度 |
backgroundColor |
Object | 白板的背景色 |
backgroundImage |
String | 白板的背景图访问路径 |
Example
var board = new Board();
Methods
-
createAnnotation()
-
创建批注
-
getAnnotation()
-
获取当前白板所属的批注
-
removeAnnotation()
-
删除当前白板所属的全部批注
-
updateBackgroundColor(backgroundColor)
-
白板的背景色更改
Parameters:
Name Type Description backgroundColor
Object 白板的背景色
-
updateBackgroundImage(backgroundImage)
-
白板的背景图访问路径更改
Parameters:
Name Type Description backgroundImage
Object 白板的背景图访问路径
-
updateWidthAndHeight(width, height)
-
白板的宽度及高度更改
Parameters:
Name Type Description width
int 白板的宽度
height
int 白板的高度