igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
129 lines (127 loc) • 4.31 kB
JavaScript
import { __extends } from "tslib";
import { LegendEmptyValuesMode_$type } from "igniteui-react-core";
import { IgrAnchoredRadialSeries } from "./igr-anchored-radial-series";
import { RadialPieSeries } from "./RadialPieSeries";
import { ensureBool, 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.ad6;
},
set: function (v) {
this.i.ad6 = +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.ad7;
},
set: function (v) {
this.i.ad7 = +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.aeb;
},
set: function (v) {
this.i.aeb = v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrRadialPieSeries.prototype, "legendEmptyValuesMode", {
/**
* Determines display mode for zero values in the legend.
*/
get: function () {
return this.i.adz;
},
set: function (v) {
this.i.adz = ensureEnum(LegendEmptyValuesMode_$type, v);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrRadialPieSeries.prototype, "useInsetOutlines", {
/**
* Specifies that slice outlines should be drawn inside the slice rather than halfway
* in and halfway out.
*/
get: function () {
return this.i.ad5;
},
set: function (v) {
this.i.ad5 = ensureBool(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.iy();
return (iv);
};
IgrRadialPieSeries.prototype.getSeriesValueBoundingBox = function (world) {
var iv = this.i.wy(toPoint(world));
return fromRect(iv);
};
return IgrRadialPieSeries;
}(IgrAnchoredRadialSeries));
export { IgrRadialPieSeries };