igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
152 lines (151 loc) • 4.89 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 { 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 { PathFigure } from "igniteui-react-core";
import { Extensions } from "igniteui-react-core";
import { Numeric } from "igniteui-react-core";
import { Color } from "igniteui-react-core";
/**
* @hidden
*/
export let PolarSplineSeries = /*@__PURE__*/ (() => {
class PolarSplineSeries extends PolarLineSeriesBase {
bk() {
return new PolarSplineSeries();
}
get_f1() {
return true;
}
ct() {
return new PolarSplineSeriesView(this);
}
q8(a) {
super.q8(a);
this.ac5 = a;
}
constructor() {
super();
this.ab = PolarSplineSeries.$;
}
rh(a, b, c, d) {
super.rh(a, b, c, d);
switch (b) {
case PolarSplineSeries.$$p[0]:
this.rz(false);
break;
}
}
ac3(a) {
let b = a;
b.dn();
}
ac4(a, b) {
this.ac3(b);
let c = b;
c.dp(a.n, this.ac6);
this.zg.az(this, this.z8(), runOn(this, this.yy));
let d = false;
let e = this.zg.b;
if (e != null) {
d = true;
}
if (d) {
this.abn(-1, this.zu.count, b.t);
}
this.zg.ad(b.dr, true, false, true, false);
}
}
PolarSplineSeries.$t = /*@__PURE__*/ markType(PolarSplineSeries, 'PolarSplineSeries', PolarLineSeriesBase.$);
PolarSplineSeries.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, PolarSplineSeries, 'raisePropertyChanged', ['Stiffness:ac6:ac8', [1, 0.5]]);
return PolarSplineSeries;
})();
/**
* @hidden
*/
export let PolarSplineSeriesView = /*@__PURE__*/ (() => {
class PolarSplineSeriesView extends PolarLineSeriesBaseView {
constructor(a) {
super(a);
this.dm = null;
this.dr = ((() => {
let $ret = new Path();
$ret.an = new PathGeometry();
return $ret;
})());
this.dq = ((() => {
let $ret = new Path();
$ret.an = new PathGeometry();
return $ret;
})());
this.dm = a;
}
a4() {
super.a4();
if (!this.t) {
this.ch.xl = Defaults.e;
}
let a = new PathGeometry();
a.c.add(((() => {
let $ret = new PathFigure();
return $ret;
})()));
this.dr.an = a;
}
dn() {
Extensions.e(this.dr.an);
Extensions.e(this.dq.an);
this.a2();
}
dp(a, b) {
this.dr.an.c = Numeric.h(a.count, (c) => a._inner[c].x, (c) => a._inner[c].y, b);
this.a2();
}
bp() {
super.bp();
}
bq() {
super.bq();
let a = this.b3();
this.dq.an = this.dr.an;
this.dq._stroke = a;
this.dq.ad = this.f.ig + 3;
}
bj(a, b) {
super.bj(a, b);
if (a.d) {
if (b) {
a.t(this.dq);
}
else {
a.t(this.dr);
}
}
}
ax(a) {
super.ax(a);
this.f.bc.exportPathData(a, this.dr, "polarShape", ["Main"]);
}
an() {
let a = new Color();
a.colorString = "rgba(95,95,95,0.5)";
this.f.wc = a;
this.f.jq = 3;
this.f.jr = 1;
this.f.js = 4;
this.f.hd = false;
}
}
PolarSplineSeriesView.$t = /*@__PURE__*/ markType(PolarSplineSeriesView, 'PolarSplineSeriesView', PolarLineSeriesBaseView.$);
return PolarSplineSeriesView;
})();