igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
70 lines (69 loc) • 2.91 kB
JavaScript
import { IgcStackedAreaSeriesComponent } from "./igc-stacked-area-series-component";
import { Stacked100AreaSeries } from "./Stacked100AreaSeries";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
* Represents a stacked area series, where values are presented as percentages of the total.
*/
export let IgcStacked100AreaSeriesComponent = /*@__PURE__*/ (() => {
class IgcStacked100AreaSeriesComponent extends IgcStackedAreaSeriesComponent {
createImplementation() {
return new Stacked100AreaSeries();
}
/**
* @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 (IgcStacked100AreaSeriesComponent._observedAttributesIgcStacked100AreaSeriesComponent == null) {
let names = getAllPropertyNames(IgcStacked100AreaSeriesComponent);
for (let i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcStacked100AreaSeriesComponent._observedAttributesIgcStacked100AreaSeriesComponent = names;
}
return IgcStacked100AreaSeriesComponent._observedAttributesIgcStacked100AreaSeriesComponent;
}
static register() {
if (!IgcStacked100AreaSeriesComponent._isElementRegistered) {
IgcStacked100AreaSeriesComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcStacked100AreaSeriesComponent.htmlTagName, IgcStacked100AreaSeriesComponent);
}
}
get isPercentBased() {
return this.i.abb;
}
}
IgcStacked100AreaSeriesComponent._observedAttributesIgcStacked100AreaSeriesComponent = null;
IgcStacked100AreaSeriesComponent.htmlTagName = "igc-stacked-100-area-series";
IgcStacked100AreaSeriesComponent._isElementRegistered = false;
return IgcStacked100AreaSeriesComponent;
})();