/*
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-angular-core";
import { PolarLinePlanner } from "./PolarLinePlanner";
import { List$1 } from "igniteui-angular-core";
import { isNaN_ } from "igniteui-angular-core";
import { Color } from "igniteui-angular-core";
/**
 * @hidden
 */
export class PolarLineSeriesBase extends PolarBase {
    constructor() {
        super();
        this.oz = null;
        this.o1 = null;
        this.o0 = null;
        this.oz = new PathRenderer(1, new DefaultFlattener());
        this.o1 = new PathRenderer(0);
    }
    bf() {
        return new PolarLineSeriesBaseView(this);
    }
    iu(a) {
        super.iu(a);
        this.o2 = a;
    }
    o3() {
        return 1;
    }
    get_o6() {
        return false;
    }
    get o6() {
        return this.get_o6();
    }
    get_o8() {
        return false;
    }
    get o8() {
        return this.get_o8();
    }
    n9(a, b) {
        super.n9(a, b);
        a.m.clear();
        let c = b.bs;
        let d = b.br;
        let e = this.ni != null ? this.ni.count : 0;
        let f = this.nj != null ? this.nj.count : 0;
        let g = Math.min(e, f);
        let h = ((() => {
            let $ret = new PolarLinePlanner();
            $ret.m = (i) => this.m6.a.getScaledAngle1(this.ni.item(i), this.m6.e, this.m6.d);
            $ret.q = g;
            $ret.n = (i) => this.m4.lq(this.nj.item(i), this.m6.g, this.m6.f, this.m6.i, this.m6.h);
            $ret.l = this.eu;
            $ret.f = this.no;
            $ret.b = this.o3();
            $ret.o = (i) => this.o9(a, i);
            $ret.p = (i) => this.pa(a, i);
            $ret.ab = d;
            $ret.ac = c;
            $ret.d = this.o8;
            $ret.c = this.o6;
            return $ret;
        })());
        let i = new List$1(Number_$type, 0);
        for (let j = 0; j < g; j++) {
            if (this.o7(j)) {
                i.add(j);
            }
        }
        if (this.o8 && i.count > 0) {
            i.add(i._inner[0]);
        }
        h.x(a.m, i);
    }
    o9(a, b) {
        return a.w._inner[b].x;
    }
    pa(a, b) {
        return a.w._inner[b].y;
    }
    o5() {
        return !this.o4();
    }
    o4() {
        let a = this.bs.mq;
        return !a.containsPoint({ $type: Point_$type, x: 0.5, y: 0.5 });
    }
    o7(a) {
        return (this.ni.item(a) >= this.m6.a.j4 && this.ni.item(a) <= this.m6.a.j3 && this.nj.item(a) >= this.m6.b.j4 && this.nj.item(a) <= this.m6.b.j3) || (isNaN_(this.ni.item(a)) || isNaN_(this.nj.item(a)));
    }
    hv(a, b) {
        super.hv(a, b);
        this.pb(b);
    }
    ob(a, b) {
        super.ob(a, b);
        if (this.no) {
            this.o0 = this.oz;
        }
        else {
            this.o0 = this.o1;
        }
        this.o0.b = this.o3();
        this.pb(b);
        this.pc(a, b);
    }
}
PolarLineSeriesBase.$t = markType(PolarLineSeriesBase, 'PolarLineSeriesBase', PolarBase.$);
/**
 * @hidden
 */
export class PolarLineSeriesBaseView extends PolarBaseView {
    constructor(a) {
        super(a);
        this.cy = null;
        this.cy = a;
    }
    ac() {
        let a = new Color();
        a.colorString = "rgba(95,95,95,0.5)";
        this.e.la = a;
        this.e.ev = 3;
        this.e.ew = 1;
        this.e.ex = 4;
        this.e.du = false;
    }
}
PolarLineSeriesBaseView.$t = markType(PolarLineSeriesBaseView, 'PolarLineSeriesBaseView', PolarBaseView.$);
//# sourceMappingURL=PolarLineSeriesBase_combined.js.map