igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
86 lines (85 loc) • 3.6 kB
JavaScript
import { __extends } from "tslib";
import { IgcHorizontalStackedSeriesBaseComponent } from "./igc-horizontal-stacked-series-base-component";
import { StackedAreaSeries } from "./StackedAreaSeries";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
* Represents a IgxDataChartComponent stacked area series.
*/
var IgcStackedAreaSeriesComponent = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcStackedAreaSeriesComponent, _super);
function IgcStackedAreaSeriesComponent() {
return _super.call(this) || this;
}
IgcStackedAreaSeriesComponent.prototype.createImplementation = function () {
return new StackedAreaSeries();
};
Object.defineProperty(IgcStackedAreaSeriesComponent.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcStackedAreaSeriesComponent.prototype.connectedCallback = function () {
if (_super.prototype["connectedCallback"]) {
_super.prototype["connectedCallback"].call(this);
}
if (this.i.connectedCallback) {
this.i.connectedCallback();
}
if (!this._attached) {
this._attached = true;
this._flushQueuedAttributes();
}
};
IgcStackedAreaSeriesComponent.prototype.disconnectedCallback = function () {
if (_super.prototype["disconnectedCallback"]) {
_super.prototype["disconnectedCallback"].call(this);
}
if (this.i.disconnectedCallback) {
this.i.disconnectedCallback();
}
if (this._attached) {
this._attached = false;
}
};
Object.defineProperty(IgcStackedAreaSeriesComponent, "observedAttributes", {
get: function () {
if (IgcStackedAreaSeriesComponent._observedAttributesIgcStackedAreaSeriesComponent == null) {
var names = getAllPropertyNames(IgcStackedAreaSeriesComponent);
for (var i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcStackedAreaSeriesComponent._observedAttributesIgcStackedAreaSeriesComponent = names;
}
return IgcStackedAreaSeriesComponent._observedAttributesIgcStackedAreaSeriesComponent;
},
enumerable: false,
configurable: true
});
IgcStackedAreaSeriesComponent.register = function () {
if (!IgcStackedAreaSeriesComponent._isElementRegistered) {
IgcStackedAreaSeriesComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcStackedAreaSeriesComponent.htmlTagName, IgcStackedAreaSeriesComponent);
}
};
Object.defineProperty(IgcStackedAreaSeriesComponent.prototype, "isArea", {
/**
* Gets whether the current series shows an area shape.
*/
get: function () {
return this.i.ew;
},
enumerable: false,
configurable: true
});
IgcStackedAreaSeriesComponent._observedAttributesIgcStackedAreaSeriesComponent = null;
IgcStackedAreaSeriesComponent.htmlTagName = "igc-stacked-area-series";
IgcStackedAreaSeriesComponent._isElementRegistered = false;
return IgcStackedAreaSeriesComponent;
}(IgcHorizontalStackedSeriesBaseComponent));
export { IgcStackedAreaSeriesComponent };