From e7a20cc42c787e44cfd546dde5d902e9569b7f9d Mon Sep 17 00:00:00 2001 From: fightrate-bot Date: Tue, 16 Jun 2026 01:52:31 -0300 Subject: [PATCH] feat(chart): TrainingChart ECG furos laterais + LiveDot readout --- src/components/TrainingChart.tsx | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/components/TrainingChart.tsx b/src/components/TrainingChart.tsx index 6ce20b9..f79bfb2 100644 --- a/src/components/TrainingChart.tsx +++ b/src/components/TrainingChart.tsx @@ -14,8 +14,9 @@ import { } from 'react-native'; import { Gesture, GestureDetector } from 'react-native-gesture-handler'; import { runOnJS } from 'react-native-reanimated'; -import Svg, { Circle, Line, Path, Text as SvgText } from 'react-native-svg'; +import Svg, { Circle, Line, Path, Rect, Text as SvgText } from 'react-native-svg'; import { Minus, Plus, RotateCcw } from 'lucide-react-native'; +import { LiveDot } from './LiveDot'; import { type HeartRateSample } from '../training/trainingTypes'; import { applyPan, @@ -547,6 +548,19 @@ export function TrainingChart({ /> ) : null} + {[0, 1, 2, 3, 4, 5].map((index) => { + const x = PAD_X + 12 + index * 48; + return ( + + ); + })} @@ -569,6 +583,11 @@ export function TrainingChart({ + {viewport.liveTail ? ( + + ) : ( + + )} {pinPoint ? 'AMOSTRA PINADA'