src/scripts/TranscriptsTrack.js
/** Create a preventing this track from drawing outside of its
   * visible area
   */
Create a preventing this track from drawing outside of its
visible area
Create a preventing this track from drawing outside of its visible area
function renderMask(track, tile) {
    const { tileX, tileWidth } = trackUtils.getTilePosAndDimensions(
      track.tilesetInfo,
      tile.tileId
    );
    tile.rectMaskGraphics.clear();
    const randomColor = Math.floor(Math.random() * 16 ** 6);
    tile.rectMaskGraphics.beginFill(randomColor, 0.3);
    const x = track._xScale(tileX);
    const y = 0;
    const width = track._xScale(tileX + tileWidth) - track._xScale(tileX);
    const height = track.dimensions[1];
    tile.rectMaskGraphics.drawRect(x, y, width, height);
  }
function renderMask ( track , tile ) { const { tileX , tileWidth } = trackUtils . getTilePosAndDimensions ( track . tilesetInfo , tile . tileId ) ; tile . rectMaskGraphics . clear ( ) ; const randomColor = Math . floor ( Math . random ( ) * 16 ** 6 ) ; tile . rectMaskGraphics . beginFill ( randomColor , 0.3 ) ; const x = track . _xScale ( tileX ) ; const y = 0 ; const width = track . _xScale ( tileX + tileWidth ) - track . _xScale ( tileX ) ; const height = track . dimensions [ 1 ] ; tile . rectMaskGraphics . drawRect ( x , y , width , height ) ; }
Create a preventing this track from drawing outside of its
 visible area
Create a preventing this track from drawing outside of its visible area