Class: FlashPlugin

FlashPlugin(option)

构件闪烁动画插件

Constructor

new FlashPlugin(option)

构造函数
Parameters:
Name Type Description
option object 参数
time:1000,//闪烁间隔时间,毫秒单位,默认1000毫秒
color:'#ff0000',//闪烁颜色,默认红色
opacity:0.5,//闪烁颜色透明度,默认0.5
depthTest:false//深度测试,true表示闪烁构件会被其他构件正常遮挡,false表示关闭深度测试。默认false

Methods

appendProducts(appendProducts)

追加需要处理的构件
Parameters:
Name Type Description
appendProducts object 参数:[{modelId:1,productIds:[2001,1223]}]

pause()

暂停闪烁,注意可以通过start()再次启动,如果确定不再恢复闪烁,需调用stop()

removeProducts(removeProducts)

移除不需要处理的构件
Parameters:
Name Type Description
removeProducts object 参数:[{modelId:1,productIds:[2001,1223]}]

start()

启动闪烁

stop()

停止闪烁,并清除当前数据