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