scichart
Version:
Fast WebGL JavaScript Charting Library and Framework
70 lines (69 loc) • 3.85 kB
JavaScript
;
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.PolarUniformHeatmapRenderableSeries = void 0;
var app_1 = require("../../../../constants/app");
var SeriesType_1 = require("../../../../types/SeriesType");
var UniformHeatmapRenderableSeries_1 = require("../UniformHeatmapRenderableSeries");
var PolarHeatMapDataLabelProvider_1 = require("./DataLabels/PolarHeatMapDataLabelProvider");
var PolarHeatmapDrawingProvider_1 = require("./DrawingProviders/PolarHeatmapDrawingProvider");
/**
* Defines a polar uniform heatmap series in the SciChart's High Performance Real-time
* {@link https://www.scichart.com/javascript-chart-features | JavaScript Charts}.
*
* ---
* 📚 Docs: {@link https://www.scichart.com/documentation/js/v4/2d-charts/chart-types/polar-uniform-heatmap-renderable-series/}
*/
var PolarUniformHeatmapRenderableSeries = /** @class */ (function (_super) {
__extends(PolarUniformHeatmapRenderableSeries, _super);
/**
* Creates an instance of the {@link PolarUniformHeatmapRenderableSeries}
* @param webAssemblyContext The {@link TSciChart | SciChart WebAssembly Context} containing
* native methods and access to our WebGL2 WebAssembly Drawing Engine
* @param options optional parameters of type {@link IHeatmapRenderableSeriesOptions} applied when constructing the series type
*
* ---
* 📚 Docs: {@link https://www.scichart.com/documentation/js/v4/2d-charts/chart-types/polar-uniform-heatmap-renderable-series/}
*/
function PolarUniformHeatmapRenderableSeries(webAssemblyContext, options) {
var _this = this;
var _a;
var dataLabelProvider = (_a = options.dataLabelProvider) !== null && _a !== void 0 ? _a : new PolarHeatMapDataLabelProvider_1.PolarHeatMapDataLabelProvider(options === null || options === void 0 ? void 0 : options.dataLabels);
_this = _super.call(this, webAssemblyContext, __assign(__assign({}, options), { dataLabelProvider: dataLabelProvider })) || this;
_this.isPolar = true;
_this.type = SeriesType_1.ESeriesType.PolarUniformHeatmapSeries;
return _this;
}
PolarUniformHeatmapRenderableSeries.prototype.addDrawingProviders = function (webAssemblyContext, options) {
if (!app_1.IS_TEST_ENV) {
this.drawingProviders.push(new PolarHeatmapDrawingProvider_1.PolarHeatmapDrawingProvider(webAssemblyContext, this));
}
};
return PolarUniformHeatmapRenderableSeries;
}(UniformHeatmapRenderableSeries_1.UniformHeatmapRenderableSeries));
exports.PolarUniformHeatmapRenderableSeries = PolarUniformHeatmapRenderableSeries;