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.ag2 = null; _this.ag1 = null; _this.agy = null; _this.agx = null; _this.ag0 = null; _this.agz = null; _this.ab = DataAnnotationSliceLayer.$; return _this; } DataAnnotationSliceLayer.prototype.bk = function () { return new DataAnnotationSliceLayer(); }; DataAnnotationSliceLayer.prototype.get_ad3 = function () { return false; }; DataAnnotationSliceLayer.prototype.aem = function (a) { if (isNaN_(this.aec)) { return a.dm ? 90 : 0; } return this.aec; }; DataAnnotationSliceLayer.prototype.afq = function (a) { var _this = this; if (!this.adw(a)) { return; } var b = this.ad6._inner[a]; b.c = new List$1(DataAnnotationInfo.$, 0); b.b = new List$1(DataAnnotationInfo.$, 0); b.centerLabelX = this.aeu(a, this.ag7); b.centerLabelY = this.aeu(a, this.ag7); var c = this.adv ? this.adf : this.adg; var d = this.aeb(a, this.ag8, c); if (this.adv) { 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.adv ? _this.aax : 6; $ret.b = !_this.adv ? _this.aax : 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.rr = function (a, b, c, d) { _super.prototype.rr.call(this, a, b, c, d); switch (b) { case "AnnotationValueColumn": case "AnnotationLabelColumn": this.acb(); break; case DataAnnotationSliceLayer.$$p[5]: if (this.dp != null) { this.dp.deregisterColumn(this.ag8); this.ag8 = this.dl(this.ahp); } break; case DataAnnotationSliceLayer.$$p[4]: if (this.dp != null) { this.dp.deregisterColumn(this.ag7); this.ag7 = this.dn(this.ahm); } break; case DataAnnotationSliceLayer.$$p[0]: this.afo(this.ag3); this.ag3 = this.dn(this.aha); break; case DataAnnotationSliceLayer.$$p[3]: this.afo(this.ag6); this.ag6 = this.dn(this.ahj); break; case DataAnnotationSliceLayer.$$p[1]: this.afo(this.ag4); this.ag4 = this.dn(this.ahd); break; case DataAnnotationSliceLayer.$$p[2]: this.afo(this.ag5); this.ag5 = this.dn(this.ahg); break; case "AnnotationBadgeBackgroundColumn": case "AnnotationBadgeOutlineColumn": case "AnnotationBadgeEnabledColumn": case "AnnotationBadgeImageColumn": this.acb(); break; } }; DataAnnotationSliceLayer.prototype.afs = function (a, b) { _super.prototype.afs.call(this, a, b); if (typeCast(IFastItemsSource_$type, a) != null) { a.deregisterColumn(this.ag7); a.deregisterColumn(this.ag8); a.deregisterColumn(this.ag3); a.deregisterColumn(this.ag6); a.deregisterColumn(this.ag4); a.deregisterColumn(this.ag5); this.ag7 = null; this.ag8 = null; this.ag3 = null; this.ag6 = null; this.ag4 = null; this.ag5 = null; } if (typeCast(IFastItemsSource_$type, b) != null) { this.ag8 = this.dl(this.ahp); this.ag7 = this.dn(this.ahm); this.ag3 = this.dn(this.aha); this.ag6 = this.dn(this.ahj); this.ag4 = this.dn(this.ahd); this.ag5 = this.dn(this.ahg); } }; DataAnnotationSliceLayer.prototype.agm = function (a, b, c, d) { if (b) { var e = this.agn(a, this.ag6); if (e == null) { e = this.ago(this.ac7, d); } return e; } else { var f = this.agn(a, this.ag3); if (f == null) { f = this.ago(this.ac6, d); } return f; } }; DataAnnotationSliceLayer.prototype.adu = function (a, b) { if (this.ag4 == null || this.ag4.count <= a) { return this.aa1; } var c = this.ag4.item(a); return c != null ? c : this.aa1; }; DataAnnotationSliceLayer.prototype.aet = function (a, b) { var c = this.aeu(a, this.ag5); return c != null ? c : this.abo; }; 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("AnnotationValueColumn", b, this.ag2); } }, 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("AnnotationLabelColumn", b, this.ag1); } }, 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("AnnotationBadgeEnabledColumn", b, this.agy); } }, 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("AnnotationBadgeBackgroundColumn", b, this.agx); } }, 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("AnnotationBadgeOutlineColumn", b, this.ag0); } }, 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("AnnotationBadgeImageColumn", b, this.agz); } }, enumerable: false, configurable: true }); DataAnnotationSliceLayer.$t = markType(DataAnnotationSliceLayer, 'DataAnnotationSliceLayer', DataAnnotationShapeLayer.$); DataAnnotationSliceLayer.$$p = markDep(DependencyProperty, PropertyMetadata, DataAnnotationSliceLayer, 'raisePropertyChanged', ['AnnotationBadgeBackgroundMemberPath:aha:ahr', [2, null], 'AnnotationBadgeEnabledMemberPath:ahd:ahs', [2, null], 'AnnotationBadgeImageMemberPath:ahg:aht', [2, null], 'AnnotationBadgeOutlineMemberPath:ahj:ahu', [2, null], 'AnnotationLabelMemberPath:ahm:ahv', [2, null], 'AnnotationValueMemberPath:ahp:ahw', [2, null]]); return DataAnnotationSliceLayer; }(DataAnnotationShapeLayer)); export { DataAnnotationSliceLayer };