Global

Type Definitions

BackgroundImageInfo

Properties:
Name Type Attributes Default Description
url string <optional>
''

图片资源链接

mode number <optional>
TEDU_BOARD_IMAGE_FIT_MODE_CENTER

图片填充对齐模式

type number <optional>
0

背景类型(0: 背景图 1:H5)

angle number <optional>
0

旋转角度

白板背景图结构

Type:
  • object

BoardInfo

Properties:
Name Type Description
boardId string

白板ID

backgroundColor string

白板背景色

backgroundUrl string

白板背景图URL

白板信息数据结构

Type:
  • object

Element

Properties:
Name Type Description
boardId string

白板id

elementId string

元素id

type number

元素类型

url string

元素的url

show boolean

元素的显示和隐藏状态

白板元素数据结构

Type:
  • object

ElementOperationAuthority

Properties:
Name Type Attributes Default Description
disableRotate boolean <optional>
false

是否禁用旋转 (文本元素默认为true,不可更改)

disableMove boolean <optional>
false

是否禁用移动

disableProportionScale boolean <optional>
false

是否禁用等比例缩放

disableArbitraryScale boolean <optional>
false

是否禁用任意缩放 (文本元素默认为true,不可更改)

disableUseEmoji boolean <optional>
false

是否禁用使用emoji表情 (文本元素默认为true,不可更改)

白板元素操作权限

Type:
  • object

FileInfo

Properties:
Name Type Description
boardInfoList Array.<BoardInfo>

白板信息

currentPageIndex number

当前页码

currentPageStep number

当前动画步数

downloadURL string

文件URL

fid string

文件ID

pageCount number

总页数

platform string

平台

progress number

当前进度

ratio string

分辨率

scale number

缩放比

status number

当前状态

timestamp number

时间戳

title string

文件名

uid string

用户名

fileType number

文件类型

invisiblePageIndexList Array.<number>

隐藏的ppt页码

pptMediaInfo object

当前页PPT媒体信息

Properties
Name Type Description
videoIDList number

当前页PPT视频ID列表

audioIDList number

当前页PPT音频ID列表

文件信息数据结构

Type:
  • object

LineStyle

Properties:
Name Type Description
lineType number

直线类型

startArrowType number

开始箭头类型

endArrowType number

结束箭头类型

直线样式数据结构

Type:
  • object

TEduBoardElement

Properties:
Name Type Description
elementId string

元素ID

type number

元素类型

boardId string

元素所属白板

userId string

元素创建者

show boolean

元素是否显示

select boolean

元素是否被选中

boundingbox object

元素旋转后包围盒

Properties
Name Type Description
left number

旋转后的元素包围盒距离左边距离

top number

旋转后的元素包围盒距离顶部距离

width number

旋转后的元素包围盒宽度

height number

旋转后的元素包围盒高度

rectBox object

元素原始包围盒(不旋转)

Properties
Name Type Description
left number

包围盒距离左边距离

top number

包围盒距离顶部距离

width number

包围盒宽度

height number

包围盒高度

rotate number

包围盒旋转度

style object

元素样式

Properties
Name Type Description
borderWidth number

笔刷线宽

borderColor string

笔刷颜色

fill boolean

是否填充

fillColor string

填充色,目前不支持单独设置,笔刷颜色

borderType number

线类型,支持虚实线 }

startArrowType number

开始箭头类型, 只有直线支持

endArrowType number

结束箭头类型, 只有直线支持

locked boolean

是否锁定

白板元素

Type:
  • object