igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
91 lines (90 loc) • 3.4 kB
JavaScript
import { IgcHorizontalAnchoredCategorySeriesComponent } from "./igc-horizontal-anchored-category-series-component";
import { StepLineSeries } from "./StepLineSeries";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
* Represents a IgxDataChartComponent step line series.
*/
export let IgcStepLineSeriesComponent = /*@__PURE__*/ (() => {
class IgcStepLineSeriesComponent extends IgcHorizontalAnchoredCategorySeriesComponent {
createImplementation() {
return new StepLineSeries();
}
/**
* @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 (IgcStepLineSeriesComponent._observedAttributesIgcStepLineSeriesComponent == null) {
let names = getAllPropertyNames(IgcStepLineSeriesComponent);
for (let i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcStepLineSeriesComponent._observedAttributesIgcStepLineSeriesComponent = names;
}
return IgcStepLineSeriesComponent._observedAttributesIgcStepLineSeriesComponent;
}
static register() {
if (!IgcStepLineSeriesComponent._isElementRegistered) {
IgcStepLineSeriesComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcStepLineSeriesComponent.htmlTagName, IgcStepLineSeriesComponent);
}
}
/**
* Gets whether the current series shows only line shapes.
*/
get isLineOnly() {
return this.i.fl;
}
/**
* 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;
}
/**
* Gets whether the current series shows an area or line shape.
*/
get isAreaOrLine() {
return this.i.ex;
}
}
IgcStepLineSeriesComponent._observedAttributesIgcStepLineSeriesComponent = null;
IgcStepLineSeriesComponent.htmlTagName = "igc-step-line-series";
IgcStepLineSeriesComponent._isElementRegistered = false;
return IgcStepLineSeriesComponent;
})();