ag-grid-enterprise
Version:
AG Grid Enterprise Features
65 lines • 2.92 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.PolarSeries = void 0;
var series_1 = require("../series");
var chartAxisDirection_1 = require("../../chartAxisDirection");
var PolarSeries = /** @class */ (function (_super) {
__extends(PolarSeries, _super);
function PolarSeries(_a) {
var _b, _c;
var moduleCtx = _a.moduleCtx, _d = _a.useLabelLayer, useLabelLayer = _d === void 0 ? false : _d, _e = _a.pickModes, pickModes = _e === void 0 ? [series_1.SeriesNodePickMode.EXACT_SHAPE_MATCH] : _e;
var _this = _super.call(this, {
moduleCtx: moduleCtx,
useLabelLayer: useLabelLayer,
pickModes: pickModes,
contentGroupVirtual: false,
directionKeys: (_b = {},
_b[chartAxisDirection_1.ChartAxisDirection.X] = ['angleKey'],
_b[chartAxisDirection_1.ChartAxisDirection.Y] = ['radiusKey'],
_b),
directionNames: (_c = {},
_c[chartAxisDirection_1.ChartAxisDirection.X] = ['angleName'],
_c[chartAxisDirection_1.ChartAxisDirection.Y] = ['radiusName'],
_c),
}) || this;
/**
* The center of the polar series (for example, the center of a pie).
* If the polar chart has multiple series, all of them will have their
* center set to the same value as a result of the polar chart layout.
* The center coordinates are not supposed to be set by the user.
*/
_this.centerX = 0;
_this.centerY = 0;
/**
* The maximum radius the series can use.
* This value is set automatically as a result of the polar chart layout
* and is not supposed to be set by the user.
*/
_this.radius = 0;
return _this;
}
PolarSeries.prototype.getLabelData = function () {
return [];
};
PolarSeries.prototype.computeLabelsBBox = function (_options, _seriesRect) {
return null;
};
return PolarSeries;
}(series_1.Series));
exports.PolarSeries = PolarSeries;
//# sourceMappingURL=polarSeries.js.map