UNPKG

s2maps-gpu

Version:

S2 Maps GPU - An open source, high-performance, and GPU-accelerated map engine for rendering large-scale, interactive maps.

13 lines (12 loc) 533 B
/** Input ease types names */ export type EaseType = 'lin' | 'expo' | 'quad' | 'cubic' | 'step'; /** Ease function container */ export type EaseFunction<T> = (zoom: number, start: number, end: number, startValue: T, endValue: T) => T; /** * Convert a string to a function that will return an interpolation * between two values or colors. * @param easeType - ease type * @param base - base value * @returns an easing function */ export default function getEasingFunction<T>(easeType?: EaseType, base?: number): EaseFunction<T>;