Class: Flame

Flame


new Flame(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 "#ff0000" 起始颜色
endColor string "#fff000" 结束颜色
startScale number 0.5 初始比例
endScale number 2 结束比例
minimumSpeed number 1 最小初速度
maximumSpeed number 30 最大初速度
minimumParticleLife number 1 最小存在时间(秒)
maximumParticleLife number 2 最大存在时间(秒)
emissionRate number 60 发射速率(个/每秒)
particleSize number 10 粒子尺大小
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关闭