UNPKG

@sports-alliance/sports-lib

Version:

A Library to for importing / exporting and processing GPX, TCX, FIT and JSON files from services such as Strava, Movescount, Garmin, Polar etc

12 lines (11 loc) 353 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataPercent = void 0; const data_number_1 = require("./data.number"); class DataPercent extends data_number_1.DataNumber { getDisplayValue() { return Math.round(this.getValue() * 10) / 10; } } exports.DataPercent = DataPercent; DataPercent.unit = '%';