UNPKG

igniteui-webcomponents-charts

Version:

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

79 lines (78 loc) 2.92 kB
import { IgcFragmentBaseComponent } from "./igc-fragment-base-component"; import { LineFragment } from "./LineFragment"; import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core"; import { RegisterElementHelper } from "igniteui-webcomponents-core"; /** * Represents one part of a StackedLineSeries. */ export let IgcLineFragmentComponent = /*@__PURE__*/ (() => { class IgcLineFragmentComponent extends IgcFragmentBaseComponent { createImplementation() { return new LineFragment(); } /** * @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 (IgcLineFragmentComponent._observedAttributesIgcLineFragmentComponent == null) { let names = getAllPropertyNames(IgcLineFragmentComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcLineFragmentComponent._observedAttributesIgcLineFragmentComponent = names; } return IgcLineFragmentComponent._observedAttributesIgcLineFragmentComponent; } static register() { if (!IgcLineFragmentComponent._isElementRegistered) { IgcLineFragmentComponent._isElementRegistered = true; RegisterElementHelper.registerElement(IgcLineFragmentComponent.htmlTagName, IgcLineFragmentComponent); } } /** * Gets whether the current series shows only line shapes. */ get isLineOnly() { return this.i.fl; } /** * Gets whether the current series shows an area or line shape. */ get isAreaOrLine() { return this.i.ex; } } IgcLineFragmentComponent._observedAttributesIgcLineFragmentComponent = null; IgcLineFragmentComponent.htmlTagName = "igc-line-fragment"; IgcLineFragmentComponent._isElementRegistered = false; return IgcLineFragmentComponent; })();