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.afk = null; _this.afj = null; _this.ab = DataAnnotationSliceLayer.$; return _this; } DataAnnotationSliceLayer.prototype.bk = function () { return new DataAnnotationSliceLayer(); }; DataAnnotationSliceLayer.prototype.get_acu = function () { return false; }; DataAnnotationSliceLayer.prototype.aef = function (a) { var _this = this; if (!this.acn(a)) { return; } var b = this.acx._inner[a]; b.c = new List$1(DataAnnotationInfo.$, 0); b.b = new List$1(DataAnnotationInfo.$, 0); b.centerLabelX = this.adj(a, this.afl); b.centerLabelY = this.adj(a, this.afl); var c = this.ac2(a, this.afm); if (this.acm) { 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.acm ? _this.aae : 6; $ret.b = !_this.acm ? _this.aae : 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.rc = function (a, b, c, d) { _super.prototype.rc.call(this, a, b, c, d); switch (b) { case "AnnotationValueColumn": case "AnnotationLabelColumn": this.abe(); break; case DataAnnotationSliceLayer.$$p[1]: if (this.dp != null) { this.dp.deregisterColumn(this.afm); this.afm = this.dl(this.afr); } break; case DataAnnotationSliceLayer.$$p[0]: if (this.dp != null) { this.dp.deregisterColumn(this.afl); this.afl = this.dn(this.afo); } break; } }; DataAnnotationSliceLayer.prototype.aeh = function (a, b) { _super.prototype.aeh.call(this, a, b); if (typeCast(IFastItemsSource_$type, a) != null) { a.deregisterColumn(this.afl); a.deregisterColumn(this.afm); this.afl = null; this.afm = null; } if (typeCast(IFastItemsSource_$type, b) != null) { this.afm = this.dl(this.afr); this.afl = this.dn(this.afo); } }; Object.defineProperty(DataAnnotationSliceLayer.prototype, "afm", { get: function () { return this.afk; }, set: function (a) { if (this.afk != a) { var b = this.afk; this.afk = a; this.raisePropertyChanged("AnnotationValueColumn", b, this.afk); } }, enumerable: false, configurable: true }); Object.defineProperty(DataAnnotationSliceLayer.prototype, "afl", { get: function () { return this.afj; }, set: function (a) { if (this.afj != a) { var b = this.afj; this.afj = a; this.raisePropertyChanged("AnnotationLabelColumn", b, this.afj); } }, enumerable: false, configurable: true }); DataAnnotationSliceLayer.$t = markType(DataAnnotationSliceLayer, 'DataAnnotationSliceLayer', DataAnnotationShapeLayer.$); DataAnnotationSliceLayer.$$p = markDep(DependencyProperty, PropertyMetadata, DataAnnotationSliceLayer, 'raisePropertyChanged', ['AnnotationLabelMemberPath:afo:aft', [2, null], 'AnnotationValueMemberPath:afr:afu', [2, null]]); return DataAnnotationSliceLayer; }(DataAnnotationShapeLayer)); export { DataAnnotationSliceLayer };