1. load

作用: 根据传参初始加载批注列表。即先清空界面上的原有批注列表后再加载传参里的批注信息。

1.1. 参数说明:

名称 说明 类型 是否必填 示例
postilsArr 批注信息数组 Array对象数组 看调用方式举例
返回值说明 类型 示例
无返回值 NULL NULL

1.2. 调用方式:

/**
* load 根据传参初始加载批注列表
*    @method load
*    @param {array} postilsArr 为批注对象数组
*    @return {void}
*/
    var postilsArr = [{
    cameraState: cameraState,//{Object} 对象,相机状态,包含
    componentState: componentState,    //{Array} 对象数组 , 构件信息,
    highlightComponentsKeys: highlightComponentsKeys,    //{Array}数组,高亮的构件key集合
    imageURL: imgURL,    //{base64} 当前canvas的截图 
    width: w,    //{int} 图片宽度,当前canvas图片的宽度 
    height: h,    //{int} 图片高度,当前canvas图片的高度 
    num:  num,     //{int} 当前批注列表的序号
    code: new Date().getTime().toString(), 
    name: "批注" + num,    //批注名称
    },{
    cameraState: cameraState,    //{Object} 对象,相机状态,包含position
    componentState: componentState,    //{Array} 对象数组 , 构件信息,
    highlightComponentsKeys: highlightComponentsKeys,    //{Array}数组,高亮的 构件key集合
    imageURL: imgURL,    //{base64} 当前canvas的截图 
    width: w,    //{int} 图片宽度,当前canvas图片的宽度 
    height: h,    //{int} 图片高度,当前canvas图片的高度 
    num:  num,     //{int} 当前批注列表的序号
    code: new Date().getTime().toString(), 
    name: "批注" + num,    //批注名称
}];
postil.load(postilsArr);
版权所有@盈嘉互联(北京)科技有限公司 京ICP备15051988号-9 Copyright © 2021 all right reserved,powered by Gitbook该文件修订时间: 2021-12-20 09:59:48

results matching ""

    No results matching ""