UNPKG

@shopify/react-native-skia

Version:

High-performance React Native Graphics using Skia

18 lines (17 loc) 689 B
export declare enum Extrapolate { IDENTITY = "identity", CLAMP = "clamp", EXTEND = "extend" } export interface ExtrapolationConfig { extrapolateLeft?: Extrapolate | string; extrapolateRight?: Extrapolate | string; } interface RequiredExtrapolationConfig { extrapolateLeft: Extrapolate; extrapolateRight: Extrapolate; } export type ExtrapolationType = ExtrapolationConfig | Extrapolate | string | undefined; export declare function validateInterpolationOptions(type: ExtrapolationType): RequiredExtrapolationConfig; export declare function interpolate(x: number, input: readonly number[], output: readonly number[], type?: ExtrapolationType): number; export {};