/*
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 { MarkerSeries } from "./MarkerSeries";
import { Base, Type, runOn, Number_$type, enumGetBox, typeCast, Point_$type, fromEnum, markType } from "igniteui-angular-core/ES5/type";
import { PolarAxisInfoCache } from "./PolarAxisInfoCache";
import { SeriesRenderer$2 } from "./SeriesRenderer$2";
import { PolarFrame } from "./PolarFrame";
import { DependencyProperty } from "igniteui-angular-core/ES5/DependencyProperty";
import { NumericAngleAxis } from "./NumericAngleAxis";
import { NumericRadiusAxis } from "./NumericRadiusAxis";
import { TrendLineType_$type } from "igniteui-angular-core/ES5/TrendLineType";
import { Brush } from "igniteui-angular-core/ES5/Brush";
import { PenLineCap_$type } from "igniteui-angular-core/ES5/PenLineCap";
import { DoubleCollection } from "igniteui-angular-core/ES5/DoubleCollection";
import { List$1 } from "igniteui-angular-core/ES5/List$1";
import { SeriesPointOfInterest } from "./SeriesPointOfInterest";
import { ScalerParams } from "./ScalerParams";
import { Rect } from "igniteui-angular-core/ES5/Rect";
import { Marker } from "./Marker";
import { MarkerSeriesView } from "./MarkerSeriesView";
import { PolarAxes } from "./PolarAxes";
import { IFastItemsSource_$type } from "igniteui-angular-core/ES5/IFastItemsSource";
import { SeriesRenderingArguments } from "./SeriesRenderingArguments";
import { AxisRange } from "./AxisRange";
import { HashPool$2 } from "igniteui-angular-core/ES5/HashPool$2";
import { Clipper } from "igniteui-angular-core/ES5/Clipper";
import { Dictionary$2 } from "igniteui-angular-core/ES5/Dictionary$2";
import { OwnedPoint } from "./OwnedPoint";
import { PolarTrendLineManager } from "./PolarTrendLineManager";
import { TrendResolutionParams } from "./TrendResolutionParams";
import { PropertyMetadata } from "igniteui-angular-core/ES5/PropertyMetadata";
import { isNaN_, isInfinity } from "igniteui-angular-core/ES5/number";
import { NumericMarkerManager } from "./NumericMarkerManager";
import { GeometryGroup } from "igniteui-angular-core/ES5/GeometryGroup";
import { stringIsNullOrEmpty } from "igniteui-angular-core/ES5/string";
/**
 * @hidden
 */
