UNPKG

igniteui-webcomponents-charts

Version:

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

85 lines (84 loc) 3.22 kB
import { IgcSplineFragmentBaseComponent } from "./igc-spline-fragment-base-component"; import { SplineAreaFragment } from "./SplineAreaFragment"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents one part of a StackedSplineAreaSeries. */ export let IgcSplineAreaFragmentComponent = /*@__PURE__*/ (() => { class IgcSplineAreaFragmentComponent extends IgcSplineFragmentBaseComponent { createImplementation() { return new SplineAreaFragment(); } /** * @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 (IgcSplineAreaFragmentComponent._observedAttributesIgcSplineAreaFragmentComponent == null) { let names = getAllPropertyNames(IgcSplineAreaFragmentComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcSplineAreaFragmentComponent._observedAttributesIgcSplineAreaFragmentComponent = names; } return IgcSplineAreaFragmentComponent._observedAttributesIgcSplineAreaFragmentComponent; } static register() { if (!IgcSplineAreaFragmentComponent._isElementRegistered) { IgcSplineAreaFragmentComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcSplineAreaFragmentComponent.htmlTagName, IgcSplineAreaFragmentComponent); } } /** * Gets whether the current series shows an area or line shape. */ get isAreaOrLine() { return this.i.ex; } /** * Gets whether the current series shows an area shape. */ get isArea() { return this.i.ew; } /** * Gets whether the current series shows a spline shape. */ get isSpline() { return this.i.f1; } } IgcSplineAreaFragmentComponent._observedAttributesIgcSplineAreaFragmentComponent = null; IgcSplineAreaFragmentComponent.htmlTagName = "igc-spline-area-fragment"; IgcSplineAreaFragmentComponent._isElementRegistered = false; return IgcSplineAreaFragmentComponent; })();