Procházet zdrojové kódy

imporve the track controller #102

tags/2.14.0
Caven Chen před 3 roky
rodič
revize
f419500175
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3
    1
      modules/history-track/TrackController.js

+ 3
- 1
modules/history-track/TrackController.js Zobrazit soubor

* @returns {TrackController} * @returns {TrackController}
*/ */
clear() { clear() {
this._cache = {}
Object.keys(this._cache).forEach(key => {
this.removeTrack(this._cache[key])
})
this._activedTrack && (this._activedTrack.viewed = false) this._activedTrack && (this._activedTrack.viewed = false)
this._activedTrack = undefined this._activedTrack = undefined
this._viewer.off(SceneEventType.POST_RENDER, this._onPostRender, this) this._viewer.off(SceneEventType.POST_RENDER, this._onPostRender, this)

Načítá se…
Zrušit
Uložit