react-native-wagmi-charts 2.8.2 → 2.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-wagmi-charts",
3
- "version": "2.8.2",
3
+ "version": "2.8.4",
4
4
  "description": "A sweet candlestick chart for React Native",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -120,6 +120,12 @@ export function CandlestickChartCrosshair({
120
120
  return (
121
121
  <GestureDetector gesture={longPressGesture}>
122
122
  <Animated.View style={StyleSheet.absoluteFill}>
123
+ <Animated.View
124
+ style={[StyleSheet.absoluteFill, vertical]}
125
+ {...verticalCrosshairProps}
126
+ >
127
+ <CandlestickChartLine color={color} x={0} y={height} {...lineProps} />
128
+ </Animated.View>
123
129
  <Animated.View
124
130
  style={[StyleSheet.absoluteFill, horizontal]}
125
131
  {...horizontalCrosshairProps}
@@ -131,12 +137,6 @@ export function CandlestickChartCrosshair({
131
137
  {children}
132
138
  </CandlestickChartCrosshairTooltipContext.Provider>
133
139
  </Animated.View>
134
- <Animated.View
135
- style={[StyleSheet.absoluteFill, vertical]}
136
- {...verticalCrosshairProps}
137
- >
138
- <CandlestickChartLine color={color} x={0} y={height} {...lineProps} />
139
- </Animated.View>
140
140
  </Animated.View>
141
141
  </GestureDetector>
142
142
  );
@@ -1,4 +1,4 @@
1
- import { interpolate, Extrapolate } from 'react-native-reanimated';
1
+ import { interpolate, Extrapolation } from 'react-native-reanimated';
2
2
 
3
3
  import type { TDomain } from '../types';
4
4
 
@@ -16,6 +16,6 @@ export function getHeight({
16
16
  value,
17
17
  [0, Math.max(...domain) - Math.min(...domain)],
18
18
  [0, maxHeight],
19
- Extrapolate.CLAMP
19
+ Extrapolation.CLAMP
20
20
  );
21
21
  }
@@ -1,4 +1,4 @@
1
- import { interpolate, Extrapolate } from 'react-native-reanimated';
1
+ import { interpolate, Extrapolation } from 'react-native-reanimated';
2
2
 
3
3
  import type { TDomain } from '../types';
4
4
 
@@ -13,5 +13,5 @@ export function getPrice({
13
13
  }) {
14
14
  'worklet';
15
15
  if (y === -1) return -1;
16
- return interpolate(y, [0, maxHeight], domain.reverse(), Extrapolate.CLAMP);
16
+ return interpolate(y, [0, maxHeight], domain.reverse(), Extrapolation.CLAMP);
17
17
  }
@@ -1,4 +1,4 @@
1
- import { interpolate, Extrapolate } from 'react-native-reanimated';
1
+ import { interpolate, Extrapolation } from 'react-native-reanimated';
2
2
 
3
3
  import type { TDomain } from '../types';
4
4
 
@@ -12,5 +12,5 @@ export function getY({
12
12
  maxHeight: number;
13
13
  }) {
14
14
  'worklet';
15
- return interpolate(value, domain, [maxHeight, 0], Extrapolate.CLAMP);
15
+ return interpolate(value, domain, [maxHeight, 0], Extrapolation.CLAMP);
16
16
  }