UNPKG

igniteui-react-charts

Version:

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

281 lines (280 loc) 10.3 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 { DataAnnotationShapeLayer } from "./DataAnnotationShapeLayer"; import { DependencyProperty } from "igniteui-react-core"; import { typeCast, markType, markDep } from "igniteui-react-core"; import { List$1 } from "igniteui-react-core"; import { DataAnnotationInfo } from "./DataAnnotationInfo"; import { IFastItemsSource_$type } from "igniteui-react-core"; import { PropertyMetadata } from "igniteui-react-core"; import { isNaN_ } from "igniteui-react-core"; /** * @hidden */ var DataAnnotationSliceLayer = /** @class */ /*@__PURE__*/ (function (_super) { __extends(DataAnnotationSliceLayer, _super); function DataAnnotationSliceLayer() { var _this = _super.call(this) || this; _this.ag3 = null; _this.ag2 = null; _this.agz = null; _this.agy = null; _this.ag1 = null; _this.ag0 = null; _this.ab = DataAnnotationSliceLayer.$; return _this; } DataAnnotationSliceLayer.prototype.bk = function () { return new DataAnnotationSliceLayer(); }; DataAnnotationSliceLayer.prototype.get_ad4 = function () { return false; }; DataAnnotationSliceLayer.prototype.aen = function (a) { if (isNaN_(this.aed)) { return a.dm ? 90 : 0; } return this.aed; }; DataAnnotationSliceLayer.prototype.afr = function (a) { var _this = this; if (!this.adx(a)) { return; } var b = this.ad7._inner[a]; b.c = new List$1(DataAnnotationInfo.$, 0); b.b = new List$1(DataAnnotationInfo.$, 0); b.centerLabelX = this.aev(a, this.ag8); b.centerLabelY = this.aev(a, this.ag8); var c = this.adw ? this.adg : this.adh; var d = this.aec(a, this.ag9, c); if (this.adw) { b.shapeStartX = d; b.shapeStartY = Number.NEGATIVE_INFINITY; b.shapeEndX = d; b.shapeEndY = Number.POSITIVE_INFINITY; b.shapeCenterX = d; b.shapeCenterY = 0; } else { b.shapeStartX = Number.NEGATIVE_INFINITY; b.shapeStartY = d; b.shapeEndX = Number.POSITIVE_INFINITY; b.shapeEndY = d; b.shapeCenterX = 0; b.shapeCenterY = d; } b.b.add(((function () { var $ret = new DataAnnotationInfo(); $ret.a = _this.adw ? _this.aay : 6; $ret.b = !_this.adw ? _this.aay : 6; $ret.dataValueX = d; $ret.dataValueY = d; $ret.dataLabelX = b.centerLabelX; $ret.dataLabelY = b.centerLabelY; $ret.q = b.z.x; $ret.r = b.z.y; return $ret; })())); b.c.add(((function () { var $ret = new DataAnnotationInfo(); $ret.q = b.ab.x; $ret.r = b.ab.y; return $ret; })())); b.c.add(((function () { var $ret = new DataAnnotationInfo(); $ret.q = b.aa.x; $ret.r = b.aa.y; return $ret; })())); }; DataAnnotationSliceLayer.prototype.rs = function (a, b, c, d) { _super.prototype.rs.call(this, a, b, c, d); switch (b) { case "AnnotationValueColumn": case "AnnotationLabelColumn": this.acc(); break; case DataAnnotationSliceLayer.$$p[5]: if (this.dp != null) { this.dp.deregisterColumn(this.ag9); this.ag9 = this.dl(this.ahq); } break; case DataAnnotationSliceLayer.$$p[4]: if (this.dp != null) { this.dp.deregisterColumn(this.ag8); this.ag8 = this.dn(this.ahn); } break; case DataAnnotationSliceLayer.$$p[0]: this.afp(this.ag4); this.ag4 = this.dn(this.ahb); break; case DataAnnotationSliceLayer.$$p[3]: this.afp(this.ag7); this.ag7 = this.dn(this.ahk); break; case DataAnnotationSliceLayer.$$p[1]: this.afp(this.ag5); this.ag5 = this.dn(this.ahe); break; case DataAnnotationSliceLayer.$$p[2]: this.afp(this.ag6); this.ag6 = this.dn(this.ahh); break; case "AnnotationBadgeBackgroundColumn": case "AnnotationBadgeOutlineColumn": case "AnnotationBadgeEnabledColumn": case "AnnotationBadgeImageColumn": this.acc(); break; } }; DataAnnotationSliceLayer.prototype.aft = function (a, b) { _super.prototype.aft.call(this, a, b); if (typeCast(IFastItemsSource_$type, a) != null) { a.deregisterColumn(this.ag8); a.deregisterColumn(this.ag9); a.deregisterColumn(this.ag4); a.deregisterColumn(this.ag7); a.deregisterColumn(this.ag5); a.deregisterColumn(this.ag6); this.ag8 = null; this.ag9 = null; this.ag4 = null; this.ag7 = null; this.ag5 = null; this.ag6 = null; } if (typeCast(IFastItemsSource_$type, b) != null) { this.ag9 = this.dl(this.ahq); this.ag8 = this.dn(this.ahn); this.ag4 = this.dn(this.ahb); this.ag7 = this.dn(this.ahk); this.ag5 = this.dn(this.ahe); this.ag6 = this.dn(this.ahh); } }; DataAnnotationSliceLayer.prototype.agn = function (a, b, c, d) { if (b) { var e = this.ago(a, this.ag7); if (e == null) { e = this.agp(this.ac8, d); } return e; } else { var f = this.ago(a, this.ag4); if (f == null) { f = this.agp(this.ac7, d); } return f; } }; DataAnnotationSliceLayer.prototype.adv = function (a, b) { if (this.ag5 == null || this.ag5.count <= a) { return this.aa2; } var c = this.ag5.item(a); return c != null ? c : this.aa2; }; DataAnnotationSliceLayer.prototype.aeu = function (a, b) { var c = this.aev(a, this.ag6); return c != null ? c : this.abp; }; Object.defineProperty(DataAnnotationSliceLayer.prototype, "ag9", { get: function () { return this.ag3; }, set: function (a) { if (this.ag3 != a) { var b = this.ag3; this.ag3 = a; this.raisePropertyChanged("AnnotationValueColumn", b, this.ag3); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationSliceLayer.prototype, "ag8", { get: function () { return this.ag2; }, set: function (a) { if (this.ag2 != a) { var b = this.ag2; this.ag2 = a; this.raisePropertyChanged("AnnotationLabelColumn", b, this.ag2); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationSliceLayer.prototype, "ag5", { get: function () { return this.agz; }, set: function (a) { if (this.agz != a) { var b = this.agz; this.agz = a; this.raisePropertyChanged("AnnotationBadgeEnabledColumn", b, this.agz); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationSliceLayer.prototype, "ag4", { get: function () { return this.agy; }, set: function (a) { if (this.agy != a) { var b = this.agy; this.agy = a; this.raisePropertyChanged("AnnotationBadgeBackgroundColumn", b, this.agy); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationSliceLayer.prototype, "ag7", { get: function () { return this.ag1; }, set: function (a) { if (this.ag1 != a) { var b = this.ag1; this.ag1 = a; this.raisePropertyChanged("AnnotationBadgeOutlineColumn", b, this.ag1); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationSliceLayer.prototype, "ag6", { get: function () { return this.ag0; }, set: function (a) { if (this.ag0 != a) { var b = this.ag0; this.ag0 = a; this.raisePropertyChanged("AnnotationBadgeImageColumn", b, this.ag0); } }, enumerable: false, configurable: true }); DataAnnotationSliceLayer.$t = markType(DataAnnotationSliceLayer, 'DataAnnotationSliceLayer', DataAnnotationShapeLayer.$); DataAnnotationSliceLayer.$$p = markDep(DependencyProperty, PropertyMetadata, DataAnnotationSliceLayer, 'raisePropertyChanged', ['AnnotationBadgeBackgroundMemberPath:ahb:ahs', [2, null], 'AnnotationBadgeEnabledMemberPath:ahe:aht', [2, null], 'AnnotationBadgeImageMemberPath:ahh:ahu', [2, null], 'AnnotationBadgeOutlineMemberPath:ahk:ahv', [2, null], 'AnnotationLabelMemberPath:ahn:ahw', [2, null], 'AnnotationValueMemberPath:ahq:ahx', [2, null]]); return DataAnnotationSliceLayer; }(DataAnnotationShapeLayer)); export { DataAnnotationSliceLayer };