igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
231 lines (230 loc) • 8.22 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 { AnchoredRadialSeries } from "./AnchoredRadialSeries";
import { UnknownValuePlotting_$type } from "igniteui-react-core";
import { DependencyProperty } from "igniteui-react-core";
import { Array_$type, runOn, enumGetBox, markType, markDep } from "igniteui-react-core";
import { List$1 } from "igniteui-react-core";
import { Path } from "igniteui-react-core";
import { ScalerParams } from "./ScalerParams";
import { ChartSelection } from "./ChartSelection";
import { PropertyMetadata } from "igniteui-react-core";
import { AnchoredRadialSeriesView } from "./AnchoredRadialSeriesView";
import { Defaults } from "./Defaults";
import { Color } from "igniteui-react-core";
/**
* @hidden
*/
var RadialLineSeries = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(RadialLineSeries, _super);
function RadialLineSeries() {
var _this = _super.call(this) || this;
_this.ab = RadialLineSeries.$;
return _this;
}
RadialLineSeries.prototype.bk = function () {
return new RadialLineSeries();
};
RadialLineSeries.prototype.get_fk = function () {
return true;
};
RadialLineSeries.prototype.ct = function () {
return new RadialLineSeriesView(this);
};
RadialLineSeries.prototype.q1 = function (a) {
_super.prototype.q1.call(this, a);
this.adr = a;
};
RadialLineSeries.prototype.ac = function () {
_super.prototype.ac.call(this);
};
RadialLineSeries.prototype.preferredCategoryMode = function (a) {
return 0;
};
RadialLineSeries.prototype.z0 = function () {
return true;
};
RadialLineSeries.prototype.o5 = function (a, b) {
_super.prototype.o5.call(this, a, b);
var c = b;
c.da();
};
RadialLineSeries.prototype.abe = function (a, b) {
_super.prototype.abe.call(this, a, b);
var c = b.b2;
var d = b.b1;
var e = b.getEffectiveViewport();
var f = a.h;
var g = f.count;
var h = new List$1(Array_$type, 2, g);
var i = 0;
for (var j = 0; j < g; j++) {
var k = new Array(4);
h.add(k);
k[0] = this.za.d(a.h._inner[j][0], a.h._inner[j][1], c, d, e);
k[1] = this.za.e(a.h._inner[j][0], a.h._inner[j][1], c, d, e);
k[2] = this.za.d(a.h._inner[j][0], a.h._inner[j][2], c, d, e);
var l = a.h._inner[j][2];
k[3] = this.za.e(a.h._inner[j][0], l, c, d, e);
if (l > i) {
i = l;
}
}
var m = this.getEffectiveViewport1(b);
this.zi.a2(this, this.zz(), runOn(this, this.yp), this.z8(b), this.z9(b));
var n = false;
var o = this.zi.b;
if (o != null) {
n = true;
}
if (n) {
var p = new ScalerParams(0, b.b2, b.b1, this.y1.ch, m);
this.ac7(f, -1, this.aca.count, this.y1, p, b.r);
}
var q = b;
var r = q.dj;
var s = q.dk;
var t = q.di;
this.zi.ad(r, true, false, true, false);
this.zi.ad(s, true, false, true, false);
this.zi.ad(t, false, true, false, false);
t._opacity = 0.75 * this.zi.j;
q.db(g, h, false, this.ads, this.ab3(h, g - 1, b), q.c1.b, this.id);
};
RadialLineSeries.prototype.ra = function (a, b, c, d) {
_super.prototype.ra.call(this, a, b, c, d);
switch (b) {
case RadialLineSeries.$$p[0]:
this.rs(false);
this.ql();
break;
}
};
RadialLineSeries.prototype.get_acg = function () {
return true;
};
RadialLineSeries.prototype.ak = function (a, b) {
var c = new List$1(ChartSelection.$, 0);
this.p4(a, c, b);
return c.toArray();
};
RadialLineSeries.prototype.p4 = function (a, b, c) {
this.ac4(a, b, c, this.y2);
};
RadialLineSeries.$t = markType(RadialLineSeries, 'RadialLineSeries', AnchoredRadialSeries.$);
RadialLineSeries.$$p = markDep(DependencyProperty, PropertyMetadata, RadialLineSeries, 'raisePropertyChanged', ['UnknownValuePlotting:ads:adu', [UnknownValuePlotting_$type, enumGetBox(UnknownValuePlotting_$type, 1)]]);
return RadialLineSeries;
}(AnchoredRadialSeries));
export { RadialLineSeries };
/**
* @hidden
*/
var RadialLineSeriesView = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(RadialLineSeriesView, _super);
function RadialLineSeriesView(a) {
var _this = _super.call(this, a) || this;
_this.c9 = null;
_this.dg = new Path();
_this.df = new Path();
_this.dh = new Path();
_this.dd = new Path();
_this.dc = new Path();
_this.de = new Path();
_this.c9 = a;
return _this;
}
RadialLineSeriesView.prototype.ax = function () {
_super.prototype.ax.call(this);
if (!this.r) {
this.b8.xc = Defaults.e;
}
};
Object.defineProperty(RadialLineSeriesView.prototype, "dj", {
get: function () {
return this.dg;
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialLineSeriesView.prototype, "dk", {
get: function () {
return this.dh;
},
enumerable: false,
configurable: true
});
Object.defineProperty(RadialLineSeriesView.prototype, "di", {
get: function () {
return this.df;
},
enumerable: false,
configurable: true
});
RadialLineSeriesView.prototype.da = function () {
this.dg.an = null;
this.df.an = null;
this.dh.an = null;
this.dd.an = null;
this.dc.an = null;
this.de.an = null;
this.av();
};
RadialLineSeriesView.prototype.db = function (a, b, c, d, e, f, g) {
this.c5.ab5.m(this.dg, this.df, this.dh, a, b, c, d, e, f, g);
this.av();
};
RadialLineSeriesView.prototype.bh = function () {
_super.prototype.bh.call(this);
};
RadialLineSeriesView.prototype.bi = function () {
_super.prototype.bi.call(this);
var a = this.bv();
this.dc.an = this.df.an;
this.dd.an = this.dg.an;
this.de.an = this.dh.an;
this.dd._stroke = a;
this.dd.ad = this.f.ie + 3;
this.de._stroke = a;
this.de.ad = this.f.ie + 3;
this.dc._fill = a;
this.dc._opacity = 1;
};
RadialLineSeriesView.prototype.bc = function (a, b) {
_super.prototype.bc.call(this, a, b);
if (a.d) {
if (b) {
a.t(this.dc);
a.t(this.dd);
a.t(this.de);
}
else {
a.t(this.df);
a.t(this.dg);
a.t(this.dh);
}
}
};
RadialLineSeriesView.prototype.aq = function (a) {
_super.prototype.aq.call(this, a);
this.f.bc.exportPathData(a, this.dg, "lowerShape", ["Lower", "Main"]);
this.f.bc.exportPathData(a, this.dh, "upperShape", ["Upper"]);
this.f.bc.exportPathData(a, this.df, "translucentShape", ["Translucent"]);
};
RadialLineSeriesView.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;
};
RadialLineSeriesView.$t = markType(RadialLineSeriesView, 'RadialLineSeriesView', AnchoredRadialSeriesView.$);
return RadialLineSeriesView;
}(AnchoredRadialSeriesView));
export { RadialLineSeriesView };