igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
169 lines (168 loc) • 5.93 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 { PolarLineSeriesBase } from "./PolarLineSeriesBase";
import { DependencyProperty } from "igniteui-react-core";
import { runOn, markType, markDep } from "igniteui-react-core";
import { Path } from "igniteui-react-core";
import { CoreGeometryUtil } from "igniteui-react-core";
import { PropertyMetadata } from "igniteui-react-core";
import { PolarLineSeriesBaseView } from "./PolarLineSeriesBaseView";
import { PathGeometry } from "igniteui-react-core";
import { Defaults } from "./Defaults";
import { PathFigure } from "igniteui-react-core";
import { Extensions } from "igniteui-react-core";
import { Numeric } from "igniteui-react-core";
import { Color } from "igniteui-react-core";
/**
* @hidden
*/
var PolarSplineSeries = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(PolarSplineSeries, _super);
function PolarSplineSeries() {
var _this = _super.call(this) || this;
_this.ab = PolarSplineSeries.$;
return _this;
}
PolarSplineSeries.prototype.bk = function () {
return new PolarSplineSeries();
};
PolarSplineSeries.prototype.get_f3 = function () {
return true;
};
PolarSplineSeries.prototype.ct = function () {
return new PolarSplineSeriesView(this);
};
PolarSplineSeries.prototype.rh = function (a) {
_super.prototype.rh.call(this, a);
this.adf = a;
};
PolarSplineSeries.prototype.g2 = function (a, b) {
if (this.x2(a, b)) {
return true;
}
if (this.dp.count <= this.aat) {
var c = this.cw;
var d = c.dr;
if (CoreGeometryUtil.j(a, d, this.i1(b))) {
return true;
}
}
return false;
};
PolarSplineSeries.prototype.rq = function (a, b, c, d) {
_super.prototype.rq.call(this, a, b, c, d);
switch (b) {
case PolarSplineSeries.$$p[0]:
this.r8(false);
break;
}
};
PolarSplineSeries.prototype.add = function (a) {
var b = a;
b.dn();
};
PolarSplineSeries.prototype.ade = function (a, b) {
this.add(b);
var c = b;
c.dp(a.q, this.adg);
this.zq.az(this, this.aai(), runOn(this, this.y8));
var d = false;
var e = this.zq.b;
if (e != null) {
d = true;
}
if (d) {
this.abx(-1, this.z4.count, b.t);
}
this.zq.ad(b.dr, true, false, true, false);
};
PolarSplineSeries.$t = markType(PolarSplineSeries, 'PolarSplineSeries', PolarLineSeriesBase.$);
PolarSplineSeries.$$p = markDep(DependencyProperty, PropertyMetadata, PolarSplineSeries, 'raisePropertyChanged', ['Stiffness:adg:adi', [1, 0.5]]);
return PolarSplineSeries;
}(PolarLineSeriesBase));
export { PolarSplineSeries };
/**
* @hidden
*/
var PolarSplineSeriesView = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(PolarSplineSeriesView, _super);
function PolarSplineSeriesView(a) {
var _this = _super.call(this, a) || this;
_this.dm = null;
_this.dr = ((function () {
var $ret = new Path();
$ret.an = new PathGeometry();
return $ret;
})());
_this.dq = ((function () {
var $ret = new Path();
$ret.an = new PathGeometry();
return $ret;
})());
_this.dm = a;
return _this;
}
PolarSplineSeriesView.prototype.a4 = function () {
_super.prototype.a4.call(this);
if (!this.t) {
this.ch.xv = Defaults.e;
}
var a = new PathGeometry();
a.c.add(((function () {
var $ret = new PathFigure();
return $ret;
})()));
this.dr.an = a;
};
PolarSplineSeriesView.prototype.dn = function () {
Extensions.e(this.dr.an);
Extensions.e(this.dq.an);
this.a2();
};
PolarSplineSeriesView.prototype.dp = function (a, b) {
this.dr.an.c = Numeric.h(a.count, function (c) { return a._inner[c].x; }, function (c) { return a._inner[c].y; }, b);
this.a2();
};
PolarSplineSeriesView.prototype.bp = function () {
_super.prototype.bp.call(this);
};
PolarSplineSeriesView.prototype.bq = function () {
_super.prototype.bq.call(this);
var a = this.b3();
this.dq.an = this.dr.an;
this.dq._stroke = a;
this.dq.ad = this.f.il + 3;
};
PolarSplineSeriesView.prototype.bj = function (a, b) {
_super.prototype.bj.call(this, a, b);
if (a.d) {
if (b) {
a.t(this.dq);
}
else {
a.t(this.dr);
}
}
};
PolarSplineSeriesView.prototype.ax = function (a) {
_super.prototype.ax.call(this, a);
this.f.bc.exportPathData(a, this.dr, "polarShape", ["Main"]);
};
PolarSplineSeriesView.prototype.an = function () {
var a = new Color();
a.colorString = "rgba(95,95,95,0.5)";
this.f.wl = a;
this.f.jv = 3;
this.f.jw = 1;
this.f.jx = 4;
this.f.hi = false;
};
PolarSplineSeriesView.$t = markType(PolarSplineSeriesView, 'PolarSplineSeriesView', PolarLineSeriesBaseView.$);
return PolarSplineSeriesView;
}(PolarLineSeriesBaseView));
export { PolarSplineSeriesView };