import * as tslib_1 from "tslib";
import { Component, forwardRef, Input, ChangeDetectionStrategy } from '@angular/core';
import { Style } from "igniteui-angular-core/ES5/igx-style";
import { IgxShapeSeriesBaseComponent } from "./igx-shape-series-base-component";
import { IgxSeriesComponent } from "./igx-series-component";
import { ScatterPolylineSeries } from "./ScatterPolylineSeries";
import { StyleSelector } from "./StyleSelector";
/**
 * Series class used for displaying multiple polylines for datasources which contain multiple lists of points.
*/
export var IgxScatterPolylineSeriesComponent_PROVIDERS = [{ provide: IgxShapeSeriesBaseComponent, useExisting: forwardRef(function () { return IgxScatterPolylineSeriesComponent; }) }, { provide: IgxSeriesComponent, useExisting: forwardRef(function () { return IgxScatterPolylineSeriesComponent; }) }];
var IgxScatterPolylineSeriesComponent = /** @class */ (function (_super) {
    tslib_1.__extends(IgxScatterPolylineSeriesComponent, _super);
    function IgxScatterPolylineSeriesComponent() {
        return _super.call(this) || this;
    }
    IgxScatterPolylineSeriesComponent_1 = IgxScatterPolylineSeriesComponent;
    IgxScatterPolylineSeriesComponent.prototype.createImplementation = function () {
        return new ScatterPolylineSeries();
    };
    Object.defineProperty(IgxScatterPolylineSeriesComponent.prototype, "i", {
        /**
                                     * @hidden
                                     */
        get: function () {
            return this._implementation;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IgxScatterPolylineSeriesComponent.prototype, "shapeStyleSelector", {
        /**
         * The StyleSelector which is used to select a style for each Shape.
        */
        get: function () {
            return this.i.na;
        },
        set: function (v) {
            this.i.na = v;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(IgxScatterPolylineSeriesComponent.prototype, "shapeStyle", {
        /**
         * The default style to apply to all Shapes in the series.
        */
        get: function () {
            if (this.i.nf == null) {
                return null;
            }
            if (!this.i.nf.externalObject) {
                var e = new Style();
                e._implementation = this.i.nf;
                this.i.nf.externalObject = e;
            }
            return this.i.nf.externalObject;
        },
        set: function (v) {
            v == null ? this.i.nf = null : this.i.nf = v.i;
        },
        enumerable: true,
        configurable: true
    });
    var IgxScatterPolylineSeriesComponent_1;
    tslib_1.__decorate([
        Input(),
        tslib_1.__metadata("design:type", StyleSelector),
        tslib_1.__metadata("design:paramtypes", [StyleSelector])
    ], IgxScatterPolylineSeriesComponent.prototype, "shapeStyleSelector", null);
    tslib_1.__decorate([
        Input(),
        tslib_1.__metadata("design:type", Style),
        tslib_1.__metadata("design:paramtypes", [Style])
    ], IgxScatterPolylineSeriesComponent.prototype, "shapeStyle", null);
    IgxScatterPolylineSeriesComponent = IgxScatterPolylineSeriesComponent_1 = tslib_1.__decorate([
        Component({
            selector: 'igx-scatter-polyline-series',
            template: "",
            providers: [{ provide: IgxShapeSeriesBaseComponent, useExisting: forwardRef(function () { return IgxScatterPolylineSeriesComponent_1; }) }, { provide: IgxSeriesComponent, useExisting: forwardRef(function () { return IgxScatterPolylineSeriesComponent_1; }) }],
            changeDetection: ChangeDetectionStrategy.OnPush
        }),
        tslib_1.__metadata("design:paramtypes", [])
    ], IgxScatterPolylineSeriesComponent);
    return IgxScatterPolylineSeriesComponent;
}(IgxShapeSeriesBaseComponent));
export { IgxScatterPolylineSeriesComponent };
//# sourceMappingURL=igx-scatter-polyline-series-component.js.map