igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
242 lines (241 loc) • 7.95 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 { __extends, __read, __spreadArray, __values } from "tslib";
import { Base, fromEnum, markType } from "igniteui-react-core";
import { StringBuilder } from "igniteui-react-core";
/**
* @hidden
*/
var ChartDefaultTooltipSeriesData = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(ChartDefaultTooltipSeriesData, _super);
function ChartDefaultTooltipSeriesData() {
var _this = _super.apply(this, __spreadArray([], __read(arguments), false)) || this;
_this._seriesTitle = null;
_this._valueNames = null;
_this._seriesValues = null;
_this._axisLabel = null;
_this._badgeShape = null;
_this._badgeOutline = null;
_this._badgeBrush = null;
_this._badgeLineBrush = null;
_this._seriesTitleBrush = null;
_this._staticText = null;
return _this;
}
Object.defineProperty(ChartDefaultTooltipSeriesData.prototype, "seriesTitle", {
get: function () {
return this._seriesTitle;
},
set: function (a) {
this._seriesTitle = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartDefaultTooltipSeriesData.prototype, "valueNames", {
get: function () {
return this._valueNames;
},
set: function (a) {
this._valueNames = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartDefaultTooltipSeriesData.prototype, "seriesValues", {
get: function () {
return this._seriesValues;
},
set: function (a) {
this._seriesValues = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartDefaultTooltipSeriesData.prototype, "axisLabel", {
get: function () {
return this._axisLabel;
},
set: function (a) {
this._axisLabel = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartDefaultTooltipSeriesData.prototype, "badgeShape", {
get: function () {
return this._badgeShape;
},
set: function (a) {
this._badgeShape = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartDefaultTooltipSeriesData.prototype, "badgeOutline", {
get: function () {
return this._badgeOutline;
},
set: function (a) {
this._badgeOutline = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartDefaultTooltipSeriesData.prototype, "badgeBrush", {
get: function () {
return this._badgeBrush;
},
set: function (a) {
this._badgeBrush = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartDefaultTooltipSeriesData.prototype, "badgeLineBrush", {
get: function () {
return this._badgeLineBrush;
},
set: function (a) {
this._badgeLineBrush = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartDefaultTooltipSeriesData.prototype, "seriesTitleBrush", {
get: function () {
return this._seriesTitleBrush;
},
set: function (a) {
this._seriesTitleBrush = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ChartDefaultTooltipSeriesData.prototype, "staticText", {
get: function () {
return this._staticText;
},
set: function (a) {
this._staticText = a;
},
enumerable: false,
configurable: true
});
ChartDefaultTooltipSeriesData.prototype.serialize = function () {
var e_1, _a, e_2, _b;
var a = "[";
if (this.seriesValues != null) {
var b = true;
try {
for (var _c = __values(fromEnum(this.seriesValues)), _d = _c.next(); !_d.done; _d = _c.next()) {
var c = _d.value;
if (b) {
b = false;
}
else {
a += ", ";
}
a += "\"" + c + "\"";
}
}
catch (e_1_1) {
e_1 = { error: e_1_1 };
}
finally {
try {
if (_d && !_d.done && (_a = _c.return))
_a.call(_c);
}
finally {
if (e_1)
throw e_1.error;
}
}
a += "]";
}
var d = "[";
if (this.valueNames != null) {
var e = true;
try {
for (var _e = __values(fromEnum(this.valueNames)), _f = _e.next(); !_f.done; _f = _e.next()) {
var f = _f.value;
if (e) {
e = false;
}
else {
d += ", ";
}
d += "\"" + f + "\"";
}
}
catch (e_2_1) {
e_2 = { error: e_2_1 };
}
finally {
try {
if (_f && !_f.done && (_b = _e.return))
_b.call(_e);
}
finally {
if (e_2)
throw e_2.error;
}
}
d += "]";
}
var g = new StringBuilder(0);
g.u("{");
if (this.seriesTitle != null) {
g.l("seriesTitle: \"" + this.seriesTitle + "\"");
g.u(", ");
}
if (this.axisLabel != null) {
g.l("axisLabel: \"" + this.axisLabel + "\"");
g.u(", ");
}
if (this.badgeShape != null) {
g.l("badgeShape: \"" + this.badgeShape + "\"");
g.u(", ");
}
if (this.badgeBrush != null) {
g.l("badgeBrush: " + this.badgeBrush.serialize());
g.u(", ");
}
if (this.seriesTitleBrush != null) {
g.l("seriesTitleBrush: " + this.seriesTitleBrush.serialize());
g.u(", ");
}
if (this.badgeLineBrush != null) {
g.l("badgeLineBrush: " + this.badgeLineBrush.serialize());
g.u(", ");
}
if (this.badgeOutline != null) {
g.l("badgeOutline: " + this.badgeOutline.serialize());
g.u(", ");
}
if (this.staticText != null) {
g.l("staticText: \"" + this.staticText + "\"");
g.u(", ");
}
if (this.seriesValues != null) {
g.l("seriesValues: ");
g.u(a + ", ");
}
if (this.valueNames != null) {
g.l("valueNames: ");
g.u(d);
}
g.u("}");
return g.toString();
};
ChartDefaultTooltipSeriesData.prototype.scaleByViewport = function (a) {
};
ChartDefaultTooltipSeriesData.$t = markType(ChartDefaultTooltipSeriesData, 'ChartDefaultTooltipSeriesData');
return ChartDefaultTooltipSeriesData;
}(Base));
export { ChartDefaultTooltipSeriesData };