scichart
Version:
Fast WebGL JavaScript Charting Library and Framework
62 lines (61 loc) • 3.03 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 __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.PolarDataPointSelectionModifier = void 0;
var ChartModifierType_1 = require("../../../types/ChartModifierType");
var ModifierType_1 = require("../../../types/ModifierType");
var DataPointSelectionModifier_1 = require("../DataPointSelectionModifier");
/**
* The PolarDataPointSelectionModifier provides an ability to select data points on a 2D {@link SciChartPolarSurface}
* within SciChart - High Performance {@link https://www.scichart.com/javascript-chart-features | JavaScript Charts}
* @remarks
*
* To apply the PolarDataPointSelectionModifier to a {@link SciChartPolarSurface} and add data selection behavior,
* use the following code:
*
* ```ts
* const sciChartSurface: SciChartSurface;
* sciChartSurface.chartModifiers.add(new PolarDataPointSelectionModifier());
* ```
*
* ---
* 📚 Docs: {@link https://www.scichart.com/documentation/js/v4/2d-charts/chart-modifier-api/polar-modifiers/polar-data-point-selection-modifier/}
*/
var PolarDataPointSelectionModifier = /** @class */ (function (_super) {
__extends(PolarDataPointSelectionModifier, _super);
/**
* Creates an instances of PolarDataPointSelectionModifier
* @param options Optional parameters of type {@link IPolarDataPointSelectionModifierOptions} used to configure the modifier
*
* ---
* 📚 Docs: {@link https://www.scichart.com/documentation/js/v4/2d-charts/chart-modifier-api/polar-modifiers/polar-data-point-selection-modifier/}
*/
function PolarDataPointSelectionModifier(options) {
var _this = _super.call(this, options) || this;
_this.type = ChartModifierType_1.EChart2DModifierType.PolarDataPointSelection;
return _this;
}
Object.defineProperty(PolarDataPointSelectionModifier.prototype, "modifierType", {
get: function () {
return ModifierType_1.EModifierType.Chart2DPolarModifier;
},
enumerable: false,
configurable: true
});
return PolarDataPointSelectionModifier;
}(DataPointSelectionModifier_1.DataPointSelectionModifier));
exports.PolarDataPointSelectionModifier = PolarDataPointSelectionModifier;