igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
196 lines (195 loc) • 7.15 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 { Extensions } from "igniteui-react-core";
import { Numeric } from "igniteui-react-core";
import { Color } from "igniteui-react-core";
/**
* @hidden
*/
var PolarSplineAreaSeries = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(PolarSplineAreaSeries, _super);
function PolarSplineAreaSeries() {
var _this = _super.call(this) || this;
_this.ab = PolarSplineAreaSeries.$;
return _this;
}
PolarSplineAreaSeries.prototype.bk = function () {
return new PolarSplineAreaSeries();
};
PolarSplineAreaSeries.prototype.z0 = function () {
return false;
};
PolarSplineAreaSeries.prototype.get_ev = function () {
return true;
};
PolarSplineAreaSeries.prototype.get_f0 = function () {
return true;
};
PolarSplineAreaSeries.prototype.ct = function () {
return new PolarSplineAreaSeriesView(this);
};
PolarSplineAreaSeries.prototype.q1 = function (a) {
_super.prototype.q1.call(this, a);
this.acw = a;
};
PolarSplineAreaSeries.prototype.acu = function (a) {
var b = a;
b.de();
};
PolarSplineAreaSeries.prototype.acv = function (a, b) {
this.acu(b);
if (a.n.count < 1) {
return;
}
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);
}
var f = c.dl;
var g = c.dk;
this.y7.ad(f, true, false, true, true);
this.y7.ad(g, false, true, false, false);
g._opacity = this.y7.j * this.h9;
};
PolarSplineAreaSeries.prototype.get_acr = function () {
return true;
};
PolarSplineAreaSeries.prototype.ra = function (a, b, c, d) {
_super.prototype.ra.call(this, a, b, c, d);
switch (b) {
case PolarSplineAreaSeries.$$p[0]:
this.rs(false);
break;
}
};
PolarSplineAreaSeries.$t = markType(PolarSplineAreaSeries, 'PolarSplineAreaSeries', PolarLineSeriesBase.$);
PolarSplineAreaSeries.$$p = markDep(DependencyProperty, PropertyMetadata, PolarSplineAreaSeries, 'raisePropertyChanged', ['Stiffness:acx:acz', [1, 0.5]]);
return PolarSplineAreaSeries;
}(PolarLineSeriesBase));
export { PolarSplineAreaSeries };
/**
* @hidden
*/
var PolarSplineAreaSeriesView = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(PolarSplineAreaSeriesView, _super);
function PolarSplineAreaSeriesView(a) {
var _this = _super.call(this, a) || this;
_this.dd = null;
_this.dj = ((function () {
var $ret = new Path();
$ret.an = new PathGeometry();
return $ret;
})());
_this.di = ((function () {
var $ret = new Path();
$ret.an = new PathGeometry();
return $ret;
})());
_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;
}
PolarSplineAreaSeriesView.prototype.ax = function () {
_super.prototype.ax.call(this);
if (!this.r) {
this.dd.xc = Defaults.e;
}
};
Object.defineProperty(PolarSplineAreaSeriesView.prototype, "dk", {
get: function () {
return this.di;
},
enumerable: false,
configurable: true
});
Object.defineProperty(PolarSplineAreaSeriesView.prototype, "dl", {
get: function () {
return this.dj;
},
enumerable: false,
configurable: true
});
PolarSplineAreaSeriesView.prototype.de = function () {
Extensions.e(this.di.an);
Extensions.e(this.dj.an);
Extensions.e(this.dg.an);
Extensions.e(this.dh.an);
this.av();
};
PolarSplineAreaSeriesView.prototype.df = function (a, b) {
this.dj.an.c = Numeric.h(a.count + 1, function (c) { return c < a.count ? a._inner[c].x : a._inner[c - a.count].x; }, function (c) { return c < a.count ? a._inner[c].y : a._inner[c - a.count].y; }, b);
this.di.an.c = Numeric.h(a.count + 1, function (c) { return c < a.count ? a._inner[c].x : a._inner[c - a.count].x; }, function (c) { return c < a.count ? a._inner[c].y : a._inner[c - a.count].y; }, b);
this.av();
};
PolarSplineAreaSeriesView.prototype.bh = function () {
_super.prototype.bh.call(this);
};
PolarSplineAreaSeriesView.prototype.bi = function () {
_super.prototype.bi.call(this);
var a = this.bv();
this.dg.an = this.di.an;
this.dh.an = this.dj.an;
this.dg._fill = a;
this.dg._opacity = 1;
this.dh._stroke = a;
this.dh.ad = this.f.ie + 3;
};
PolarSplineAreaSeriesView.prototype.bc = function (a, b) {
_super.prototype.bc.call(this, a, b);
if (a.d) {
if (b) {
a.t(this.dg);
a.t(this.dh);
}
else {
a.t(this.di);
a.t(this.dj);
}
}
};
PolarSplineAreaSeriesView.prototype.aq = function (a) {
_super.prototype.aq.call(this, a);
this.f.bc.exportPathData(a, this.dj, "polarShape", ["Main"]);
this.f.bc.exportPathData(a, this.di, "fillShape", ["Fill"]);
};
PolarSplineAreaSeriesView.prototype.ai = function () {
var a = new Color();
a.colorString = "rgba(95,95,95,0.5)";
this.f.v3 = a;
this.f.jm = 5;
this.f.jn = 5;
this.f.jo = 5;
};
PolarSplineAreaSeriesView.$t = markType(PolarSplineAreaSeriesView, 'PolarSplineAreaSeriesView', PolarLineSeriesBaseView.$);
return PolarSplineAreaSeriesView;
}(PolarLineSeriesBaseView));
export { PolarSplineAreaSeriesView };