UNPKG

igniteui-webcomponents-charts

Version:

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

85 lines (84 loc) 3.4 kB
import { UnknownValuePlotting_$type } from "igniteui-webcomponents-core"; import { IgcPolarLineSeriesBaseComponent } from "./igc-polar-line-series-base-component"; import { PolarAreaSeries } from "./PolarAreaSeries"; import { getAllPropertyNames, toSpinal, ensureEnum, enumToString } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent polar area series. */ export let IgcPolarAreaSeriesComponent = /*@__PURE__*/ (() => { class IgcPolarAreaSeriesComponent extends IgcPolarLineSeriesBaseComponent { createImplementation() { return new PolarAreaSeries(); } /** * @hidden */ get i() { return this._implementation; } constructor() { super(); } connectedCallback() { if (super["connectedCallback"]) { super["connectedCallback"](); } if (this.i.connectedCallback) { this.i.connectedCallback(); } if (!this._attached) { this._attached = true; this._flushQueuedAttributes(); } } disconnectedCallback() { if (super["disconnectedCallback"]) { super["disconnectedCallback"](); } if (this.i.disconnectedCallback) { this.i.disconnectedCallback(); } if (this._attached) { this._attached = false; } } static get observedAttributes() { if (IgcPolarAreaSeriesComponent._observedAttributesIgcPolarAreaSeriesComponent == null) { let names = getAllPropertyNames(IgcPolarAreaSeriesComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcPolarAreaSeriesComponent._observedAttributesIgcPolarAreaSeriesComponent = names; } return IgcPolarAreaSeriesComponent._observedAttributesIgcPolarAreaSeriesComponent; } static register() { if (!IgcPolarAreaSeriesComponent._isElementRegistered) { IgcPolarAreaSeriesComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcPolarAreaSeriesComponent.htmlTagName, IgcPolarAreaSeriesComponent); } } /** * Gets whether the current series shows an area shape. */ get isArea() { return this.i.ew; } /** * Determines how unknown values will be plotted on the chart. * Null and Double.NaN are two examples of unknown values. */ get unknownValuePlotting() { return this.i.ac0; } set unknownValuePlotting(v) { this.i.ac0 = ensureEnum(UnknownValuePlotting_$type, v); this._a("unknownValuePlotting", enumToString(UnknownValuePlotting_$type, this.i.ac0)); } } IgcPolarAreaSeriesComponent._observedAttributesIgcPolarAreaSeriesComponent = null; IgcPolarAreaSeriesComponent.htmlTagName = "igc-polar-area-series"; IgcPolarAreaSeriesComponent._isElementRegistered = false; return IgcPolarAreaSeriesComponent; })();