UNPKG

igniteui-webcomponents-charts

Version:

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

90 lines (89 loc) 3.85 kB
import { __extends } from "tslib"; import { IgcStraightNumericAxisBaseComponent } from "./igc-straight-numeric-axis-base-component"; import { NumericYAxis } from "./NumericYAxis"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents a IgxDataChartComponent numeric Y axis. * * The `NumericYAxis` treats the data as continuously varying numerical data items. Labels on this axis are placed along the Y-axis. Location of labels varies according to the value in a data column that is mapped using the `YMemberPath` property for Scatter Series or `ValueMemberPath` property for Category Series. */ export var IgcNumericYAxisComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcNumericYAxisComponent, _super); function IgcNumericYAxisComponent() { return _super.call(this) || this; } IgcNumericYAxisComponent.prototype.createImplementation = function () { return new NumericYAxis(); }; Object.defineProperty(IgcNumericYAxisComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcNumericYAxisComponent.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(); } }; IgcNumericYAxisComponent.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(IgcNumericYAxisComponent, "observedAttributes", { get: function () { if (IgcNumericYAxisComponent._observedAttributesIgcNumericYAxisComponent == null) { var names = getAllPropertyNames(IgcNumericYAxisComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcNumericYAxisComponent._observedAttributesIgcNumericYAxisComponent = names; } return IgcNumericYAxisComponent._observedAttributesIgcNumericYAxisComponent; }, enumerable: false, configurable: true }); IgcNumericYAxisComponent.register = function () { if (!IgcNumericYAxisComponent._isElementRegistered) { IgcNumericYAxisComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcNumericYAxisComponent.htmlTagName, IgcNumericYAxisComponent); } }; Object.defineProperty(IgcNumericYAxisComponent.prototype, "isVertical", { /** * Gets if the current axis is of vertical axis */ get: function () { return this.i.dy; }, enumerable: false, configurable: true }); IgcNumericYAxisComponent.prototype.scrollRangeIntoView = function (minimum, maximum) { this.i.ts(minimum, maximum); }; IgcNumericYAxisComponent._observedAttributesIgcNumericYAxisComponent = null; IgcNumericYAxisComponent.htmlTagName = "igc-numeric-y-axis"; IgcNumericYAxisComponent._isElementRegistered = false; return IgcNumericYAxisComponent; }(IgcStraightNumericAxisBaseComponent));