igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
77 lines (76 loc) • 2.83 kB
JavaScript
/*
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-react-core";
import { LegendItemInfo } from "./LegendItemInfo";
import { ContentControl } from "igniteui-react-core";
import { ILegendContext_$type } from "igniteui-react-core";
import { FinancialLegendViewManager } from "./FinancialLegendViewManager";
/**
* @hidden
*/
export let FinancialLegend = /*@__PURE__*/ (() => {
class FinancialLegend extends LegendBase {
aj() {
return new FinancialLegendView(this);
}
get bg() {
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.bg.ao(c);
}
}
if (b.newItems != null) {
for (let d of fromEn(b.newItems)) {
this.bg.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;
}
}
FinancialLegend.$t = /*@__PURE__*/ markType(FinancialLegend, 'FinancialLegend', LegendBase.$);
return FinancialLegend;
})();
/**
* @hidden
*/
export let FinancialLegendView = /*@__PURE__*/ (() => {
class FinancialLegendView extends LegendBaseView {
constructor(a) {
super(a);
this.d = new FinancialLegendViewManager(this);
}
}
FinancialLegendView.$t = /*@__PURE__*/ markType(FinancialLegendView, 'FinancialLegendView', LegendBaseView.$);
return FinancialLegendView;
})();