UNPKG

igniteui-react-charts

Version:

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

302 lines (301 loc) 12.3 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, __read, __spreadArray } from "tslib"; import { AnchoredCategorySeries } from "./AnchoredCategorySeries"; import { IHorizontalAnchoredCategorySeriesInteractionManager_$type } from "./IHorizontalAnchoredCategorySeriesInteractionManager"; import { DVContainer } from "igniteui-react-core"; import { runOn, Point_$type, typeCast, EnumUtil, enumGetBox, markType, markDep } from "igniteui-react-core"; import { CategoryAxisBase } from "./CategoryAxisBase"; import { DependencyProperty } from "igniteui-react-core"; import { NumericYAxis } from "./NumericYAxis"; import { CategoryMode_$type } from "./CategoryMode"; import { Axis } from "./Axis"; import { Rect } from "igniteui-react-core"; import { ScalerParams } from "./ScalerParams"; import { TrendLineType_$type } from "igniteui-react-core"; import { CategoryTrendLineManagerFactory } from "./CategoryTrendLineManagerFactory"; import { ISortingAxis_$type } from "./ISortingAxis"; import { CategoryXAxis } from "./CategoryXAxis"; import { PropertyMetadata } from "igniteui-react-core"; /** * @hidden */ var HorizontalAnchoredCategorySeries = /** @class */ /*@__PURE__*/ (function (_super) { __extends(HorizontalAnchoredCategorySeries, _super); function HorizontalAnchoredCategorySeries() { var _this = _super.apply(this, __spreadArray([], __read(arguments), false)) || this; _this.ac5 = null; _this.ac1 = null; _this.ac7 = null; _this.ac3 = 0; return _this; } Object.defineProperty(HorizontalAnchoredCategorySeries.prototype, "ac6", { get: function () { var _this = this; if (this.ac5 == null) { this.ac5 = DVContainer.instance.createInstance(IHorizontalAnchoredCategorySeriesInteractionManager_$type, function () { return _this.ds.n; }); } return this.ac5; }, enumerable: false, configurable: true }); HorizontalAnchoredCategorySeries.prototype.pg = function () { _super.prototype.pg.call(this); this.xAxis = null; this.yAxis = null; }; HorizontalAnchoredCategorySeries.prototype.cl = function () { return 1; }; HorizontalAnchoredCategorySeries.prototype.cm = function () { if (this.yAxis != null && this.yAxis.dn) { return 4; } return 3; }; HorizontalAnchoredCategorySeries.prototype.b3 = function () { if (this.b4 == 0) { return 1; } else { return _super.prototype.b3.call(this); } }; HorizontalAnchoredCategorySeries.prototype.ze = function () { return this.ac1; }; HorizontalAnchoredCategorySeries.prototype.zv = function () { return this.ac7; }; HorizontalAnchoredCategorySeries.prototype.xb = function (a) { if (this.zg == null || this.zg.s.count == 0 || !this.hasMarkers || !this.x2()) { return Rect.empty; } return this.ac6.d$d(this, this.zg.s, a, runOn(this, this.adj)); }; HorizontalAnchoredCategorySeries.prototype.adj = function (a) { return this.abj.ds(a); }; HorizontalAnchoredCategorySeries.prototype.adb = function (a, b, c) { return this.ac6.d$c(this, this.zv(), a, b, c); }; HorizontalAnchoredCategorySeries.prototype.aj = function (a) { return this.ac6.d$a(this, this.zg.k, this.aah(this.cw), this.aai(this.cw), a); }; HorizontalAnchoredCategorySeries.prototype.al = function (a) { return this.ac6.d$b(this, this.zg.k, this.aah(this.cw), this.aai(this.cw), a); }; HorizontalAnchoredCategorySeries.prototype.g3 = function (a, b) { if (this.g2(a, b)) { return true; } if (this.x3(a, b)) { return true; } return false; }; HorizontalAnchoredCategorySeries.prototype.getOffsetValue = function () { return this.zl.r(this.ze(), this.cw.ca, this.cw.b9, this.getEffectiveViewport1(this.cw)); }; HorizontalAnchoredCategorySeries.prototype.getCategoryWidth = function () { var a = this.getEffectiveViewport1(this.cw); return this.ze().getCategorySize(this.cw.ca, this.cw.b9, a); }; HorizontalAnchoredCategorySeries.prototype.je = function (a, b, c) { if (this.dc == null) { return NaN; } var d = this.getEffectiveViewport1(this.cw); var e = this.ze(); if (e == null) { return NaN; } var f = new ScalerParams(0, this.dc.ys, this.cw.b9, e.dn, d); var g = this.zl.r(e, this.dc.ys, this.cw.b9, d); return this.jg(this.valueColumn, a, e, f, g, runOn(this, this.aaf), b, c); }; HorizontalAnchoredCategorySeries.prototype.kk = function (a, b) { return this.kl(a, b, this.ze(), runOn(this, this.aaf), this.valueColumn); }; HorizontalAnchoredCategorySeries.prototype.ki = function (a, b) { return this.kj(a, b, this.ze(), runOn(this, this.aaf), this.valueColumn); }; HorizontalAnchoredCategorySeries.prototype.ix = function (a, b, c, d, e) { if (this.valueColumn == null) { return Number.POSITIVE_INFINITY; } return this.iy(a, b, this.ze(), d, e, this.valueColumn.count, runOn(this, this.aaf)); }; HorizontalAnchoredCategorySeries.prototype.wx = function (a, b, c) { if (this.ze() == null || this.zv() == null) { return { $type: Point_$type, x: NaN, y: NaN }; } return this.wz(a, b, c, this.zl.r(this.ze(), this.cw.ca, this.cw.b9, this.getEffectiveViewport1(this.cw)), this.zv(), this.ze(), null, null, null); }; HorizontalAnchoredCategorySeries.prototype.fetchXAxis = function () { return this.ac1; }; HorizontalAnchoredCategorySeries.prototype.fetchYAxis = function () { return this.ac7; }; HorizontalAnchoredCategorySeries.prototype.acf = function (a) { this.xAxis = typeCast(CategoryAxisBase.$, a); }; HorizontalAnchoredCategorySeries.prototype.acg = function (a) { this.yAxis = typeCast(NumericYAxis.$, a); }; HorizontalAnchoredCategorySeries.prototype.aab = function () { return this.ac7 != null && this.ac7.ee(); }; HorizontalAnchoredCategorySeries.prototype.adf = function (a) { this.ac1 = a; }; HorizontalAnchoredCategorySeries.prototype.adg = function (a) { this.ac7 = a; }; HorizontalAnchoredCategorySeries.prototype.y8 = function (a, b) { return this.abg(a, b, this.ac1); }; HorizontalAnchoredCategorySeries.prototype.rr = function (a, b, c, d) { switch (b) { case HorizontalAnchoredCategorySeries.$$p[0]: this.adf(this.xAxis); if (this.abj.dl) { this.abj.dk = CategoryTrendLineManagerFactory.a(this.abj.dk, this.ac1, this.te, this, this.ds); this.abj.dk.g$b = this.trendLineType; this.abj.dk.g$f = this.trendLinePeriod; } break; case "TrendLineType": var e = EnumUtil.getEnumValue(TrendLineType_$type, d); if (e != 0) { this.abj.dk = CategoryTrendLineManagerFactory.a(this.abj.dk, this.ac1, this.te, this, this.ds); this.abj.dk.g$b = this.trendLineType; this.abj.dk.g$f = this.trendLinePeriod; } break; } _super.prototype.rr.call(this, a, b, c, d); switch (b) { case HorizontalAnchoredCategorySeries.$$p[0]: if (c != d) { this.pq(typeCast(Axis.$, c)); this.rz(typeCast(Axis.$, d)); this.adf(this.xAxis); this.zp.c9.g(this.il); this.r9(false); this.q1(); } break; case HorizontalAnchoredCategorySeries.$$p[1]: if (c != d) { this.pq(typeCast(Axis.$, c)); this.rz(typeCast(Axis.$, d)); this.adg(this.yAxis); if (this.dc != null) { this.dc.pr(); } this.zp.c9.g(this.il); this.aab(); this.r9(false); this.q1(); } break; case "CategoryMode": if (this.xAxis != null) { this.xAxis.q3(true); } break; } }; HorizontalAnchoredCategorySeries.prototype.pp = function (a, b, c, d) { _super.prototype.pp.call(this, a, b, c, d); if (this.ac1 != null && typeCast(ISortingAxis_$type, this.ac1) !== null) { this.ac1.i$i(); } switch (a) { case 4: if (this.ac1 != null) { this.ac1.ee(); } if (this.ac7 != null && !this.ac7.ee()) { this.r9(true); } break; case 1: if (this.ac1 != null) { this.ac1.ee(); } if (this.ac7 != null && !this.ac7.ee()) { this.r9(true); } break; case 0: if (this.ac1 != null) { this.ac1.ee(); } if (this.ac7 != null && !this.ac7.ee()) { this.r9(true); } break; case 2: if (this.ab1 != null && this.abj.c9.d > 0 && this.ac7 != null && !this.ac7.ee()) { this.r9(true); } break; case 3: if (d == this.ab1) { if (this.ac1 != null) { this.ac1.ee(); } if (this.ac7 != null && !this.ac7.ee()) { this.r9(true); } } break; } }; HorizontalAnchoredCategorySeries.prototype.ac9 = function (a) { if (typeCast(CategoryXAxis.$, a) !== null || a.dj) { return true; } return false; }; HorizontalAnchoredCategorySeries.prototype.ada = function (a) { if (typeCast(NumericYAxis.$, a) !== null) { return true; } return false; }; Object.defineProperty(HorizontalAnchoredCategorySeries.prototype, "ac4", { get: function () { return this.ac3; }, set: function (a) { var b = this.ac4; if (a != b) { this.ac3 = a; this.raisePropertyChanged("CategoryMode", enumGetBox(CategoryMode_$type, b), enumGetBox(CategoryMode_$type, this.ac4)); } }, enumerable: false, configurable: true }); Object.defineProperty(HorizontalAnchoredCategorySeries.prototype, "useHighMarkerFidelity", { get: function () { return this.aac; }, enumerable: false, configurable: true }); HorizontalAnchoredCategorySeries.$t = markType(HorizontalAnchoredCategorySeries, 'HorizontalAnchoredCategorySeries', AnchoredCategorySeries.$); HorizontalAnchoredCategorySeries.$$p = markDep(DependencyProperty, PropertyMetadata, HorizontalAnchoredCategorySeries, 'raisePropertyChanged', ['XAxis::adh', [CategoryAxisBase.$, null], 'YAxis::adi', [NumericYAxis.$, null]]); return HorizontalAnchoredCategorySeries; }(AnchoredCategorySeries)); export { HorizontalAnchoredCategorySeries };