UNPKG

@figliolia/rn-donut-chart

Version:
17 lines (16 loc) 469 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Interpolation = void 0; class Interpolation { constructor(...range) { this.outputRange = range; this.inputRange = Array.from(range, (_, i) => i); } add(value) { return new Interpolation(...this.outputRange, value); } get toValue() { return this.inputRange[this.inputRange.length - 1]; } } exports.Interpolation = Interpolation;