UNPKG

igniteui-react-charts

Version:

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

152 lines (151 loc) 5.82 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"; /** * @hidden */ var DataAnnotationSliceLayer = /** @class */ /*@__PURE__*/ (function (_super) { __extends(DataAnnotationSliceLayer, _super); function DataAnnotationSliceLayer() { var _this = _super.call(this) || this; _this.afq = null; _this.afp = null; _this.ab = DataAnnotationSliceLayer.$; return _this; } DataAnnotationSliceLayer.prototype.bk = function () { return new DataAnnotationSliceLayer(); }; DataAnnotationSliceLayer.prototype.get_ac0 = function () { return false; }; DataAnnotationSliceLayer.prototype.ael = function (a) { var _this = this; if (!this.act(a)) { return; } var b = this.ac3._inner[a]; b.c = new List$1(DataAnnotationInfo.$, 0); b.b = new List$1(DataAnnotationInfo.$, 0); b.centerLabelX = this.adp(a, this.afr); b.centerLabelY = this.adp(a, this.afr); var c = this.ac8(a, this.afs); if (this.acs) { b.shapeStartX = c; b.shapeStartY = Number.NEGATIVE_INFINITY; b.shapeEndX = c; b.shapeEndY = Number.POSITIVE_INFINITY; b.shapeCenterX = c; b.shapeCenterY = 0; } else { b.shapeStartX = Number.NEGATIVE_INFINITY; b.shapeStartY = c; b.shapeEndX = Number.POSITIVE_INFINITY; b.shapeEndY = c; b.shapeCenterX = 0; b.shapeCenterY = c; } b.b.add(((function () { var $ret = new DataAnnotationInfo(); $ret.a = _this.acs ? _this.aak : 6; $ret.b = !_this.acs ? _this.aak : 6; $ret.dataValueX = c; $ret.dataValueY = c; $ret.dataLabelX = b.centerLabelX; $ret.dataLabelY = b.centerLabelY; $ret.j = b.z.x; $ret.k = b.z.y; return $ret; })())); b.c.add(((function () { var $ret = new DataAnnotationInfo(); $ret.j = b.ab.x; $ret.k = b.ab.y; return $ret; })())); b.c.add(((function () { var $ret = new DataAnnotationInfo(); $ret.j = b.aa.x; $ret.k = b.aa.y; return $ret; })())); }; DataAnnotationSliceLayer.prototype.rh = function (a, b, c, d) { _super.prototype.rh.call(this, a, b, c, d); switch (b) { case "AnnotationValueColumn": case "AnnotationLabelColumn": this.abk(); break; case DataAnnotationSliceLayer.$$p[1]: if (this.dp != null) { this.dp.deregisterColumn(this.afs); this.afs = this.dl(this.afx); } break; case DataAnnotationSliceLayer.$$p[0]: if (this.dp != null) { this.dp.deregisterColumn(this.afr); this.afr = this.dn(this.afu); } break; } }; DataAnnotationSliceLayer.prototype.aen = function (a, b) { _super.prototype.aen.call(this, a, b); if (typeCast(IFastItemsSource_$type, a) != null) { a.deregisterColumn(this.afr); a.deregisterColumn(this.afs); this.afr = null; this.afs = null; } if (typeCast(IFastItemsSource_$type, b) != null) { this.afs = this.dl(this.afx); this.afr = this.dn(this.afu); } }; Object.defineProperty(DataAnnotationSliceLayer.prototype, "afs", { get: function () { return this.afq; }, set: function (a) { if (this.afq != a) { var b = this.afq; this.afq = a; this.raisePropertyChanged("AnnotationValueColumn", b, this.afq); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationSliceLayer.prototype, "afr", { get: function () { return this.afp; }, set: function (a) { if (this.afp != a) { var b = this.afp; this.afp = a; this.raisePropertyChanged("AnnotationLabelColumn", b, this.afp); } }, enumerable: false, configurable: true }); DataAnnotationSliceLayer.$t = markType(DataAnnotationSliceLayer, 'DataAnnotationSliceLayer', DataAnnotationShapeLayer.$); DataAnnotationSliceLayer.$$p = markDep(DependencyProperty, PropertyMetadata, DataAnnotationSliceLayer, 'raisePropertyChanged', ['AnnotationLabelMemberPath:afu:afz', [2, null], 'AnnotationValueMemberPath:afx:af0', [2, null]]); return DataAnnotationSliceLayer; }(DataAnnotationShapeLayer)); export { DataAnnotationSliceLayer };