UNPKG

igniteui-webcomponents-charts

Version:

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

83 lines (82 loc) 3.45 kB
import { __extends } from "tslib"; import { NumericScaleMode_$type } from "./NumericScaleMode"; import { IgcNumericAxisBaseComponent } from "./igc-numeric-axis-base-component"; import { getAllPropertyNames, toSpinal, ensureEnum, enumToString } from "igniteui-webcomponents-core"; /** * Defines a set of basic methods and properties used to create a StraightNumeric axis. */ export var IgcStraightNumericAxisBaseComponent = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgcStraightNumericAxisBaseComponent, _super); function IgcStraightNumericAxisBaseComponent() { return _super.call(this) || this; } Object.defineProperty(IgcStraightNumericAxisBaseComponent.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); IgcStraightNumericAxisBaseComponent.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(); } }; IgcStraightNumericAxisBaseComponent.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(IgcStraightNumericAxisBaseComponent, "observedAttributes", { get: function () { if (IgcStraightNumericAxisBaseComponent._observedAttributesIgcStraightNumericAxisBaseComponent == null) { var names = getAllPropertyNames(IgcStraightNumericAxisBaseComponent); for (var i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcStraightNumericAxisBaseComponent._observedAttributesIgcStraightNumericAxisBaseComponent = names; } return IgcStraightNumericAxisBaseComponent._observedAttributesIgcStraightNumericAxisBaseComponent; }, enumerable: false, configurable: true }); Object.defineProperty(IgcStraightNumericAxisBaseComponent.prototype, "scaleMode", { /** * Gets or sets the axis scale mode. * * `ScaleMode` can be used on numeric axes to allow scaling data values using built-in scalers. The available scalers are linear or logarithmic. * * ```ts * this.yAxis.scaleMode = NumericScaleMode.Logarithmic; * ``` */ get: function () { return this.i.s9; }, set: function (v) { this.i.s9 = ensureEnum(NumericScaleMode_$type, v); this._a("scaleMode", enumToString(NumericScaleMode_$type, this.i.s9)); }, enumerable: false, configurable: true }); IgcStraightNumericAxisBaseComponent._observedAttributesIgcStraightNumericAxisBaseComponent = null; return IgcStraightNumericAxisBaseComponent; }(IgcNumericAxisBaseComponent));