igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
50 lines (49 loc) • 2.01 kB
JavaScript
import { delegateCombine, delegateRemove } from "igniteui-react-core";
import { IgrCustomContourValueResolverEventArgs } from "./igr-custom-contour-value-resolver-event-args";
import { IgrContourValueResolver } from "./igr-contour-value-resolver";
import { CustomContourValueResolver } from "./CustomContourValueResolver";
/**
* ContourValueResolver class which fires an event to resolve the contour values.
*/
export class IgrCustomContourValueResolver extends IgrContourValueResolver {
createImplementation() {
return new CustomContourValueResolver();
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
constructor(props) {
super(props);
this._getCustomContourValues = null;
this._getCustomContourValues_wrapped = null;
}
/**
* Event raised when retrieving the contour values.
*/
get getCustomContourValues() {
return this._getCustomContourValues;
}
set getCustomContourValues(ev) {
if (this._getCustomContourValues_wrapped !== null) {
this.i.getCustomContourValues = delegateRemove(this.i.getCustomContourValues, this._getCustomContourValues_wrapped);
this._getCustomContourValues_wrapped = null;
this._getCustomContourValues = null;
}
this._getCustomContourValues = ev;
this._getCustomContourValues_wrapped = (o, e) => {
let outerArgs = new IgrCustomContourValueResolverEventArgs();
outerArgs._provideImplementation(e);
if (this.beforeGetCustomContourValues) {
this.beforeGetCustomContourValues(this, outerArgs);
}
if (this._getCustomContourValues) {
this._getCustomContourValues(this, outerArgs);
}
};
this.i.getCustomContourValues = delegateCombine(this.i.getCustomContourValues, this._getCustomContourValues_wrapped);
;
}
}