UNPKG

igniteui-webcomponents-charts

Version:

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

134 lines (129 loc) 5.02 kB
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"; let IgcStackedBarSeriesComponent = /*@__PURE__*/ (() => { class IgcStackedBarSeriesComponent extends IgcVerticalStackedSeriesBaseComponent { createImplementation() { return new StackedBarSeries(); } /** * @hidden */ get i() { return this._implementation; } constructor() { super(); } connectedCallback() { if (super["connectedCallback"]) { super["connectedCallback"](); } if (this.i.connectedCallback) { this.i.connectedCallback(); } if (!this._attached) { this._attached = true; this._flushQueuedAttributes(); } } disconnectedCallback() { if (super["disconnectedCallback"]) { super["disconnectedCallback"](); } if (this.i.disconnectedCallback) { this.i.disconnectedCallback(); } if (this._attached) { this._attached = false; } } static get observedAttributes() { if (IgcStackedBarSeriesComponent._observedAttributesIgcStackedBarSeriesComponent == null) { let names = getAllPropertyNames(IgcStackedBarSeriesComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcStackedBarSeriesComponent._observedAttributesIgcStackedBarSeriesComponent = names; } return IgcStackedBarSeriesComponent._observedAttributesIgcStackedBarSeriesComponent; } static register() { if (!IgcStackedBarSeriesComponent._isElementRegistered) { IgcStackedBarSeriesComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcStackedBarSeriesComponent.htmlTagName, IgcStackedBarSeriesComponent); } } /** * Gets whether the current series shows a bar shape. */ get isBar() { return this.i.e0; } /** * Overridden by derived series classes to indicate when marker-less display is preferred or not. */ get isMarkerlessDisplayPreferred() { return this.i.fo; } /** * Gets or sets the x-radius of the ellipse that is used to round the corners of the bar. */ get radiusX() { return this.i.acq; } set radiusX(v) { this.i.acq = +v; this._a("radiusX", this.i.acq); } /** * Gets or sets the y-radius of the ellipse that is used to round the corners of the bar. */ get radiusY() { return this.i.acr; } set radiusY(v) { this.i.acr = +v; this._a("radiusY", this.i.acr); } /** * 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. */ scrollIntoView(item) { let iv = this.i.gj(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. */ getItemIndex(world) { let iv = this.i.kc(toPoint(world)); return (iv); } /** * Gets the item that is the best match for the specified world coordinates. * @param world * The world coordinates to use. */ getItem(world) { let iv = this.i.kw(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. */ getItemSpan() { let iv = this.i.i3(); return (iv); } } IgcStackedBarSeriesComponent._observedAttributesIgcStackedBarSeriesComponent = null; IgcStackedBarSeriesComponent.htmlTagName = "igc-stacked-bar-series"; IgcStackedBarSeriesComponent._isElementRegistered = false; return IgcStackedBarSeriesComponent; })(); export { IgcStackedBarSeriesComponent };