igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
83 lines (82 loc) • 2.85 kB
JavaScript
import { IgrDataChart } from "./igr-data-chart";
import { DomainChartTestingInfo as DomainChartTestingInfo_internal } from "./DomainChartTestingInfo";
var IgrDomainChartTestingInfo = /** @class */ /*@__PURE__*/ (function () {
function IgrDomainChartTestingInfo() {
this.mounted = false;
this._implementation = this.createImplementation();
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
}
IgrDomainChartTestingInfo.prototype.createImplementation = function () {
return new DomainChartTestingInfo_internal();
};
Object.defineProperty(IgrDomainChartTestingInfo.prototype, "nativeElement", {
get: function () {
return this._implementation.nativeElement;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrDomainChartTestingInfo.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgrDomainChartTestingInfo.prototype.onImplementationCreated = function () {
};
IgrDomainChartTestingInfo.prototype._provideImplementation = function (i) {
this._implementation = i;
this._implementation.externalObject = this;
this.onImplementationCreated();
if (this._initializeAdapters) {
this._initializeAdapters();
}
};
Object.defineProperty(IgrDomainChartTestingInfo.prototype, "mainDataChart", {
get: function () {
var r = this.i.a;
if (r == null) {
return null;
}
if (!r.externalObject) {
var e = new IgrDataChart({});
if (r.$type) {
e._implementation = r;
}
else {
if (e.i.setNativeElement) {
e.i.setNativeElement(r);
}
}
r.externalObject = e;
}
return r.externalObject;
},
set: function (v) {
v == null ? this.i.a = null : this.i.a = v.i;
},
enumerable: false,
configurable: true
});
IgrDomainChartTestingInfo.prototype.findByName = function (name) {
if (this.findEphemera) {
if (name && name.indexOf("@@e:") == 0) {
return this.findEphemera(name);
}
}
if (this.mainDataChart && this.mainDataChart.name && this.mainDataChart.name == name) {
return this.mainDataChart;
}
return null;
};
return IgrDomainChartTestingInfo;
}());
export { IgrDomainChartTestingInfo };