igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
78 lines (77 loc) • 3.2 kB
JavaScript
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 let IgcNumericYAxisComponent = /*@__PURE__*/ (() => {
class IgcNumericYAxisComponent extends IgcStraightNumericAxisBaseComponent {
createImplementation() {
return new NumericYAxis();
}
/**
* @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 (IgcNumericYAxisComponent._observedAttributesIgcNumericYAxisComponent == null) {
let names = getAllPropertyNames(IgcNumericYAxisComponent);
for (let i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcNumericYAxisComponent._observedAttributesIgcNumericYAxisComponent = names;
}
return IgcNumericYAxisComponent._observedAttributesIgcNumericYAxisComponent;
}
static register() {
if (!IgcNumericYAxisComponent._isElementRegistered) {
IgcNumericYAxisComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcNumericYAxisComponent.htmlTagName, IgcNumericYAxisComponent);
}
}
/**
* Gets if the current axis is of vertical axis
*/
get isVertical() {
return this.i.cp;
}
scrollRangeIntoView(minimum, maximum) {
this.i.oj(minimum, maximum);
}
}
IgcNumericYAxisComponent._observedAttributesIgcNumericYAxisComponent = null;
IgcNumericYAxisComponent.htmlTagName = "igc-numeric-y-axis";
IgcNumericYAxisComponent._isElementRegistered = false;
return IgcNumericYAxisComponent;
})();