UNPKG

igniteui-angular-charts

Version:

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

287 lines (286 loc) 10.9 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 { AnchoredCategorySeries } from "./AnchoredCategorySeries"; import { IHorizontalAnchoredCategorySeriesInteractionManager_$type } from "./IHorizontalAnchoredCategorySeriesInteractionManager"; import { DVContainer } from "igniteui-angular-core"; import { runOn, Point_$type, typeCast, EnumUtil, enumGetBox, markType, markDep } from "igniteui-angular-core"; import { CategoryAxisBase } from "./CategoryAxisBase"; import { DependencyProperty } from "igniteui-angular-core"; import { NumericYAxis } from "./NumericYAxis"; import { CategoryMode_$type } from "./CategoryMode"; import { Axis } from "./Axis"; import { Rect } from "igniteui-angular-core"; import { ScalerParams } from "./ScalerParams"; import { TrendLineType_$type } from "igniteui-angular-core"; import { CategoryTrendLineManagerFactory } from "./CategoryTrendLineManagerFactory"; import { ISortingAxis_$type } from "./ISortingAxis"; import { CategoryXAxis } from "./CategoryXAxis"; import { PropertyMetadata } from "igniteui-angular-core"; /** * @hidden */ export let HorizontalAnchoredCategorySeries = /*@__PURE__*/ (() => { class HorizontalAnchoredCategorySeries extends AnchoredCategorySeries { constructor() { super(...arguments); this.ac3 = null; this.acz = null; this.ac5 = null; this.ac1 = 0; } get ac4() { if (this.ac3 == null) { this.ac3 = DVContainer.instance.createInstance(IHorizontalAnchoredCategorySeriesInteractionManager_$type, () => this.ds.n); } return this.ac3; } pe() { super.pe(); this.xAxis = null; this.yAxis = null; } cl() { return 1; } cm() { if (this.yAxis != null && this.yAxis.dn) { return 4; } return 3; } b3() { if (this.b4 == 0) { return 1; } else { return super.b3(); } } zc() { return this.acz; } zt() { return this.ac5; } w9(a) { if (this.ze == null || this.ze.s.count == 0 || !this.hasMarkers || !this.x0()) { return Rect.empty; } return this.ac4.d$d(this, this.ze.s, a, runOn(this, this.adh)); } adh(a) { return this.abh.ds(a); } ac9(a, b, c) { return this.ac4.d$c(this, this.zt(), a, b, c); } aj(a) { return this.ac4.d$a(this, this.ze.k, this.aaf(this.cw), this.aag(this.cw), a); } al(a) { return this.ac4.d$b(this, this.ze.k, this.aaf(this.cw), this.aag(this.cw), a); } g2(a, b) { if (this.g1(a, b)) { return true; } if (this.x1(a, b)) { return true; } return false; } getOffsetValue() { return this.zj.r(this.zc(), this.cw.ca, this.cw.b9, this.getEffectiveViewport1(this.cw)); } getCategoryWidth() { let a = this.getEffectiveViewport1(this.cw); return this.zc().getCategorySize(this.cw.ca, this.cw.b9, a); } jd(a, b, c) { if (this.dc == null) { return NaN; } let d = this.getEffectiveViewport1(this.cw); let e = this.zc(); if (e == null) { return NaN; } let f = new ScalerParams(0, this.dc.yr, this.cw.b9, e.dn, d); let g = this.zj.r(e, this.dc.yr, this.cw.b9, d); return this.jf(this.valueColumn, a, e, f, g, runOn(this, this.aad), b, c); } kj(a, b) { return this.kk(a, b, this.zc(), runOn(this, this.aad), this.valueColumn); } kh(a, b) { return this.ki(a, b, this.zc(), runOn(this, this.aad), this.valueColumn); } iw(a, b, c, d, e) { if (this.valueColumn == null) { return Number.POSITIVE_INFINITY; } return this.ix(a, b, this.zc(), d, e, this.valueColumn.count, runOn(this, this.aad)); } wv(a, b, c) { if (this.zc() == null || this.zt() == null) { return { $type: Point_$type, x: NaN, y: NaN }; } return this.wx(a, b, c, this.zj.r(this.zc(), this.cw.ca, this.cw.b9, this.getEffectiveViewport1(this.cw)), this.zt(), this.zc(), null, null, null); } fetchXAxis() { return this.acz; } fetchYAxis() { return this.ac5; } acd(a) { this.xAxis = typeCast(CategoryAxisBase.$, a); } ace(a) { this.yAxis = typeCast(NumericYAxis.$, a); } z9() { return this.ac5 != null && this.ac5.ec(); } add(a) { this.acz = a; } ade(a) { this.ac5 = a; } y6(a, b) { return this.abe(a, b, this.acz); } rp(a, b, c, d) { switch (b) { case HorizontalAnchoredCategorySeries.$$p[0]: this.add(this.xAxis); if (this.abh.dl) { this.abh.dk = CategoryTrendLineManagerFactory.a(this.abh.dk, this.acz, this.tc, this, this.ds); this.abh.dk.g$b = this.trendLineType; this.abh.dk.g$f = this.trendLinePeriod; } break; case "TrendLineType": let e = EnumUtil.getEnumValue(TrendLineType_$type, d); if (e != 0) { this.abh.dk = CategoryTrendLineManagerFactory.a(this.abh.dk, this.acz, this.tc, this, this.ds); this.abh.dk.g$b = this.trendLineType; this.abh.dk.g$f = this.trendLinePeriod; } break; } super.rp(a, b, c, d); switch (b) { case HorizontalAnchoredCategorySeries.$$p[0]: if (c != d) { this.po(typeCast(Axis.$, c)); this.rx(typeCast(Axis.$, d)); this.add(this.xAxis); this.zn.c9.g(this.ik); this.r7(false); this.qz(); } break; case HorizontalAnchoredCategorySeries.$$p[1]: if (c != d) { this.po(typeCast(Axis.$, c)); this.rx(typeCast(Axis.$, d)); this.ade(this.yAxis); if (this.dc != null) { this.dc.pq(); } this.zn.c9.g(this.ik); this.z9(); this.r7(false); this.qz(); } break; case "CategoryMode": if (this.xAxis != null) { this.xAxis.qy(true); } break; } } pn(a, b, c, d) { super.pn(a, b, c, d); if (this.acz != null && typeCast(ISortingAxis_$type, this.acz) !== null) { this.acz.i$i(); } switch (a) { case 4: if (this.acz != null) { this.acz.ec(); } if (this.ac5 != null && !this.ac5.ec()) { this.r7(true); } break; case 1: if (this.acz != null) { this.acz.ec(); } if (this.ac5 != null && !this.ac5.ec()) { this.r7(true); } break; case 0: if (this.acz != null) { this.acz.ec(); } if (this.ac5 != null && !this.ac5.ec()) { this.r7(true); } break; case 2: if (this.abz != null && this.abh.c9.d > 0 && this.ac5 != null && !this.ac5.ec()) { this.r7(true); } break; case 3: if (d == this.abz) { if (this.acz != null) { this.acz.ec(); } if (this.ac5 != null && !this.ac5.ec()) { this.r7(true); } } break; } } ac7(a) { if (typeCast(CategoryXAxis.$, a) !== null || a.dj) { return true; } return false; } ac8(a) { if (typeCast(NumericYAxis.$, a) !== null) { return true; } return false; } get ac2() { return this.ac1; } set ac2(a) { let b = this.ac2; if (a != b) { this.ac1 = a; this.raisePropertyChanged("CategoryMode", enumGetBox(CategoryMode_$type, b), enumGetBox(CategoryMode_$type, this.ac2)); } } get useHighMarkerFidelity() { return this.aaa; } } HorizontalAnchoredCategorySeries.$t = markType(HorizontalAnchoredCategorySeries, 'HorizontalAnchoredCategorySeries', AnchoredCategorySeries.$); HorizontalAnchoredCategorySeries.$$p = markDep(DependencyProperty, PropertyMetadata, HorizontalAnchoredCategorySeries, 'raisePropertyChanged', ['XAxis::adf', [CategoryAxisBase.$, null], 'YAxis::adg', [NumericYAxis.$, null]]); return HorizontalAnchoredCategorySeries; })();