UNPKG

igniteui-webcomponents-charts

Version:

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

136 lines (135 loc) 5.17 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 { FinancialSeries } from "./FinancialSeries"; import { DependencyProperty } from "igniteui-webcomponents-core"; import { ISortingAxis_$type } from "./ISortingAxis"; import { typeCast, markType, markDep } from "igniteui-webcomponents-core"; import { Rect } from "igniteui-webcomponents-core"; import { ScalerParams } from "./ScalerParams"; import { AxisRange } from "./AxisRange"; import { PropertyMetadata } from "igniteui-webcomponents-core"; import { isNaN_ } from "igniteui-webcomponents-core"; /** * @hidden */ var FinancialOverlay = /** @class */ /*@__PURE__*/ (function (_super) { __extends(FinancialOverlay, _super); function FinancialOverlay() { var _this = _super.call(this) || this; _this.aa5 = false; _this.aa5 = false; return _this; } FinancialOverlay.prototype.get_fa = function () { return true; }; FinancialOverlay.prototype.pd = function (a, b, c, d) { _super.prototype.pd.call(this, a, b, c, d); if (this.xb != null && typeCast(ISortingAxis_$type, this.xb) !== null) { this.xb.i$i(); } this.xs.cd.e(this.ie); this.aa6(); if (this.xu != null) { this.xu.c1(); } this.ru(true); }; FinancialOverlay.prototype.get_he = function () { return true; }; FinancialOverlay.prototype.rc = function (a, b, c, d) { switch (b) { case "FastItemsSource": this.aa5 = false; break; case FinancialOverlay.$$p[0]: this.aa5 = false; this.ru(false); this.qn(); break; case "XAxis": this.aa5 = false; break; } _super.prototype.rc.call(this, a, b, c, d); }; FinancialOverlay.prototype.b3 = function () { if (this.b4 == 0) { return 1; } else { return _super.prototype.b3.call(this); } }; FinancialOverlay.prototype.gx = function (a, b) { if (this.gw(a, b)) { return true; } return false; }; FinancialOverlay.prototype.ac = function () { _super.prototype.ac.call(this); this.ru(false); }; FinancialOverlay.prototype.ge = function (a) { var b = this.dp != null ? this.dp.indexOf(a) : -1; var c = this.cw.ca; c = c.copy(); var d = this.cw.b9; var e = new Rect(0, 0, 0, 1, 1); var f = this.wq(this.cw); var g = new ScalerParams(0, e, e, this.xb.ch, f); var h = new ScalerParams(0, e, e, this.xu.ch, f); h.b = this.iz(); if (b >= 0 && Rect.l_op_Inequality(c, null) && Rect.l_op_Inequality(d, null)) { if (this.xb != null) { var i = this.xb.el(b, g); if (i < c.left + 0.1 * c.width) { i = i + 0.4 * c.width; } if (i > c.right - 0.1 * c.width) { i = i - 0.4 * c.width; } c.x = i - 0.5 * c.width; } if (this.xu != null && this.x6 != null && this.x5 != null && b < this.x6.count && b < this.x5.count) { var j = this.xu.el(this.x6.item(b), h); var k = this.xu.el(this.x5.item(b), h); if (!isNaN_(j) && !isNaN_(k)) { var l = Math.abs(j - k); if (c.height < l) { c.height = l; c.y = Math.min(j, k); } else { if (j < c.top + 0.1 * c.height) { j = j + 0.4 * c.height; } if (j > c.bottom - 0.1 * c.height) { j = j - 0.4 * c.height; } c.y = j - 0.5 * c.height; } } } this.c4.au(this.dc, c, true); } return b >= 0; }; FinancialOverlay.prototype.ay = function (a) { if (a != null && a == this.xu && this.x6 != null && this.x5 != null) { return new AxisRange(this.x6.minimum, this.x5.maximum); } return null; }; FinancialOverlay.$t = markType(FinancialOverlay, 'FinancialOverlay', FinancialSeries.$); FinancialOverlay.$$p = markDep(DependencyProperty, PropertyMetadata, FinancialOverlay, 'raisePropertyChanged', ['IgnoreFirst:aa7:aa9', [1, 0]]); return FinancialOverlay; }(FinancialSeries)); export { FinancialOverlay };