UNPKG

igniteui-react-charts

Version:

Ignite UI React charting components for building rich data visualizations using TypeScript APIs.

190 lines (189 loc) 5.93 kB
/* 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, 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 */ export let PolarAreaSeries = /*@__PURE__*/ (() => { class PolarAreaSeries extends PolarLineSeriesBase { bk() { return new PolarAreaSeries(); } get_ex() { return true; } ct() { return new PolarAreaSeriesView(this); } aao() { return false; } rj(a) { super.rj(a); this.adk = a; } constructor() { super(); this.ab = PolarAreaSeries.$; } adi(a) { let b = a; b.dn(); } g4(a, b) { if (this.x4(a, b)) { return true; } if (this.dp.count <= this.aay) { if (this.adn(a, b)) { return true; } if (this.adm(a, b)) { return true; } } return false; } adn(a, b) { let c = this.cw; let d = c.dv; return this.g5(a, b, d.an); } adm(a, b) { let c = this.cw; let d = c.dv; return CoreGeometryUtil.g(a, d); } adj(a, b) { if (a.q.count > 0) { let c = a.q._inner[0]; let d = a.q._inner[a.q.count - 1]; let e = c.x == d.x && c.y == d.y; if (!e) { a.q.add(a.q._inner[0]); } } let f = b; f.dp(a.q, this.im); this.zv.az(this, this.aan(), runOn(this, this.zd)); let g = false; let h = this.zv.b; if (h != null) { g = true; } if (g) { this.ab2(-1, this.z9.count, b.t); } let i = f.dv; let j = f.du; this.zv.ad(i, true, false, true, true); this.zv.ad(j, false, true, false, false); j._opacity = this.zv.j * this.ii; } get_adf() { return true; } ada() { return this.adl; } } PolarAreaSeries.$t = /*@__PURE__*/ markType(PolarAreaSeries, 'PolarAreaSeries', PolarLineSeriesBase.$); PolarAreaSeries.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, PolarAreaSeries, 'raisePropertyChanged', ['UnknownValuePlotting:adl:adp', [UnknownValuePlotting_$type, /*@__PURE__*/ enumGetBox(UnknownValuePlotting_$type, 1)]]); return PolarAreaSeries; })(); /** * @hidden */ export let PolarAreaSeriesView = /*@__PURE__*/ (() => { class PolarAreaSeriesView extends PolarLineSeriesBaseView { constructor(a) { super(a); this.dm = null; this.dt = new Path(); this.ds = new Path(); this.dr = new Path(); this.dq = new Path(); this.dm = a; } a4() { super.a4(); if (!this.t) { this.dm.xx = Defaults.e; } } get du() { return this.ds; } get dv() { return this.dt; } dn() { this.ds.an = null; this.dt.an = null; this.dq.an = null; this.dr.an = null; this.a2(); } dp(a, b) { let c = new List$1(Point_$type, 1, a); this.dm.ac7.d(this.dt, c, b); this.dm.ac7.d(this.ds, c, b); this.a2(); } bp() { super.bp(); } bq() { super.bq(); let a = this.b3(); this.dr.an = this.dt.an; this.dq.an = this.ds.an; this.dr._stroke = a; this.dr.ad = this.f.io + 3; this.dq._fill = a; this.dq._opacity = 1; } bj(a, b) { super.bj(a, b); if (a.d) { if (b) { a.t(this.dq); a.t(this.dr); } else { a.t(this.ds); a.t(this.dt); } } } ax(a) { super.ax(a); this.f.bc.exportPathData(a, this.dt, "polarShape", ["Main"]); this.f.bc.exportPathData(a, this.ds, "fillShape", ["Fill"]); } an() { let a = new Color(); a.colorString = "rgba(95,95,95,0.5)"; this.f.wn = a; this.f.jx = 5; this.f.jy = 5; this.f.jz = 5; } } PolarAreaSeriesView.$t = /*@__PURE__*/ markType(PolarAreaSeriesView, 'PolarAreaSeriesView', PolarLineSeriesBaseView.$); return PolarAreaSeriesView; })();