UNPKG

igniteui-webcomponents-charts

Version:

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

141 lines (138 loc) 5.56 kB
import { __extends } from "tslib"; import { IgcAnchoredRadialSeriesComponent } from "./igc-anchored-radial-series-component"; import { RadialColumnSeries } from "./RadialColumnSeries"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent radial column series. * Compare values across categories by using radial rectangles. */ var IgcRadialColumnSeriesComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcRadialColumnSeriesComponent, _super); function IgcRadialColumnSeriesComponent() { return _super.call(this) || this; } IgcRadialColumnSeriesComponent.prototype.createImplementation = function () { return new RadialColumnSeries(); }; Object.defineProperty(IgcRadialColumnSeriesComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcRadialColumnSeriesComponent.prototype.connectedCallback = function () { if (_super.prototype["connectedCallback"]) { _super.prototype["connectedCallback"].call(this); } if (this.i.connectedCallback) { this.i.connectedCallback(); } if (!this._attached) { this._attached = true; this._flushQueuedAttributes(); } }; IgcRadialColumnSeriesComponent.prototype.disconnectedCallback = function () { if (_super.prototype["disconnectedCallback"]) { _super.prototype["disconnectedCallback"].call(this); } if (this.i.disconnectedCallback) { this.i.disconnectedCallback(); } if (this._attached) { this._attached = false; } }; Object.defineProperty(IgcRadialColumnSeriesComponent, "observedAttributes", { get: function () { if (IgcRadialColumnSeriesComponent._observedAttributesIgcRadialColumnSeriesComponent == null) { var names = getAllPropertyNames(IgcRadialColumnSeriesComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcRadialColumnSeriesComponent._observedAttributesIgcRadialColumnSeriesComponent = names; } return IgcRadialColumnSeriesComponent._observedAttributesIgcRadialColumnSeriesComponent; }, enumerable: false, configurable: true }); IgcRadialColumnSeriesComponent.register = function () { if (!IgcRadialColumnSeriesComponent._isElementRegistered) { IgcRadialColumnSeriesComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcRadialColumnSeriesComponent.htmlTagName, IgcRadialColumnSeriesComponent); } }; Object.defineProperty(IgcRadialColumnSeriesComponent.prototype, "isColumn", { /** * Gets whether the current series shows a column shape. */ get: function () { return this.i.e1; }, enumerable: false, configurable: true }); Object.defineProperty(IgcRadialColumnSeriesComponent.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(IgcRadialColumnSeriesComponent.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.adt; }, set: function (v) { this.i.adt = +v; this._a("radiusX", this.i.adt); }, enumerable: false, configurable: true }); Object.defineProperty(IgcRadialColumnSeriesComponent.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.adu; }, set: function (v) { this.i.adu = +v; this._a("radiusY", this.i.adu); }, enumerable: false, configurable: true }); /** * When overridden in a derived class, is invoked whenever application code or internal processes * call ApplyTemplate. */ IgcRadialColumnSeriesComponent.prototype.onApplyTemplate = function () { this.i.ac(); }; /** * 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. */ IgcRadialColumnSeriesComponent.prototype.getItemSpan = function () { var iv = this.i.ix(); return (iv); }; IgcRadialColumnSeriesComponent._observedAttributesIgcRadialColumnSeriesComponent = null; IgcRadialColumnSeriesComponent.htmlTagName = "igc-radial-column-series"; IgcRadialColumnSeriesComponent._isElementRegistered = false; return IgcRadialColumnSeriesComponent; }(IgcAnchoredRadialSeriesComponent)); export { IgcRadialColumnSeriesComponent };