import { ZoomController } from '@controllers' ; const getPlayingPixel = ( time ) : number => { const playBarElement = document . querySelector ( 'audi-playbar' ) ; if ( ! playBarElement ) return 0 ; const second = time ; const pixelPerSecond = ZoomController . getCurrentPixelPerSecond ( ) ; const playingPixel = pixelPerSecond * second ; return playingPixel ; } ; const getDifferenceWidth = ( startX , currentX ) : number => { const differenceWidth = currentX - startX ; return differenceWidth ; } ; export { getPlayingPixel , getDifferenceWidth } ;