UNPKG

igniteui-angular-charts

Version:

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

87 lines (86 loc) 3.05 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 { StrategyBasedIndicator } from "./StrategyBasedIndicator"; import { CustomIndicatorStrategy } from "./CustomIndicatorStrategy"; import { String_$type, fromEnum, markType } from "igniteui-angular-core"; import { FinancialEventArgs } from "./FinancialEventArgs"; import { List$1 } from "igniteui-angular-core"; /** * @hidden */ export let CustomIndicator = /*@__PURE__*/ (() => { class CustomIndicator extends StrategyBasedIndicator { constructor() { super(...arguments); this.acg = null; this.acf = null; } bj() { return new CustomIndicator(); } get_abu() { return new CustomIndicatorStrategy(); } get abu() { return this.get_abu(); } get_ab7() { return CustomIndicator.$; } get ab7() { return this.get_ab7(); } aa6(a, b) { let c = this.xi(a, b); let d = this.xj(c); let e = new List$1(String_$type, 0); if (this.basedOnColumns != null) { let f = new FinancialEventArgs(c.calculateFrom, c.calculateCount, c, d, this); this.basedOnColumns(this, f); if (f.basedOn != null) { for (let g of fromEnum(f.basedOn)) { e.add(g); } } } return e; } get indicator() { return this.acg; } set indicator(a) { this.acg = a; this.abe(); } get basedOnColumns() { return this.acf; } set basedOnColumns(a) { this.acf = a; } aa3(a, b) { super.aa3(a, b); if (this.indicator != null) { let c = this.xi(a, b); if (b == 0) { return false; } if (!this.ye(this.aa6(a, b))) { return false; } this.indicator(this, new FinancialEventArgs(a, b, c, this.xj(c), this)); if (this.abw(c) && this.xo != null) { this.xo.c1(); } return true; } return false; } } CustomIndicator.$t = markType(CustomIndicator, 'CustomIndicator', StrategyBasedIndicator.$); return CustomIndicator; })();