添加参数注释
This commit is contained in:
@ -21,23 +21,53 @@ class CircleDiffuse extends Base {
|
||||
* @param sdk
|
||||
* @param options {object} 圆属性
|
||||
* @param options.id {string} 标注id
|
||||
* @param [options.show=true] {boolean} 显示/隐藏
|
||||
* @param options.show=true {boolean} 显示/隐藏
|
||||
* @param options.lng {number} 经度
|
||||
* @param options.lat {number} 维度
|
||||
* @param options.color=#1FA8E3 {string} 基础颜色
|
||||
* @param options.colors=[] {string} 范围颜色
|
||||
* @param options.speed=5 {number} 速度
|
||||
* @param options.count=3 {number} 波纹数量
|
||||
* @param options.circle=[{radius, color}] {object} 圆属性;radius:半径,color:颜色
|
||||
* @param _Dialog {object} 弹框事件
|
||||
* @param _Dialog.confirmCallBack {function} 弹框确认时的回调
|
||||
* @param options.circle=[]] {array} 圆属性
|
||||
* @param options.circle[].radius {number} 半径
|
||||
* @param options.circle[].color {string} 颜色
|
||||
* @param options.label {object} 标签对象
|
||||
* @param options.label.show {string} 标签显隐
|
||||
* @param options.label.position {string} 标签位置
|
||||
* @param options.label.position {object} 标签位置
|
||||
* @param options.label.position.lng {number} 经度
|
||||
* @param options.label.position.lat {number} 纬度
|
||||
* @param options.label.position.alt {number} 高度
|
||||
* @param options.label.fontSize=20 {number} 字体大小
|
||||
* @param options.label.fontFamily=0 {number} 字体项 0:黑体;1:思源黑体;2:庞门正道标题体;3:数黑体
|
||||
* @param options.label.color=#ffffff {string} 字体颜色
|
||||
* @param options.label.lineWidth=4 {number} 引线宽
|
||||
* @param options.label.lineColor=#00ffff80 {string} 引线颜色
|
||||
* @param options.label.pixelOffset=20 {number} 字体偏移(引线长度)
|
||||
* @param options.label.backgroundColor=['#00ffff80', '#00ffff80'] {array} 背景颜色
|
||||
* @param options.label.scaleByDistance {boolean} 距离缩放
|
||||
* @param options.label.near=2000 {number} 视野缩放最近距离
|
||||
* @param options.label.far=100000 {number} 视野缩放最远距离
|
||||
* @param options.attribute {object} 属性内容
|
||||
* @param {object} options.attribute.link={} 链接
|
||||
* @param options.attribute.link.content=[]] {array} 链接内容
|
||||
* @param options.attribute.link.content[].name {string} 链接名称
|
||||
* @param options.attribute.link.content[].url {string} 链接地址
|
||||
* @param options.richTextContent {string} 富文本内容
|
||||
* @param options.customView {object} 默认视角
|
||||
* @param options.customView.orientation {object} 默认视角方位
|
||||
* @param options.customView.orientation.heading {number} 航向角
|
||||
* @param options.customView.orientation.pitch {number} 俯仰角
|
||||
* @param options.customView.orientation.roll {number} 翻滚角
|
||||
* @param options.customView.relativePosition {object} 视角相对位置
|
||||
* @param options.customView.relativePosition.lng {number} 经度
|
||||
* @param options.customView.relativePosition.lat {number} 纬度
|
||||
* @param options.customView.relativePosition.alt {number} 高度
|
||||
*/
|
||||
constructor(sdk, options = {}, _Dialog = {}) {
|
||||
super(sdk, options);
|
||||
this.options.lng = options.lng
|
||||
this.options.lat = options.lat
|
||||
this.options.color = options.color || '#1FA8E3'
|
||||
this.options.colors = options.colors || []
|
||||
this.options.transparency = (options.transparency || options.transparency === 0) ? options.transparency : 1
|
||||
if (this.options.transparency > 1) {
|
||||
this.options.transparency = 1
|
||||
@ -430,15 +460,6 @@ class CircleDiffuse extends Base {
|
||||
})
|
||||
}
|
||||
|
||||
get colors() {
|
||||
return this.options.colors
|
||||
}
|
||||
|
||||
set colors(v) {
|
||||
this.options.colors = v
|
||||
CircleDiffuse.create(this)
|
||||
}
|
||||
|
||||
get labelShow() {
|
||||
return this.options.label.show
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user