UNPKG

igniteui-webcomponents-charts

Version:

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

151 lines (148 loc) 5.67 kB
import { __extends } from "tslib"; import { IgcCategorySeriesComponent } from "./igc-category-series-component"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; /** * Represents the base class for all IgxDataChartComponent ranged category/value series. * * The `RangeCategorySeries` represents the base class for all IgxDataChartComponent ranged category/value series. */ var IgcRangeCategorySeriesComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcRangeCategorySeriesComponent, _super); function IgcRangeCategorySeriesComponent() { return _super.call(this) || this; } Object.defineProperty(IgcRangeCategorySeriesComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcRangeCategorySeriesComponent.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(); } }; IgcRangeCategorySeriesComponent.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(IgcRangeCategorySeriesComponent, "observedAttributes", { get: function () { if (IgcRangeCategorySeriesComponent._observedAttributesIgcRangeCategorySeriesComponent == null) { var names = getAllPropertyNames(IgcRangeCategorySeriesComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcRangeCategorySeriesComponent._observedAttributesIgcRangeCategorySeriesComponent = names; } return IgcRangeCategorySeriesComponent._observedAttributesIgcRangeCategorySeriesComponent; }, enumerable: false, configurable: true }); Object.defineProperty(IgcRangeCategorySeriesComponent.prototype, "lowMemberPath", { /** * Gets or sets the value mapping property for the current series object. * * The `LowMemberPath` is used for low mapping property of the current series object. */ get: function () { return this.i.abe; }, set: function (v) { this.i.abe = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcRangeCategorySeriesComponent.prototype, "highMemberPath", { /** * Gets or sets the value mapping property for the current series object. * * Use `HighMemberPath` propert for high mapping of the current series object. * * ```ts * series.highMemberPath = "high"; * ``` */ get: function () { return this.i.abb; }, set: function (v) { this.i.abb = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcRangeCategorySeriesComponent.prototype, "highlightedLowMemberPath", { /** * Gets or sets the highlighted low value mapping property for the current series object. */ get: function () { return this.i.aa9; }, set: function (v) { this.i.aa9 = v; }, enumerable: false, configurable: true }); Object.defineProperty(IgcRangeCategorySeriesComponent.prototype, "highlightedHighMemberPath", { /** * Gets or sets the highlighted High value mapping property for the current series object. */ get: function () { return this.i.aa7; }, set: function (v) { this.i.aa7 = v; }, enumerable: false, configurable: true }); IgcRangeCategorySeriesComponent.prototype.getItemValue = function (item, memberPathName) { var iv = this.i.kr(item, memberPathName); return (iv); }; /** * Gets the value of a requested member path from the series. * @param memberPathName * The property name of a valid member path for the series */ IgcRangeCategorySeriesComponent.prototype.getMemberPathValue = function (memberPathName) { var iv = this.i.mf(memberPathName); return (iv); }; /** * 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` method Scrolls the series to display the item for the specified data item. */ IgcRangeCategorySeriesComponent.prototype.scrollIntoView = function (item) { var iv = this.i.ge(item); return (iv); }; IgcRangeCategorySeriesComponent._observedAttributesIgcRangeCategorySeriesComponent = null; return IgcRangeCategorySeriesComponent; }(IgcCategorySeriesComponent)); export { IgcRangeCategorySeriesComponent };