MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / stop

Method stop

src/common/control/TimeControlBase.js:186–195  ·  view source on GitHub ↗

* @function TimeControlBase.prototype.stop * @description 停止,停止后返回起始状态。

()

Source from the content-addressed store, hash-verified

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 /**

Callers 15

AnimationSpec.jsFile · 0.45
successCallbackFunction · 0.45
DataFlowSpec.jsFile · 0.45
jquery.jsFile · 0.45
destroyMethod · 0.45

Calls 1

triggerEventMethod · 0.80

Tested by

no test coverage detected