UNPKG

igniteui-react-charts

Version:

Ignite UI React charting components for building rich data visualizations using TypeScript APIs.

77 lines (76 loc) 3.29 kB
/* 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 { DoubleTrendLineManagerBase } from "./DoubleTrendLineManagerBase"; import { IPreparesCategoryTrendline_$type } from "./IPreparesCategoryTrendline"; import { typeCast, markType } from "igniteui-react-core"; import { TrendResolutionParams } from "./TrendResolutionParams"; import { ScalerParams } from "./ScalerParams"; import { Series } from "./Series"; import { SortedReadOnlyDoubleCollection } from "./SortedReadOnlyDoubleCollection"; /** * @hidden */ var CategoryTrendLineManagerBase = /** @class */ /*@__PURE__*/ (function (_super) { __extends(CategoryTrendLineManagerBase, _super); function CategoryTrendLineManagerBase() { return _super !== null && _super.apply(this, arguments) || this; } CategoryTrendLineManagerBase.prototype.get_g$a = function () { return 0; }; Object.defineProperty(CategoryTrendLineManagerBase.prototype, "g$a", { get: function () { return this.get_g$a(); }, enumerable: false, configurable: true }); CategoryTrendLineManagerBase.prototype.prepareLine = function (a, b, c, d) { this.prepareLine1(a, b.a.s, b, c, d); }; CategoryTrendLineManagerBase.prototype.prepareLine1 = function (a, b, c, d, e) { var f = c.n; var g = c.m; var h = new ScalerParams(0, c.p, c.o, c.b.j$b, f); var i = new ScalerParams(0, c.p, c.o, c.c.j$b, f); var j = c.b.j$a(); var k = j[0]; var l = j[1]; if (typeCast(Series.$, a) !== null) { i.b = a.i0(); } var m = d.f; if (c.d != null && c.d.i$b != null) { m = new SortedReadOnlyDoubleCollection(m, c.d.i$b); } var n = ((function () { var $ret = new TrendResolutionParams(); $ret.e = c.j; $ret.f = c.k; $ret.g = c.l; $ret.a = e; $ret.d = c.i; $ret.i = c.o; $ret.h = c.n; $ret.c = k; $ret.b = l; return $ret; })()); if (this.g$b != 0) { if (a.isVertical) { this.prepareLineCore(b, this.g$b, m, this.g$f, function (o) { return c.c.j$c(o, i); }, function (o) { return c.b.j$c(o, h); }, n); } else { this.prepareLineCore(b, this.g$b, m, this.g$f, function (o) { return c.b.j$c(o, h); }, function (o) { return c.c.j$c(o, i); }, n); } } }; CategoryTrendLineManagerBase.$t = markType(CategoryTrendLineManagerBase, 'CategoryTrendLineManagerBase', DoubleTrendLineManagerBase.$, [IPreparesCategoryTrendline_$type]); return CategoryTrendLineManagerBase; }(DoubleTrendLineManagerBase)); export { CategoryTrendLineManagerBase };