"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PolarTriangleRenderableSeries = void 0;
var SeriesType_1 = require("../../../../types/SeriesType");
var FastTriangleRenderableSeries_1 = require("../FastTriangleRenderableSeries");
var PolarDataLabelProvider_1 = require("./DataLabels/PolarDataLabelProvider");
var PolarPointMarkerDrawingProvider_1 = require("./DrawingProviders/PolarPointMarkerDrawingProvider");
var PolarTriangleSeriesDrawingProvider_1 = require("./DrawingProviders/PolarTriangleSeriesDrawingProvider");
var PolarDataPointHitTestProvider_1 = require("./HitTest/PolarDataPointHitTestProvider");
/**
 * Defines a polar triangle series in the SciChart's High Performance Real-time
 *
 * ---
 * 📚 Docs: {@link https://www.scichart.com/documentation/js/v4/2d-charts/chart-types/polar-triangle-renderable-series/}.
 */
var PolarTriangleRenderableSeries = /** @class */ (function (_super) {
    __extends(PolarTriangleRenderableSeries, _super);
    function PolarTriangleRenderableSeries(webAssemblyContext, options) {
        var _this = this;
        var _a;
        _this = _super.call(this, webAssemblyContext, __assign({ dataLabelProvider: (_a = options === null || options === void 0 ? void 0 : options.dataLabelProvider) !== null && _a !== void 0 ? _a : new PolarDataLabelProvider_1.PolarDataLabelProvider(options === null || options === void 0 ? void 0 : options.dataLabels) }, options)) || this;
        _this.isPolar = true;
        _this.type = SeriesType_1.ESeriesType.PolarTriangleSeries;
        return _this;
    }
    /** @inheritDoc */
    PolarTriangleRenderableSeries.prototype.addDrawingProviders = function (webAssemblyContext, options) {
        this.drawingProviders.push(new PolarTriangleSeriesDrawingProvider_1.PolarTriangleSeriesDrawingProvider(webAssemblyContext, this));
        this.drawingProviders.push(new PolarPointMarkerDrawingProvider_1.PolarPointMarkerDrawingProvider(webAssemblyContext, this));
    };
    PolarTriangleRenderableSeries.prototype.newHitTestProvider = function () {
        return new PolarDataPointHitTestProvider_1.PolarDataPointHitTestProvider(this, this.webAssemblyContext);
    };
    return PolarTriangleRenderableSeries;
}(FastTriangleRenderableSeries_1.FastTriangleRenderableSeries));
exports.PolarTriangleRenderableSeries = PolarTriangleRenderableSeries;
