igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
110 lines (108 loc) • 4.5 kB
JavaScript
import { __extends } from "tslib";
import { UnknownValuePlotting_$type } from "igniteui-webcomponents-core";
import { IgcAnchoredRadialSeriesComponent } from "./igc-anchored-radial-series-component";
import { RadialLineSeries } from "./RadialLineSeries";
import { getAllPropertyNames, toSpinal, ensureEnum, enumToString } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
* Represents a IgxDataChartComponent radial line series.
*/
var IgcRadialLineSeriesComponent = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcRadialLineSeriesComponent, _super);
function IgcRadialLineSeriesComponent() {
return _super.call(this) || this;
}
IgcRadialLineSeriesComponent.prototype.createImplementation = function () {
return new RadialLineSeries();
};
Object.defineProperty(IgcRadialLineSeriesComponent.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcRadialLineSeriesComponent.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();
}
};
IgcRadialLineSeriesComponent.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(IgcRadialLineSeriesComponent, "observedAttributes", {
get: function () {
if (IgcRadialLineSeriesComponent._observedAttributesIgcRadialLineSeriesComponent == null) {
var names = getAllPropertyNames(IgcRadialLineSeriesComponent);
for (var i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcRadialLineSeriesComponent._observedAttributesIgcRadialLineSeriesComponent = names;
}
return IgcRadialLineSeriesComponent._observedAttributesIgcRadialLineSeriesComponent;
},
enumerable: false,
configurable: true
});
IgcRadialLineSeriesComponent.register = function () {
if (!IgcRadialLineSeriesComponent._isElementRegistered) {
IgcRadialLineSeriesComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcRadialLineSeriesComponent.htmlTagName, IgcRadialLineSeriesComponent);
}
};
Object.defineProperty(IgcRadialLineSeriesComponent.prototype, "isLineOnly", {
/**
* Gets whether the current series shows only line shapes.
*/
get: function () {
return this.i.fl;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcRadialLineSeriesComponent.prototype, "unknownValuePlotting", {
/**
* Determines how unknown values will be plotted on the chart.
* Null and Double.NaN are two examples of unknown values.
*/
get: function () {
return this.i.adt;
},
set: function (v) {
this.i.adt = ensureEnum(UnknownValuePlotting_$type, v);
this._a("unknownValuePlotting", enumToString(UnknownValuePlotting_$type, this.i.adt));
},
enumerable: false,
configurable: true
});
/**
* When overridden in a derived class, is invoked whenever application code or internal processes
* call ApplyTemplate.
*/
IgcRadialLineSeriesComponent.prototype.onApplyTemplate = function () {
this.i.ac();
};
IgcRadialLineSeriesComponent._observedAttributesIgcRadialLineSeriesComponent = null;
IgcRadialLineSeriesComponent.htmlTagName = "igc-radial-line-series";
IgcRadialLineSeriesComponent._isElementRegistered = false;
return IgcRadialLineSeriesComponent;
}(IgcAnchoredRadialSeriesComponent));
export { IgcRadialLineSeriesComponent };