Files
cmr-mini/miniprogram/game/telemetry/telemetryPresentation.ts

42 lines
1.2 KiB
TypeScript

export interface TelemetryPresentation {
timerText: string
elapsedTimerText: string
timerMode: 'elapsed' | 'countdown'
mileageText: string
distanceToTargetValueText: string
distanceToTargetUnitText: string
speedText: string
heartRateTone: 'blue' | 'purple' | 'green' | 'yellow' | 'orange' | 'red'
heartRateZoneNameText: string
heartRateZoneRangeText: string
heartRateValueText: string
heartRateUnitText: string
caloriesValueText: string
caloriesUnitText: string
averageSpeedValueText: string
averageSpeedUnitText: string
accuracyValueText: string
accuracyUnitText: string
}
export const EMPTY_TELEMETRY_PRESENTATION: TelemetryPresentation = {
timerText: '00:00:00',
elapsedTimerText: '00:00:00',
timerMode: 'elapsed',
mileageText: '0m',
distanceToTargetValueText: '--',
distanceToTargetUnitText: '',
speedText: '0',
heartRateTone: 'blue',
heartRateZoneNameText: '激活放松',
heartRateZoneRangeText: '<=39%',
heartRateValueText: '--',
heartRateUnitText: '',
caloriesValueText: '0',
caloriesUnitText: 'kcal',
averageSpeedValueText: '0',
averageSpeedUnitText: 'km/h',
accuracyValueText: '--',
accuracyUnitText: '',
}