igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
129 lines (128 loc) • 4.8 kB
JavaScript
/*
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 AxisMatcher = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(AxisMatcher, _super);
function AxisMatcher() {
var _this = _super.call(this) || this;
_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;
return _this;
}
AxisMatcher.prototype.b = function () {
var _this = this;
var a = new JsonDictionaryObject();
if (this.i != null) {
a.item("name", ((function () {
var $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = _this.i;
return $ret;
})()));
}
if (this.j != null) {
a.item("title", ((function () {
var $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = _this.j;
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.h != null) {
a.item("memberPathType", ((function () {
var $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = _this.h;
return $ret;
})()));
}
if (this.g != null) {
a.item("memberPath", ((function () {
var $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = _this.g;
return $ret;
})()));
}
if (this.f != null) {
a.item("axisType", ((function () {
var $ret = new JsonDictionaryValue();
$ret.e = 2;
$ret.value = _this.f;
return $ret;
})()));
}
if (this.e != -1) {
a.item("typedIndex", ((function () {
var $ret = new JsonDictionaryValue();
$ret.e = 0;
$ret.value = _this.e;
return $ret;
})()));
}
return a;
};
AxisMatcher.a = function (a) {
var 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) {
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.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) {
var e = a.item("typedIndex");
if (typeof e.value === 'number') {
var f = e.value;
b.e = truncate(f);
}
}
return b;
};
AxisMatcher.$t = markType(AxisMatcher, 'AxisMatcher');
return AxisMatcher;
}(Base));
export { AxisMatcher };