Class: Annotation

Annotation

new Annotation()

Annotation构造函数。
Source:

Methods

clear()

注释清除
Source:

init(annoDiv, videoAnnoDiv, videoObject, fileLocation)

初始化annotation对象
Parameters:
Name Type Description
annoDiv Object 注释div
videoAnnoDiv Object 包含video的div
videoObject Object video对象
fileLocation String 3tee js sdk包路径,如js/cn.tee3.avd-2.3.5.0.min
Source:

redo()

注释重做下一步
Source:

setArrowLength(value)

注释设置箭头宽度
Parameters:
Name Type Description
value int 箭头宽度
Source:
Example
annotation.setArrowLength(10);

setArrowType(value)

注释设置箭头类别
Parameters:
Name Type Description
value arrowTypeEnum 箭头类别,枚举型
Source:
Example
annotation.setArrowType(arrowTypeEnum.double);

setColor(value)

注释设置颜色
Parameters:
Name Type Description
value String 颜色,采用rgb和rgba格式
Source:
Example
annotation.setColor('rgba(255,0,0,1');

setDrawOrEraser(value)

注释设置注释类型,如鼠标、注释、橡皮擦
Parameters:
Name Type Description
value annoSelectTypeEnum 注释类型,枚举型
Source:
Example
annotation.setDrawOrEraser(annoSelectTypeEnum.draw);

setFillColor(value)

注释设置颜色填充类别
Parameters:
Name Type Description
value fillTypeEnum 颜色填充类别,枚举型
Source:
Example
annotation.setFillColor(fillTypeEnum.full);

setLineWidth(value)

注释设置线条宽度
Parameters:
Name Type Description
value int 线条宽度
Source:
Example
annotation.setLineWidth(1);

setShapeType(type)

注释设置几何形状,如矩形,随机线
Parameters:
Name Type Description
type canvasTypeEnum 几何形状,枚举型
Source:
Example
annotation.setShapeType(canvasTypeEnum.polyline);

start(theWidth)

注释启动
Parameters:
Name Type Description
theWidth int 当前video的宽度
Source:
Example
annotation.start(500);

undo()

注释撤销上一步
Source: