igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
40 lines (39 loc) • 1.96 kB
JavaScript
/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { __extends } from "tslib";
import { DataLegendSummaryCalculationBase } from "./DataLegendSummaryCalculationBase";
import { IDataLegendSummaryCalculation_$type } from "./IDataLegendSummaryCalculation";
import { DataLegendSummaryResult } from "./DataLegendSummaryResult";
import { MathUtil } from "igniteui-react-core";
import { markType } from "igniteui-react-core";
/**
* @hidden
*/
var DataLegendSummaryCalculationMin = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(DataLegendSummaryCalculationMin, _super);
function DataLegendSummaryCalculationMin() {
return _super !== null && _super.apply(this, arguments) || this;
}
Object.defineProperty(DataLegendSummaryCalculationMin.prototype, "title", {
get: function () {
return "Min";
},
enumerable: false,
configurable: true
});
DataLegendSummaryCalculationMin.prototype.calculate = function (a, b) {
var c = this.a(a);
if (c.length == 0) {
return DataLegendSummaryResult.b;
}
var d = MathUtil.m(c);
return new DataLegendSummaryResult(1, d, a, b);
};
DataLegendSummaryCalculationMin.$t = markType(DataLegendSummaryCalculationMin, 'DataLegendSummaryCalculationMin', DataLegendSummaryCalculationBase.$, [IDataLegendSummaryCalculation_$type]);
return DataLegendSummaryCalculationMin;
}(DataLegendSummaryCalculationBase));
export { DataLegendSummaryCalculationMin };