igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
63 lines (62 loc) • 2.81 kB
JavaScript
/*
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 { 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
*/
export let VerticalRangeCategoryFramePreparer = /*@__PURE__*/ (() => {
class VerticalRangeCategoryFramePreparer extends RangeCategoryFramePreparer {
constructor(a, ..._rest) {
a = (a == void 0) ? 0 : a;
switch (a) {
case 0:
{
let c = _rest[0];
let d = [c, typeCast(ISupportsMarkers_$type, c), typeCast(IProvidesViewport_$type, c), typeCast(ISupportsErrorBars_$type, c), typeCast(IBucketizer_$type, c)];
{
let f = d[0];
let g = d[1];
let h = d[2];
let i = d[3];
let j = d[4];
super(1, f, g, h, i, j);
}
}
break;
case 1:
{
let c = _rest[0];
let d = _rest[1];
let e = _rest[2];
let f = _rest[3];
let g = _rest[4];
super(1, c, d, e, f, g);
}
break;
}
}
l(a, b, c, d, e, f) {
let g = b[0];
let h = b[1];
let 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 = /*@__PURE__*/ markType(VerticalRangeCategoryFramePreparer, 'VerticalRangeCategoryFramePreparer', RangeCategoryFramePreparer.$);
return VerticalRangeCategoryFramePreparer;
})();