UNPKG

react-native-wagmi-charts

Version:

A sweet candlestick chart for React Native

17 lines (15 loc) 451 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getHeight = getHeight; var _reactNativeReanimated = require("react-native-reanimated"); function getHeight({ value, domain, maxHeight }) { 'worklet'; return (0, _reactNativeReanimated.interpolate)(value, [0, Math.max(...domain) - Math.min(...domain)], [0, maxHeight], _reactNativeReanimated.Extrapolation.CLAMP); } //# sourceMappingURL=getHeight.js.map