igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
101 lines (100 loc) • 4.2 kB
JavaScript
import { __extends } from "tslib";
import { UnknownValuePlotting_$type } from "igniteui-webcomponents-core";
import { IgcAnchoredRadialSeriesComponent } from "./igc-anchored-radial-series-component";
import { RadialAreaSeries } from "./RadialAreaSeries";
import { getAllPropertyNames, toSpinal, ensureEnum, enumToString } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
* Represents a IgxDataChartComponent radial area series.
*/
export var IgcRadialAreaSeriesComponent = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcRadialAreaSeriesComponent, _super);
function IgcRadialAreaSeriesComponent() {
return _super.call(this) || this;
}
IgcRadialAreaSeriesComponent.prototype.createImplementation = function () {
return new RadialAreaSeries();
};
Object.defineProperty(IgcRadialAreaSeriesComponent.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcRadialAreaSeriesComponent.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();
}
};
IgcRadialAreaSeriesComponent.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(IgcRadialAreaSeriesComponent, "observedAttributes", {
get: function () {
if (IgcRadialAreaSeriesComponent._observedAttributesIgcRadialAreaSeriesComponent == null) {
var names = getAllPropertyNames(IgcRadialAreaSeriesComponent);
for (var i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcRadialAreaSeriesComponent._observedAttributesIgcRadialAreaSeriesComponent = names;
}
return IgcRadialAreaSeriesComponent._observedAttributesIgcRadialAreaSeriesComponent;
},
enumerable: false,
configurable: true
});
IgcRadialAreaSeriesComponent.register = function () {
if (!IgcRadialAreaSeriesComponent._isElementRegistered) {
IgcRadialAreaSeriesComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcRadialAreaSeriesComponent.htmlTagName, IgcRadialAreaSeriesComponent);
}
};
Object.defineProperty(IgcRadialAreaSeriesComponent.prototype, "isArea", {
/**
* Gets whether the current series shows an area shape.
*/
get: function () {
return this.i.ex;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgcRadialAreaSeriesComponent.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.aea;
},
set: function (v) {
this.i.aea = ensureEnum(UnknownValuePlotting_$type, v);
this._a("unknownValuePlotting", enumToString(UnknownValuePlotting_$type, this.i.aea));
},
enumerable: false,
configurable: true
});
IgcRadialAreaSeriesComponent._observedAttributesIgcRadialAreaSeriesComponent = null;
IgcRadialAreaSeriesComponent.htmlTagName = "igc-radial-area-series";
IgcRadialAreaSeriesComponent._isElementRegistered = false;
return IgcRadialAreaSeriesComponent;
}(IgcAnchoredRadialSeriesComponent));