/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE  AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE:  you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { __extends } from "tslib";
import { ShapeSeriesBase } from "./ShapeSeriesBase";
import { StyleSelector } from "./StyleSelector";
import { DependencyProperty } from "igniteui-angular-core";
import { Style } from "igniteui-angular-core";
import { markType, markDep, typeCast } from "igniteui-angular-core";
import { ShapeSeriesViewBase } from "./ShapeSeriesViewBase";
import { ChartSelection } from "./ChartSelection";
import { List$1 } from "igniteui-angular-core";
import { PropertyMetadata } from "igniteui-angular-core";
import { Defaults } from "./Defaults";
import { Path } from "igniteui-angular-core";
import { stringIsNullOrEmpty } from "igniteui-angular-core";
/**
 * @hidden
 */
var ScatterPolylineSeries = /** @class */ /*@__PURE__*/ (function (_super) {
    __extends(ScatterPolylineSeries, _super);
    function ScatterPolylineSeries() {
        var _this = _super.call(this) || this;
        _this.ab = ScatterPolylineSeries.$;
        return _this;
    }
    ScatterPolylineSeries.prototype.bk = function () {
        return new ScatterPolylineSeries();
    };
    ScatterPolylineSeries.prototype.get_fs = function () {
        return true;
    };
    ScatterPolylineSeries.prototype.ct = function () {
        return new ScatterPolylineSeriesView(this);
    };
    ScatterPolylineSeries.prototype.get_ya = function () {
        return false;
    };
    ScatterPolylineSeries.prototype.q7 = function (a) {
        _super.prototype.q7.call(this, a);
        this.aah = a;
    };
    ScatterPolylineSeries.prototype.get_yg = function () {
        return false;
    };
    ScatterPolylineSeries.prototype.rg = function (a, b, c, d) {
        _super.prototype.rg.call(this, a, b, c, d);
        switch (b) {
            case ScatterPolylineSeries.$$p[0]:
                this.aah.db(this.aan);
                this.ry(false);
                this.qr();
                break;
            case ScatterPolylineSeries.$$p[1]:
                this.aah.dc(this.aai);
                this.ry(false);
                this.qr();
                break;
        }
    };
    ScatterPolylineSeries.prototype.zx = function (a) {
        var b = a;
        b.db(this.aan);
        b.dc(this.aai);
        _super.prototype.zx.call(this, a);
    };
    ScatterPolylineSeries.prototype.a2 = function (a, b) {
        var c = this.aah.dg(a, b, true);
        if (c != null) {
            return c.dataContext;
        }
        return _super.prototype.a2.call(this, a, b);
    };
    ScatterPolylineSeries.prototype.ak = function (a, b) {
        var c = new List$1(ChartSelection.$, 0);
        this.qa(a, c, b);
        return c.toArray();
    };
    ScatterPolylineSeries.prototype.qa = function (a, b, c) {
        this.zp(a, b, c);
    };
    ScatterPolylineSeries.$t = markType(ScatterPolylineSeries, 'ScatterPolylineSeries', ShapeSeriesBase.$);
    ScatterPolylineSeries.$$p = markDep(DependencyProperty, PropertyMetadata, ScatterPolylineSeries, 'raisePropertyChanged', ['ShapeStyle:aan:aal', [Style.$, null], 'ShapeStyleSelector:aai:aam', [StyleSelector.$, null]]);
    return ScatterPolylineSeries;
}(ShapeSeriesBase));
export { ScatterPolylineSeries };
/**
 * @hidden
 */
var ScatterPolylineSeriesView = /** @class */ /*@__PURE__*/ (function (_super) {
    __extends(ScatterPolylineSeriesView, _super);
    function ScatterPolylineSeriesView(a) {
        return _super.call(this, a) || this;
    }
    ScatterPolylineSeriesView.prototype.a4 = function () {
        _super.prototype.a4.call(this);
        if (!this.t) {
            this.cj.jt = Defaults.an;
        }
    };
    ScatterPolylineSeriesView.prototype.di = function (a, b) {
        return this.dj(a, b, false);
    };
    ScatterPolylineSeriesView.prototype.cz = function (a, b, c) {
        _super.prototype.cz.call(this, a, b, c);
        ShapeSeriesViewBase.cy(this, a, b);
    };
    ScatterPolylineSeriesView.prototype.cx = function (a, b) {
        var c = typeCast(Path.$, a);
        if (c == null) {
            return;
        }
        c.an = b;
    };
    ScatterPolylineSeriesView.prototype.ak = function (a) {
        var b = _super.prototype.ak.call(this, a);
        b._fill = null;
        return b;
    };
    ScatterPolylineSeriesView.prototype.aj = function (a) {
        var b = _super.prototype.aj.call(this, a);
        b._fill = null;
        return b;
    };
    ScatterPolylineSeriesView.prototype.co = function (a) {
        return a.width >= this.cj.yx || a.height >= this.cj.yx;
    };
    ScatterPolylineSeriesView.prototype.getDefaultTooltipTemplate = function () {
        var a = "<div class='ui-chart-default-tooltip-content'><span";
        var b = this.f.ba.a$u(this.f);
        if (!stringIsNullOrEmpty(b)) {
            a += " style='color:" + b + "'";
        }
        a += ">" + this.cj.title + "</span><br/>";
        a += "</div>";
        return a;
    };
    ScatterPolylineSeriesView.$t = markType(ScatterPolylineSeriesView, 'ScatterPolylineSeriesView', ShapeSeriesViewBase.$);
    return ScatterPolylineSeriesView;
}(ShapeSeriesViewBase));
export { ScatterPolylineSeriesView };
