UNPKG

igniteui-webcomponents-charts

Version:

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

69 lines (68 loc) 2.77 kB
import { NumericScaleMode_$type } from "./NumericScaleMode"; import { IgcNumericAxisBaseComponent } from "./igc-numeric-axis-base-component"; import { getAllPropertyNames, toSpinal, ensureEnum, enumToString } from "igniteui-webcomponents-core"; let IgcStraightNumericAxisBaseComponent = /*@__PURE__*/ (() => { class IgcStraightNumericAxisBaseComponent extends IgcNumericAxisBaseComponent { /** * @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 (IgcStraightNumericAxisBaseComponent._observedAttributesIgcStraightNumericAxisBaseComponent == null) { let names = getAllPropertyNames(IgcStraightNumericAxisBaseComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcStraightNumericAxisBaseComponent._observedAttributesIgcStraightNumericAxisBaseComponent = names; } return IgcStraightNumericAxisBaseComponent._observedAttributesIgcStraightNumericAxisBaseComponent; } /** * 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 scaleMode() { return this.i.s9; } set scaleMode(v) { this.i.s9 = ensureEnum(NumericScaleMode_$type, v); this._a("scaleMode", enumToString(NumericScaleMode_$type, this.i.s9)); } } IgcStraightNumericAxisBaseComponent._observedAttributesIgcStraightNumericAxisBaseComponent = null; return IgcStraightNumericAxisBaseComponent; })(); export { IgcStraightNumericAxisBaseComponent };