UNPKG

igniteui-webcomponents-charts

Version:

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

64 lines (63 loc) 2.41 kB
import { IgcHorizontalAnchoredCategorySeriesComponent } from "./igc-horizontal-anchored-category-series-component"; import { getAllPropertyNames, toSpinal, toPoint, fromPoint } from "igniteui-webcomponents-core"; /** * Represents one part of a stacked series. */ export let IgcFragmentBaseComponent = /*@__PURE__*/ (() => { class IgcFragmentBaseComponent extends IgcHorizontalAnchoredCategorySeriesComponent { /** * @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 (IgcFragmentBaseComponent._observedAttributesIgcFragmentBaseComponent == null) { let names = getAllPropertyNames(IgcFragmentBaseComponent); for (let i = 0; i < names.length; i++) { names[i] = toSpinal(names[i]); } IgcFragmentBaseComponent._observedAttributesIgcFragmentBaseComponent = names; } return IgcFragmentBaseComponent._observedAttributesIgcFragmentBaseComponent; } /** * Gets whether the current series is a stack fragment. */ get isFragment() { return this.i.isFragment; } getSeriesValuePosition(world, useInterpolation, skipUnknowns) { let iv = this.i.wh(toPoint(world), useInterpolation, skipUnknowns); return fromPoint(iv); } } IgcFragmentBaseComponent._observedAttributesIgcFragmentBaseComponent = null; return IgcFragmentBaseComponent; })();