igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
87 lines (86 loc) • 2.97 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 { StrategyBasedIndicator } from "./StrategyBasedIndicator";
import { CustomIndicatorStrategy } from "./CustomIndicatorStrategy";
import { String_$type, fromEnum, markType } from "igniteui-react-core";
import { FinancialEventArgs } from "./FinancialEventArgs";
import { List$1 } from "igniteui-react-core";
/**
* @hidden
*/
export let CustomIndicator = /*@__PURE__*/ (() => {
class CustomIndicator extends StrategyBasedIndicator {
constructor() {
super(...arguments);
this.ac2 = null;
this.ac1 = null;
}
bk() {
return new CustomIndicator();
}
get_acg() {
return new CustomIndicatorStrategy();
}
get acg() {
return this.get_acg();
}
get_act() {
return CustomIndicator.$;
}
get act() {
return this.get_act();
}
abs(a, b) {
let c = this.x4(a, b);
let d = this.x5(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.ac2;
}
set indicator(a) {
this.ac2 = a;
this.ab0();
}
get basedOnColumns() {
return this.ac1;
}
set basedOnColumns(a) {
this.ac1 = a;
}
abp(a, b) {
super.abp(a, b);
if (this.indicator != null) {
let c = this.x4(a, b);
if (b == 0) {
return false;
}
if (!this.y0(this.abs(a, b))) {
return false;
}
this.indicator(this, new FinancialEventArgs(a, b, c, this.x5(c), this));
if (this.aci(c) && this.ya != null) {
this.ya.ed();
}
return true;
}
return false;
}
}
CustomIndicator.$t = /*@__PURE__*/ markType(CustomIndicator, 'CustomIndicator', StrategyBasedIndicator.$);
return CustomIndicator;
})();