1. makePostils
作用: 获取当前批注信息。
1.1. 参数说明:
形式参数: 无
名称 | 说明 | 类型 | 是否必填 | 示例 |
---|---|---|---|---|
无名称 | NULL | NULL | NULL | NULL |
返回值说明 | 类型 | 示例 |
---|---|---|
Object | {Object} | 格式如下 |
var obj={
cameraState: cameraState,
componentState: componentState, //{string} 对象数组 , 构件信息,
highlightComponentsKeys: highlightComponentsKeys, //{Array}数组,高亮的构件key集 合
highlightModelsKeys: highlightModelsKeys, //{Array}数组,高亮的模型key集合
imageURL: imgURL, //{base64} 当前canvas的截图
width: w, //{int} 图片宽度,当前canvas图片的宽度
height: h, //{int} 图片高度,当前canvas图片的高度
num: num, //{int} 当前批注列表的序号
code: new Date().getTime().toString(),
name: "批注" + num, //批注名称
}
1.2. 调用方式:
/**
* makePostils 获取当前批注信息
*/
tool.makePostils();