Class: Spout

Spout


new Spout(sdk, options, _Dialog)

水柱
Parameters:
Name Type Description
sdk
options object 粒子属性
Properties
Name Type Default Description
show boolean true 显示/隐藏
name string 名称
url string | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement 指定 Image、URL或Canvas 的属性
startColor string "#c1f7f2" 起始颜色
endColor string "#ffffff00" 结束颜色
startScale number 0.2 初始比例
endScale number 2 结束比例
speed number 速度
minimumParticleLife number 12 最小存在时间(秒)
maximumParticleLife number 12 最大存在时间(秒)
emissionRate number 100 发射速率(个/每秒)
particleSize number 1 粒子尺大小
heading 朝向
pitch 俯仰角度
start object 开始位置
Properties
Name Type Description
lng 经度
lat 纬度
alt 高度
end object 结束位置
Properties
Name Type Description
lng 经度
lat 纬度
alt 高度
_Dialog object 弹框事件
Properties
Name Type Description
confirmCallBack function 弹框确认时的回调

Methods


<async> edit(state)

编辑框
Parameters:
Name Type Default Description
state boolean false 状态: true打开, false关闭