UNPKG

react-native-wagmi-charts

Version:

A sweet candlestick chart for React Native

12 lines (11 loc) 288 B
import { interpolate, Extrapolation } from 'react-native-reanimated'; export function getPrice({ y, domain, maxHeight }) { 'worklet'; if (y === -1) return -1; return interpolate(y, [0, maxHeight], domain.reverse(), Extrapolation.CLAMP); } //# sourceMappingURL=getPrice.js.map