UNPKG

igniteui-webcomponents-charts

Version:

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

72 lines (71 loc) 3.05 kB
import { IgcStraightNumericAxisBaseComponent } from "./igc-straight-numeric-axis-base-component"; import { NumericXAxis } from "./NumericXAxis"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent numeric X axis. * * The `NumericXAxis` treats the data as continuously varying numerical data items. Labels on this axis are placed along the X-axis. The location of labels varies according to the value in a data column that is mapped using the `XMemberPath` property of Scatter Series or `ValueMemberPath` property of Bar Series. */ export let IgcNumericXAxisComponent = /*@__PURE__*/ (() => { class IgcNumericXAxisComponent extends IgcStraightNumericAxisBaseComponent { createImplementation() { return new NumericXAxis(); } /** * @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 (IgcNumericXAxisComponent._observedAttributesIgcNumericXAxisComponent == null) { let names = getAllPropertyNames(IgcNumericXAxisComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcNumericXAxisComponent._observedAttributesIgcNumericXAxisComponent = names; } return IgcNumericXAxisComponent._observedAttributesIgcNumericXAxisComponent; } static register() { if (!IgcNumericXAxisComponent._isElementRegistered) { IgcNumericXAxisComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcNumericXAxisComponent.htmlTagName, IgcNumericXAxisComponent); } } scrollRangeIntoView(minimum, maximum) { this.i.ok(minimum, maximum); } } IgcNumericXAxisComponent._observedAttributesIgcNumericXAxisComponent = null; IgcNumericXAxisComponent.htmlTagName = "igc-numeric-x-axis"; IgcNumericXAxisComponent._isElementRegistered = false; return IgcNumericXAxisComponent; })();