igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
110 lines (109 loc) • 4.61 kB
JavaScript
import { __extends } from "tslib";
import { IgcHorizontalStackedSeriesBaseComponent } from "./igc-horizontal-stacked-series-base-component";
import { StackedSplineAreaSeries } from "./StackedSplineAreaSeries";
import { getAllPropertyNames, toSpinal, ensureBool } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
* Represents a IgxDataChartComponent stacked spline area series.
*/
var IgcStackedSplineAreaSeriesComponent = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcStackedSplineAreaSeriesComponent, _super);
function IgcStackedSplineAreaSeriesComponent() {
return _super.call(this) || this;
}
IgcStackedSplineAreaSeriesComponent.prototype.createImplementation = function () {
return new StackedSplineAreaSeries();
};
Object.defineProperty(IgcStackedSplineAreaSeriesComponent.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcStackedSplineAreaSeriesComponent.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();
}
};
IgcStackedSplineAreaSeriesComponent.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(IgcStackedSplineAreaSeriesComponent, "observedAttributes", {
get: function () {
if (IgcStackedSplineAreaSeriesComponent._observedAttributesIgcStackedSplineAreaSeriesComponent == null) {
var names = getAllPropertyNames(IgcStackedSplineAreaSeriesComponent);
for (var i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcStackedSplineAreaSeriesComponent._observedAttributesIgcStackedSplineAreaSeriesComponent = names;
}
return IgcStackedSplineAreaSeriesComponent._observedAttributesIgcStackedSplineAreaSeriesComponent;
},
enumerable: false,
configurable: true
});
IgcStackedSplineAreaSeriesComponent.register = function () {
if (!IgcStackedSplineAreaSeriesComponent._isElementRegistered) {
IgcStackedSplineAreaSeriesComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcStackedSplineAreaSeriesComponent.htmlTagName, IgcStackedSplineAreaSeriesComponent);
}
};
Object.defineProperty(IgcStackedSplineAreaSeriesComponent.prototype, "isSplineShapePartOfRange", {
/**
* Gets or sets whether to include the spline shape in the axis range requested of the axis.
*/
get: function () {
return this.i.aca;
},
set: function (v) {
this.i.aca = ensureBool(v);
this._a("isSplineShapePartOfRange", this.i.aca);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcStackedSplineAreaSeriesComponent.prototype, "isArea", {
/**
* Gets whether the current series shows an area shape.
*/
get: function () {
return this.i.ew;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcStackedSplineAreaSeriesComponent.prototype, "isSpline", {
/**
* Gets whether the current series shows a spline shape.
*/
get: function () {
return this.i.f1;
},
enumerable: false,
configurable: true
});
IgcStackedSplineAreaSeriesComponent._observedAttributesIgcStackedSplineAreaSeriesComponent = null;
IgcStackedSplineAreaSeriesComponent.htmlTagName = "igc-stacked-spline-area-series";
IgcStackedSplineAreaSeriesComponent._isElementRegistered = false;
return IgcStackedSplineAreaSeriesComponent;
}(IgcHorizontalStackedSeriesBaseComponent));
export { IgcStackedSplineAreaSeriesComponent };