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.ac1 = null; this.ac0 = null; } bk() { return new CustomIndicator(); } get_acf() { return new CustomIndicatorStrategy(); } get acf() { return this.get_acf(); } get_acs() { return CustomIndicator.$; } get acs() { return this.get_acs(); } abr(a, b) { let c = this.x3(a, b); let d = this.x4(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.ac1; } set indicator(a) { this.ac1 = a; this.abz(); } get basedOnColumns() { return this.ac0; } set basedOnColumns(a) { this.ac0 = a; } abo(a, b) { super.abo(a, b); if (this.indicator != null) { let c = this.x3(a, b); if (b == 0) { return false; } if (!this.yz(this.abr(a, b))) { return false; } this.indicator(this, new FinancialEventArgs(a, b, c, this.x4(c), this)); if (this.ach(c) && this.x9 != null) { this.x9.ec(); } return true; } return false; } } CustomIndicator.$t = markType(CustomIndicator, 'CustomIndicator', StrategyBasedIndicator.$); return CustomIndicator; })();