UNPKG

igniteui-angular-gauges

Version:

Ignite UI Angular gauge components.

196 lines (195 loc) 6.44 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 { LinearGraphVisualData } from "./LinearGraphVisualData"; import { StringBuilder } from "igniteui-angular-core"; import { markType } from "igniteui-angular-core"; /** * @hidden */ var BulletGraphVisualData = /** @class */ /*@__PURE__*/ (function (_super) { __extends(BulletGraphVisualData, _super); function BulletGraphVisualData() { var _this = _super !== null && _super.apply(this, arguments) || this; _this._targetValuePath = null; _this._valuePath = null; _this._highlightValuePath = null; _this._scaleBackgroundPath = null; _this._targetValue = null; _this._value = null; _this._highlightValue = null; return _this; } Object.defineProperty(BulletGraphVisualData.prototype, "targetValuePath", { get: function () { return this._targetValuePath; }, set: function (a) { this._targetValuePath = a; }, enumerable: false, configurable: true }); Object.defineProperty(BulletGraphVisualData.prototype, "valuePath", { get: function () { return this._valuePath; }, set: function (a) { this._valuePath = a; }, enumerable: false, configurable: true }); Object.defineProperty(BulletGraphVisualData.prototype, "highlightValuePath", { get: function () { return this._highlightValuePath; }, set: function (a) { this._highlightValuePath = a; }, enumerable: false, configurable: true }); Object.defineProperty(BulletGraphVisualData.prototype, "scaleBackgroundPath", { get: function () { return this._scaleBackgroundPath; }, set: function (a) { this._scaleBackgroundPath = a; }, enumerable: false, configurable: true }); Object.defineProperty(BulletGraphVisualData.prototype, "targetValue", { get: function () { return this._targetValue; }, set: function (a) { this._targetValue = a; }, enumerable: false, configurable: true }); Object.defineProperty(BulletGraphVisualData.prototype, "value", { get: function () { return this._value; }, set: function (a) { this._value = a; }, enumerable: false, configurable: true }); Object.defineProperty(BulletGraphVisualData.prototype, "highlightValue", { get: function () { return this._highlightValue; }, set: function (a) { this._highlightValue = a; }, enumerable: false, configurable: true }); BulletGraphVisualData.prototype.scaleByViewport = function () { _super.prototype.scaleByViewport.call(this); if (this.targetValuePath != null) { this.targetValuePath.scaleByViewport(this.viewport); } if (this.valuePath != null) { this.valuePath.scaleByViewport(this.viewport); } if (this.highlightValuePath != null) { this.highlightValuePath.scaleByViewport(this.viewport); } if (this.scaleBackgroundPath != null) { this.scaleBackgroundPath.scaleByViewport(this.viewport); } }; BulletGraphVisualData.prototype.serialize = function () { var a = _super.prototype.serialize.call(this); var b = new StringBuilder(0); var c = a.length == 0; if (this.targetValuePath != null) { if (c) { c = false; } else { b.l(", "); } b.l("targetValuePath: "); b.u(this.targetValuePath.serialize()); } if (this.targetValue != null) { if (c) { c = false; } else { b.l(", "); } b.l("targetValue: "); b.u(this.targetValue.serialize()); } if (this.valuePath != null) { if (c) { c = false; } else { b.l(", "); } b.l("valuePath: "); b.u(this.valuePath.serialize()); } if (this.highlightValuePath != null) { if (c) { c = false; } else { b.l(", "); } b.l("highlightValuePath: "); b.u(this.highlightValuePath.serialize()); } if (this.value != null) { if (c) { c = false; } else { b.l(", "); } b.l("value: "); b.u(this.value.serialize()); } if (this.highlightValue != null) { if (c) { c = false; } else { b.l(", "); } b.l("highlightValue: "); b.u(this.highlightValue.serialize()); } if (this.scaleBackgroundPath != null) { if (c) { c = false; } else { b.l(", "); } b.l("scaleBackgroundPath: "); b.u(this.scaleBackgroundPath.serialize()); } if (c) { return a; } b.l("}"); return a.substr(0, a.length - 1) + b.toString(); }; BulletGraphVisualData.$t = markType(BulletGraphVisualData, 'BulletGraphVisualData', LinearGraphVisualData.$); return BulletGraphVisualData; }(LinearGraphVisualData)); export { BulletGraphVisualData };