igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
106 lines (105 loc) • 4.04 kB
JavaScript
import { __extends } from "tslib";
import { SplineType_$type } from "./SplineType";
import { IgcHorizontalAnchoredCategorySeriesComponent } from "./igc-horizontal-anchored-category-series-component";
import { getAllPropertyNames, toSpinal, ensureBool, ensureEnum, enumToString } from "igniteui-webcomponents-core";
/**
* Represents the base class for all IgxDataChartComponent spline series.
*/
var IgcSplineSeriesBaseComponent = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcSplineSeriesBaseComponent, _super);
function IgcSplineSeriesBaseComponent() {
return _super.call(this) || this;
}
Object.defineProperty(IgcSplineSeriesBaseComponent.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcSplineSeriesBaseComponent.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();
}
};
IgcSplineSeriesBaseComponent.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(IgcSplineSeriesBaseComponent, "observedAttributes", {
get: function () {
if (IgcSplineSeriesBaseComponent._observedAttributesIgcSplineSeriesBaseComponent == null) {
var names = getAllPropertyNames(IgcSplineSeriesBaseComponent);
for (var i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcSplineSeriesBaseComponent._observedAttributesIgcSplineSeriesBaseComponent = names;
}
return IgcSplineSeriesBaseComponent._observedAttributesIgcSplineSeriesBaseComponent;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSplineSeriesBaseComponent.prototype, "isSplineShapePartOfRange", {
/**
* Gets or sets whether to include the spline shape in the axis range requested of the axis.
*/
get: function () {
return this.i.ac5;
},
set: function (v) {
this.i.ac5 = ensureBool(v);
this._a("isSplineShapePartOfRange", this.i.ac5);
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSplineSeriesBaseComponent.prototype, "isAreaOrLine", {
/**
* Gets whether the current series shows an area or line shape.
*/
get: function () {
return this.i.ex;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcSplineSeriesBaseComponent.prototype, "splineType", {
/**
* Gets or sets the type of spline to be rendered.
*
* ```ts
* this.series.splineType = SplineType.Clamped;
* ```
*/
get: function () {
return this.i.ac4;
},
set: function (v) {
this.i.ac4 = ensureEnum(SplineType_$type, v);
this._a("splineType", enumToString(SplineType_$type, this.i.ac4));
},
enumerable: false,
configurable: true
});
IgcSplineSeriesBaseComponent._observedAttributesIgcSplineSeriesBaseComponent = null;
return IgcSplineSeriesBaseComponent;
}(IgcHorizontalAnchoredCategorySeriesComponent));
export { IgcSplineSeriesBaseComponent };