UNPKG

igniteui-react-charts

Version:

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

70 lines (69 loc) 3.05 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 { RangeCategoryFramePreparer } from "./RangeCategoryFramePreparer"; import { ISupportsMarkers_$type } from "./ISupportsMarkers"; import { IProvidesViewport_$type } from "./IProvidesViewport"; import { ISupportsErrorBars_$type } from "./ISupportsErrorBars"; import { IBucketizer_$type } from "./IBucketizer"; import { typeCast, Point_$type, markType } from "igniteui-react-core"; import { isNaN_ } from "igniteui-react-core"; /** * @hidden */ var VerticalRangeCategoryFramePreparer = /** @class */ /*@__PURE__*/ (function (_super) { __extends(VerticalRangeCategoryFramePreparer, _super); function VerticalRangeCategoryFramePreparer(a) { var _rest = []; for (var _i = 1; _i < arguments.length; _i++) { _rest[_i - 1] = arguments[_i]; } var _this = this; a = (a == void 0) ? 0 : a; switch (a) { case 0: { var c = _rest[0]; var d = [c, typeCast(ISupportsMarkers_$type, c), typeCast(IProvidesViewport_$type, c), typeCast(ISupportsErrorBars_$type, c), typeCast(IBucketizer_$type, c)]; { var f = d[0]; var g = d[1]; var h = d[2]; var i = d[3]; var j = d[4]; _this = _super.call(this, 1, f, g, h, i, j) || this; } } break; case 1: { var c = _rest[0]; var d = _rest[1]; var e = _rest[2]; var f = _rest[3]; var g = _rest[4]; _this = _super.call(this, 1, c, d, e, f, g) || this; } break; } return _this; } VerticalRangeCategoryFramePreparer.prototype.l = function (a, b, c, d, e, f) { var g = b[0]; var h = b[1]; var i = b[2]; if (!isNaN_(g) && !isNaN_(h) && !isNaN_(i)) { a.s.add({ $type: Point_$type, x: (h + i) / 2, y: g }); this.c.updateMarkerTemplate(e, d, f); return true; } return false; }; VerticalRangeCategoryFramePreparer.$t = markType(VerticalRangeCategoryFramePreparer, 'VerticalRangeCategoryFramePreparer', RangeCategoryFramePreparer.$); return VerticalRangeCategoryFramePreparer; }(RangeCategoryFramePreparer)); export { VerticalRangeCategoryFramePreparer };