igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
100 lines (99 loc) • 4.17 kB
JavaScript
import { __extends } from "tslib";
import { IgcHorizontalStackedSeriesBaseComponent } from "./igc-horizontal-stacked-series-base-component";
import { StackedSplineSeries } from "./StackedSplineSeries";
import { getAllPropertyNames, toSpinal, ensureBool } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
* Represents a IgxDataChartComponent stacked spline series.
*/
var IgcStackedSplineSeriesComponent = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcStackedSplineSeriesComponent, _super);
function IgcStackedSplineSeriesComponent() {
return _super.call(this) || this;
}
IgcStackedSplineSeriesComponent.prototype.createImplementation = function () {
return new StackedSplineSeries();
};
Object.defineProperty(IgcStackedSplineSeriesComponent.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcStackedSplineSeriesComponent.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();
}
};
IgcStackedSplineSeriesComponent.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(IgcStackedSplineSeriesComponent, "observedAttributes", {
get: function () {
if (IgcStackedSplineSeriesComponent._observedAttributesIgcStackedSplineSeriesComponent == null) {
var names = getAllPropertyNames(IgcStackedSplineSeriesComponent);
for (var i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcStackedSplineSeriesComponent._observedAttributesIgcStackedSplineSeriesComponent = names;
}
return IgcStackedSplineSeriesComponent._observedAttributesIgcStackedSplineSeriesComponent;
},
enumerable: false,
configurable: true
});
IgcStackedSplineSeriesComponent.register = function () {
if (!IgcStackedSplineSeriesComponent._isElementRegistered) {
IgcStackedSplineSeriesComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcStackedSplineSeriesComponent.htmlTagName, IgcStackedSplineSeriesComponent);
}
};
Object.defineProperty(IgcStackedSplineSeriesComponent.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(IgcStackedSplineSeriesComponent.prototype, "isSpline", {
/**
* Gets whether the current series shows a spline shape.
*/
get: function () {
return this.i.f1;
},
enumerable: false,
configurable: true
});
IgcStackedSplineSeriesComponent._observedAttributesIgcStackedSplineSeriesComponent = null;
IgcStackedSplineSeriesComponent.htmlTagName = "igc-stacked-spline-series";
IgcStackedSplineSeriesComponent._isElementRegistered = false;
return IgcStackedSplineSeriesComponent;
}(IgcHorizontalStackedSeriesBaseComponent));
export { IgcStackedSplineSeriesComponent };