UNPKG

igniteui-angular-charts

Version:

Ignite UI Angular charting components for building rich data visualizations for modern web apps.

223 lines (222 loc) 9.83 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 { RangeCategorySeries } from "./RangeCategorySeries"; import { CategoryAxisBase } from "./CategoryAxisBase"; import { DependencyProperty } from "igniteui-angular-core"; import { NumericYAxis } from "./NumericYAxis"; import { Axis } from "./Axis"; import { Point_$type, runOn, typeCast, markType, markDep } from "igniteui-angular-core"; import { List$1 } from "igniteui-angular-core"; import { RangeValueList } from "./RangeValueList"; import { ScalerParams } from "./ScalerParams"; import { CategoryXAxis } from "./CategoryXAxis"; import { DataLegendSeriesValueInfo } from "igniteui-angular-core"; import { DataLegendSeriesContext } from "igniteui-angular-core"; import { PropertyMetadata } from "igniteui-angular-core"; /** * @hidden */ export let HorizontalRangeCategorySeries = /*@__PURE__*/ (() => { class HorizontalRangeCategorySeries extends RangeCategorySeries { fetchXAxis() { return this.xAxis; } fetchYAxis() { return this.yAxis; } pe() { super.pe(); this.xAxis = null; this.yAxis = null; } aj(a) { let b = this.an(this.zc(), this.ze.k, this.aaf(this.cw), this.aag(this.cw), this.w1(a), true); if (b == null) { return null; } let c = b[0]; let d = b[1]; let e = new Array(1); let f = new Array(2); f[0] = { $type: Point_$type, x: c[0], y: c[2] }; f[1] = { $type: Point_$type, x: d[0], y: d[2] }; e[0] = f; return e; } al(a) { let b = this.an(this.zc(), this.ze.k, this.aaf(this.cw), this.aag(this.cw), this.w1(a), true); if (b == null) { return null; } let c = b[0]; let d = b[1]; let e = new Array(1); let f = new Array(2); f[0] = { $type: Point_$type, x: c[0], y: c[1] }; f[1] = { $type: Point_$type, x: d[0], y: d[1] }; e[0] = f; return e; } get_fx() { return true; } b3() { if (this.b4 == 0) { return 1; } else { return super.b3(); } } getOffsetValue() { return this.RangeFramePreparer.r(this.xAxis, this.cw.ca, this.cw.b9, this.getEffectiveViewport1(this.cw)); } getCategoryWidth() { return this.xAxis.getCategorySize(this.cw.ca, this.cw.b9, this.getEffectiveViewport1(this.cw)); } kh(a, b) { return this.ki(a, b, this.xAxis, runOn(this, this.aad), new RangeValueList(this.highColumn, this.lowColumn)); } kj(a, b) { return this.kk(a, b, this.xAxis, runOn(this, this.aad), new RangeValueList(this.highColumn, this.lowColumn)); } iw(a, b, c, d, e) { if (c == null) { return Number.POSITIVE_INFINITY; } let f = this.xAxis.p7; return this.ix(a, b, this.xAxis, d, e, f, runOn(this, this.aad)); } jd(a, b, c) { if (this.dc == null) { return NaN; } let d = this.getEffectiveViewport1(this.cw); let e = new ScalerParams(0, this.dc.yr, this.cw.b9, this.xAxis.dn, d); let f = this.RangeFramePreparer.r(this.xAxis, this.dc.yr, this.cw.b9, d); return this.jf(new RangeValueList(this.highColumn, this.lowColumn), a, this.xAxis, e, f, runOn(this, this.aad), b, c); } jb(a, b, c) { if (this.dc == null) { return NaN; } let d = this.getEffectiveViewport1(this.cw); let e = new ScalerParams(0, this.dc.yr, this.cw.b9, this.xAxis.dn, d); let f = this.RangeFramePreparer.r(this.xAxis, this.dc.yr, this.cw.b9, d); return this.jf(this.lowColumn, a, this.xAxis, e, f, runOn(this, this.aad), b, c); } i9(a, b, c) { if (this.dc == null) { return NaN; } let d = this.getEffectiveViewport1(this.cw); let e = new ScalerParams(0, this.dc.yr, this.cw.b9, this.xAxis.dn, d); let f = this.RangeFramePreparer.r(this.xAxis, this.dc.yr, this.cw.b9, d); return this.jf(this.highColumn, a, this.xAxis, e, f, runOn(this, this.aad), b, c); } wr(a, b, c) { return this.wx(a, b, c, this.RangeFramePreparer.r(this.xAxis, this.cw.ca, this.cw.b9, this.getEffectiveViewport1(this.cw)), this.yAxis, this.xAxis, runOn(this, this.i9), (d, e) => this.kk(d, e, this.xAxis, runOn(this, this.aad), this.highColumn), (d, e) => this.ki(d, e, this.xAxis, runOn(this, this.aad), this.highColumn)); } wt(a, b, c) { return this.wx(a, b, c, this.RangeFramePreparer.r(this.xAxis, this.cw.ca, this.cw.b9, this.getEffectiveViewport1(this.cw)), this.yAxis, this.xAxis, runOn(this, this.jb), (d, e) => this.kk(d, e, this.xAxis, runOn(this, this.aad), this.lowColumn), (d, e) => this.ki(d, e, this.xAxis, runOn(this, this.aad), this.lowColumn)); } wv(a, b, c) { return this.wx(a, b, c, this.RangeFramePreparer.r(this.xAxis, this.cw.ca, this.cw.b9, this.getEffectiveViewport1(this.cw)), this.yAxis, this.xAxis, null, null, null); } z9() { return this.yAxis != null && this.yAxis.ec(); } rp(a, b, c, d) { super.rp(a, b, c, d); switch (b) { case HorizontalRangeCategorySeries.$$p[0]: case HorizontalRangeCategorySeries.$$p[1]: case HorizontalRangeCategorySeries.$$p[2]: case HorizontalRangeCategorySeries.$$p[3]: this.qt(); break; case HorizontalRangeCategorySeries.$$p[4]: this.po(typeCast(Axis.$, c)); this.rx(typeCast(Axis.$, d)); this.zn.c9.g(this.ik); this.r7(false); this.qz(); break; case HorizontalRangeCategorySeries.$$p[5]: this.po(typeCast(Axis.$, c)); this.rx(typeCast(Axis.$, d)); this.zn.c9.g(this.ik); this.z9(); this.r7(false); this.qz(); break; } } ab5(a) { if (typeCast(NumericYAxis.$, a) !== null) { return true; } return false; } ab4(a) { if (typeCast(CategoryXAxis.$, a) !== null || a.dj) { return true; } return false; } getDataLegendSeriesContextAt(a, b) { let c = { $type: Point_$type, x: a, y: b }; let d = this.jb(c, false, false); let e = this.i9(c, false, false); let f = new DataLegendSeriesValueInfo(); f.a = 1; f.l = e > d ? d : e; f.q = "Low"; f.r = this.abt != null ? this.abt : "Low"; f.s = this.aca != null ? this.aca : "L:"; f.t = this.acc != null ? this.acc : ""; let g = new DataLegendSeriesValueInfo(); g.a = 2; g.l = e > d ? e : d; g.q = "High"; g.r = this.abq != null ? this.abq : "High"; g.s = this.ab6 != null ? this.ab6 : "H:"; g.t = this.ab8 != null ? this.ab8 : ""; let h = new DataLegendSeriesValueInfo(); h.a = 7; h.l = Math.abs(g.l - f.l); h.q = "Range"; h.r = "Range"; h.s = "R:"; h.k = true; let i = new DataLegendSeriesValueInfo(); i.a = 6; i.l = f.l + (h.l / 2); i.q = "Average"; i.r = "Average"; i.s = "A:"; i.k = true; let j = new DataLegendSeriesContext(); j.e = ((() => { let $ret = new List$1(DataLegendSeriesValueInfo.$, 0); $ret.add(g); $ret.add(f); $ret.add(h); $ret.add(i); return $ret; })()); j.h = this.mn(); return j; } get useHighMarkerFidelity() { return this.aaa; } } HorizontalRangeCategorySeries.$t = markType(HorizontalRangeCategorySeries, 'HorizontalRangeCategorySeries', RangeCategorySeries.$); HorizontalRangeCategorySeries.$$p = markDep(DependencyProperty, PropertyMetadata, HorizontalRangeCategorySeries, 'raisePropertyChanged', ['HighMemberAsLegendLabel:ab6:acg', [2, null], 'HighMemberAsLegendUnit:ab8:ach', [2, null], 'LowMemberAsLegendLabel:aca:aci', [2, null], 'LowMemberAsLegendUnit:acc:acj', [2, null], 'XAxis::ack', [CategoryAxisBase.$, null], 'YAxis::acl', [NumericYAxis.$, null]]); return HorizontalRangeCategorySeries; })();