var PolarBase = /** @class */ (function (_super) {
    tslib_1.__extends(PolarBase, _super);
    function PolarBase() {
        var _this = _super.call(this) || this;
        _this.m0 = null;
        _this.mt = null;
        _this.my = null;
        _this.oq = null;
        _this.op = null;
        _this.m6 = null;
        _this.m8 = null;
        _this.m9 = null;
        _this.m3 = new PolarFrame();
        _this.m5 = new PolarFrame();
        _this.m2 = new PolarFrame();
        _this.mx = null;
        _this.m4 = null;
        _this.m1 = null;
        _this.m4 = new PolarFrame();
        _this.m5.x = runOn(_this, _this.oo);
        _this.m3.x = runOn(_this, _this.oo);
        _this.m2.x = runOn(_this, _this.oo);
        _this.m6 = new SeriesRenderer$2(PolarFrame.$, PolarBaseView.$, 0, runOn(_this, _this.n1), runOn(_this, _this.n3), runOn(_this, _this.ca), runOn(_this, _this.jd), runOn(_this, _this.nz));
        return _this;
    }
    PolarBase.prototype.bf = function () {
        return new PolarBaseView(this);
    };
    PolarBase.prototype.im = function (a) {
        _super.prototype.im.call(this, a);
        this.mz = a;
    };
    PolarBase.prototype.hn = function () {
        _super.prototype.hn.call(this);
        this.mv = null;
        this.mw = null;
    };
    PolarBase.prototype.get_c0 = function () {
        return true;
    };
    PolarBase.prototype.nf = function (a) {
        var _this = this;
        if (!this.hasMarkers) {
            return false;
        }
        var b = this.mv;
        var c = new ScalerParams(1, this.bs.mq, this.lq, b.b8);
        c.c = this.getEffectiveViewport1(this.bi);
        var d = this.mw;
        var e = new ScalerParams(1, this.bs.mq, this.lq, d.b8);
        e.c = this.getEffectiveViewport1(this.bi);
        a.clear();
        this.ls.cc(function (f) {
            if (f._visibility == 0) {
                var g = new SeriesPointOfInterest();
                var h = f.n;
                var i = f.o;
                if (h < _this.lq.left || h > _this.lq.right || i < _this.lq.top || i > _this.lq.bottom) {
                    return;
                }
                g.b = b.dw(h, c);
                g.c = d.dw(i, e);
                g.a = f.content;
                a.add(g);
            }
        });
        return true;
    };
    PolarBase.prototype.nz = function () {
        if (this.bt.g) {
            this.bt.t();
        }
    };
    PolarBase.prototype.n0 = function () {
        this.mx.e(this.m0.w, this.na, this.nb, this.oq, this.op, function (a, b) { return Math.cos(b); }, function (a, b) { return Math.sin(b); }, true);
    };
    Object.defineProperty(PolarBase.prototype, "na", {
        get: function () {
            return this.m8;
        },
        set: function (a) {
            if (this.m8 != a) {
                var b = this.na;
                this.m8 = a;
                this.raisePropertyChanged("AngleColumn", b, this.na);
            }
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(PolarBase.prototype, "nb", {
        get: function () {
            return this.m9;
        },
        set: function (a) {
            if (this.m9 != a) {
                var b = this.nb;
                this.m9 = a;
                this.raisePropertyChanged("RadiusColumn", b, this.nb);
            }
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(PolarBase.prototype, "oj", {
        get: function () {
            return this.c(PolarBase.n4);
        },
        set: function (a) {
            this.h(PolarBase.n4, a);
        },
        enumerable: true,
        configurable: true
    });
    PolarBase.prototype.h4 = function () {
        _super.prototype.h4.call(this);
        if (this.mw != null) {
            this.mw.g0(false);
        }
        if (this.mv != null) {
            this.mv.g0(false);
        }
    };
    PolarBase.prototype.hs = function (a, b, c, d) {
        var e = false;
        this.mz.cr.g$e(a, b, c, d);
        if (this.mv != null && !this.mv.ck()) {
            e = true;
        }
        if (this.mw != null && !this.mw.ck()) {
            e = true;
        }
        if (e) {
            this.i5(true);
        }
    };
    PolarBase.prototype.jk = function (a, b) {
        this.i5(false);
    };
    PolarBase.prototype.jl = function (a, b) {
        this.i5(false);
    };
    PolarBase.prototype.dv = function (a, b, c) {
        var d = true;
        if (!_super.prototype.dv.call(this, a, b, c) || !c.l() || b.isEmpty || a.isEmpty || this.mv == null || this.mw == null || this.na == null || this.nb == null || this.na.count == 0 || this.nb.count == 0 || this.bz == null || this.bz.count != this.na.count || this.bz.count != this.nb.count || this.mx == null || this.mv.bf == null || this.mw.bf == null || this.mv.jx == this.mv.jw || this.mw.jx == this.mw.jw) {
            d = false;
        }
        return d;
    };
    PolarBase.prototype.i6 = function (a) {
        var b;
        var c;
        var d = this.getViewInfo(c, b);
        c = d.p0;
        b = d.p1;
        if (!this.dv(c, b, this.bi)) {
            this.hp(true, this.bi);
            return;
        }
        this.oq = b;
        this.op = c;
        this.my = new PolarAxisInfoCache(this.mv, this.mw, this.bz);
        var e = new SeriesRenderingArguments(this, c, b, a, this.dd);
        var f = this.m6.g(e, this.m3, this.m2, this.m5, this.mz);
        this.m3 = f.p1;
        this.m2 = f.p2;
        this.m5 = f.p3;
    };
    PolarBase.prototype.oo = function (a) {
        var b = this.mx.h(a.x, a.y, this.oq, this.op, this.my.e, this.my.d, this.my.g, this.my.f, this.my.i, this.my.h);
        return b;
    };
    PolarBase.prototype.an = function (a) {
        if (a != null && a == this.mv && this.na != null) {
            return new AxisRange(this.na.minimum, this.na.maximum);
        }
        if (a != null && a == this.mw && this.nb != null) {
            return new AxisRange(this.nb.minimum, this.nb.maximum);
        }
        return null;
    };
    PolarBase.prototype.c8 = function (a) {
        var b = this.bi.bs;
        b = b.copy();
        var c = this.bi.br;
        var d = !b.isEmpty && !c.isEmpty && this.bz != null ? this.bz.indexOf(a) : -1;
        if (this.mv == null || this.na == null || this.mw == null || this.nb == null) {
            return false;
        }
        if (d < 0 || d > this.na.count - 1 || d > this.nb.count - 1) {
            return false;
        }
        var e = this.mv.getScaledAngle(this.na.item(d));
        var f = this.mw.li(this.nb.item(d));
        var g = 0.5 + (Math.cos(e) * f);
        var h = 0.5 + (Math.sin(e) * f);
        if (!isNaN_(g)) {
            if (g < b.left + 0.1 * b.width) {
                g = g + 0.4 * b.width;
                b.x = g - 0.5 * b.width;
            }
            if (g > b.right - 0.1 * b.width) {
                g = g - 0.4 * b.width;
                b.x = g - 0.5 * b.width;
            }
        }
        if (!isNaN_(h)) {
            if (h < b.top + 0.1 * b.height) {
                h = h + 0.4 * b.height;
                b.y = h - 0.5 * b.height;
            }
            if (h > b.bottom - 0.1 * b.height) {
                h = h - 0.4 * b.height;
                b.y = h - 0.5 * b.height;
            }
        }
        if (this.bn != null) {
            this.bn.ap(this.bs, b, true);
        }
        return d >= 0;
    };
    PolarBase.prototype.fm = function (a) {
        return null;
    };
    PolarBase.prototype.e5 = function (a) {
        return -1;
    };
    PolarBase.prototype.ag = function () {
        return [this.mv, this.mw];
    };
    PolarBase.prototype.is = function (a, b, c, d) {
        _super.prototype.is.call(this, a, b, c, d);
        if (this.mz.cr.g$b(a, b, c, d)) {
            this.i5(false);
            this.ic();
        }
        switch (b) {
            case "FastItemsSource":
                if (typeCast(IFastItemsSource_$type, c) != null) {
                    c.deregisterColumn(this.na);
                    c.deregisterColumn(this.nb);
                    this.na = null;
                    this.nb = null;
                }
                if (typeCast(IFastItemsSource_$type, d) != null) {
                    this.na = this.bw(this.no);
                    this.nb = this.bw(this.nu);
                }
                if ((this.mw != null && !this.mw.ck()) || (this.mv != null && !this.mv.ck())) {
                    this.i5(false);
                }
                break;
            case PolarBase.$$p[0]:
                if (this.mv != null && this.mw != null) {
                    this.mx = new PolarAxes(this.mw, this.mv);
                }
                if (c != null) {
                    c.bv(this);
                }
                if (d != null) {
                    d.ch(this);
                }
                if (this.mv != null && !this.mv.ck()) {
                    this.i5(false);
                }
                else if (c != null && d == null) {
                    this.hp(true, this.bi);
                }
                break;
            case PolarBase.$$p[4]:
                if (this.mv != null && this.mw != null) {
                    this.mx = new PolarAxes(this.mw, this.mv);
                }
                if (c != null) {
                    c.bv(this);
                }
                if (d != null) {
                    d.ch(this);
                }
                if (this.mw != null && !this.mw.ck()) {
                    this.i5(false);
                }
                else if (c != null && d == null) {
                    this.hp(true, this.bi);
                }
                if (this.mv != null && !this.mv.ck()) {
                    this.mv.gw();
                }
                break;
            case PolarBase.$$p[1]:
                if (this.bz != null) {
                    this.bz.deregisterColumn(this.na);
                    this.na = this.bw(this.no);
                }
                break;
            case "AngleColumn":
                this.mz.cr.g$i();
                if (this.mv != null && !this.mv.ck()) {
                    this.i5(false);
                }
                break;
            case PolarBase.$$p[5]:
                if (this.bz != null) {
                    this.bz.deregisterColumn(this.nb);
                    this.nb = this.bw(this.nu);
                }
                break;
            case "RadiusColumn":
                this.mz.cr.g$i();
                if (this.mw != null && !this.mw.ck()) {
                    this.i5(false);
                }
                break;
            case PolarBase.$$p[6]:
                this.i5(false);
                this.ic();
                break;
            case PolarBase.$$p[3]:
                this.i5(false);
                this.ic();
                break;
            case "TransitionProgress":
                this.my = new PolarAxisInfoCache(this.mv, this.mw, this.bz);
                this.oq = this.bi.bs;
                this.op = this.bi.br;
                this.m5.v = this.ng;
                this.m5.c(this.ew, this.m3, this.m2);
                if (this.cc(this.bi)) {
                    return;
                }
                if (this.ew == 1) {
                    this.n3(this.m2, this.mz);
                }
                else {
                    this.n3(this.m5, this.mz);
                }
                if (this.bs != null) {
                    this.bs.jj(this);
                }
                break;
            case "TrendLineBrush":
                this.jg();
                break;
            case PolarBase.$$p[2]:
                this.i5(false);
                this.ic();
                break;
            case "TrendLineType":
                this.ic();
                break;
        }
    };
    PolarBase.prototype.nd = function (a) {
        if (typeCast(NumericRadiusAxis.$, a) !== null) {
            return true;
        }
        return false;
    };
    PolarBase.prototype.nc = function (a) {
        if (typeCast(NumericAngleAxis.$, a) !== null) {
            return true;
        }
        return false;
    };
    PolarBase.prototype.hp = function (a, b) {
        _super.prototype.hp.call(this, a, b);
        var c = b;
        if (a) {
            c.cs.clear();
        }
        c.cr.g$d();
    };
    PolarBase.prototype.mu = function (a, b) {
        var c = a.top - 10;
        var d = a.bottom + 10;
        var e = a.left - 10;
        var f = a.right + 10;
        var g = ((function () {
            var $ret = new Clipper(1, e, d, f, c, false);
            $ret.i = b;
            return $ret;
        })());
        return g;
    };
    PolarBase.prototype.ny = function (a, b, c, d) {
        a.g = new Dictionary$2(Base.$, OwnedPoint.$, 1, b);
        var e = this.bz;
        var _loop_1 = function (f) {
            var g = a.w._inner[f];
            if (!isInfinity(g.x) && !isInfinity(g.y)) {
                var h_1 = { $type: Point_$type, x: this_1.na.item(f), y: this_1.nb.item(f) };
                var i_1 = { $type: Point_$type, x: g.x, y: g.y };
                a.g.addItem(e.item(f), ((function () {
                    var $ret = new OwnedPoint();
                    $ret.a = e.item(f);
                    $ret.b = h_1;
                    $ret.c = i_1;
                    return $ret;
                })()));
            }
        };
        var this_1 = this;
        for (var f = 0; f < b; f++) {
            _loop_1(f);
        }
    };
    PolarBase.prototype.n1 = function (a, b) {
        var _this = this;
        var c = b.bs;
        var d = b.br;
        a.j.clear();
        a.n.clear();
        var e = Math.min(this.na != null ? this.na.count : 0, this.nb != null ? this.nb.count : 0);
        if (e < 1) {
            return;
        }
        this.my = new PolarAxisInfoCache(this.mv, this.mw, this.bz);
        this.m0 = a;
        this.op = d;
        this.oq = c;
        b.cp.l(a.j, this.nj, c, d, this.er);
        if (e <= this.nj) {
            this.ny(a, e, c, d);
        }
        var f = this.mu(d, a.n);
        var g = Math.min(this.mv.jx, this.mv.jw);
        var h = Math.max(this.mv.jw, this.mv.jx);
        b.cr.q = this.ng;
        b.cr.p = 0;
        b.cr.s = this.mw.lc;
        b.cr.r = this.mw.lb;
        b.cr.t = function (i, j) { return _this.mx.c(i, j, c, d, Math.cos); };
        b.cr.u = function (i, j) { return _this.mx.d(i, j, c, d, Math.sin); };
        var i = new List$1(Number_$type, 0);
        for (var j = 0; j < this.na.count; j++) {
            if (this.na.item(j) >= g && this.na.item(j) <= h) {
                i.add(this.na.item(j));
            }
        }
        var k = this.nb;
        if (i.count != this.na.count) {
            k = new List$1(Number_$type, 0);
            for (var l = 0; l < this.na.count; l++) {
                if (this.na.item(l) >= g && this.na.item(l) <= h) {
                    k.add(this.nb.item(l));
                }
            }
        }
        b.cr.v(a.n, this.m7, i, k, this.nk, runOn(this.mv, this.mv.getScaledAngle), runOn(this.mw, this.mw.li), ((function () {
            var $ret = new TrendResolutionParams();
            $ret.b = _this.er;
            $ret.f = d;
            $ret.g = c;
            return $ret;
        })()), f, g, h);
    };
    PolarBase.prototype.n3 = function (a, b) {
        var c = b.bs;
        var d = b.br;
        var e = this.getEffectiveViewport1(b);
        var f = this.li(b);
        this.my = new PolarAxisInfoCache(this.mv, this.mw, this.bz);
        b.cp.j(a.j, this.lx);
        b.cj();
        var g = this.mu(d, b.cr.g$j.aj);
        b.cr.g$h(a.n, g);
        this.nx(d, c, e, f, b);
    };
    PolarBase.prototype.nx = function (a, b, c, d, e) {
        e.cu(a, b, c, d);
    };
    PolarBase.prototype.jg = function () {
        _super.prototype.jg.call(this);
        if (this.fe < 0) {
            return;
        }
        this.mz.cw();
    };
    PolarBase.prototype.i7 = function (a, b) {
        _super.prototype.i7.call(this, a, b);
        if (!this.dk) {
            this.bi.az(b);
            return;
        }
        this.bi.az(b);
        if (this.cc(this.bh)) {
            return;
        }
        var c = this.bh;
        if (!this.de) {
            this.m4 = new PolarFrame();
            this.n1(this.m4, c);
        }
        this.de = false;
        this.n3(this.m4, c);
        this.dk = false;
    };
    PolarBase.prototype.i4 = function (a, b, c, d, e) {
        _super.prototype.i4.call(this, a, b, c, d, e);
        var f = this.a0.a$h.item(d);
        var g = f;
        f.ay(c);
        if (this.cc(g)) {
            return;
        }
        if (this.m1 == null) {
            this.m1 = new PolarFrame();
        }
        this.n1(this.m1, g);
        this.n3(this.m1, g);
    };
    PolarBase.prototype.n2 = function (a, b) {
        var e_1, _a, e_2, _b;
        var c = new List$1(Base.$, 0);
        try {
            for (var _c = tslib_1.__values(fromEnum(b.c)), _d = _c.next(); !_d.done; _d = _c.next()) {
                var d = _d.value;
                if (!a.containsKey(d)) {
                    c.add1(d);
                }
            }
        }
        catch (e_1_1) { e_1 = { error: e_1_1 }; }
        finally {
            try {
                if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
            }
            finally { if (e_1) throw e_1.error; }
        }
        try {
            for (var _e = tslib_1.__values(fromEnum(c)), _f = _e.next(); !_f.done; _f = _e.next()) {
                var e = _f.value;
                b.g(e);
            }
        }
        catch (e_2_1) { e_2 = { error: e_2_1 }; }
        finally {
            try {
                if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
            }
            finally { if (e_2) throw e_2.error; }
        }
    };
    PolarBase.prototype.ms = function (a, b, c) {
        this.n0();
        return this.m0.w.toArray();
    };
    PolarBase.prototype.nh = function (a) {
        var e_3, _a;
        var b = new List$1(Number_$type, 0);
        var c = this.bz;
        try {
            for (var _b = tslib_1.__values(fromEnum(this.mz.cs.c)), _c = _b.next(); !_c.done; _c = _b.next()) {
                var d = _c.value;
                b.add(c.indexOf(d));
            }
        }
        catch (e_3_1) { e_3 = { error: e_3_1 }; }
        finally {
            try {
                if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
            }
            finally { if (e_3) throw e_3.error; }
        }
        return b;
    };
    PolarBase.prototype.on = function (a) {
        return { $type: Point_$type, x: this.na.item(a), y: this.nb.item(a) };
    };
    PolarBase.prototype.hy = function (a) {
        _super.prototype.hy.call(this, a);
        this.a2.exportTrendlineData(this, a, this.mz.cr.g$j);
    };
    PolarBase.$t = markType(PolarBase, 'PolarBase', MarkerSeries.$);
    PolarBase.n4 = DependencyProperty.i("ActualTrendLineBrush", Brush.$, PolarBase.$, new PropertyMetadata(2, null, function (a, b) { return a.raisePropertyChanged("ActualTrendLineBrush", b.oldValue, b.newValue); }));
    return PolarBase;
}(MarkerSeries));
export { PolarBase };
Type.dep(DependencyProperty, PropertyMetadata, PolarBase, 'raisePropertyChanged', ['AngleAxis:mv:n5', [NumericAngleAxis.$, null], 'AngleMemberPath:no:n6', [2], 'ClipSeriesToBounds:ne:n7', [0, false], 'MaximumMarkers:nj:n8', [1, 400], 'RadiusAxis:mw:n9', [NumericRadiusAxis.$, null], 'RadiusMemberPath:nu:oa', [2], 'UseCartesianInterpolation:ng:oi', [0, true], 'TrendLineType:m7:og', [TrendLineType_$type, enumGetBox(TrendLineType_$type, 0)], 'TrendLineThickness:ni:of', [1, 1.5], 'TrendLinePeriod:nk:oe', [1, 7], 'TrendLineZIndex:nl:oh', [1, 1], 'TrendLineBrush:ok:ob', [Brush.$, null], 'TrendLineDashArray:ol:oc', [DoubleCollection.$], 'TrendLineDashCap:om:od', [PenLineCap_$type, enumGetBox(PenLineCap_$type, 0)]]);
/**
 * @hidden
 */
var PolarBaseView = /** @class */ (function (_super) {
    tslib_1.__extends(PolarBaseView, _super);
    function PolarBaseView(a) {
        var _this = _super.call(this, a) || this;
        _this.cq = null;
        _this.cp = null;
        _this.cr = null;
        _this.cs = null;
        _this.cq = a;
        _this.cs = new HashPool$2(Base.$, Marker.$);
        _this.ce(_this.cs);
        _this.cr = new PolarTrendLineManager();
        return _this;
    }
    PolarBaseView.prototype.ap = function () {
        _super.prototype.ap.call(this);
        this.cp = this.co();
        if (!this.n) {
            this.cq.nj = 1000;
            this.by.lt = 2;
        }
    };
    PolarBaseView.prototype.co = function () {
        var _this = this;
        var a = new NumericMarkerManager(0, function (b) { return _this.cs.item(b); }, function (b) { return _this.cq.my.c.item(b); }, runOn(this, this.cv), runOn(this, this.cn), runOn(this, this.ct));
        a.n = true;
        a.p = runOn(this.cq, this.cq.on);
        return a;
    };
    PolarBaseView.prototype.cv = function (a) {
        this.cq.n2(a, this.cs);
    };
    PolarBaseView.prototype.cn = function () {
        return this.cq.ms(this.cs, this.bs, this.br);
    };
    PolarBaseView.prototype.ct = function () {
        return this.cq.nh(this.cs);
    };
    PolarBaseView.prototype.cu = function (a, b, c, d) {
        if (this.cq.ne) {
            var e = new GeometryGroup();
            this.cq.mw.lq(e, a, b, c, d);
        }
        else {
        }
    };
    PolarBaseView.prototype.cw = function () {
        if (this.cq.ok != null) {
            this.cq.oj = this.cq.ok;
        }
        else {
            this.cq.oj = this.cq.kv;
        }
    };
    PolarBaseView.prototype.cc = function (a) {
        this.cs.f(a);
    };
    PolarBaseView.prototype.a2 = function (a, b) {
        if (a.d) {
            if (this.cq.m7 != 0 && !b) {
                var c = this.cr.g$j;
                c.ac = this.cq.ni;
                c._stroke = this.cq.oj;
                c.ad = this.cq.om;
                c.ai = this.cq.ol;
                a.u(c);
            }
        }
        _super.prototype.a2.call(this, a, b);
    };
    PolarBaseView.prototype.cx = function () {
        return Rect.empty;
    };
    PolarBaseView.prototype.getDefaultTooltipTemplate = function () {
        var a = "<div class='ui-chart-default-tooltip-content'><span>" + "${item." + this.cq.no + "}" + "</span><br/><span";
        var b = this.e.a0.a$q(this.e);
        if (!stringIsNullOrEmpty(b)) {
            a += " style='color:" + b + "'";
        }
        a += ">" + this.cq.fs + ": </span><span class='ui-priority-primary'>" + "${item." + this.cq.nu + "}</span></div>";
        return a;
    };
    PolarBaseView.$t = markType(PolarBaseView, 'PolarBaseView', MarkerSeriesView.$);
    return PolarBaseView;
}(MarkerSeriesView));
export { PolarBaseView };
//# sourceMappingURL=PolarBase_combined.js.map