igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
155 lines (154 loc) • 5.52 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 { 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_f0 = function () {
return true;
};
PolarSplineSeries.prototype.ct = function () {
return new PolarSplineSeriesView(this);
};
PolarSplineSeries.prototype.q1 = function (a) {
_super.prototype.q1.call(this, a);
this.acw = a;
};
PolarSplineSeries.prototype.ra = function (a, b, c, d) {
_super.prototype.ra.call(this, a, b, c, d);
switch (b) {
case PolarSplineSeries.$$p[0]:
this.rs(false);
break;
}
};
PolarSplineSeries.prototype.acu = function (a) {
var b = a;
b.de();
};
PolarSplineSeries.prototype.acv = function (a, b) {
this.acu(b);
var c = b;
c.df(a.n, this.acx);
this.y7.az(this, this.zz(), runOn(this, this.yp));
var d = false;
var e = this.y7.b;
if (e != null) {
d = true;
}
if (d) {
this.abe(-1, this.zl.count, b.r);
}
this.y7.ad(b.dh, true, false, true, false);
};
PolarSplineSeries.$t = markType(PolarSplineSeries, 'PolarSplineSeries', PolarLineSeriesBase.$);
PolarSplineSeries.$$p = markDep(DependencyProperty, PropertyMetadata, PolarSplineSeries, 'raisePropertyChanged', ['Stiffness:acx:acz', [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.dd = null;
_this.dh = ((function () {
var $ret = new Path();
$ret.an = new PathGeometry();
return $ret;
})());
_this.dg = ((function () {
var $ret = new Path();
$ret.an = new PathGeometry();
return $ret;
})());
_this.dd = a;
return _this;
}
PolarSplineSeriesView.prototype.ax = function () {
_super.prototype.ax.call(this);
if (!this.r) {
this.b8.xc = Defaults.e;
}
var a = new PathGeometry();
a.c.add(((function () {
var $ret = new PathFigure();
return $ret;
})()));
this.dh.an = a;
};
PolarSplineSeriesView.prototype.de = function () {
Extensions.e(this.dh.an);
Extensions.e(this.dg.an);
this.av();
};
PolarSplineSeriesView.prototype.df = function (a, b) {
this.dh.an.c = Numeric.h(a.count, function (c) { return a._inner[c].x; }, function (c) { return a._inner[c].y; }, b);
this.av();
};
PolarSplineSeriesView.prototype.bh = function () {
_super.prototype.bh.call(this);
};
PolarSplineSeriesView.prototype.bi = function () {
_super.prototype.bi.call(this);
var a = this.bv();
this.dg.an = this.dh.an;
this.dg._stroke = a;
this.dg.ad = this.f.ie + 3;
};
PolarSplineSeriesView.prototype.bc = function (a, b) {
_super.prototype.bc.call(this, a, b);
if (a.d) {
if (b) {
a.t(this.dg);
}
else {
a.t(this.dh);
}
}
};
PolarSplineSeriesView.prototype.aq = function (a) {
_super.prototype.aq.call(this, a);
this.f.bc.exportPathData(a, this.dh, "polarShape", ["Main"]);
};
PolarSplineSeriesView.prototype.ai = function () {
var a = new Color();
a.colorString = "rgba(95,95,95,0.5)";
this.f.v3 = a;
this.f.jm = 3;
this.f.jn = 1;
this.f.jo = 4;
this.f.hc = false;
};
PolarSplineSeriesView.$t = markType(PolarSplineSeriesView, 'PolarSplineSeriesView', PolarLineSeriesBaseView.$);
return PolarSplineSeriesView;
}(PolarLineSeriesBaseView));
export { PolarSplineSeriesView };