UNPKG

igniteui-angular-charts

Version:

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

71 lines (70 loc) 2.44 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 { LegendBase } from "./LegendBase"; import { LegendBaseView } from "./LegendBaseView"; import { fromEn, delegateCombine, typeCast, markType } from "igniteui-angular-core"; import { LegendItemInfo } from "./LegendItemInfo"; import { ContentControl } from "igniteui-angular-core"; import { ILegendContext_$type } from "igniteui-angular-core"; import { FinancialLegendViewManager } from "./FinancialLegendViewManager"; /** * @hidden */ export class FinancialLegend extends LegendBase { static { this.$t = markType(FinancialLegend, 'FinancialLegend', LegendBase.$); } aj() { return new FinancialLegendView(this); } get bj() { return this.ak; } constructor() { super(); this.ab = FinancialLegend.$; let a = this.aw; a.collectionChanged = delegateCombine(a.collectionChanged, (a, b) => { if (b.oldItems != null) { for (let c of fromEn(b.oldItems)) { this.bj.ao(c); } } if (b.newItems != null) { for (let d of fromEn(b.newItems)) { this.bj.y(d); } } }); } addChildInOrder(a, b) { this.aw.add(a); let c = new LegendItemInfo(); c.c = a; c.a = b; let d = typeCast(ContentControl.$, a); if (d != null && d.content != null) { let e = typeCast(ILegendContext_$type, d.content); if (e != null) { c.b = e; c.d = e.itemLabel; } } this.ax.add(c); } get_isFinancial() { return true; } } /** * @hidden */ export class FinancialLegendView extends LegendBaseView { static { this.$t = markType(FinancialLegendView, 'FinancialLegendView', LegendBaseView.$); } constructor(a) { super(a); this.d = new FinancialLegendViewManager(this); } }