igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
67 lines (66 loc) • 2.61 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 { __extends } from "tslib";
import { ScatterFrameBase$1 } from "./ScatterFrameBase$1";
import { List$1 } from "igniteui-react-core";
import { Point_$type, typeCast, markType } from "igniteui-react-core";
import { Frame } from "./Frame";
import { isNaN_, isInfinity } from "igniteui-react-core";
/**
* @hidden
*/
var PolarFrame = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(PolarFrame, _super);
function PolarFrame() {
var _this = _super.call(this, PolarFrame.$) || this;
_this.aa = null;
_this.z = false;
_this.ab = null;
_this.aa = new List$1(Point_$type, 0);
_this.z = true;
return _this;
}
PolarFrame.prototype.v = function (a, b, c) {
var d = typeCast(PolarFrame.$, b);
var e = typeCast(PolarFrame.$, c);
if (d == null || e == null) {
return;
}
Frame.b(this.aa, a, d.aa, e.aa);
};
PolarFrame.prototype.u = function (a, b, c, d) {
if (this.z) {
_super.prototype.u.call(this, a, b, c, d);
}
else {
_super.prototype.u.call(this, a, b, c, d);
if (c != null && d != null && (c.b.x != d.b.x || c.b.y != d.b.y)) {
var e = 1 - b;
a.b = { $type: Point_$type, x: c.b.x * e + d.b.x * b, y: c.b.y * e + d.b.y * b };
}
}
};
PolarFrame.prototype.y = function (a) {
return !isNaN_(a.x) && !isNaN_(a.y) && !isInfinity(a.x) && !isInfinity(a.y);
};
PolarFrame.prototype.x = function (a, b, c, d) {
if (this.z) {
_super.prototype.x.call(this, a, b, c, d);
}
else {
if (c != null && d != null && (c.c.x != d.c.x || c.c.y != d.c.y) && this.y(a.b)) {
a.c = this.ab(a.b);
}
else {
_super.prototype.x.call(this, a, b, c, d);
}
}
};
PolarFrame.$t = markType(PolarFrame, 'PolarFrame', ScatterFrameBase$1.$.specialize(-1)).initSelfReferences();
return PolarFrame;
}(ScatterFrameBase$1));
export { PolarFrame };