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.ag1 = null; _this.ag0 = null; _this.agx = null; _this.agw = null; _this.agz = null; _this.agy = null; _this.ab = DataAnnotationSliceLayer.$; return _this; } DataAnnotationSliceLayer.prototype.bk = function () { return new DataAnnotationSliceLayer(); }; DataAnnotationSliceLayer.prototype.get_ad2 = function () { return false; }; DataAnnotationSliceLayer.prototype.ael = function (a) { if (isNaN_(this.aeb)) { return a.dm ? 90 : 0; } return this.aeb; }; DataAnnotationSliceLayer.prototype.afp = function (a) { var _this = this; if (!this.adv(a)) { return; } var b = this.ad5._inner[a]; b.c = new List$1(DataAnnotationInfo.$, 0); b.b = new List$1(DataAnnotationInfo.$, 0); b.centerLabelX = this.aet(a, this.ag6); b.centerLabelY = this.aet(a, this.ag6); var c = this.adu ? this.ade : this.adf; var d = this.aea(a, this.ag7, c); if (this.adu) { 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.adu ? _this.aaw : 6; $ret.b = !_this.adu ? _this.aaw : 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.rq = function (a, b, c, d) { _super.prototype.rq.call(this, a, b, c, d); switch (b) { case "AnnotationValueColumn": case "AnnotationLabelColumn": this.aca(); break; case DataAnnotationSliceLayer.$$p[5]: if (this.dp != null) { this.dp.deregisterColumn(this.ag7); this.ag7 = this.dl(this.aho); } break; case DataAnnotationSliceLayer.$$p[4]: if (this.dp != null) { this.dp.deregisterColumn(this.ag6); this.ag6 = this.dn(this.ahl); } break; case DataAnnotationSliceLayer.$$p[0]: this.afn(this.ag2); this.ag2 = this.dn(this.ag9); break; case DataAnnotationSliceLayer.$$p[3]: this.afn(this.ag5); this.ag5 = this.dn(this.ahi); break; case DataAnnotationSliceLayer.$$p[1]: this.afn(this.ag3); this.ag3 = this.dn(this.ahc); break; case DataAnnotationSliceLayer.$$p[2]: this.afn(this.ag4); this.ag4 = this.dn(this.ahf); break; case "AnnotationBadgeBackgroundColumn": case "AnnotationBadgeOutlineColumn": case "AnnotationBadgeEnabledColumn": case "AnnotationBadgeImageColumn": this.aca(); break; } }; DataAnnotationSliceLayer.prototype.afr = function (a, b) { _super.prototype.afr.call(this, a, b); if (typeCast(IFastItemsSource_$type, a) != null) { a.deregisterColumn(this.ag6); a.deregisterColumn(this.ag7); a.deregisterColumn(this.ag2); a.deregisterColumn(this.ag5); a.deregisterColumn(this.ag3); a.deregisterColumn(this.ag4); this.ag6 = null; this.ag7 = null; this.ag2 = null; this.ag5 = null; this.ag3 = null; this.ag4 = null; } if (typeCast(IFastItemsSource_$type, b) != null) { this.ag7 = this.dl(this.aho); this.ag6 = this.dn(this.ahl); this.ag2 = this.dn(this.ag9); this.ag5 = this.dn(this.ahi); this.ag3 = this.dn(this.ahc); this.ag4 = this.dn(this.ahf); } }; DataAnnotationSliceLayer.prototype.agl = function (a, b, c, d) { if (b) { var e = this.agm(a, this.ag5); if (e == null) { e = this.agn(this.ac6, d); } return e; } else { var f = this.agm(a, this.ag2); if (f == null) { f = this.agn(this.ac5, d); } return f; } }; DataAnnotationSliceLayer.prototype.adt = function (a, b) { if (this.ag3 == null || this.ag3.count <= a) { return this.aa0; } var c = this.ag3.item(a); return c != null ? c : this.aa0; }; DataAnnotationSliceLayer.prototype.aes = function (a, b) { var c = this.aet(a, this.ag4); return c != null ? c : this.abn; }; 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("AnnotationValueColumn", 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("AnnotationLabelColumn", b, this.ag0); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationSliceLayer.prototype, "ag3", { get: function () { return this.agx; }, set: function (a) { if (this.agx != a) { var b = this.agx; this.agx = a; this.raisePropertyChanged("AnnotationBadgeEnabledColumn", b, this.agx); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationSliceLayer.prototype, "ag2", { get: function () { return this.agw; }, set: function (a) { if (this.agw != a) { var b = this.agw; this.agw = a; this.raisePropertyChanged("AnnotationBadgeBackgroundColumn", b, this.agw); } }, 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("AnnotationBadgeOutlineColumn", 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("AnnotationBadgeImageColumn", b, this.agy); } }, enumerable: false, configurable: true }); DataAnnotationSliceLayer.$t = markType(DataAnnotationSliceLayer, 'DataAnnotationSliceLayer', DataAnnotationShapeLayer.$); DataAnnotationSliceLayer.$$p = markDep(DependencyProperty, PropertyMetadata, DataAnnotationSliceLayer, 'raisePropertyChanged', ['AnnotationBadgeBackgroundMemberPath:ag9:ahq', [2, null], 'AnnotationBadgeEnabledMemberPath:ahc:ahr', [2, null], 'AnnotationBadgeImageMemberPath:ahf:ahs', [2, null], 'AnnotationBadgeOutlineMemberPath:ahi:aht', [2, null], 'AnnotationLabelMemberPath:ahl:ahu', [2, null], 'AnnotationValueMemberPath:aho:ahv', [2, null]]); return DataAnnotationSliceLayer; }(DataAnnotationShapeLayer)); export { DataAnnotationSliceLayer };