igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
81 lines (80 loc) • 3.31 kB
JavaScript
import { IgcHorizontalStackedSeriesBaseComponent } from "./igc-horizontal-stacked-series-base-component";
import { StackedSplineSeries } from "./StackedSplineSeries";
import { getAllPropertyNames, toSpinal, ensureBool } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
let IgcStackedSplineSeriesComponent = /*@__PURE__*/ (() => {
class IgcStackedSplineSeriesComponent extends IgcHorizontalStackedSeriesBaseComponent {
createImplementation() {
return new StackedSplineSeries();
}
/**
* @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 (IgcStackedSplineSeriesComponent._observedAttributesIgcStackedSplineSeriesComponent == null) {
let names = getAllPropertyNames(IgcStackedSplineSeriesComponent);
for (let i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcStackedSplineSeriesComponent._observedAttributesIgcStackedSplineSeriesComponent = names;
}
return IgcStackedSplineSeriesComponent._observedAttributesIgcStackedSplineSeriesComponent;
}
static register() {
if (!IgcStackedSplineSeriesComponent._isElementRegistered) {
IgcStackedSplineSeriesComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcStackedSplineSeriesComponent.htmlTagName, IgcStackedSplineSeriesComponent);
}
}
/**
* Gets or sets whether to include the spline shape in the axis range requested of the axis.
*/
get isSplineShapePartOfRange() {
return this.i.acq;
}
set isSplineShapePartOfRange(v) {
this.i.acq = ensureBool(v);
this._a("isSplineShapePartOfRange", this.i.acq);
}
/**
* Gets whether the current series shows a spline shape.
*/
get isSpline() {
return this.i.f3;
}
}
IgcStackedSplineSeriesComponent._observedAttributesIgcStackedSplineSeriesComponent = null;
IgcStackedSplineSeriesComponent.htmlTagName = "igc-stacked-spline-series";
IgcStackedSplineSeriesComponent._isElementRegistered = false;
return IgcStackedSplineSeriesComponent;
})();
export { IgcStackedSplineSeriesComponent };