UNPKG

igniteui-angular-charts

Version:

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

126 lines (125 loc) 5.08 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 AxisMatcher = /*@__PURE__*/ (() => { class AxisMatcher extends Base { constructor() { super(); this.___mustPassByValue = true; this.i = null; this.j = null; this.d = 0; this.h = null; this.g = null; this.f = null; this.e = 0; this.d = -1; this.e = -1; } b() { let a = new JsonDictionaryObject(); if (this.i != null) { a.item("name", ((() => { let $ret = new JsonDictionaryValue(); $ret.e = 2; $ret.value = this.i; return $ret; })())); } if (this.j != null) { a.item("title", ((() => { let $ret = new JsonDictionaryValue(); $ret.e = 2; $ret.value = this.j; return $ret; })())); } if (this.d != -1) { a.item("index", ((() => { let $ret = new JsonDictionaryValue(); $ret.e = 0; $ret.value = this.d; return $ret; })())); } if (this.h != null) { a.item("memberPathType", ((() => { let $ret = new JsonDictionaryValue(); $ret.e = 2; $ret.value = this.h; return $ret; })())); } if (this.g != null) { a.item("memberPath", ((() => { let $ret = new JsonDictionaryValue(); $ret.e = 2; $ret.value = this.g; return $ret; })())); } if (this.f != null) { a.item("axisType", ((() => { let $ret = new JsonDictionaryValue(); $ret.e = 2; $ret.value = this.f; return $ret; })())); } if (this.e != -1) { a.item("typedIndex", ((() => { let $ret = new JsonDictionaryValue(); $ret.e = 0; $ret.value = this.e; return $ret; })())); } return a; } static a(a) { let b = new AxisMatcher(); if (a.g("name") && typeCast(JsonDictionaryValue.$, a.item("name")) !== null) { b.i = typeCast(String_$type, a.item("name").value); } if (a.g("title") && typeCast(JsonDictionaryValue.$, a.item("title")) !== null) { b.j = 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.j = typeCast(String_$type, a.item("memberPathType").value); } if (a.g("memberPath") && typeCast(JsonDictionaryValue.$, a.item("memberPath")) !== null) { b.j = typeCast(String_$type, a.item("memberPath").value); } if (a.g("axisType") && typeCast(JsonDictionaryValue.$, a.item("axisType")) !== null) { b.f = typeCast(String_$type, a.item("axisType").value); } if (a.g("typedIndex") && typeCast(JsonDictionaryValue.$, a.item("typedIndex")) !== null) { let e = a.item("typedIndex"); if (typeof e.value === 'number') { let f = e.value; b.e = truncate(f); } } return b; } } AxisMatcher.$t = markType(AxisMatcher, 'AxisMatcher'); return AxisMatcher; })();