类型: interface
页面信息
| 名称 | 描述 |
|---|---|
| pageId | 页面 ID |
| bkInfo | 背景设置 |
| extra |
类型: string
页面 ID
类型: { bkColor?: string; bkImage?: string; bkImageFillType?: BkFillType; bkImageSize?: BkImageSize; }
背景设置
成员
| 名称 | 类型 | 描述 |
|---|---|---|
| bkColor | string |
背景颜色 |
| bkImage | string |
背景图片 |
| bkImageFillType | BkFillType |
背景图片填充设置 |
| bkImageSize | BkImageSize |
背景图片尺寸 |
类型: string
类型: enum
| 属性 | 值 | 描述 |
|---|---|---|
| kFill | 0 |
|
| kCenter | 1 |
|
| kHidden | 2 |
类型: interface
| 名称 | 描述 |
|---|---|
| width | |
| height |
类型: number
类型: number
类型: interface
白板信息
| 名称 | 描述 |
|---|---|
| boardId | 白板 ID |
| pages | 页面信息 |
| currentPageId | 当前页面 ID |
| status | 是否可用 |
| controlCount | 可编辑用户数 |
| boardControlCount | 可编辑用户数 |
| bkInfo | 背景设置 |
类型: number
白板 ID
类型: WebPageInfo[]
页面信息
类型: string
当前页面 ID
类型: StatusType
是否可用
类型: { [key: string]: number; }
可编辑用户数
类型: number
可编辑用户数
背景设置
类型: enum
| 属性 | 值 | 描述 |
|---|---|---|
| Active | 0 |
|
| Inactive | 1 |
类型: interface
默认背景设置
| 名称 | 描述 |
|---|---|
| bkColor | 背景颜色 |
| bkImage | 背景图片 |
| bkImageFillType | 背景图片填充方式 |
| bkImageSize | 背景图片尺寸 |
类型: string
背景颜色
类型: string
背景图片
类型: BkFillType
背景图片填充方式
类型: BkImageSize
背景图片尺寸
类型: enum
白板锁定原因
| 属性 | 值 | 描述 |
|---|---|---|
| BOARD_DATA_ERROR | 1 |
数据错误 |
| NET_WORK_CONGESTION | 2 |
网络拥塞 |
| NET_WORK_DISCONNECT | 3 |
网络断开 |
类型: enum
图片加载状态
| 属性 | 值 | 描述 |
|---|---|---|
| loading | 0 |
加载中 |
| end | 1 |
加载完成 |
| error | 2 |
加载错误 |
类型: enum
是否可编辑
| 属性 | 值 | 描述 |
|---|---|---|
| kRead | 0 |
只读 |
| kEditAll | 1 |
可编辑 |
画笔工具和形状类型
ts
TOOL_TYPE | Constant.SHAPE_TYPE | ''
类型: enum
白板录像回放状态
| 属性 | 值 | 描述 |
|---|---|---|
| INIT | 0 |
初始化 |
| PAUSE | 1 |
暂停播放 |
| START | 2 |
开始播放 |
| END | 3 |
停止播放 |
类型: class
参数
options
类型: { boardRef: WhiteBoardRoom; boardId: number; pages: WebPageInfo[]; canvasConfig: canvasConfig; status: StatusType; }
| 名称 | 类型 | 描述 |
|---|---|---|
| boardRef | WhiteBoardRoom |
|
| boardId | number |
|
| pages | WebPageInfo[] |
|
| canvasConfig | canvasConfig |
|
| status | StatusType |
类型: number
类型: string
类型: IToolMode
类型: WhiteBoardRoom
类型: Board
类型: string
类型: WebPageInfo[]
类型: ObjectParams[]
类型: Object
类型: ICacheManage
类型: ImagePlugin
类型: MultiPages
类型: string
类型: StatusType
ts
() => string
ts
() => number
ts
(cacheSelectingObj: ObjectParams[]) => void
参数
cacheSelectingObj
类型: ObjectParams[]
ts
() => void
ts
(pageId: string, pages: WebPageInfo[]) => void
参数
pageId
类型: string
pages
类型: WebPageInfo[]
ts
(currentPageId: string) => void
参数
currentPageId
类型: string
ts
(current_page_info: WebPageInfo) => { bkInfo: { bkColor: string; bkImage: string; bkImageFillType: BkFillType; }; }
参数
current_page_info
类型: WebPageInfo
ts
(pages: WebPageInfo[], currentPageId: string) => void
参数
pages
类型: WebPageInfo[]
currentPageId
类型: string
ts
(scale: number) => void
参数
scale
类型: number
ts
(pageId: string, url: string, fillType?: BkFillType) => Promise<void>
参数
pageId
类型: string
url
类型: string
fillType
类型: BkFillType
ts
(backgroundColor: string) => Promise<void>
参数
backgroundColor
类型: string
ts
() => void
ts
(id: string) => Object
参数
id
类型: string
ts
() => number
类型: number
ts
() => string
类型: string
ts
() => string
类型: string
ts
(mode: EditMode) => void
参数
mode
类型: EditMode
ts
() => void
ts
(lock: boolean, reason: LockBoardReason) => void
参数
lock
类型: boolean
reason
类型: LockBoardReason
ts
(key: IToolMode) => void
参数
key
类型: IToolMode
ts
() => void
ts
(param: DrawConf) => void
参数
param
类型: DrawConf
ts
() => void
ts
() => RecordCommand
进行Redo
ts
() => void
进行Undo
ts
() => void
清空白板
ts
() => void
ts
(color: string) => void
参数
color
类型: string
ts
(color: string) => void
参数
color
类型: string
ts
(color: string) => void
参数
color
类型: string
ts
(thickness: number) => void
参数
thickness
类型: number
ts
(thickness: number) => void
参数
thickness
类型: number
设置文本字号大小
ts
(fontSize: number) => void
参数
in
类型: number
size 尺寸
ts
({ shapeType, obj, objId, type, timestamp, zIndex }: any) => void
参数
{ shapeType, obj, objId, type, timestamp, zIndex }
类型: any
ts
(boardId: number, pageId: string, objId: string) => void
参数
boardId
类型: number
pageId
类型: string
objId
类型: string
ts
() => void
ts
(insertPageId: string, pageConfigs: WebPageInfo[], task_id: string) => void
参数
insertPageId
类型: string
pageConfigs
类型: WebPageInfo[]
task_id
类型: string
ts
(insertPageId: string, pageConfig: Partial<WebPageInfo>, options?: { autoFlip: boolean;}) => void
参数
insertPageId
类型: string
pageConfig
类型: Partial<WebPageInfo>
options
类型: { autoFlip: boolean; }
| 名称 | 类型 | 描述 |
|---|---|---|
| autoFlip | boolean |
ts
(pageId: string) => void
参数
pageId
类型: string
ts
() => WebPageInfo
ts
() => WebPageInfo[]
ts
() => number
ts
(index: number) => WebPageInfo
参数
index
类型: number
ts
(params: { pageId: string; color?: string; img?: string; fillType?: BkFillType;}) => void
参数
params
类型: { pageId: string; color?: string; img?: string; fillType?: BkFillType; }
| 名称 | 类型 | 描述 |
|---|---|---|
| pageId | string |
|
| color | string |
|
| img | string |
|
| fillType | BkFillType |
ts
(params: BackgroundInfoCache) => void
参数
params
ts
(currentPageId: string, pageConfig: { fileImage: string; fileName: string;}[], fillType: BkFillType, file_id: string, options?: CreatePageOptions) => void
参数
currentPageId
类型: string
pageConfig
类型: { fileImage: string; fileName: string; }[]
| 名称 | 类型 | 描述 |
|---|---|---|
| fileImage | string |
|
| fileName | string |
fillType
类型: BkFillType
file_id
类型: string
options
ts
(pageIds: string[], isContinuousPages?: boolean) => void
参数
pageIds
类型: string[]
isContinuousPages
类型: boolean
值: 'false'
ts
() => WebPageInfo[]
ts
() => void
类型: class
白板房间
| 名称 | 描述 |
|---|---|
| roomId | 房间 ID |
| Token | 动态密钥 |
| byteToken | 动态密钥 |
| byteAppId | AppId |
| parentBoardId | 白板 ID |
| userId | 用户 ID |
| AppId | AppID |
| _whiteBoardRoomObj | |
| _whiteBoardInfo | |
| _whiteBoardCreateInfo | |
| whiteBoard | |
| httpClient | |
| timeHelper | |
| cacheManage | |
| pageSnapShotManage | |
| userLockObjIds | |
| boardRoomOptions | |
| getTimestamp() | |
| _sendActionData() | |
| processActionCacheWithType() | |
| _kEditingMessage() | |
| processActions() | |
| _kGetActionCount() | 处理白板action count【本地收到心跳不一致时,请求GetActionCount的相应】 |
| _kHeartBeat() | 处理心跳逻辑 |
| _kGetShapeSnapshot() | 处理图形快照 【1。首次进房 2. 冲突 3. 心跳包actionAcount不一致】 |
| _kEditing() | 处理图形编辑响应【发送端】, 如有conflictObjIds,需要处理 |
| createWhiteBoard() | |
| setBoardInfo() | |
| setUserCreateBoardInfo() | |
| _kCreateBoard() | 处理创建Board响应 【本地创建白板】 |
| processBoardInfo() | |
| initWhiteBoard() | |
| getRoomID() | |
| login() | |
| getBoardInfo() | |
| joinRoom() | |
| leaveRoom() | |
| destory() | |
| destroyWhiteBoard() | |
| closeAllWhiteBoard() | |
| getWhiteBoard() | |
| startPlaybackWhiteBoard() | |
| pausePlaybackWhiteBoard() | |
| cancelPausePlaybackWhiteBoard() | |
| stopPlaybackWhiteBoard() | |
| setPlaybackWhiteBoardProgress() | |
| createTranscodeTask() |
ts
constructor(props: IBoradProps)
参数
props
类型: IBoradProps
类型: string
房间 ID
类型: string
动态密钥
类型: string
动态密钥
类型: string
AppId
类型: string
白板 ID
类型: string
用户 ID
类型: string
AppID
类型: { [key: string]: WhiteBoard; }
类型: { [key: number]: WebBoardInfo; }
类型: { [key: number]: ICreateBoard; }
类型: WhiteBoard
类型: HttpClient
类型: TimeHelper
类型: CacheManage
类型: SnapshotPlugin
类型: { [key: string]: string; }
类型: { autoFlip: boolean; }
成员
| 名称 | 类型 | 描述 |
|---|---|---|
| autoFlip | boolean |
ts
() => number
ts
(params: DataProcessItemSend[], type?: SendType, fileInfo?: { fileId: string;}) => void
参数
params
类型: DataProcessItemSend[]
type
类型: SendType
值: ' SendType.data'
fileInfo
类型: { fileId: string; }
| 名称 | 类型 | 描述 |
|---|---|---|
| fileId | string |
ts
(actions: Action[], pageId: string, boardId: number) => void
参数
actions
类型: Action[]
pageId
类型: string
boardId
类型: number
ts
(res: { command: number; operator: string; data: EditingMessage;}) => void
参数
res
类型: { command: number; operator: string; data: EditingMessage; }
| 名称 | 类型 | 描述 |
|---|---|---|
| command | number |
|
| operator | string |
|
| data | EditingMessage |
ts
(item: Action, action_pageId: string, action_board_id: number, operator?: string) => void
参数
item
类型: Action
action_pageId
类型: string
action_board_id
类型: number
operator
类型: string
处理白板action count【本地收到心跳不一致时,请求GetActionCount的相应】
ts
(res: GetActionCountResponse) => void
参数
res
处理心跳逻辑
ts
(res: HeartBeatResponse) => void
参数
res
处理图形快照 【1。首次进房 2. 冲突 3. 心跳包actionAcount不一致】
ts
(res: GetShapeSnapshotResponse) => void
参数
res
处理图形编辑响应【发送端】, 如有conflictObjIds,需要处理
ts
(res: EditingResponse) => void
参数
res
类型: EditingResponse
ts
(boardId: number, page: WebPageInfo, boardBKInfo?: WebPageInfo['bkInfo']) => void
参数
boardId
类型: number
page
类型: WebPageInfo
boardBKInfo
类型: { bkColor?: string; bkImage?: string; bkImageFillType?: BkFillType; bkImageSize?: BkImageSize; }
ts
(boardId: number, boardInfo?: WebBoardInfo) => void
参数
boardId
类型: number
boardInfo
类型: WebBoardInfo
ts
(boardId: number, boardInfo: WebBoardInfo) => void
参数
boardId
类型: number
boardInfo
类型: WebBoardInfo
处理创建Board响应 【本地创建白板】
ts
(res: CreateBoardResponse) => Promise<void>
参数
res
ts
(data: { boards: BoardInfo[]; packetId: number;}) => void
参数
data
类型: { boards: BoardInfo[]; packetId: number; }
| 名称 | 类型 | 描述 |
|---|---|---|
| boards | BoardInfo[] |
|
| packetId | number |
ts
(boardId: number, pages: WebPageInfo[], currentPageId: string, status: StatusType) => WhiteBoard | undefined
参数
boardId
类型: number
pages
类型: WebPageInfo[]
currentPageId
类型: string
status
类型: StatusType
返回值
类型: WhiteBoard | undefined
ts
() => string | undefined
类型: string | undefined
ts
() => Promise<void>
ts
() => Promise<GetBoardInfoResponse>
类型: Promise<GetBoardInfoResponse>
ts
() => Promise<void>
类型: Promise<void>
ts
() => void
ts
() => void
ts
(white_board: WhiteBoard) => void
参数
white_board
类型: WhiteBoard
ts
() => void
ts
(board_id: number) => WhiteBoard
参数
board_id
类型: number
ts
() => void
ts
() => void
ts
() => void
ts
() => void
ts
(progress: number) => void
参数
progress
类型: number
ts
(params: IDocsCreateTranscodeTask) => Promise<any>
参数
params
返回值
类型: Promise<any>
类型: interface
白板属性
| 名称 | 描述 |
|---|---|
| appId | 每个应用的唯一标识符,由 RTC 控制台随机生成的。不同的 AppId 生成的实例在 RTC 中进行音频通话完全独立,无法互通。 |
| boardViewId | 视图 DomID |
| roomId | 房间 ID |
| userId | 用户 ID |
| token | 动态密钥 用户登录必须携带的 Token,用于鉴权验证。 登录 Token 与加入房间时必须携带的 Token 不同。测试时可使用控制台生成临时 Token, roomId 填任意值或置空,正式上线需要使用密钥 SDK 在你的服务端生成并下发 Token。 |
| options | 选项 |
类型: string
每个应用的唯一标识符,由 RTC 控制台随机生成的。不同的 AppId 生成的实例在 RTC 中进行音频通话完全独立,无法互通。
类型: string
视图 DomID
类型: string
房间 ID
类型: string
用户 ID
类型: string
动态密钥
用户登录必须携带的 Token,用于鉴权验证。
登录 Token 与加入房间时必须携带的 Token 不同。测试时可使用控制台生成临时 Token,roomId 填任意值或置空,正式上线需要使用密钥 SDK 在你的服务端生成并下发 Token。
类型: { autoFlip: boolean; }
选项
成员
| 名称 | 类型 | 描述 |
|---|---|---|
| autoFlip | boolean |
是否自动翻页 |
类型: interface
| 名称 | 描述 |
|---|---|
| createStatus |
类型: ResponseStatus
类型: interface
| 名称 | 描述 |
|---|---|
| status | |
| boardId |
类型: ResponseStatus
类型: number
类型: enum
| 属性 | 值 | 描述 |
|---|---|---|
| Succeed | 0 |
|
| Reject | 1 |
|
| Conflict | 2 |
|
| Error | 3 |
类型: class
| 名称 | 描述 |
|---|---|
| getTimestamp() | |
| getToken() | |
| getPageSnapShot() | |
| replay() | |
| roomEnter() | |
| roomQuit() | |
| createTranscodeTask() | |
| queryTranscodeTask() | |
| getTranscodeResult() | |
| getBoardInfos() |
ts
(requestConfig: Partial<AxiosRequestConfig>) => Promise<{ timestamp: number; }>
参数
requestConfig
类型: Partial<AxiosRequestConfig<any>>
返回值
类型: Promise<{ timestamp: number }>
ts
(requestConfig: Partial<AxiosRequestConfig>, params: any) => Promise<Token>
参数
requestConfig
类型: Partial<AxiosRequestConfig<any>>
params
类型: any
ts
(requestConfig: Partial<AxiosRequestConfig>, params: any) => Promise<Res>
参数
requestConfig
类型: Partial<AxiosRequestConfig<any>>
params
类型: any
ts
(requestConfig: Partial<AxiosRequestConfig>, params: any) => Promise<Res>
参数
requestConfig
类型: Partial<AxiosRequestConfig<any>>
params
类型: any
ts
(requestConfig: Partial<AxiosRequestConfig>, params: any) => Promise<Res>
参数
requestConfig
类型: Partial<AxiosRequestConfig<any>>
params
类型: any
ts
(requestConfig: Partial<AxiosRequestConfig>, params: any) => Promise<Res>
参数
requestConfig
类型: Partial<AxiosRequestConfig<any>>
params
类型: any
ts
(requestConfig: Partial<AxiosRequestConfig>, params: IDocsCreateTranscodeTask) => Promise<IDocsCreateTranscodeTaskRes>
参数
requestConfig
类型: Partial<AxiosRequestConfig<any>>
params
ts
(requestConfig: Partial<AxiosRequestConfig>, params: IDocsQueryTranscodeTask) => Promise<IDocsQueryTranscodeTaskRes>
参数
requestConfig
类型: Partial<AxiosRequestConfig<any>>
params
ts
(requestConfig: Partial<AxiosRequestConfig>, params: IDocsGetTranscodeResult) => Promise<IDocsGetTranscodeResultRes>
参数
requestConfig
类型: Partial<AxiosRequestConfig<any>>
params
ts
(requestConfig: Partial<AxiosRequestConfig>, params: IGetBoardInfoParams) => Promise<Res>
参数
requestConfig
类型: Partial<AxiosRequestConfig<any>>
params
类型: interface
| 名称 | 描述 |
|---|---|
| app_id | |
| resource | |
| operator | |
| transcode_config | |
| storage_config | |
| transcode_mode | |
| priority | |
| onProgress() |
类型: string
类型: string
类型: string
类型: TranscodeConfig
类型: StorageConfig
类型: TranscodeMode
类型: Priority
ts
(transcodePercent: number, transcodeStatus: TaskStatus, task_id: string) => void
参数
transcodePercent
类型: number
transcodeStatus
类型: TaskStatus
task_id
类型: string
类型: interface
| 名称 | 描述 |
|---|---|
| input_format | |
| output_format | |
| output_width | |
| output_height | |
| force_use_resolution | |
| thumbnail | |
| thumbnail_width | |
| thumbnail_height |
类型: InputFormat
类型: OutputFormat
类型: number
类型: number
类型: boolean
类型: boolean
类型: number
类型: number
类型: enum
| 属性 | 值 | 描述 |
|---|---|---|
| ppt | 1 |
|
| pptx | 2 |
|
| doc | 3 |
|
| docx | 4 |
|
5 |
类型: enum
| 属性 | 值 | 描述 |
|---|---|---|
| png | 1 |
|
| 'jpg/jpeg' | 2 |
类型: interface
| 名称 | 描述 |
|---|---|
| type | |
| tos_config | |
| custom_config |
类型: StorageType
类型: TosConfig
类型: CustomConfig
类型: enum
| 属性 | 值 | 描述 |
|---|---|---|
| Tos | 0 |
|
| S3 | 1 |
类型: interface
| 名称 | 描述 |
|---|---|
| account_id | |
| bucket |
类型: string
类型: string
类型: interface
| 名称 | 描述 |
|---|---|
| vendor | |
| region | |
| bucket | |
| access_key | |
| secret_key |
类型: Vendor
类型: string
类型: string
类型: string
类型: string
类型: enum
| 属性 | 值 | 描述 |
|---|---|---|
| amazon | 0 |
|
| alicloud | 1 |
类型: enum
| 属性 | 值 | 描述 |
|---|---|---|
| static | 0 |
|
| dynamic | 1 |
类型: enum
| 属性 | 值 | 描述 |
|---|---|---|
| nonrealtime | 0 |
|
| realtime | 1 |
类型: enum
| 属性 | 值 | 描述 |
|---|---|---|
| Pending | 0 |
|
| Ongoing | 1 |
|
| Completed | 2 |
|
| Fail | 3 |
类型: interface
| 名称 | 描述 |
|---|---|
| app_id | |
| operator | |
| task_id |
类型: string
类型: string
类型: string
类型: interface
| 名称 | 描述 |
|---|---|
| app_id | |
| operator | |
| task_id | |
| need_thumbnail |
类型: string
类型: string
类型: string
类型: boolean
类型: interface
| 名称 | 描述 |
|---|---|
| app_id | |
| room_id | |
| board_ids |
类型: string
类型: string
类型: number[]
类型: class
| 名称 | 描述 |
|---|---|
| byteToken | |
| init() | |
| initAdjustTime() | |
| getCurrentTime() |
ts
constructor(options: { byteToken: string })
参数
options
类型: { byteToken: string; }
| 名称 | 类型 | 描述 |
|---|---|---|
| byteToken | string |
类型: string
ts
() => void
ts
() => Promise<void>
ts
() => number
类型: class
类型: { actionCount: { [key: number]: { [key: string]: number; }; }; controlCount: { [key: number]: { [key: string]: number; }; }; boardControlCount: { [key: number]: number; }; objData: { [key: number]: { [key: string]: { [key: string]: { [key: string]: ObjData; [key: number]: ObjData; }; }; }; }; pageDataReplay: { [key: number]: any; }; objDataReplay: { [key: number]: { [key: string]: { [key: string]: { [key: string]: ObjData; [key: number]: ObjData; }; }; }; }; objCount: { [key: number]: { [key: string]: { [key: string]: number; }; }; }; objCountTmp: { [key: number]: { [key: string]: { [key: string]: number; }; }; }; objPacket: { [key: string]: { [key: number]: { status: number | undefined; }; }; }; objActionId: { [key: string]: { cur: number; next: number; }; }; objActionIdLocal: { [key: string]: { cur: number; next: number; }; }; heartCount: { [key: number]: { [key: string]: number[]; }; }; ActionType: { timestamp: string; type: number;}[]; conflict: ConflictPacket[]; recvPacket: RecePacket[]; polylineSplit: PolylineSplit; packets: PacketParam; userLockObjIds: { [key: string]: string; }; httpCache: { [key: string]: { resendCount?: number; ack?: any; }; [key: number]: { resendCount?: number; ack?: any; }; }; pageObj: { [key: number]: WebPageInfo[]; }; createPages: { [key: string]: any[]; }; }
成员
| 名称 | 类型 | 描述 |
|---|---|---|
| actionCount | { [key: number]: { [key: string]: number; }; } |
|
| controlCount | { [key: number]: { [key: string]: number; }; } |
|
| boardControlCount | { [key: number]: number; } |
|
| objData | { [key: number]: { [key: string]: { [key: string]: { [key: string]: ObjData; [key: number]: ObjData; }; }; }; } |
|
| pageDataReplay | { [key: number]: any; } |
|
| objDataReplay | { [key: number]: { [key: string]: { [key: string]: { [key: string]: ObjData; [key: number]: ObjData; }; }; }; } |
|
| objCount | { [key: number]: { [key: string]: { [key: string]: number; }; }; } |
|
| objCountTmp | { [key: number]: { [key: string]: { [key: string]: number; }; }; } |
|
| objPacket | { [key: string]: { [key: number]: { status: number | undefined; }; }; } |
|
| objActionId | { [key: string]: { cur: number; next: number; }; } |
|
| objActionIdLocal | { [key: string]: { cur: number; next: number; }; } |
|
| heartCount | { [key: number]: { [key: string]: number[]; }; } |
|
| ActionType | { timestamp: string; type: number; }[] |
|
| ActionType.timestamp | string |
|
| ActionType.type | number |
|
| conflict | ConflictPacket[] |
|
| recvPacket | RecePacket[] |
|
| polylineSplit | PolylineSplit |
|
| packets | PacketParam |
|
| userLockObjIds | { [key: string]: string; } |
|
| httpCache | { [key: string]: { resendCount?: number; ack?: any; }; [key: number]: { resendCount?: number; ack?: any; }; } |
|
| pageObj | { [key: number]: WebPageInfo[]; } |
|
| createPages | { [key: string]: any[]; } |
ts
(params: { boardId: number; pages: WebPageInfo[];}) => void
参数
params
类型: { boardId: number; pages: WebPageInfo[]; }
| 名称 | 类型 | 描述 |
|---|---|---|
| boardId | number |
|
| pages | WebPageInfo[] |
ts
() => void
ts
(boardId: number, pageId: string, objId: string) => void
参数
boardId
类型: number
pageId
类型: string
objId
类型: string
ts
(item: { timestamp: string; type: number;}) => void
参数
item
类型: { timestamp: string; type: number; }
| 名称 | 类型 | 描述 |
|---|---|---|
| timestamp | string |
|
| type | number |
ts
(params: { objId: string; count: number;}) => void
参数
params
类型: { objId: string; count: number; }
| 名称 | 类型 | 描述 |
|---|---|---|
| objId | string |
|
| count | number |
ts
(params: { objId: string; count: number; key: 'objActionId' | 'objActionIdLocal';}) => void
参数
params
类型: { objId: string; count: number; key: 'objActionId' | 'objActionIdLocal'; }
| 名称 | 类型 | 描述 |
|---|---|---|
| objId | string |
|
| count | number |
|
| key | "objActionId" | "objActionIdLocal" |
ts
(params: { objId: string; key: 'objActionId' | 'objActionIdLocal';}) => void
参数
params
类型: { objId: string; key: 'objActionId' | 'objActionIdLocal'; }
| 名称 | 类型 | 描述 |
|---|---|---|
| objId | string |
|
| key | "objActionId" | "objActionIdLocal" |
${operator}-${packetId}()ts
(message: { boardId: number; pageId: string | undefined; objId: string; actions: Action[]; packetId: number; operator: string;}) => void
参数
message
类型: { boardId: number; pageId: string | undefined; objId: string; actions: Action[]; packetId: number; operator: string; }
| 名称 | 类型 | 描述 |
|---|---|---|
| boardId | number |
|
| pageId | string |
|
| objId | string |
|
| actions | Action[] |
|
| packetId | number |
|
| operator | string |
ts
(message: { boardId: number; pageId: string | undefined; objId: string; actions: Action[]; packetId: number; operator: string;}) => void
参数
message
类型: { boardId: number; pageId: string | undefined; objId: string; actions: Action[]; packetId: number; operator: string; }
| 名称 | 类型 | 描述 |
|---|---|---|
| boardId | number |
|
| pageId | string |
|
| objId | string |
|
| actions | Action[] |
|
| packetId | number |
|
| operator | string |
ts
(boardId: number, data: any) => void
参数
boardId
类型: number
data
类型: any
ts
(boardId: number, pageId: string) => void
参数
boardId
类型: number
pageId
类型: string
ts
(boardId: number, pageId: string, objId: string, actionCount: number, phase: PhaseType | undefined, finish: boolean) => void
参数
boardId
类型: number
pageId
类型: string
objId
类型: string
actionCount
类型: number
phase
类型: PhaseType
finish
类型: boolean
ts
(boardId: number, pageId: string, addCount: number) => void
参数
boardId
类型: number
pageId
类型: string
addCount
类型: number
ts
(boardId: number, addCount: number) => void
参数
boardId
类型: number
addCount
类型: number
ts
(item?: ConflictPacket) => void
参数
item
类型: ConflictPacket
ts
(item?: RecePacket) => void
参数
item
类型: RecePacket
ts
(param: { key: string; objIds?: string[];}) => void
参数
param
类型: { key: string; objIds?: string[]; }
| 名称 | 类型 | 描述 |
|---|---|---|
| key | string |
|
| objIds | string[] |
ts
(params: { packetId: number; param?: PackeItem; resendCount?: number; fileInfo: { fileId: string; };}) => void
参数
params
类型: { packetId: number; param?: PackeItem; resendCount?: number; fileInfo: { fileId: string;}; }
| 名称 | 类型 | 描述 |
|---|---|---|
| packetId | number |
|
| param | PackeItem |
|
| resendCount | number |
|
| fileInfo | { fileId: string; } |
|
| fileInfo.fileId | string |
ts
(message: { boardId: number; pageId: string; count: number;}) => void
参数
message
类型: { boardId: number; pageId: string; count: number; }
| 名称 | 类型 | 描述 |
|---|---|---|
| boardId | number |
|
| pageId | string |
|
| count | number |
ts
(message: { boardId: number; pageId: string;}) => void
参数
message
类型: { boardId: number; pageId: string; }
| 名称 | 类型 | 描述 |
|---|---|---|
| boardId | number |
|
| pageId | string |
ts
() => void
ts
() => void
ts
() => void
ts
() => void
ts
() => void
ts
({ onSuccess, onReject, onMaxCount, timeout, key }: ICheckResponse) => void
参数
{ onSuccess, onReject, onMaxCount, timeout, key }
类型: ICheckResponse
ts
(boardId: number | undefined, pageId: string | undefined, objId: string) => { obj: { [key: string]: any; }; props: { [key: string]: any; }; phase: PhaseType; timestamp: number; type: ActionType; shapeType: any; zIndex: string; }[]
参数
boardId
类型: number
pageId
类型: string
objId
类型: string
类型: interface
| 名称 | 描述 |
|---|---|
| type | |
| phase | |
| objId | |
| actionId | |
| timestamp | |
| data | |
| zIndex | |
| creatorUserId | |
| flag |
类型: ActionType
类型: PhaseType
类型: string
类型: number
类型: string
类型: string
类型: string
类型: string
类型: ActionFlag
类型: enum
| 属性 | 值 | 描述 |
|---|---|---|
| kPen | 0 |
|
| kLine | 1 |
|
| kArrow | 2 |
|
| kRect | 3 |
|
| kCircle | 4 |
|
| kText | 5 |
|
| kLaserPen | 7 |
|
| kErase | 100 |
|
| kClearBoard | 101 |
|
| kLock | 102 |
|
| kUnLock | 103 |
|
| kCreatePage | 200 |
|
| kFlipPage | 201 |
|
| kDeletePage | 203 |
|
| kChangePageBackground | 204 |
|
| kChangeBoardBackground | 205 |
类型: enum
| 属性 | 值 | 描述 |
|---|---|---|
| kStart | 0 |
|
| kOnGoing | 1 |
|
| kFinish | 2 |
|
| kFull | 3 |
类型: enum
| 属性 | 值 | 描述 |
|---|---|---|
| kNone | 0 |
|
| kUndo | 1 |
|
| kRedo | 2 |
|
| kClear | 3 |
类型: interface
| 名称 | 描述 |
|---|---|
| timeout | |
| key | |
| onSuccess() | |
| onReject() | |
| onMaxCount() |
类型: number
类型: string
ts
() => void
ts
() => void
ts
() => void
类型: class
| 名称 | 描述 |
|---|---|
| name | |
| boardRef | |
| count | |
| arrs | |
| initRequest() | |
| reqCallback() |
ts
constructor(options: { boardRef: WhiteBoardRoom})
参数
options
类型: { boardRef: WhiteBoardRoom; }
| 名称 | 类型 | 描述 |
|---|---|---|
| boardRef | WhiteBoardRoom |
类型: string
类型: WhiteBoardRoom
类型: number
类型: string[][]
ts
(controlCount: { [key: string]: number; }, currentPageId: string) => void
参数
controlCount
类型: { [key: string]: number; }
currentPageId
类型: string
ts
() => void
类型: interface
| 名称 | 描述 |
|---|---|
| object | |
| props | |
| phase | |
| type | |
| flag |
类型: any
类型: any
类型: PhaseType
类型: ActionTypeExtend
类型: CALL_SOURCE
ts
ActionType | Constant.SHAPE_TYPE
类型: enum
| 属性 | 值 | 描述 |
|---|---|---|
| UNDO | 'undo' |
|
| REDO | 'redo' |
|
| CLEAR | 'clear' |
类型: enum
| 属性 | 值 | 描述 |
|---|---|---|
| packet | 0 |
|
| data | 1 |
类型: interface
| 名称 | 描述 |
|---|---|
| packet | |
| userLockObjIds |
类型: Packet
类型: { [key: string]: string; }
类型: interface
| 名称 | 描述 |
|---|---|
| boardId | |
| pageId | |
| packetId | |
| operator | |
| version | |
| timestamp | |
| actions |
类型: number
类型: string
类型: number
类型: string
类型: number
类型: number
类型: Action[]
类型: interface
| 名称 | 描述 |
|---|---|
| boardId | |
| pageId | |
| actionCount |
类型: number
类型: string
类型: { [key: string]: number; }
类型: interface
| 名称 | 描述 |
|---|---|
| boardId | |
| pageId | |
| heartBeat |
类型: number
类型: string
类型: HeartBeatData
类型: interface
| 名称 | 描述 |
|---|---|
| actionCount | |
| controlCount | |
| userLockObjIds | |
| boardCurrentPageId | |
| boardControlCount |
类型: number
类型: number
类型: { [key: string]: string; }
类型: string
类型: number
类型: interface
| 名称 | 描述 |
|---|---|
| boardId | |
| pageId | |
| id | |
| version | |
| objList |
类型: number
类型: string
类型: string
类型: number
类型: Element[]
类型: interface
| 名称 | 描述 |
|---|---|
| type | |
| actionCount | |
| actionId | |
| timestamp | |
| boardId | |
| pageId | |
| objId | |
| data | |
| zIndex | |
| creatorUserId | |
| initialized |
类型: ActionType
类型: number
类型: number
类型: string
类型: number
类型: string
类型: string
类型: string
类型: string
类型: string
类型: boolean
类型: interface
| 名称 | 描述 |
|---|---|
| boardId | |
| pageId | |
| packetId | |
| status | |
| conflictObjIds |
类型: number
类型: string
类型: number
类型: ResponseStatus
类型: string[]
类型: interface
白板信息
| 名称 | 描述 |
|---|---|
| boardId | 白板 ID |
| pages | 总页数 |
| currentPageId | 当前页面 ID |
| status | 白板状态 |
| controlCount | 控制状态 |
| boardControlCount | 控制人数 |
| bkInfo | 背景设置 |
类型: number
白板 ID
类型: PageInfo[]
总页数
类型: string
当前页面 ID
类型: StatusType
白板状态
类型: { [key: string]: number; }
控制状态
类型: number
控制人数
类型: BackgroundInfo
背景设置
类型: interface
| 名称 | 描述 |
|---|---|
| pageId | |
| bkInfo | |
| extra |
类型: string
类型: BackgroundInfo
类型: string
类型: interface
背景设置
| 名称 | 描述 |
|---|---|
| bkColor | 背景颜色 |
| bkImage | 背景图片 |
| bkImageFillType | 填充方式 |
| bkImageSize | 图片尺寸 |
类型: number
背景颜色
类型: string
背景图片
类型: BkFillType
填充方式
类型: BkImageSize
图片尺寸
类型: interface
白板信息
| 名称 | 描述 |
|---|---|
| boards | 白板信息 |
| packetId | ID |
类型: BoardInfo[]
白板信息
类型: number
ID
ts
fabric.ICanvasOptions & { width: number; height: number }
ts
fabric.Object & {
objId: string;
id: string;
shapeType: Constant.SHAPE_TYPE;
text: string;
textLines: string[];
type: Constant.SHAPE_TYPE;
}
类型: class
| 名称 | 描述 |
|---|---|
| name | |
| boardCanvas | |
| imageObjList | |
| loadImage() | |
| setImageFromLoad() | |
| getImageFormLoad() |
ts
constructor(options: ImageOptions)
参数
options
类型: ImageOptions
类型: string
类型: WhiteBoard
类型: { url: string; img: fabric.Image; }[]
成员
| 名称 | 类型 | 描述 |
|---|---|---|
| url | string |
|
| img | Image |
ts
(pageId: string, bkImages: string[]) => void
参数
pageId
类型: string
bkImages
类型: string[]
ts
(pageId: string, url: string, fillType?: BkFillType, options?: SetBGImgOptions) => Promise<unknown>
参数
pageId
类型: string
url
类型: string
fillType
类型: BkFillType
options
类型: SetBGImgOptions
ts
(url: string) => { url: string; img: Image; }
参数
url
类型: string
类型: interface
| 名称 | 描述 |
|---|---|
| boardCanvas |
类型: WhiteBoard
类型: interface
| 名称 | 描述 |
|---|---|
| width | |
| height |
类型: number
类型: number
类型: class
ts
constructor(options: IMulitPage)
参数
options
类型: IMulitPage
ts
(currentPageId: string, pageConfig: { fileImage: string; fileName: string;}[], fillType: BkFillType, file_id: string, options?: CreatePageOptions) => void
参数
currentPageId
类型: string
pageConfig
类型: { fileImage: string; fileName: string; }[]
| 名称 | 类型 | 描述 |
|---|---|---|
| fileImage | string |
|
| fileName | string |
fillType
类型: BkFillType
file_id
类型: string
options
ts
(pages: WebPageInfo[], prePageId: string, replayCallbak?: (params: ReplayCallbackParam) => void) => void
参数
pages
类型: WebPageInfo[]
prePageId
类型: string
replayCallbak
类型: (params: ReplayCallbackParam) => void
ts
(prePageId: string, pages: Partial<WebPageInfo>[], options?: CreatePageOptions) => void
参数
prePageId
类型: string
pages
类型: Partial<WebPageInfo>[]
options
ts
(insertPageId: string, pageConfigs: WebPageInfo[], file_id: string, options?: CreatePageOptions) => void
参数
insertPageId
类型: string
pageConfigs
类型: WebPageInfo[]
file_id
类型: string
options
ts
(insertPageId: string, pageConfig: Partial<WebPageInfo>, options?: CreatePageOptions) => void
参数
insertPageId
类型: string
pageConfig
类型: Partial<WebPageInfo>
options
ts
(pageId: string, with_unlock_action?: boolean) => void
参数
pageId
类型: string
with_unlock_action
类型: boolean
值: ' true'
ts
(pageId: string, replayCallbak?: (params: ReplayCallbackParam) => void) => Promise<void>
参数
pageId
类型: string
replayCallbak
类型: (params: ReplayCallbackParam) => void
ts
(pageIds: string[], replayCallbak?: (params: ReplayCallbackParam) => void) => void
参数
pageIds
类型: string[]
replayCallbak
类型: (params: ReplayCallbackParam) => void
ts
(pageIds: string[], isContinuousPages: boolean) => void
参数
pageIds
类型: string[]
isContinuousPages
类型: boolean
ts
(pageIds: string[], isContinuousPages?: boolean) => void
参数
pageIds
类型: string[]
isContinuousPages
类型: boolean
值: 'false'
ts
(params: BackgroundInfoCache) => void
参数
params
ts
() => WebPageInfo
ts
() => WebPageInfo[]
ts
() => number
ts
(index: number) => WebPageInfo
参数
index
类型: number
ts
(params: { pageId: string; color?: string; img?: string; fillType?: BkFillType;}) => void
参数
params
类型: { pageId: string; color?: string; img?: string; fillType?: BkFillType; }
| 名称 | 类型 | 描述 |
|---|---|---|
| pageId | string |
|
| color | string |
|
| img | string |
|
| fillType | BkFillType |
ts
(params: { pageId: string; bkInfo: { bkColor: string; bkImage: string; bkImageFillType: BkFillType; };}, replayCallbak?: (params: ReplayCallbackParam) => void) => void
参数
params
类型: { pageId: string; bkInfo: { bkColor: string; bkImage: string; bkImageFillType: BkFillType;}; }
| 名称 | 类型 | 描述 |
|---|---|---|
| pageId | string |
|
| bkInfo | { bkColor: string; bkImage: string; bkImageFillType: BkFillType; } |
|
| bkInfo.bkColor | string |
|
| bkInfo.bkImage | string |
|
| bkInfo.bkImageFillType | BkFillType |
replayCallbak
类型: (params: ReplayCallbackParam) => void
ts
(params: { pageId: string; bkInfo: { bkColor: string; bkImage: string; bkImageFillType: BkFillType; };}, replayCallbak?: (params: ReplayCallbackParam) => void) => void
参数
params
类型: { pageId: string; bkInfo: { bkColor: string; bkImage: string; bkImageFillType: BkFillType;}; }
| 名称 | 类型 | 描述 |
|---|---|---|
| pageId | string |
|
| bkInfo | { bkColor: string; bkImage: string; bkImageFillType: BkFillType; } |
|
| bkInfo.bkColor | string |
|
| bkInfo.bkImage | string |
|
| bkInfo.bkImageFillType | BkFillType |
replayCallbak
类型: (params: ReplayCallbackParam) => void
类型: interface
| 名称 | 描述 |
|---|---|
| boardRef | |
| boardRoomRef |
类型: WhiteBoard
类型: WhiteBoardRoom
类型: interface
| 名称 | 描述 |
|---|---|
| autoFlip |
类型: boolean
类型: interface
| 名称 | 描述 |
|---|---|
| currentPageId | |
| insertPageId | |
| pages | |
| whiteBoardInfo |
类型: string
类型: string
类型: WebPageInfo[]
类型: { [key: number]: WebBoardInfo; }