UNPKG

igniteui-react-charts

Version:

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

112 lines (111 loc) 4 kB
/* 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 } from "tslib"; import { Base, markType } from "igniteui-react-core"; import { RectData } from "igniteui-react-core"; import { PrimitiveAppearanceData } from "igniteui-react-core"; import { StringBuilder } from "igniteui-react-core"; /** * @hidden */ var LegendItemVisualData = /** @class */ /*@__PURE__*/ (function (_super) { __extends(LegendItemVisualData, _super); function LegendItemVisualData() { var _this = _super.call(this) || this; _this._label = null; _this._labelBounds = null; _this._appearance = null; _this._labelAppearance = null; _this._bounds = null; _this._badgeBounds = null; _this.labelBounds = RectData.empty; _this.appearance = new PrimitiveAppearanceData(); return _this; } Object.defineProperty(LegendItemVisualData.prototype, "label", { get: function () { return this._label; }, set: function (a) { this._label = a; }, enumerable: false, configurable: true }); Object.defineProperty(LegendItemVisualData.prototype, "labelBounds", { get: function () { return this._labelBounds; }, set: function (a) { this._labelBounds = a; }, enumerable: false, configurable: true }); Object.defineProperty(LegendItemVisualData.prototype, "appearance", { get: function () { return this._appearance; }, set: function (a) { this._appearance = a; }, enumerable: false, configurable: true }); Object.defineProperty(LegendItemVisualData.prototype, "labelAppearance", { get: function () { return this._labelAppearance; }, set: function (a) { this._labelAppearance = a; }, enumerable: false, configurable: true }); Object.defineProperty(LegendItemVisualData.prototype, "bounds", { get: function () { return this._bounds; }, set: function (a) { this._bounds = a; }, enumerable: false, configurable: true }); Object.defineProperty(LegendItemVisualData.prototype, "badgeBounds", { get: function () { return this._badgeBounds; }, set: function (a) { this._badgeBounds = a; }, enumerable: false, configurable: true }); LegendItemVisualData.prototype.serialize = function () { var a = new StringBuilder(0); a.u("{"); if (this.label != null) { a.u("label: \"" + this.label + "\", "); } if (this.appearance != null) { a.u("appearance: " + this.appearance.serialize() + ", "); } if (this.labelAppearance != null) { a.u("labelAppearance: " + this.labelAppearance.serialize() + ", "); } var b = function (c) { return c != null ? "{ left: " + c.left + ", top: " + c.top + ", width: " + c.width + ", height: " + c.height + "}" : "null"; }; a.u("bounds: " + b(this.bounds) + ", "); a.u("badgeBounds: " + b(this.badgeBounds) + ", "); a.u("labelBounds: " + b(this.labelBounds)); a.u("}"); return a.toString(); }; LegendItemVisualData.$t = markType(LegendItemVisualData, 'LegendItemVisualData'); return LegendItemVisualData; }(Base)); export { LegendItemVisualData };