UNPKG

igniteui-react-charts

Version:

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

298 lines (297 loc) 12 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 { 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 !== null && _super.apply(this, arguments) || this; _this.aci = null; _this.ace = null; _this.ack = null; _this.acg = 0; return _this; } Object.defineProperty(HorizontalAnchoredCategorySeries.prototype, "acj", { get: function () { var _this = this; if (this.aci == null) { this.aci = DVContainer.instance.createInstance(IHorizontalAnchoredCategorySeriesInteractionManager_$type, function () { return _this.ds.n; }); } return this.aci; }, enumerable: false, configurable: true }); HorizontalAnchoredCategorySeries.prototype.o2 = function () { _super.prototype.o2.call(this); this.xAxis = null; this.yAxis = null; }; HorizontalAnchoredCategorySeries.prototype.cl = function () { return 1; }; HorizontalAnchoredCategorySeries.prototype.cm = function () { if (this.yAxis != null && this.yAxis.ch) { return 4; } return 3; }; HorizontalAnchoredCategorySeries.prototype.b3 = function () { if (this.b4 == 0) { return 1; } else { return _super.prototype.b3.call(this); } }; HorizontalAnchoredCategorySeries.prototype.yu = function () { return this.ace; }; HorizontalAnchoredCategorySeries.prototype.zb = function () { return this.ack; }; HorizontalAnchoredCategorySeries.prototype.wr = function (a) { if (this.yw == null || this.yw.p.count == 0 || !this.hasMarkers || !this.xi()) { return Rect.empty; } return this.acj.d$d(this, this.yw.p, a, runOn(this, this.acw)); }; HorizontalAnchoredCategorySeries.prototype.acw = function (a) { return this.aaw.di(a); }; HorizontalAnchoredCategorySeries.prototype.aco = function (a, b, c) { return this.acj.d$c(this, this.zb(), a, b, c); }; HorizontalAnchoredCategorySeries.prototype.aj = function (a) { return this.acj.d$a(this, this.yw.h, this.zx(this.cw), this.zy(this.cw), a); }; HorizontalAnchoredCategorySeries.prototype.al = function (a) { return this.acj.d$b(this, this.yw.h, this.zx(this.cw), this.zy(this.cw), a); }; HorizontalAnchoredCategorySeries.prototype.gw = function (a, b) { if (this.gv(a, b)) { return true; } if (this.xj(a, b)) { return true; } return false; }; HorizontalAnchoredCategorySeries.prototype.getOffsetValue = function () { return this.y1.r(this.yu(), this.cw.b2, this.cw.b1, this.getEffectiveViewport1(this.cw)); }; HorizontalAnchoredCategorySeries.prototype.getCategoryWidth = function () { var a = this.getEffectiveViewport1(this.cw); return this.yu().getCategorySize(this.cw.b2, this.cw.b1, a); }; HorizontalAnchoredCategorySeries.prototype.i5 = function (a, b, c) { if (this.dc == null) { return NaN; } var d = this.getEffectiveViewport1(this.cw); var e = this.yu(); if (e == null) { return NaN; } var f = new ScalerParams(0, this.dc.v5, this.cw.b1, e.ch, d); var g = this.y1.r(e, this.dc.v5, this.cw.b1, d); return this.i7(this.valueColumn, a, e, f, g, runOn(this, this.zv), b, c); }; HorizontalAnchoredCategorySeries.prototype.ka = function (a, b) { return this.kb(a, b, this.yu(), runOn(this, this.zv), this.valueColumn); }; HorizontalAnchoredCategorySeries.prototype.j8 = function (a, b) { return this.j9(a, b, this.yu(), runOn(this, this.zv), this.valueColumn); }; HorizontalAnchoredCategorySeries.prototype.ip = function (a, b, c, d, e) { if (this.valueColumn == null) { return Number.POSITIVE_INFINITY; } return this.iq(a, b, this.yu(), d, e, this.valueColumn.count, runOn(this, this.zv)); }; HorizontalAnchoredCategorySeries.prototype.we = function (a, b, c) { if (this.yu() == null || this.zb() == null) { return { $type: Point_$type, x: NaN, y: NaN }; } return this.wg(a, b, c, this.y1.r(this.yu(), this.cw.b2, this.cw.b1, this.getEffectiveViewport1(this.cw)), this.zb(), this.yu(), null, null, null); }; HorizontalAnchoredCategorySeries.prototype.fetchXAxis = function () { return this.ace; }; HorizontalAnchoredCategorySeries.prototype.fetchYAxis = function () { return this.ack; }; HorizontalAnchoredCategorySeries.prototype.abs = function (a) { this.xAxis = typeCast(CategoryAxisBase.$, a); }; HorizontalAnchoredCategorySeries.prototype.abt = function (a) { this.yAxis = typeCast(NumericYAxis.$, a); }; HorizontalAnchoredCategorySeries.prototype.zr = function () { return this.ack != null && this.ack.c1(); }; HorizontalAnchoredCategorySeries.prototype.acs = function (a) { this.ace = a; }; HorizontalAnchoredCategorySeries.prototype.act = function (a) { this.ack = a; }; HorizontalAnchoredCategorySeries.prototype.yo = function (a, b) { return this.aat(a, b, this.ace); }; HorizontalAnchoredCategorySeries.prototype.ra = function (a, b, c, d) { switch (b) { case HorizontalAnchoredCategorySeries.$$p[0]: this.acs(this.xAxis); if (this.aaw.dc) { this.aaw.db = CategoryTrendLineManagerFactory.a(this.aaw.db, this.ace, this.sx, this, this.ds); } break; case "TrendLineType": var e = EnumUtil.getEnumValue(TrendLineType_$type, d); if (e != 0) { this.aaw.db = CategoryTrendLineManagerFactory.a(this.aaw.db, this.ace, this.sx, this, this.ds); } break; } _super.prototype.ra.call(this, a, b, c, d); switch (b) { case HorizontalAnchoredCategorySeries.$$p[0]: if (c != d) { this.pc(typeCast(Axis.$, c)); this.ri(typeCast(Axis.$, d)); this.acs(this.xAxis); this.y5.c0.g(this.id); this.rs(false); this.ql(); } break; case HorizontalAnchoredCategorySeries.$$p[1]: if (c != d) { this.pc(typeCast(Axis.$, c)); this.ri(typeCast(Axis.$, d)); this.act(this.yAxis); if (this.dc != null) { this.dc.n3(); } this.y5.c0.g(this.id); this.zr(); this.rs(false); this.ql(); } break; case "CategoryMode": if (this.xAxis != null) { this.xAxis.ma(true); } break; } }; HorizontalAnchoredCategorySeries.prototype.pb = function (a, b, c, d) { _super.prototype.pb.call(this, a, b, c, d); if (this.ace != null && typeCast(ISortingAxis_$type, this.ace) !== null) { this.ace.i$i(); } switch (a) { case 4: if (this.ace != null) { this.ace.c1(); } if (this.ack != null && !this.ack.c1()) { this.rs(true); } break; case 1: if (this.ace != null) { this.ace.c1(); } if (this.ack != null && !this.ack.c1()) { this.rs(true); } break; case 0: if (this.ace != null) { this.ace.c1(); } if (this.ack != null && !this.ack.c1()) { this.rs(true); } break; case 2: if (this.abe != null && this.aaw.c0.d > 0 && this.ack != null && !this.ack.c1()) { this.rs(true); } break; case 3: if (d == this.abe) { if (this.ace != null) { this.ace.c1(); } if (this.ack != null && !this.ack.c1()) { this.rs(true); } } break; } }; HorizontalAnchoredCategorySeries.prototype.acm = function (a) { if (typeCast(CategoryXAxis.$, a) !== null || a.ce) { return true; } return false; }; HorizontalAnchoredCategorySeries.prototype.acn = function (a) { if (typeCast(NumericYAxis.$, a) !== null) { return true; } return false; }; Object.defineProperty(HorizontalAnchoredCategorySeries.prototype, "ach", { get: function () { return this.acg; }, set: function (a) { var b = this.ach; if (a != b) { this.acg = a; this.raisePropertyChanged("CategoryMode", enumGetBox(CategoryMode_$type, b), enumGetBox(CategoryMode_$type, this.ach)); } }, enumerable: false, configurable: true }); Object.defineProperty(HorizontalAnchoredCategorySeries.prototype, "useHighMarkerFidelity", { get: function () { return this.zs; }, enumerable: false, configurable: true }); HorizontalAnchoredCategorySeries.$t = markType(HorizontalAnchoredCategorySeries, 'HorizontalAnchoredCategorySeries', AnchoredCategorySeries.$); HorizontalAnchoredCategorySeries.$$p = markDep(DependencyProperty, PropertyMetadata, HorizontalAnchoredCategorySeries, 'raisePropertyChanged', ['XAxis::acu', [CategoryAxisBase.$, null], 'YAxis::acv', [NumericYAxis.$, null]]); return HorizontalAnchoredCategorySeries; }(AnchoredCategorySeries)); export { HorizontalAnchoredCategorySeries };