Class: Board

Board


new Board(userId, width, height, backgroundColor, backgroundImage, title, outputWidth, outputHeight, description, extendData)

Board构造函数。 当白板的渲染宽(高)度与输出的宽(高)度不同时,输出的对应的x,y等坐标也是基于这个输出的宽(高)度重新计算的。

Parameters:
Name Type Description
userId String

创建者userId

width int

白板的渲染宽度

height int

白板的渲染高度

backgroundColor Object

白板的背景色

backgroundImage String

白板的背景图访问路径

title String

白标标题

outputWidth int

白板的输出宽度

outputHeight int

白板的输出高度

description String

描述

extendData String

扩展内容

Example
var board = new Board();

Methods


createAnnotation()

创建批注


getAnnotation()

获取当前白板所属的批注


removeAnnotation()

删除当前白板所属的全部批注


setRenderWidthAndHeight(width, height)

设置当前白板的渲染宽(高)度,输入的对应的x,y等坐标也是基于这个输入的宽(高)度重新计算的。

Parameters:
Name Type Description
width Object
height Object

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

白板的高度