Annotation

Glodon.Bimface.Plugins.Annotation. Annotation

批注

Constructor

new Annotation(options)

Parameters:
Name Type Description
options Glodon.Bimface.Plugins.Annotation.AnnotationConfig

配置参数

Methods

begin()

开始绘制批注

createSnapshot(backgroundImage, callback)

截屏

Parameters:
Name Type Description
backgroundImage Imag

背景图片

callback function

截屏结束回调函数

destroy()

销毁批注

end()

结束批注

load(list)

加载批注

Parameters:
Name Type Description
list Array

批注的列表

save() → {Array}

保存批注

Returns:
Type Description
Array

返回批注的列表

setStyle(style)

设置批注样式

Parameters:
Name Type Description
style String

样式

setType(type)

设置批注类型

Parameters:
Name Type Description
type String

类型。包括: arrow, rectangle, circle, cross, cloud, text