UNPKG

igniteui-webcomponents-charts

Version:

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

161 lines (156 loc) 6.23 kB
import { __extends } from "tslib"; import { IgcVerticalStackedSeriesBaseComponent } from "./igc-vertical-stacked-series-base-component"; import { StackedBarSeries } from "./StackedBarSeries"; import { getAllPropertyNames, toSpinal, toPoint } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent stacked bar series. */ var IgcStackedBarSeriesComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcStackedBarSeriesComponent, _super); function IgcStackedBarSeriesComponent() { return _super.call(this) || this; } IgcStackedBarSeriesComponent.prototype.createImplementation = function () { return new StackedBarSeries(); }; Object.defineProperty(IgcStackedBarSeriesComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcStackedBarSeriesComponent.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(); } }; IgcStackedBarSeriesComponent.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(IgcStackedBarSeriesComponent, "observedAttributes", { get: function () { if (IgcStackedBarSeriesComponent._observedAttributesIgcStackedBarSeriesComponent == null) { var names = getAllPropertyNames(IgcStackedBarSeriesComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcStackedBarSeriesComponent._observedAttributesIgcStackedBarSeriesComponent = names; } return IgcStackedBarSeriesComponent._observedAttributesIgcStackedBarSeriesComponent; }, enumerable: false, configurable: true }); IgcStackedBarSeriesComponent.register = function () { if (!IgcStackedBarSeriesComponent._isElementRegistered) { IgcStackedBarSeriesComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcStackedBarSeriesComponent.htmlTagName, IgcStackedBarSeriesComponent); } }; Object.defineProperty(IgcStackedBarSeriesComponent.prototype, "isBar", { /** * Gets whether the current series shows a bar shape. */ get: function () { return this.i.ez; }, enumerable: false, configurable: true }); Object.defineProperty(IgcStackedBarSeriesComponent.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(IgcStackedBarSeriesComponent.prototype, "radiusX", { /** * Gets or sets the x-radius of the ellipse that is used to round the corners of the bar. */ get: function () { return this.i.aca; }, set: function (v) { this.i.aca = +v; this._a("radiusX", this.i.aca); }, enumerable: false, configurable: true }); Object.defineProperty(IgcStackedBarSeriesComponent.prototype, "radiusY", { /** * Gets or sets the y-radius of the ellipse that is used to round the corners of the bar. */ get: function () { return this.i.acb; }, set: function (v) { this.i.acb = +v; this._a("radiusY", this.i.acb); }, enumerable: false, configurable: true }); /** * Scrolls the series to display the item for the specified data item. * The series is scrolled by the minimum amount required to place the specified data item within * the central 80% of the visible axis. * @param item * The data item (item) to scroll to. */ IgcStackedBarSeriesComponent.prototype.scrollIntoView = function (item) { var iv = this.i.ge(item); return (iv); }; /** * Gets the index of the item that resides at the provided world coordinates. * @param world * The world coordinates of the requested item. */ IgcStackedBarSeriesComponent.prototype.getItemIndex = function (world) { var iv = this.i.j4(toPoint(world)); return (iv); }; /** * Gets the item that is the best match for the specified world coordinates. * @param world * The world coordinates to use. */ IgcStackedBarSeriesComponent.prototype.getItem = function (world) { var iv = this.i.ko(toPoint(world)); return (iv); }; /** * 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. */ IgcStackedBarSeriesComponent.prototype.getItemSpan = function () { var iv = this.i.ix(); return (iv); }; IgcStackedBarSeriesComponent._observedAttributesIgcStackedBarSeriesComponent = null; IgcStackedBarSeriesComponent.htmlTagName = "igc-stacked-bar-series"; IgcStackedBarSeriesComponent._isElementRegistered = false; return IgcStackedBarSeriesComponent; }(IgcVerticalStackedSeriesBaseComponent)); export { IgcStackedBarSeriesComponent };