src/scripts/TranscriptsTrack.js
/*
     * Redraw the track because the options
     * changed
     */
Redraw the track because the options
changed
Redraw the track because the options changed
rerender(options, force) {
      const strOptions = JSON.stringify(options);
      if (!force && strOptions === this.prevOptions) return;
      this.options = options;
      this.initOptions();
      this.prevOptions = strOptions;
      renderToggleBtn(this);
      this.updateTranscriptInfo();
      if (this.trackHeightAdjustment && this.adjustTrackHeight()) return;
      this.visibleAndFetchedTiles().forEach((tile) => {
        this.renderTile(tile);
      });
    }
rerender ( options , force ) { const strOptions = JSON . stringify ( options ) ; if ( ! force && strOptions === this . prevOptions ) return ; this . options = options ; this . initOptions ( ) ; this . prevOptions = strOptions ; renderToggleBtn ( this ) ; this . updateTranscriptInfo ( ) ; if ( this . trackHeightAdjustment && this . adjustTrackHeight ( ) ) return ; this . visibleAndFetchedTiles ( ) . forEach ( ( tile ) => { this . renderTile ( tile ) ; } ) ; }
Redraw the track because the options
 changed
Redraw the track because the options changed
// Adjusting the track height leads to a full rerender. // No need to rerender again