UNPKG

igniteui-react-charts

Version:

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

165 lines (164 loc) 5.25 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 { 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_ev() { return true; } ct() { return new PolarAreaSeriesView(this); } z0() { return false; } q1(a) { super.q1(a); this.acw = a; } constructor() { super(); this.ab = PolarAreaSeries.$; } acu(a) { let b = a; b.de(); } acv(a, b) { if (a.n.count > 0) { let c = a.n._inner[0]; let d = a.n._inner[a.n.count - 1]; let e = c.x == d.x && c.y == d.y; if (!e) { a.n.add(a.n._inner[0]); } } let f = b; f.df(a.n, this.id); this.y7.az(this, this.zz(), runOn(this, this.yp)); let g = false; let h = this.y7.b; if (h != null) { g = true; } if (g) { this.abe(-1, this.zl.count, b.r); } let i = f.dl; let j = f.dk; this.y7.ad(i, true, false, true, true); this.y7.ad(j, false, true, false, false); j._opacity = this.y7.j * this.h9; } get_acr() { return true; } acm() { return this.acx; } } PolarAreaSeries.$t = /*@__PURE__*/ markType(PolarAreaSeries, 'PolarAreaSeries', PolarLineSeriesBase.$); PolarAreaSeries.$$p = /*@__PURE__*/ markDep(DependencyProperty, PropertyMetadata, PolarAreaSeries, 'raisePropertyChanged', ['UnknownValuePlotting:acx:acz', [UnknownValuePlotting_$type, /*@__PURE__*/ enumGetBox(UnknownValuePlotting_$type, 1)]]); return PolarAreaSeries; })(); /** * @hidden */ export let PolarAreaSeriesView = /*@__PURE__*/ (() => { class PolarAreaSeriesView extends PolarLineSeriesBaseView { constructor(a) { super(a); this.dd = null; this.dj = new Path(); this.di = new Path(); this.dh = new Path(); this.dg = new Path(); this.dd = a; } ax() { super.ax(); if (!this.r) { this.dd.xc = Defaults.e; } } get dk() { return this.di; } get dl() { return this.dj; } de() { this.di.an = null; this.dj.an = null; this.dg.an = null; this.dh.an = null; this.av(); } df(a, b) { let c = new List$1(Point_$type, 1, a); this.dd.acj.d(this.dj, c, b); this.dd.acj.d(this.di, c, b); this.av(); } bh() { super.bh(); } bi() { super.bi(); let a = this.bv(); this.dh.an = this.dj.an; this.dg.an = this.di.an; this.dh._stroke = a; this.dh.ad = this.f.ie + 3; this.dg._fill = a; this.dg._opacity = 1; } bc(a, b) { super.bc(a, b); if (a.d) { if (b) { a.t(this.dg); a.t(this.dh); } else { a.t(this.di); a.t(this.dj); } } } aq(a) { super.aq(a); this.f.bc.exportPathData(a, this.dj, "polarShape", ["Main"]); this.f.bc.exportPathData(a, this.di, "fillShape", ["Fill"]); } ai() { let a = new Color(); a.colorString = "rgba(95,95,95,0.5)"; this.f.v3 = a; this.f.jm = 5; this.f.jn = 5; this.f.jo = 5; } } PolarAreaSeriesView.$t = /*@__PURE__*/ markType(PolarAreaSeriesView, 'PolarAreaSeriesView', PolarLineSeriesBaseView.$); return PolarAreaSeriesView; })();