UNPKG

igniteui-angular-charts

Version:

Ignite UI Angular charting components for building rich data visualizations for modern web apps.

97 lines (96 loc) 3.93 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 { Base, typeCast, String_$type, markType } from "igniteui-angular-core"; import { JsonDictionaryObject } from "igniteui-angular-core"; import { JsonDictionaryValue } from "igniteui-angular-core"; import { truncate } from "igniteui-angular-core"; /** * @hidden */ export let SeriesMatcher = /*@__PURE__*/ (() => { class SeriesMatcher extends Base { constructor() { super(); this.___mustPassByValue = true; this.g = null; this.h = null; this.d = 0; this.f = null; this.e = null; this.d = -1; } b() { let a = new JsonDictionaryObject(); if (this.g != null) { a.item("name", ((() => { let $ret = new JsonDictionaryValue(); $ret.e = 2; $ret.value = this.g; return $ret; })())); } if (this.h != null) { a.item("title", ((() => { let $ret = new JsonDictionaryValue(); $ret.e = 2; $ret.value = this.h; return $ret; })())); } if (this.d != -1) { a.item("index", ((() => { let $ret = new JsonDictionaryValue(); $ret.e = 0; $ret.value = this.d; return $ret; })())); } if (this.f != null) { a.item("memberPathType", ((() => { let $ret = new JsonDictionaryValue(); $ret.e = 2; $ret.value = this.f; return $ret; })())); } if (this.e != null) { a.item("memberPath", ((() => { let $ret = new JsonDictionaryValue(); $ret.e = 2; $ret.value = this.e; return $ret; })())); } return a; } static a(a) { let 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) { let c = a.item("index"); if (typeof c.value === 'number') { let 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; })();