UNPKG

igniteui-react-charts

Version:

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

100 lines (99 loc) 3.79 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, typeCast, String_$type, markType } from "igniteui-react-core"; import { JsonDictionaryObject } from "igniteui-react-core"; import { JsonDictionaryValue } from "igniteui-react-core"; import { truncate } from "igniteui-react-core"; /** * @hidden */ var SeriesMatcher = /** @class */ /*@__PURE__*/ (function (_super) { __extends(SeriesMatcher, _super); function SeriesMatcher() { var _this = _super.call(this) || this; _this.___mustPassByValue = true; _this.g = null; _this.h = null; _this.d = 0; _this.f = null; _this.e = null; _this.d = -1; return _this; } SeriesMatcher.prototype.b = function () { var _this = this; var a = new JsonDictionaryObject(); if (this.g != null) { a.item("name", ((function () { var $ret = new JsonDictionaryValue(); $ret.e = 2; $ret.value = _this.g; return $ret; })())); } if (this.h != null) { a.item("title", ((function () { var $ret = new JsonDictionaryValue(); $ret.e = 2; $ret.value = _this.h; return $ret; })())); } if (this.d != -1) { a.item("index", ((function () { var $ret = new JsonDictionaryValue(); $ret.e = 0; $ret.value = _this.d; return $ret; })())); } if (this.f != null) { a.item("memberPathType", ((function () { var $ret = new JsonDictionaryValue(); $ret.e = 2; $ret.value = _this.f; return $ret; })())); } if (this.e != null) { a.item("memberPath", ((function () { var $ret = new JsonDictionaryValue(); $ret.e = 2; $ret.value = _this.e; return $ret; })())); } return a; }; SeriesMatcher.a = function (a) { var b = new SeriesMatcher(); if (a.g("name") && typeCast(JsonDictionaryValue.$, a.item("name")) !== null) { b.g = typeCast(String_$type, a.item("name").value); } if (a.g("title") && typeCast(JsonDictionaryValue.$, a.item("title")) !== null) { b.h = typeCast(String_$type, a.item("title").value); } if (a.g("index") && typeCast(JsonDictionaryValue.$, a.item("index")) !== null) { var c = a.item("index"); if (typeof c.value === 'number') { var d = c.value; b.d = truncate(d); } } if (a.g("memberPathType") && typeCast(JsonDictionaryValue.$, a.item("memberPathType")) !== null) { b.h = typeCast(String_$type, a.item("memberPathType").value); } if (a.g("memberPath") && typeCast(JsonDictionaryValue.$, a.item("memberPath")) !== null) { b.h = typeCast(String_$type, a.item("memberPath").value); } return b; }; SeriesMatcher.$t = markType(SeriesMatcher, 'SeriesMatcher'); return SeriesMatcher; }(Base)); export { SeriesMatcher };