igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
75 lines (74 loc) • 2.87 kB
JavaScript
import { IgcHorizontalAnchoredCategorySeriesComponent } from "./igc-horizontal-anchored-category-series-component";
import { PointSeries } from "./PointSeries";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
* Represents a IgxDataChartComponent point series.
*
* You can use the `PointSeries` plot a value along a category or date.
*/
export let IgcPointSeriesComponent = /*@__PURE__*/ (() => {
class IgcPointSeriesComponent extends IgcHorizontalAnchoredCategorySeriesComponent {
createImplementation() {
return new PointSeries();
}
/**
* @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 (IgcPointSeriesComponent._observedAttributesIgcPointSeriesComponent == null) {
let names = getAllPropertyNames(IgcPointSeriesComponent);
for (let i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcPointSeriesComponent._observedAttributesIgcPointSeriesComponent = names;
}
return IgcPointSeriesComponent._observedAttributesIgcPointSeriesComponent;
}
static register() {
if (!IgcPointSeriesComponent._isElementRegistered) {
IgcPointSeriesComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcPointSeriesComponent.htmlTagName, IgcPointSeriesComponent);
}
}
/**
* Gets whether the series has only marker as visuals
*/
get hasOnlyMarkers() {
return this.i.ek;
}
}
IgcPointSeriesComponent._observedAttributesIgcPointSeriesComponent = null;
IgcPointSeriesComponent.htmlTagName = "igc-point-series";
IgcPointSeriesComponent._isElementRegistered = false;
return IgcPointSeriesComponent;
})();