UNPKG

igniteui-angular-charts

Version:

Ignite UI Angular charting components for building rich data visualizations for modern web apps.

165 lines (164 loc) 5.38 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-angular-core"; import { DependencyProperty } from "igniteui-angular-core"; import { runOn, enumGetBox, markType, markDep, Point_$type } from "igniteui-angular-core"; import { Path } from "igniteui-angular-core"; import { List$1 } from "igniteui-angular-core"; import { PropertyMetadata } from "igniteui-angular-core"; import { PolarLineSeriesBaseView } from "./PolarLineSeriesBaseView"; import { Defaults } from "./Defaults"; import { Color } from "igniteui-angular-core"; /** * @hidden */ export let PolarAreaSeries = /*@__PURE__*/ (() => { class PolarAreaSeries extends PolarLineSeriesBase { constructor() { super(); this.ab = PolarAreaSeries.$; } bj() { return new PolarAreaSeries(); } get_eu() { return true; } cs() { return new PolarAreaSeriesView(this); } zx() { return false; } q0(a) { super.q0(a); this.act = a; } acr(a) { let b = a; b.da(); } acs(a, b) { if (a.m.count > 0) { let c = a.m._inner[0]; let d = a.m._inner[a.m.count - 1]; let e = c.x == d.x && c.y == d.y; if (!e) { a.m.add(a.m._inner[0]); } } let f = b; f.db(a.m, this.ic); this.y4.az(this, this.zw(), runOn(this, this.ym)); let g = false; let h = this.y4.b; if (h != null) { g = true; } if (g) { this.abb(-1, this.zi.count, b.q); } let i = f.dh; let j = f.dg; this.y4.ad(i, true, false, true, true); this.y4.ad(j, false, true, false, false); j._opacity = this.y4.j * this.h8; } get_aco() { return true; } acj() { return this.acu; } } PolarAreaSeries.$t = markType(PolarAreaSeries, 'PolarAreaSeries', PolarLineSeriesBase.$); PolarAreaSeries.$$p = markDep(DependencyProperty, PropertyMetadata, PolarAreaSeries, 'raisePropertyChanged', ['UnknownValuePlotting:acu:acw', [UnknownValuePlotting_$type, enumGetBox(UnknownValuePlotting_$type, 1)]]); return PolarAreaSeries; })(); /** * @hidden */ export let PolarAreaSeriesView = /*@__PURE__*/ (() => { class PolarAreaSeriesView extends PolarLineSeriesBaseView { constructor(a) { super(a); this.c9 = null; this.df = new Path(); this.de = new Path(); this.dd = new Path(); this.dc = new Path(); this.c9 = a; } au() { super.au(); if (!this.q) { this.c9.w9 = Defaults.e; } } get dg() { return this.de; } get dh() { return this.df; } da() { this.de.an = null; this.df.an = null; this.dc.an = null; this.dd.an = null; this.as(); } db(a, b) { let c = new List$1(Point_$type, 1, a); this.c9.acg.d(this.df, c, b); this.c9.acg.d(this.de, c, b); this.as(); } bd() { super.bd(); } be() { super.be(); let a = this.br(); this.dd.an = this.df.an; this.dc.an = this.de.an; this.dd._stroke = a; this.dd.ad = this.e.id + 3; this.dc._fill = a; this.dc._opacity = 1; } a8(a, b) { super.a8(a, b); if (a.d) { if (b) { a.t(this.dc); a.t(this.dd); } else { a.t(this.de); a.t(this.df); } } } an(a) { super.an(a); this.e.bc.exportPathData(a, this.df, "polarShape", ["Main"]); this.e.bc.exportPathData(a, this.de, "fillShape", ["Fill"]); } af() { let a = new Color(); a.colorString = "rgba(95,95,95,0.5)"; this.e.v0 = a; this.e.jl = 5; this.e.jm = 5; this.e.jn = 5; } } PolarAreaSeriesView.$t = markType(PolarAreaSeriesView, 'PolarAreaSeriesView', PolarLineSeriesBaseView.$); return PolarAreaSeriesView; })();