UNPKG

igniteui-webcomponents-charts

Version:

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

140 lines (138 loc) 5.23 kB
import { LegendEmptyValuesMode_$type } from "igniteui-webcomponents-core"; import { IgcAnchoredRadialSeriesComponent } from "./igc-anchored-radial-series-component"; import { RadialPieSeries } from "./RadialPieSeries"; import { getAllPropertyNames, toSpinal, ensureBool, ensureEnum, enumToString, toPoint, fromRect } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; let IgcRadialPieSeriesComponent = /*@__PURE__*/ (() => { class IgcRadialPieSeriesComponent extends IgcAnchoredRadialSeriesComponent { createImplementation() { return new RadialPieSeries(); } /** * @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 (IgcRadialPieSeriesComponent._observedAttributesIgcRadialPieSeriesComponent == null) { let names = getAllPropertyNames(IgcRadialPieSeriesComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcRadialPieSeriesComponent._observedAttributesIgcRadialPieSeriesComponent = names; } return IgcRadialPieSeriesComponent._observedAttributesIgcRadialPieSeriesComponent; } static register() { if (!IgcRadialPieSeriesComponent._isElementRegistered) { IgcRadialPieSeriesComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcRadialPieSeriesComponent.htmlTagName, IgcRadialPieSeriesComponent); } } /** * Gets whether the current series shows a pie shape. */ get isPie() { return this.i.fq; } /** * Overridden by derived series classes to indicate when marker-less display is preferred or not. */ get isMarkerlessDisplayPreferred() { return this.i.fo; } /** * Gets or sets the x-radius of the ellipse that is used to round the corners of the column. */ get radiusX() { return this.i.aeh; } set radiusX(v) { this.i.aeh = +v; this._a("radiusX", this.i.aeh); } /** * Gets or sets the y-radius of the ellipse that is used to round the corners of the column. */ get radiusY() { return this.i.aei; } set radiusY(v) { this.i.aei = +v; this._a("radiusY", this.i.aei); } /** * Gets or sets the property name that contains the legend labels. */ get legendLabelMemberPath() { return this.i.aem; } set legendLabelMemberPath(v) { this.i.aem = v; } /** * Determines display mode for zero values in the legend. */ get legendEmptyValuesMode() { return this.i.aea; } set legendEmptyValuesMode(v) { this.i.aea = ensureEnum(LegendEmptyValuesMode_$type, v); this._a("legendEmptyValuesMode", enumToString(LegendEmptyValuesMode_$type, this.i.aea)); } /** * Specifies that slice outlines should be drawn inside the slice rather than halfway * in and halfway out. */ get useInsetOutlines() { return this.i.aeg; } set useInsetOutlines(v) { this.i.aeg = ensureBool(v); this._a("useInsetOutlines", this.i.aeg); } /** * For a category plotted series, returns the current width of the items within the categories. This only returns a value if the items have some form of width (e.g. columns, bars, etc.) otherwise 0 is returned. */ getItemSpan() { let iv = this.i.i3(); return (iv); } getSeriesValueBoundingBox(world) { let iv = this.i.w8(toPoint(world)); return fromRect(iv); } } IgcRadialPieSeriesComponent._observedAttributesIgcRadialPieSeriesComponent = null; IgcRadialPieSeriesComponent.htmlTagName = "igc-radial-pie-series"; IgcRadialPieSeriesComponent._isElementRegistered = false; return IgcRadialPieSeriesComponent; })(); export { IgcRadialPieSeriesComponent };