igniteui-webcomponents-charts
Version:
Ignite UI Web Components charting components for building rich data visualizations using TypeScript APIs.
85 lines (84 loc) • 3.6 kB
JavaScript
import { __extends } from "tslib";
import { IgcHorizontalStackedSeriesBaseComponent } from "./igc-horizontal-stacked-series-base-component";
import { StackedLineSeries } from "./StackedLineSeries";
import { getAllPropertyNames, toSpinal } from "igniteui-webcomponents-core";
import { RegisterElementHelper } from "igniteui-webcomponents-core";
/**
* Represents a stacked series, where the points in each series are connected with a line.
*/
export var IgcStackedLineSeriesComponent = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgcStackedLineSeriesComponent, _super);
function IgcStackedLineSeriesComponent() {
return _super.call(this) || this;
}
IgcStackedLineSeriesComponent.prototype.createImplementation = function () {
return new StackedLineSeries();
};
Object.defineProperty(IgcStackedLineSeriesComponent.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
IgcStackedLineSeriesComponent.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();
}
};
IgcStackedLineSeriesComponent.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(IgcStackedLineSeriesComponent, "observedAttributes", {
get: function () {
if (IgcStackedLineSeriesComponent._observedAttributesIgcStackedLineSeriesComponent == null) {
var names = getAllPropertyNames(IgcStackedLineSeriesComponent);
for (var i = 0; i < names.length; i++) {
names[i] = toSpinal(names[i]);
}
IgcStackedLineSeriesComponent._observedAttributesIgcStackedLineSeriesComponent = names;
}
return IgcStackedLineSeriesComponent._observedAttributesIgcStackedLineSeriesComponent;
},
enumerable: false,
configurable: true
});
IgcStackedLineSeriesComponent.register = function () {
if (!IgcStackedLineSeriesComponent._isElementRegistered) {
IgcStackedLineSeriesComponent._isElementRegistered = true;
RegisterElementHelper.registerElement(IgcStackedLineSeriesComponent.htmlTagName, IgcStackedLineSeriesComponent);
}
};
Object.defineProperty(IgcStackedLineSeriesComponent.prototype, "isLineOnly", {
/**
* Gets whether the current series shows only line shapes.
*/
get: function () {
return this.i.fn;
},
enumerable: false,
configurable: true
});
IgcStackedLineSeriesComponent._observedAttributesIgcStackedLineSeriesComponent = null;
IgcStackedLineSeriesComponent.htmlTagName = "igc-stacked-line-series";
IgcStackedLineSeriesComponent._isElementRegistered = false;
return IgcStackedLineSeriesComponent;
}(IgcHorizontalStackedSeriesBaseComponent));