So, I need to add some subtitles to my waveform shown as in the screenshot attached below. In the following screenshot, I am using wfplayer version 1.1.4. I recently updated the wfplayer version to 2.1.3. To calculate the subtitle position according to the grid, I was using two values: this.wf.drawer.gridGap and this.wf.options.pixelRatio. Can you please tell me where I can find these values? Have you changed the path to these values or removed them? If yes, then in wfplayer version 2.1.3, how do you calculate subtitle position?
So, I need to add some subtitles to my waveform shown as in the screenshot attached below. In the following screenshot, I am using wfplayer version 1.1.4. I recently updated the wfplayer version to 2.1.3. To calculate the subtitle position according to the grid, I was using two values: this.wf.drawer.gridGap and this.wf.options.pixelRatio. Can you please tell me where I can find these values? Have you changed the path to these values or removed them? If yes, then in wfplayer version 2.1.3, how do you calculate subtitle position?