igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
201 lines (200 loc) • 6.77 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 { UnknownValuePlotting_$type } from "igniteui-react-core";
import { DependencyProperty } from "igniteui-react-core";
import { runOn, enumGetBox, markType, markDep, Point_$type } from "igniteui-react-core";
import { Path } from "igniteui-react-core";
import { CoreGeometryUtil } from "igniteui-react-core";
import { List$1 } from "igniteui-react-core";
import { PropertyMetadata } from "igniteui-react-core";
import { PolarLineSeriesBaseView } from "./PolarLineSeriesBaseView";
import { Defaults } from "./Defaults";
import { Color } from "igniteui-react-core";
/**
* @hidden
*/
var PolarAreaSeries = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(PolarAreaSeries, _super);
function PolarAreaSeries() {
var _this = _super.call(this) || this;
_this.ab = PolarAreaSeries.$;
return _this;
}
PolarAreaSeries.prototype.bk = function () {
return new PolarAreaSeries();
};
PolarAreaSeries.prototype.get_ex = function () {
return true;
};
PolarAreaSeries.prototype.ct = function () {
return new PolarAreaSeriesView(this);
};
PolarAreaSeries.prototype.aaj = function () {
return false;
};
PolarAreaSeries.prototype.rh = function (a) {
_super.prototype.rh.call(this, a);
this.adf = a;
};
PolarAreaSeries.prototype.add = function (a) {
var b = a;
b.dn();
};
PolarAreaSeries.prototype.g2 = function (a, b) {
if (this.x2(a, b)) {
return true;
}
if (this.dp.count <= this.aat) {
if (this.adi(a, b)) {
return true;
}
if (this.adh(a, b)) {
return true;
}
}
return false;
};
PolarAreaSeries.prototype.adi = function (a, b) {
var c = this.cw;
var d = c.dv;
return this.g3(a, b, d.an);
};
PolarAreaSeries.prototype.adh = function (a, b) {
var c = this.cw;
var d = c.dv;
return CoreGeometryUtil.g(a, d);
};
PolarAreaSeries.prototype.ade = function (a, b) {
if (a.q.count > 0) {
var c = a.q._inner[0];
var d = a.q._inner[a.q.count - 1];
var e = c.x == d.x && c.y == d.y;
if (!e) {
a.q.add(a.q._inner[0]);
}
}
var f = b;
f.dp(a.q, this.ik);
this.zq.az(this, this.aai(), runOn(this, this.y8));
var g = false;
var h = this.zq.b;
if (h != null) {
g = true;
}
if (g) {
this.abx(-1, this.z4.count, b.t);
}
var i = f.dv;
var j = f.du;
this.zq.ad(i, true, false, true, true);
this.zq.ad(j, false, true, false, false);
j._opacity = this.zq.j * this.ig;
};
PolarAreaSeries.prototype.get_ada = function () {
return true;
};
PolarAreaSeries.prototype.ac5 = function () {
return this.adg;
};
PolarAreaSeries.$t = markType(PolarAreaSeries, 'PolarAreaSeries', PolarLineSeriesBase.$);
PolarAreaSeries.$$p = markDep(DependencyProperty, PropertyMetadata, PolarAreaSeries, 'raisePropertyChanged', ['UnknownValuePlotting:adg:adk', [UnknownValuePlotting_$type, enumGetBox(UnknownValuePlotting_$type, 1)]]);
return PolarAreaSeries;
}(PolarLineSeriesBase));
export { PolarAreaSeries };
/**
* @hidden
*/
var PolarAreaSeriesView = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(PolarAreaSeriesView, _super);
function PolarAreaSeriesView(a) {
var _this = _super.call(this, a) || this;
_this.dm = null;
_this.dt = new Path();
_this.ds = new Path();
_this.dr = new Path();
_this.dq = new Path();
_this.dm = a;
return _this;
}
PolarAreaSeriesView.prototype.a4 = function () {
_super.prototype.a4.call(this);
if (!this.t) {
this.dm.xv = Defaults.e;
}
};
Object.defineProperty(PolarAreaSeriesView.prototype, "du", {
get: function () {
return this.ds;
},
enumerable: false,
configurable: true
});
Object.defineProperty(PolarAreaSeriesView.prototype, "dv", {
get: function () {
return this.dt;
},
enumerable: false,
configurable: true
});
PolarAreaSeriesView.prototype.dn = function () {
this.ds.an = null;
this.dt.an = null;
this.dq.an = null;
this.dr.an = null;
this.a2();
};
PolarAreaSeriesView.prototype.dp = function (a, b) {
var c = new List$1(Point_$type, 1, a);
this.dm.ac2.d(this.dt, c, b);
this.dm.ac2.d(this.ds, c, b);
this.a2();
};
PolarAreaSeriesView.prototype.bp = function () {
_super.prototype.bp.call(this);
};
PolarAreaSeriesView.prototype.bq = function () {
_super.prototype.bq.call(this);
var a = this.b3();
this.dr.an = this.dt.an;
this.dq.an = this.ds.an;
this.dr._stroke = a;
this.dr.ad = this.f.il + 3;
this.dq._fill = a;
this.dq._opacity = 1;
};
PolarAreaSeriesView.prototype.bj = function (a, b) {
_super.prototype.bj.call(this, a, b);
if (a.d) {
if (b) {
a.t(this.dq);
a.t(this.dr);
}
else {
a.t(this.ds);
a.t(this.dt);
}
}
};
PolarAreaSeriesView.prototype.ax = function (a) {
_super.prototype.ax.call(this, a);
this.f.bc.exportPathData(a, this.dt, "polarShape", ["Main"]);
this.f.bc.exportPathData(a, this.ds, "fillShape", ["Fill"]);
};
PolarAreaSeriesView.prototype.an = function () {
var a = new Color();
a.colorString = "rgba(95,95,95,0.5)";
this.f.wl = a;
this.f.jv = 5;
this.f.jw = 5;
this.f.jx = 5;
};
PolarAreaSeriesView.$t = markType(PolarAreaSeriesView, 'PolarAreaSeriesView', PolarLineSeriesBaseView.$);
return PolarAreaSeriesView;
}(PolarLineSeriesBaseView));
export { PolarAreaSeriesView };