nl_tokens: eslint - disable - next - line max - params
pl_tokens: function getDataCoordinates ( props , scale , x , y ) { const { polar , horizontal } = props ; if ( ! polar ) { return { x : horizontal ? scale . x . invert ( y ) : scale . x . invert ( x ) , y : horizontal ? scale . y . invert ( x ) : <mask> . y . invert ( y ) } ; } else { const origin = props . origin || { x : 0 , y : 0 } ; const baseX = x - origin . x ; const baseY = y - origin . y ; const radius = Math . abs ( baseX * Math . sqrt ( 1 + Math . pow ( - baseY / baseX , 2 ) ) ) ; const angle = ( - Math . atan2 ( baseY , baseX ) + Math . PI * 2 ) % ( Math . PI * 2 ) ; return { x : scale . x . invert ( angle ) , y : scale . y . invert ( radius ) } ; } }