UNPKG

igniteui-webcomponents-charts

Version:

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

55 lines (54 loc) 1.83 kB
import { __extends } from "tslib"; import { IgcDataContext } from "igniteui-webcomponents-core"; import { PieSliceDataContext as PieSliceDataContext_internal } from "./PieSliceDataContext"; import { ensureBool } from "igniteui-webcomponents-core"; /** * DataContext for a pie slice. */ var IgcPieSliceDataContext = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcPieSliceDataContext, _super); function IgcPieSliceDataContext() { return _super.call(this) || this; } IgcPieSliceDataContext.prototype.createImplementation = function () { return new PieSliceDataContext_internal(); }; Object.defineProperty(IgcPieSliceDataContext.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); Object.defineProperty(IgcPieSliceDataContext.prototype, "percentValue", { /** * Gets or sets the value of this slice as a percentage of the total pie. */ get: function () { return this.i.percentValue; }, set: function (v) { this.i.percentValue = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcPieSliceDataContext.prototype, "isOthersSlice", { /** * Gets or sets whether this slice is an Others slice or not. */ get: function () { return this.i.isOthersSlice; }, set: function (v) { this.i.isOthersSlice = ensureBool(v); }, enumerable: false, configurable: true }); return IgcPieSliceDataContext; }(IgcDataContext)); export { IgcPieSliceDataContext };