/*
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 * as tslib_1 from "tslib";
import { SplineSeriesBase } from "./SplineSeriesBase";
import { CategoryLineRasterizer } from "./CategoryLineRasterizer";
import { typeCast, runOn, markType } from "igniteui-react-core";
import { Path } from "igniteui-react-core";
import { ScalerParams } from "./ScalerParams";
import { SplineSeriesBaseView } from "./SplineSeriesBaseView";
import { ISortingAxis_$type } from "./ISortingAxis";
/**
 * @hidden
 */
var SplineSeries = /** @class */ /*@__PURE__*/ (function (_super) {
    tslib_1.__extends(SplineSeries, _super);
    function SplineSeries() {
        var _this = _super.call(this) || this;
        _this.tg = null;
        _this.tg = new CategoryLineRasterizer();
        _this.ab = SplineSeries.$;
        return _this;
    }
    SplineSeries.prototype.bp = function () {
        return new SplineSeriesView(this);
    };
    SplineSeries.prototype.kk = function (a) {
        _super.prototype.kk.call(this, a);
        this.th = a;
    };
    SplineSeries.prototype.preferredCategoryMode = function (a) {
        return 0;
    };
    SplineSeries.prototype.jl = function (a, b) {
        _super.prototype.jl.call(this, a, b);
        var c = b;
        c.dc();
    };
    SplineSeries.prototype.rc = function (a, b) {
        _super.prototype.rc.call(this, a, b);
        var c = b;
        var d = c.cr.d;
        var e = typeCast(SplineSeriesView.$, b);
        var f = a.f;
        var g = this.getEffectiveViewport1(b);
        this.p2.a0(this, this.qm(), runOn(this, this.po), this.qu(b), this.qv(b));
        var h = false;
        var i = this.p2.b;
        if (i != null) {
            h = true;
        }
        if (h) {
            var j = new ScalerParams(0, b.bv, b.bu, this.sn.ca, g);
            this.q8(f, -1, this.valueColumn.count, this.sn, j, b.q);
        }
        var k = e.di;
        var l = e.dj;
        var m = e.dh;
        this.p2.ad(k, true, false, true, false);
        this.p2.ad(l, true, false, true, false);
        this.p2.ad(m, false, true, false, false);
        m._opacity = 0.75 * this.p2.j;
        if (b.cv(a)) {
            e.dd(f.count, f, true, 1, this.rk(f, f.count - 1, b.bu, b.bv), d, this.fq);
            b.cy(a);
        }
    };
    Object.defineProperty(SplineSeries.prototype, "useHighMarkerFidelity", {
        get: function () {
            return this.qp;
        },
        enumerable: true,
        configurable: true
    });
    SplineSeries.$t = markType(SplineSeries, 'SplineSeries', SplineSeriesBase.$);
    return SplineSeries;
}(SplineSeriesBase));
export { SplineSeries };
/**
 * @hidden
 */
var SplineSeriesView = /** @class */ /*@__PURE__*/ (function (_super) {
    tslib_1.__extends(SplineSeriesView, _super);
    function SplineSeriesView(a) {
        var _this = _super.call(this, a) || this;
        _this.db = null;
        _this.dl = new Path();
        _this.dk = new Path();
        _this.dm = new Path();
        _this.dg = new Path();
        _this.df = new Path();
        _this.de = new Path();
        _this.db = a;
        return _this;
    }
    Object.defineProperty(SplineSeriesView.prototype, "di", {
        get: function () {
            return this.dl;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(SplineSeriesView.prototype, "dj", {
        get: function () {
            return this.dm;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(SplineSeriesView.prototype, "dh", {
        get: function () {
            return this.dk;
        },
        enumerable: true,
        configurable: true
    });
    SplineSeriesView.prototype.dc = function () {
        this.dk.ak = null;
        this.dl.ak = null;
        this.dm.ak = null;
        this.aq();
    };
    SplineSeriesView.prototype.dd = function (a, b, c, d, e, f, g) {
        this.db.tg.a = typeCast(ISortingAxis_$type, this.ct.fetchXAxis()) !== null ? true : false;
        this.db.tg.m(this.dl, this.dk, this.dm, a, b, c, d, e, f, g);
        this.aq();
    };
    SplineSeriesView.prototype.bc = function () {
        _super.prototype.bc.call(this);
        this.df.ak = this.dl.ak;
        this.dg.ak = this.dm.ak;
        this.de.ak = this.dk.ak;
        var a = this.bo();
        this.df._stroke = a;
        this.df.ac = this.e.eu + 3;
        this.dg._stroke = a;
        this.dg.ac = this.e.eu + 3;
        this.de._fill = a;
        this.de._opacity = 1;
    };
    SplineSeriesView.prototype.a6 = function (a, b) {
        _super.prototype.a6.call(this, a, b);
        if (a.d) {
            if (b) {
                a.s(this.de);
                a.s(this.df);
                a.s(this.dg);
            }
            else {
                a.s(this.dk);
                a.s(this.dl);
                a.s(this.dm);
            }
        }
    };
    SplineSeriesView.prototype.al = function (a) {
        _super.prototype.al.call(this, a);
        this.e.a5.exportPathData(a, this.dl, "lowerShape", ["Lower", "Main"]);
        this.e.a5.exportPathData(a, this.dm, "upperShape", ["Upper"]);
        this.e.a5.exportPathData(a, this.dk, "translucentShape", ["Translucent"]);
    };
    SplineSeriesView.$t = markType(SplineSeriesView, 'SplineSeriesView', SplineSeriesBaseView.$);
    return SplineSeriesView;
}(SplineSeriesBaseView));
export { SplineSeriesView };
//# sourceMappingURL=SplineSeries_combined.js.map
