* @function TimeControlBase.prototype.stop * @description 停止,停止后返回起始状态。
()
| 184 | * @description 停止,停止后返回起始状态。 |
| 185 | */ |
| 186 | stop() { |
| 187 | var me = this; |
| 188 | //停止时 时间设置为开始时间 |
| 189 | me.currentTime = me.startTime; |
| 190 | //如果正在运行,修改为初始时间即可绘制一帧 |
| 191 | if (me.running) { |
| 192 | me.running = false; |
| 193 | } |
| 194 | me.events.triggerEvent('stop', me.currentTime); |
| 195 | } |
| 196 | |
| 197 | |
| 198 | /** |
no test coverage detected