igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
91 lines (90 loc) • 3.39 kB
JavaScript
import { IgcHorizontalAnchoredCategorySeriesComponent } from "./igc-horizontal-anchored-category-series-component";
import { StepAreaSeries } from "./StepAreaSeries";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
* Represents a IgxDataChartComponent step area series.
*/
export let IgcStepAreaSeriesComponent = /*@__PURE__*/ (() => {
class IgcStepAreaSeriesComponent extends IgcHorizontalAnchoredCategorySeriesComponent {
createImplementation() {
return new StepAreaSeries();
}
/**
* @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 (IgcStepAreaSeriesComponent._observedAttributesIgcStepAreaSeriesComponent == null) {
let names = getAllPropertyNames(IgcStepAreaSeriesComponent);
for (let i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcStepAreaSeriesComponent._observedAttributesIgcStepAreaSeriesComponent = names;
}
return IgcStepAreaSeriesComponent._observedAttributesIgcStepAreaSeriesComponent;
}
static register() {
if (!IgcStepAreaSeriesComponent._isElementRegistered) {
IgcStepAreaSeriesComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcStepAreaSeriesComponent.htmlTagName, IgcStepAreaSeriesComponent);
}
}
/**
* 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 step shapes.
*/
get isStep() {
return this.i.f2;
}
/**
* Overridden by derived series classes to indicate when marker-less display is preferred or not.
*/
get isMarkerlessDisplayPreferred() {
return this.i.fm;
}
}
IgcStepAreaSeriesComponent._observedAttributesIgcStepAreaSeriesComponent = null;
IgcStepAreaSeriesComponent.htmlTagName = "igc-step-area-series";
IgcStepAreaSeriesComponent._isElementRegistered = false;
return IgcStepAreaSeriesComponent;
})();