react-native-wagmi-charts
Version:
A sweet candlestick chart for React Native
18 lines (16 loc) • 436 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getPrice = getPrice;
var _reactNativeReanimated = require("react-native-reanimated");
function getPrice({
y,
domain,
maxHeight
}) {
'worklet';
if (y === -1) return -1;
return (0, _reactNativeReanimated.interpolate)(y, [0, maxHeight], domain.reverse(), _reactNativeReanimated.Extrapolation.CLAMP);
}
//# sourceMappingURL=getPrice.js.map