UNPKG

igniteui-webcomponents-charts

Version:

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

77 lines (76 loc) 2.96 kB
import { IgcSplineFragmentBaseComponent } from "./igc-spline-fragment-base-component"; import { SplineFragment } from "./SplineFragment"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; let IgcSplineFragmentComponent = /*@__PURE__*/ (() => { class IgcSplineFragmentComponent extends IgcSplineFragmentBaseComponent { createImplementation() { return new SplineFragment(); } /** * @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 (IgcSplineFragmentComponent._observedAttributesIgcSplineFragmentComponent == null) { let names = getAllPropertyNames(IgcSplineFragmentComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcSplineFragmentComponent._observedAttributesIgcSplineFragmentComponent = names; } return IgcSplineFragmentComponent._observedAttributesIgcSplineFragmentComponent; } static register() { if (!IgcSplineFragmentComponent._isElementRegistered) { IgcSplineFragmentComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcSplineFragmentComponent.htmlTagName, IgcSplineFragmentComponent); } } /** * Gets whether the current series shows a spline shape. */ get isSpline() { return this.i.f3; } /** * Gets whether the current series shows an area or line shape. */ get isAreaOrLine() { return this.i.ey; } } IgcSplineFragmentComponent._observedAttributesIgcSplineFragmentComponent = null; IgcSplineFragmentComponent.htmlTagName = "igc-spline-fragment"; IgcSplineFragmentComponent._isElementRegistered = false; return IgcSplineFragmentComponent; })(); export { IgcSplineFragmentComponent };