/*
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 { AnchoredRadialSeries } from "./AnchoredRadialSeries";
import { UnknownValuePlotting_$type } from "igniteui-react-core";
import { DependencyProperty } from "igniteui-react-core";
import { Array_$type, runOn, enumGetBox, markType, markDep } from "igniteui-react-core";
import { List$1 } from "igniteui-react-core";
import { Path } from "igniteui-react-core";
import { ScalerParams } from "./ScalerParams";
import { PropertyMetadata } from "igniteui-react-core";
import { AnchoredRadialSeriesView } from "./AnchoredRadialSeriesView";
import { Defaults } from "./Defaults";
import { Color } from "igniteui-react-core";
/**
 * @hidden
 */
var RadialLineSeries = /** @class */ /*@__PURE__*/ (function (_super) {
    __extends(RadialLineSeries, _super);
    function RadialLineSeries() {
        var _this = _super.call(this) || this;
        _this.ab = RadialLineSeries.$;
        return _this;
    }
    RadialLineSeries.prototype.get_ex = function () {
        return true;
    };
    RadialLineSeries.prototype.cg = function () {
        return new RadialLineSeriesView(this);
    };
    RadialLineSeries.prototype.o0 = function (a) {
        _super.prototype.o0.call(this, a);
        this.x9 = a;
    };
    RadialLineSeries.prototype.ac = function () {
        _super.prototype.ac.call(this);
    };
    RadialLineSeries.prototype.preferredCategoryMode = function (a) {
        return 0;
    };
    RadialLineSeries.prototype.v9 = function () {
        return true;
    };
    RadialLineSeries.prototype.nj = function (a, b) {
        _super.prototype.nj.call(this, a, b);
        var c = b;
        c.c4();
    };
    RadialLineSeries.prototype.wo = function (a, b) {
        _super.prototype.wo.call(this, a, b);
        var c = b.by;
        var d = b.bx;
        var e = a.f;
        var f = e.count;
        var g = new List$1(Array_$type, 2, f);
        var h = 0;
        for (var i = 0; i < f; i++) {
            var j = new Array(4);
            g.add(j);
            j[0] = this.vq.d(a.f._inner[i][0], a.f._inner[i][1], c, d);
            j[1] = this.vq.e(a.f._inner[i][0], a.f._inner[i][1], c, d);
            j[2] = this.vq.d(a.f._inner[i][0], a.f._inner[i][2], c, d);
            var k = a.f._inner[i][2];
            j[3] = this.vq.e(a.f._inner[i][0], k, c, d);
            if (k > h) {
                h = k;
            }
        }
        var l = this.getEffectiveViewport1(b);
        this.vw.a2(this, this.v8(), runOn(this, this.vf), this.wb(b), this.wc(b));
        var m = false;
        var n = this.vw.b;
        if (n != null) {
            m = true;
        }
        if (m) {
            var o = new ScalerParams(0, b.by, b.bx, this.vi.ch, l);
            this.xq(e, -1, this.w2.count, this.vi, o, b.q);
        }
        var p = b;
        var q = p.dd;
        var r = p.de;
        var s = p.dc;
        this.vw.ad(q, true, false, true, false);
        this.vw.ad(r, true, false, true, false);
        this.vw.ad(s, false, true, false, false);
        s._opacity = 0.75 * this.vw.j;
        p.c5(f, g, false, this.ya, this.wv(g, f - 1, b), p.cv.b, this.hj);
    };
    RadialLineSeries.prototype.o8 = function (a, b, c, d) {
        _super.prototype.o8.call(this, a, b, c, d);
        switch (b) {
            case RadialLineSeries.$$p[0]:
                this.pp(false);
                this.ol();
                break;
        }
    };
    RadialLineSeries.prototype.get_w5 = function () {
        return true;
    };
    RadialLineSeries.$t = markType(RadialLineSeries, 'RadialLineSeries', AnchoredRadialSeries.$);
    RadialLineSeries.$$p = markDep(DependencyProperty, PropertyMetadata, RadialLineSeries, 'raisePropertyChanged', ['UnknownValuePlotting:ya:yc', [UnknownValuePlotting_$type, enumGetBox(UnknownValuePlotting_$type, 1)]]);
    return RadialLineSeries;
}(AnchoredRadialSeries));
export { RadialLineSeries };
/**
 * @hidden
 */
var RadialLineSeriesView = /** @class */ /*@__PURE__*/ (function (_super) {
    __extends(RadialLineSeriesView, _super);
    function RadialLineSeriesView(a) {
        var _this = _super.call(this, a) || this;
        _this.c3 = null;
        _this.da = new Path();
        _this.c9 = new Path();
        _this.db = new Path();
        _this.c7 = new Path();
        _this.c6 = new Path();
        _this.c8 = new Path();
        _this.c3 = a;
        return _this;
    }
    RadialLineSeriesView.prototype.au = function () {
        _super.prototype.au.call(this);
        if (!this.q) {
            this.b4.ua = Defaults.e;
        }
    };
    Object.defineProperty(RadialLineSeriesView.prototype, "dd", {
        get: function () {
            return this.da;
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(RadialLineSeriesView.prototype, "de", {
        get: function () {
            return this.db;
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(RadialLineSeriesView.prototype, "dc", {
        get: function () {
            return this.c9;
        },
        enumerable: false,
        configurable: true
    });
    RadialLineSeriesView.prototype.c4 = function () {
        this.da.an = null;
        this.c9.an = null;
        this.db.an = null;
        this.c7.an = null;
        this.c6.an = null;
        this.c8.an = null;
        this.as();
    };
    RadialLineSeriesView.prototype.c5 = function (a, b, c, d, e, f, g) {
        this.cz.wx.m(this.da, this.c9, this.db, a, b, c, d, e, f, g);
        this.as();
    };
    RadialLineSeriesView.prototype.bd = function () {
        _super.prototype.bd.call(this);
    };
    RadialLineSeriesView.prototype.be = function () {
        _super.prototype.be.call(this);
        var a = this.br();
        this.c6.an = this.c9.an;
        this.c7.an = this.da.an;
        this.c8.an = this.db.an;
        this.c7._stroke = a;
        this.c7.ad = this.e.hk + 3;
        this.c8._stroke = a;
        this.c8.ad = this.e.hk + 3;
        this.c6._fill = a;
        this.c6._opacity = 1;
    };
    RadialLineSeriesView.prototype.a8 = function (a, b) {
        _super.prototype.a8.call(this, a, b);
        if (a.d) {
            if (b) {
                a.t(this.c6);
                a.t(this.c7);
                a.t(this.c8);
            }
            else {
                a.t(this.c9);
                a.t(this.da);
                a.t(this.db);
            }
        }
    };
    RadialLineSeriesView.prototype.an = function (a) {
        _super.prototype.an.call(this, a);
        this.e.a9.exportPathData(a, this.da, "lowerShape", ["Lower", "Main"]);
        this.e.a9.exportPathData(a, this.db, "upperShape", ["Upper"]);
        this.e.a9.exportPathData(a, this.c9, "translucentShape", ["Translucent"]);
    };
    RadialLineSeriesView.prototype.af = function () {
        var a = new Color();
        a.colorString = "rgba(95,95,95,0.5)";
        this.e.s6 = a;
        this.e.ir = 3;
        this.e.is = 1;
        this.e.it = 4;
        this.e.gj = false;
    };
    RadialLineSeriesView.$t = markType(RadialLineSeriesView, 'RadialLineSeriesView', AnchoredRadialSeriesView.$);
    return RadialLineSeriesView;
}(AnchoredRadialSeriesView));
export { RadialLineSeriesView };
