UNPKG

igniteui-react-charts

Version:

Ignite UI React charting components for building rich data visualizations using TypeScript APIs.

63 lines (62 loc) 1.74 kB
import { IgrSeries } from './igr-series'; import { TypeRegistrar } from "igniteui-react-core"; /** * Event arguments for the Financial Chart's custom indicator event. */ export class IgrFinancialChartCustomIndicatorArgs { get i() { return this._implementation; } onImplementationCreated() { } constructor() { } _provideImplementation(i) { this._implementation = i; this._implementation.externalObject = this; this.onImplementationCreated(); } get indicatorInfo() { if (!this.i.indicatorInfo) { return null; } if (!this.i.indicatorInfo.externalObject && TypeRegistrar.isRegistered("igr-financial-event-args")) { let e = TypeRegistrar.create("igr-financial-event-args"); e._implementation = this.i.indicatorInfo; this.i.indicatorInfo.externalObject = e; } if (this.i.indicatorInfo.externalObject) { return this.i.indicatorInfo.externalObject; } return null; } /** * The Series in context. */ get series() { const r = this.i.series; if (r == null) { return null; } if (!r.externalObject) { let e = IgrSeries._createFromInternal(r); if (e) { e._implementation = r; } r.externalObject = e; } return r.externalObject; } set series(v) { v == null ? this.i.series = null : this.i.series = v.i; } /** * An integer representing the position of the associated custom indicator in its host. */ get index() { return this.i.index; } set index(v) { this.i.index = +v; } }