UNPKG

igniteui-react-charts

Version:

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

115 lines (113 loc) 3.87 kB
import { __extends } from "tslib"; import { LegendEmptyValuesMode_$type } from "igniteui-react-core"; import { IgrAnchoredRadialSeries } from "./igr-anchored-radial-series"; import { RadialPieSeries } from "./RadialPieSeries"; import { ensureEnum, toPoint, fromRect } from "igniteui-react-core"; /** * Represents a IgxDataChartComponent radial pie series. * Compare values across categories by using radial pie slices. */ var IgrRadialPieSeries = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgrRadialPieSeries, _super); function IgrRadialPieSeries(props) { return _super.call(this, props) || this; } IgrRadialPieSeries.prototype.createImplementation = function () { return new RadialPieSeries(); }; Object.defineProperty(IgrRadialPieSeries.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); Object.defineProperty(IgrRadialPieSeries.prototype, "isPie", { /** * Gets whether the current series shows a pie shape. */ get: function () { return this.i.fo; }, enumerable: false, configurable: true }); Object.defineProperty(IgrRadialPieSeries.prototype, "isMarkerlessDisplayPreferred", { /** * Overridden by derived series classes to indicate when marker-less display is preferred or not. */ get: function () { return this.i.fm; }, enumerable: false, configurable: true }); Object.defineProperty(IgrRadialPieSeries.prototype, "radiusX", { /** * Gets or sets the x-radius of the ellipse that is used to round the corners of the column. */ get: function () { return this.i.ady; }, set: function (v) { this.i.ady = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrRadialPieSeries.prototype, "radiusY", { /** * Gets or sets the y-radius of the ellipse that is used to round the corners of the column. */ get: function () { return this.i.adz; }, set: function (v) { this.i.adz = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrRadialPieSeries.prototype, "legendLabelMemberPath", { /** * Gets or sets the property name that contains the legend labels. */ get: function () { return this.i.ad3; }, set: function (v) { this.i.ad3 = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrRadialPieSeries.prototype, "legendEmptyValuesMode", { /** * Determines display mode for zero values in the legend. */ get: function () { return this.i.adt; }, set: function (v) { this.i.adt = ensureEnum(LegendEmptyValuesMode_$type, v); }, enumerable: false, configurable: true }); /** * 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. */ IgrRadialPieSeries.prototype.getItemSpan = function () { var iv = this.i.ix(); return (iv); }; IgrRadialPieSeries.prototype.getSeriesValueBoundingBox = function (world) { var iv = this.i.ws(toPoint(world)); return fromRect(iv); }; return IgrRadialPieSeries; }(IgrAnchoredRadialSeries)); export { IgrRadialPieSeries };