UNPKG

igniteui-webcomponents-charts

Version:

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

69 lines (68 loc) 2.8 kB
import { IgcNumericYAxisComponent } from "./igc-numeric-y-axis-component"; import { PercentChangeYAxis } from "./PercentChangeYAxis"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * A horizontal axis that uses a DateTime scale. * * You can use the `PercentChangeYAxis` show percentage values. */ export let IgcPercentChangeYAxisComponent = /*@__PURE__*/ (() => { class IgcPercentChangeYAxisComponent extends IgcNumericYAxisComponent { createImplementation() { return new PercentChangeYAxis(); } /** * @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 (IgcPercentChangeYAxisComponent._observedAttributesIgcPercentChangeYAxisComponent == null) { let names = getAllPropertyNames(IgcPercentChangeYAxisComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcPercentChangeYAxisComponent._observedAttributesIgcPercentChangeYAxisComponent = names; } return IgcPercentChangeYAxisComponent._observedAttributesIgcPercentChangeYAxisComponent; } static register() { if (!IgcPercentChangeYAxisComponent._isElementRegistered) { IgcPercentChangeYAxisComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcPercentChangeYAxisComponent.htmlTagName, IgcPercentChangeYAxisComponent); } } } IgcPercentChangeYAxisComponent._observedAttributesIgcPercentChangeYAxisComponent = null; IgcPercentChangeYAxisComponent.htmlTagName = "igc-percent-change-y-axis"; IgcPercentChangeYAxisComponent._isElementRegistered = false; return IgcPercentChangeYAxisComponent; })();