UNPKG

igniteui-webcomponents-charts

Version:

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

134 lines (131 loc) 5.14 kB
import { IgcHorizontalRangeCategorySeriesComponent } from "./igc-horizontal-range-category-series-component"; import { RangeColumnSeries } from "./RangeColumnSeries"; import { getAllPropertyNames, toSpinal, toPoint, fromRect } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; let IgcRangeColumnSeriesComponent = /*@__PURE__*/ (() => { class IgcRangeColumnSeriesComponent extends IgcHorizontalRangeCategorySeriesComponent { createImplementation() { return new RangeColumnSeries(); } /** * @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 (IgcRangeColumnSeriesComponent._observedAttributesIgcRangeColumnSeriesComponent == null) { let names = getAllPropertyNames(IgcRangeColumnSeriesComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcRangeColumnSeriesComponent._observedAttributesIgcRangeColumnSeriesComponent = names; } return IgcRangeColumnSeriesComponent._observedAttributesIgcRangeColumnSeriesComponent; } static register() { if (!IgcRangeColumnSeriesComponent._isElementRegistered) { IgcRangeColumnSeriesComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcRangeColumnSeriesComponent.htmlTagName, IgcRangeColumnSeriesComponent); } } /** * Gets whether the current series shows a column shape. */ get isColumn() { return this.i.e2; } /** * 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 column. * * Use the `RadiusX` property to round the corners of the column. * * ```ts * series.radiusX=10; * ``` */ get radiusX() { return this.i.aco; } set radiusX(v) { this.i.aco = +v; this._a("radiusX", this.i.aco); } /** * Gets or sets the y-radius of the ellipse that is used to round the corners of the column. * * Use the `RadiusY` property for the y-radius of the ellipse that is used to round the corners of the column. * * ```ts * series.radiusY=10; * ``` */ get radiusY() { return this.i.acp; } set radiusY(v) { this.i.acp = +v; this._a("radiusY", this.i.acp); } /** * If possible, will return the best available value bounding box within the series that has the best value match for the world position provided. * @param world * The world coordinate for which to get a value bounding box for * * The `GetSeriesValueBoundingBox` method return the best available value of the bounding box within the series. */ getSeriesValueBoundingBox(world) { let iv = this.i.w8(toPoint(world)); return fromRect(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. * * The `GetItemSpan` method returns the current width of the items within the categories. * * ```ts * var x =series.getItemSpan(); * ``` */ getItemSpan() { let iv = this.i.i3(); return (iv); } } IgcRangeColumnSeriesComponent._observedAttributesIgcRangeColumnSeriesComponent = null; IgcRangeColumnSeriesComponent.htmlTagName = "igc-range-column-series"; IgcRangeColumnSeriesComponent._isElementRegistered = false; return IgcRangeColumnSeriesComponent; })(); export { IgcRangeColumnSeriesComponent };