/*
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 { PolarBase } from "./PolarBase";
import { PathRenderer } from "./PathRenderer";
import { DefaultFlattener } from "./DefaultFlattener";
import { PolarBaseView } from "./PolarBaseView";
import { Number_$type, Point_$type, markType } from "igniteui-react-core";
import { PolarLinePlanner } from "./PolarLinePlanner";
import { List$1 } from "igniteui-react-core";
import { isNaN_ } from "igniteui-react-core";
import { Color } from "igniteui-react-core";
/**
 * @hidden
 */
export let PolarLineSeriesBase = /*@__PURE__*/ (() => {
    class PolarLineSeriesBase extends PolarBase {
        constructor() {
            super();
            this.sv = null;
            this.sx = null;
            this.sw = null;
            this.sv = new PathRenderer(1, new DefaultFlattener());
            this.sx = new PathRenderer(0);
        }
        get_qu() {
            return true;
        }
        bp() {
            return new PolarLineSeriesBaseView(this);
        }
        kk(a) {
            super.kk(a);
            this.sy = a;
        }
        sz() {
            return 1;
        }
        get_s2() {
            return false;
        }
        get s2() {
            return this.get_s2();
        }
        get_s4() {
            return false;
        }
        get s4() {
            return this.get_s4();
        }
        rz(a, b) {
            super.rz(a, b);
            a.m.clear();
            let c = b.bv;
            let d = b.bu;
            let e = this.qk != null ? this.qk.count : 0;
            let f = this.ql != null ? this.ql.count : 0;
            let g = Math.min(e, f);
            let h = ((() => {
                let $ret = new PolarLinePlanner();
                $ret.m = (i) => this.p3.a.getScaledAngle1(this.qk.item(i), this.p3.e, this.p3.d);
                $ret.q = g;
                $ret.n = (i) => this.p1.lz(this.ql.item(i), this.p3.g, this.p3.f, this.p3.i, this.p3.h);
                $ret.l = this.fq;
                $ret.f = this.qz;
                $ret.b = this.sz();
                $ret.o = (i) => this.s5(a, i);
                $ret.p = (i) => this.s6(a, i);
                $ret.ab = d;
                $ret.ac = c;
                $ret.d = this.s4;
                $ret.c = this.s2;
                return $ret;
            })());
            let i = new List$1(Number_$type, 0);
            for (let j = 0; j < g; j++) {
                if (this.s3(j)) {
                    i.add(j);
                }
            }
            if (this.s4 && i.count > 0) {
                i.add(i._inner[0]);
            }
            h.x(a.m, i);
        }
        s5(a, b) {
            return a.w._inner[b].x;
        }
        s6(a, b) {
            return a.w._inner[b].y;
        }
        s1() {
            return !this.s0();
        }
        s0() {
            let a = this.b6.os;
            return !a.containsPoint({ $type: Point_$type, x: 0.5, y: 0.5 });
        }
        s3(a) {
            return (this.qk.item(a) >= this.p3.a.kd && this.qk.item(a) <= this.p3.a.kc && this.ql.item(a) >= this.p3.b.kd && this.ql.item(a) <= this.p3.b.kc) || (isNaN_(this.qk.item(a)) || isNaN_(this.ql.item(a)));
        }
        jl(a, b) {
            super.jl(a, b);
            this.s7(b);
        }
        r3(a, b) {
            super.r3(a, b);
            if (this.qz) {
                this.sw = this.sv;
            }
            else {
                this.sw = this.sx;
            }
            this.sw.b = this.sz();
            this.s7(b);
            this.s8(a, b);
        }
    }
    PolarLineSeriesBase.$t = /*@__PURE__*/ markType(PolarLineSeriesBase, 'PolarLineSeriesBase', PolarBase.$);
    return PolarLineSeriesBase;
})();
/**
 * @hidden
 */
export let PolarLineSeriesBaseView = /*@__PURE__*/ (() => {
    class PolarLineSeriesBaseView extends PolarBaseView {
        constructor(a) {
            super(a);
            this.c3 = null;
            this.c3 = a;
        }
        af() {
            let a = new Color();
            a.colorString = "rgba(95,95,95,0.5)";
            this.e.ni = a;
            this.e.fs = 3;
            this.e.ft = 1;
            this.e.fu = 4;
            this.e.ea = false;
        }
    }
    PolarLineSeriesBaseView.$t = /*@__PURE__*/ markType(PolarLineSeriesBaseView, 'PolarLineSeriesBaseView', PolarBaseView.$);
    return PolarLineSeriesBaseView;
})();
//# sourceMappingURL=PolarLineSeriesBase_combined.js.map
