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