Constructor
new Board(roomHandle, userId, width, height, backgroundColor, backgroundImage, title, outputWidth, outputHeight, description, extendData)
- Description:
创建一个Board实例 当白板的渲染宽(高)度与输出的宽(高)度不同时,输出的对应的x,y等坐标也是基于这个输出的宽(高)度重新计算的。
Example
const board = new Board();
Parameters:
| Name | Type | Description |
|---|---|---|
roomHandle |
object | 房间对象 |
userId |
string | 创建者userId |
width |
int | 白板的渲染宽度 |
height |
int | 白板的渲染高度 |
backgroundColor |
object | 白板的背景色 |
backgroundImage |
string | 白板的背景图访问路径 |
title |
string | 白标标题 |
outputWidth |
int | 白板的输出宽度 |
outputHeight |
int | 白板的输出高度 |
description |
string | 描述 |
extendData |
string | 扩展内容 |