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