UNPKG

igniteui-webcomponents-charts

Version:

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

80 lines (79 loc) 3.56 kB
import { __extends } from "tslib"; 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 var IgcNumericXAxisComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcNumericXAxisComponent, _super); function IgcNumericXAxisComponent() { return _super.call(this) || this; } IgcNumericXAxisComponent.prototype.createImplementation = function () { return new NumericXAxis(); }; Object.defineProperty(IgcNumericXAxisComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcNumericXAxisComponent.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(); } }; IgcNumericXAxisComponent.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(IgcNumericXAxisComponent, "observedAttributes", { get: function () { if (IgcNumericXAxisComponent._observedAttributesIgcNumericXAxisComponent == null) { var names = getAllPropertyNames(IgcNumericXAxisComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcNumericXAxisComponent._observedAttributesIgcNumericXAxisComponent = names; } return IgcNumericXAxisComponent._observedAttributesIgcNumericXAxisComponent; }, enumerable: false, configurable: true }); IgcNumericXAxisComponent.register = function () { if (!IgcNumericXAxisComponent._isElementRegistered) { IgcNumericXAxisComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcNumericXAxisComponent.htmlTagName, IgcNumericXAxisComponent); } }; IgcNumericXAxisComponent.prototype.scrollRangeIntoView = function (minimum, maximum) { this.i.tt(minimum, maximum); }; IgcNumericXAxisComponent._observedAttributesIgcNumericXAxisComponent = null; IgcNumericXAxisComponent.htmlTagName = "igc-numeric-x-axis"; IgcNumericXAxisComponent._isElementRegistered = false; return IgcNumericXAxisComponent; }(IgcStraightNumericAxisBaseComponent));