igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
147 lines (146 loc) • 5.09 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 } from "igniteui-react-core";
import { Path } from "igniteui-react-core";
import { PropertyMetadata } from "igniteui-react-core";
import { PolarLineSeriesBaseView } from "./PolarLineSeriesBaseView";
import { Defaults } from "./Defaults";
/**
* @hidden
*/
var PolarLineSeries = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(PolarLineSeries, _super);
function PolarLineSeries() {
var _this = _super.call(this) || this;
_this.ab = PolarLineSeries.$;
return _this;
}
PolarLineSeries.prototype.bk = function () {
return new PolarLineSeries();
};
PolarLineSeries.prototype.get_fn = function () {
return true;
};
PolarLineSeries.prototype.ct = function () {
return new PolarLineSeriesView(this);
};
PolarLineSeries.prototype.rh = function (a) {
_super.prototype.rh.call(this, a);
this.adf = a;
};
PolarLineSeries.prototype.add = function (a) {
var b = a;
b.dn();
};
PolarLineSeries.prototype.g2 = function (a, b) {
if (this.x2(a, b)) {
return true;
}
if (this.dp.count <= this.aat) {
if (this.adh(a, b)) {
return true;
}
}
return false;
};
PolarLineSeries.prototype.adh = function (a, b) {
var c = this.cw;
var d = c.dr;
return this.g3(a, b, d.an);
};
PolarLineSeries.prototype.ade = function (a, b) {
var c = b;
c.dp(a.q, this.ik);
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);
};
PolarLineSeries.prototype.ac5 = function () {
return this.adg;
};
PolarLineSeries.prototype.rq = function (a, b, c, d) {
_super.prototype.rq.call(this, a, b, c, d);
switch (b) {
case PolarLineSeries.$$p[0]:
this.r8(false);
this.q0();
break;
}
};
PolarLineSeries.$t = markType(PolarLineSeries, 'PolarLineSeries', PolarLineSeriesBase.$);
PolarLineSeries.$$p = markDep(DependencyProperty, PropertyMetadata, PolarLineSeries, 'raisePropertyChanged', ['UnknownValuePlotting:adg:adj', [UnknownValuePlotting_$type, enumGetBox(UnknownValuePlotting_$type, 1)]]);
return PolarLineSeries;
}(PolarLineSeriesBase));
export { PolarLineSeries };
/**
* @hidden
*/
var PolarLineSeriesView = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(PolarLineSeriesView, _super);
function PolarLineSeriesView(a) {
var _this = _super.call(this, a) || this;
_this.dm = null;
_this.dr = new Path();
_this.dq = new Path();
_this.dm = a;
return _this;
}
PolarLineSeriesView.prototype.a4 = function () {
_super.prototype.a4.call(this);
if (!this.t) {
this.ch.xv = Defaults.e;
}
};
PolarLineSeriesView.prototype.dn = function () {
this.dr.an = null;
this.dq.an = null;
this.a2();
};
PolarLineSeriesView.prototype.dp = function (a, b) {
this.dm.ac2.d(this.dr, a, b);
this.a2();
};
PolarLineSeriesView.prototype.bp = function () {
_super.prototype.bp.call(this);
};
PolarLineSeriesView.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;
};
PolarLineSeriesView.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);
}
}
};
PolarLineSeriesView.prototype.ax = function (a) {
_super.prototype.ax.call(this, a);
this.f.bc.exportPathData(a, this.dr, "polarShape", ["Main"]);
};
PolarLineSeriesView.$t = markType(PolarLineSeriesView, 'PolarLineSeriesView', PolarLineSeriesBaseView.$);
return PolarLineSeriesView;
}(PolarLineSeriesBaseView));
export { PolarLineSeriesView };