UNPKG

igniteui-webcomponents-charts

Version:

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

163 lines (160 loc) 6.4 kB
import { __extends } from "tslib"; 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"; /** * Represents a IgxDataChartComponent range column series. * * The `RangeColumnSeries` class represents range column series of the IgxDataChartComponent. */ var IgcRangeColumnSeriesComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcRangeColumnSeriesComponent, _super); function IgcRangeColumnSeriesComponent() { return _super.call(this) || this; } IgcRangeColumnSeriesComponent.prototype.createImplementation = function () { return new RangeColumnSeries(); }; Object.defineProperty(IgcRangeColumnSeriesComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcRangeColumnSeriesComponent.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(); } }; IgcRangeColumnSeriesComponent.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(IgcRangeColumnSeriesComponent, "observedAttributes", { get: function () { if (IgcRangeColumnSeriesComponent._observedAttributesIgcRangeColumnSeriesComponent == null) { var names = getAllPropertyNames(IgcRangeColumnSeriesComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcRangeColumnSeriesComponent._observedAttributesIgcRangeColumnSeriesComponent = names; } return IgcRangeColumnSeriesComponent._observedAttributesIgcRangeColumnSeriesComponent; }, enumerable: false, configurable: true }); IgcRangeColumnSeriesComponent.register = function () { if (!IgcRangeColumnSeriesComponent._isElementRegistered) { IgcRangeColumnSeriesComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcRangeColumnSeriesComponent.htmlTagName, IgcRangeColumnSeriesComponent); } }; Object.defineProperty(IgcRangeColumnSeriesComponent.prototype, "isColumn", { /** * Gets whether the current series shows a column shape. */ get: function () { return this.i.e1; }, enumerable: false, configurable: true }); Object.defineProperty(IgcRangeColumnSeriesComponent.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(IgcRangeColumnSeriesComponent.prototype, "radiusX", { /** * 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: function () { return this.i.ab5; }, set: function (v) { this.i.ab5 = +v; this._a("radiusX", this.i.ab5); }, enumerable: false, configurable: true }); Object.defineProperty(IgcRangeColumnSeriesComponent.prototype, "radiusY", { /** * 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: function () { return this.i.ab6; }, set: function (v) { this.i.ab6 = +v; this._a("radiusY", this.i.ab6); }, enumerable: false, configurable: true }); /** * 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. */ IgcRangeColumnSeriesComponent.prototype.getSeriesValueBoundingBox = function (world) { var iv = this.i.ws(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(); * ``` */ IgcRangeColumnSeriesComponent.prototype.getItemSpan = function () { var iv = this.i.ix(); return (iv); }; IgcRangeColumnSeriesComponent._observedAttributesIgcRangeColumnSeriesComponent = null; IgcRangeColumnSeriesComponent.htmlTagName = "igc-range-column-series"; IgcRangeColumnSeriesComponent._isElementRegistered = false; return IgcRangeColumnSeriesComponent; }(IgcHorizontalRangeCategorySeriesComponent)); export { IgcRangeColumnSeriesComponent };