igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
128 lines (127 loc) • 4.07 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 { 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
*/
export let PolarLineSeries = /*@__PURE__*/ (() => {
class PolarLineSeries extends PolarLineSeriesBase {
bk() {
return new PolarLineSeries();
}
get_fk() {
return true;
}
ct() {
return new PolarLineSeriesView(this);
}
q1(a) {
super.q1(a);
this.acw = a;
}
constructor() {
super();
this.ab = PolarLineSeries.$;
}
acu(a) {
let b = a;
b.de();
}
acv(a, b) {
let c = b;
c.df(a.n, this.id);
this.y7.az(this, this.zz(), runOn(this, this.yp));
let d = false;
let 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);
}
acm() {
return this.acx;
}
ra(a, b, c, d) {
super.ra(a, b, c, d);
switch (b) {
case PolarLineSeries.$$p[0]:
this.rs(false);
this.ql();
break;
}
}
}
PolarLineSeries.$t = /*@__PURE__*/ markType(PolarLineSeries, 'PolarLineSeries', PolarLineSeriesBase.$);
PolarLineSeries.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, PolarLineSeries, 'raisePropertyChanged', ['UnknownValuePlotting:acx:acz', [UnknownValuePlotting_$type, /*@__PURE__*/ enumGetBox(UnknownValuePlotting_$type, 1)]]);
return PolarLineSeries;
})();
/**
* @hidden
*/
export let PolarLineSeriesView = /*@__PURE__*/ (() => {
class PolarLineSeriesView extends PolarLineSeriesBaseView {
constructor(a) {
super(a);
this.dd = null;
this.dh = new Path();
this.dg = new Path();
this.dd = a;
}
ax() {
super.ax();
if (!this.r) {
this.b8.xc = Defaults.e;
}
}
de() {
this.dh.an = null;
this.dg.an = null;
this.av();
}
df(a, b) {
this.dd.acj.d(this.dh, a, b);
this.av();
}
bh() {
super.bh();
}
bi() {
super.bi();
let a = this.bv();
this.dg.an = this.dh.an;
this.dg._stroke = a;
this.dg.ad = this.f.ie + 3;
}
bc(a, b) {
super.bc(a, b);
if (a.d) {
if (b) {
a.t(this.dg);
}
else {
a.t(this.dh);
}
}
}
aq(a) {
super.aq(a);
this.f.bc.exportPathData(a, this.dh, "polarShape", ["Main"]);
}
}
PolarLineSeriesView.$t = /*@__PURE__*/ markType(PolarLineSeriesView, 'PolarLineSeriesView', PolarLineSeriesBaseView.$);
return PolarLineSeriesView;
})();