Skip to content

BoardInitParams

Properties

authConfig?

optional authConfig?: object

白板权限配置

dataSyncEnable?

optional dataSyncEnable?: boolean

是否启用数据同步

drawEnable?

optional drawEnable?: boolean

是否允许绘制

progressEnable?

optional progressEnable?: boolean

是否启用进度条

systemCursorEnable?

optional systemCursorEnable?: boolean

是否使用系统光标


boardContentFitMode?

optional boardContentFitMode?: BoardFitMode

白板内容适配模式


classId?

optional classId?: number

课堂 ID


config?

optional config?: object

白板功能配置

preloadDepth?

optional preloadDepth?: number

预加载深度

progressBarUrl?

optional progressBarUrl?: string

进度条图片 URL

ratio?

optional ratio?: string

白板比例,如 '16:9'

scale?

optional scale?: number

白板缩放比例

syncFps?

optional syncFps?: number

同步帧率

toolType?

optional toolType?: BoardToolType

默认工具类型


domId

domId: string

挂载白板的 DOM 容器 ID(必填)


env

env: string

环境标识,如 'production' / 'dev'(必填)


resources?

optional resources?: BoardResourceConfig

白板资源 CDN 配置(可选,缺省使用默认地址)


sdkAppId?

optional sdkAppId?: number

SDK AppID


styleConfig?

optional styleConfig?: object

白板样式配置

brushColor?

optional brushColor?: string

画笔颜色

brushThin?

optional brushThin?: number

画笔粗细

globalBackgroundColor?

optional globalBackgroundColor?: string

全局背景色

textColor?

optional textColor?: string

文本颜色

textSize?

optional textSize?: number

文本字号

textStyle?

optional textStyle?: number

文本样式(0:常规 1:粗体 2:斜体 3:粗斜体)


userId?

optional userId?: string

用户 ID


userSig?

optional userSig?: string

用户签名