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