import { Scales , PointComponentProps , PieSeries , PathComponentProps , GetDelayFn , } from '../../types' ; internal export const easeOutCubic = ( t ) => ( t - 1 ) * ( t - 1 ) * ( t - 1 ) + 1 ; internal export const getDelay = ( index , isStart ) => isStart ? index * 30 : 0 ; internal export const getStartVal = ( scales ) => { return scales . valScale . copy ( ) . clamp ! ( true ) ( 0 ) ; } ; internal export const getPathStart = ( scales , { coordinates } ) => { const start = getStartVal ( scales ) ; return { coordinates : coordinates . map ( coord => ( { arg : coord . arg , val : start , startVal : start } ) ) } ; } ; internal export const getPointStart = ( scales , { arg } ) => { const start = getStartVal ( scales ) ; return { arg , val : start , startVal : start } ; } ; internal export const getPieStart = ( scales , { startAngle , endAngle } ) => ( { innerRadius : 0 , outerRadius : 0 , startAngle , endAngle } ) ;