UNPKG

igniteui-webcomponents-charts

Version:

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

126 lines (123 loc) 4.56 kB
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. */ export let IgcRangeCategorySeriesComponent = /*@__PURE__*/ (() => { class IgcRangeCategorySeriesComponent extends IgcCategorySeriesComponent { /** * @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 (IgcRangeCategorySeriesComponent._observedAttributesIgcRangeCategorySeriesComponent == null) { let names = getAllPropertyNames(IgcRangeCategorySeriesComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcRangeCategorySeriesComponent._observedAttributesIgcRangeCategorySeriesComponent = names; } return IgcRangeCategorySeriesComponent._observedAttributesIgcRangeCategorySeriesComponent; } /** * 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 lowMemberPath() { return this.i.abb; } set lowMemberPath(v) { this.i.abb = v; } /** * 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 highMemberPath() { return this.i.aa8; } set highMemberPath(v) { this.i.aa8 = v; } /** * Gets or sets the highlighted low value mapping property for the current series object. */ get highlightedLowMemberPath() { return this.i.aa6; } set highlightedLowMemberPath(v) { this.i.aa6 = v; } /** * Gets or sets the highlighted High value mapping property for the current series object. */ get highlightedHighMemberPath() { return this.i.aa4; } set highlightedHighMemberPath(v) { this.i.aa4 = v; } getItemValue(item, memberPathName) { let 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 */ getMemberPathValue(memberPathName) { let 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. */ scrollIntoView(item) { let iv = this.i.ge(item); return (iv); } } IgcRangeCategorySeriesComponent._observedAttributesIgcRangeCategorySeriesComponent = null; return IgcRangeCategorySeriesComponent; })();