igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
92 lines (89 loc) • 3.19 kB
JavaScript
import { __extends } from "tslib";
import { IgrVerticalRangeCategorySeries } from "./igr-vertical-range-category-series";
import { RangeBarSeries } from "./RangeBarSeries";
import { toPoint, fromRect } from "igniteui-react-core";
/**
* Represents a IgxDataChartComponent range bar series.
*/
var IgrRangeBarSeries = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(IgrRangeBarSeries, _super);
function IgrRangeBarSeries(props) {
return _super.call(this, props) || this;
}
IgrRangeBarSeries.prototype.createImplementation = function () {
return new RangeBarSeries();
};
Object.defineProperty(IgrRangeBarSeries.prototype, "i", {
/**
* @hidden
*/
get: function () {
return this._implementation;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrRangeBarSeries.prototype, "isBar", {
/**
* Gets whether the current series shows a bar shape.
*/
get: function () {
return this.i.e0;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrRangeBarSeries.prototype, "isMarkerlessDisplayPreferred", {
/**
* Overridden by derived series classes to indicate when marker-less display is preferred or not.
*/
get: function () {
return this.i.fp;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrRangeBarSeries.prototype, "radiusX", {
/**
* Gets or sets the x-radius of the ellipse that is used to round the corners of the bar.
*/
get: function () {
return this.i.acw;
},
set: function (v) {
this.i.acw = +v;
},
enumerable: false,
configurable: true
});
Object.defineProperty(IgrRangeBarSeries.prototype, "radiusY", {
/**
* Gets or sets the y-radius of the ellipse that is used to round the corners of the bar.
*/
get: function () {
return this.i.acx;
},
set: function (v) {
this.i.acx = +v;
},
enumerable: false,
configurable: true
});
/**
* If possible, will return the best available value bounding box within the series that has the best value match for the world position provided.
* @param world * The world coordinate for which to get a value bounding box for
*/
IgrRangeBarSeries.prototype.getSeriesValueBoundingBox = function (world) {
var iv = this.i.xa(toPoint(world));
return fromRect(iv);
};
/**
* For a category plotted series, returns the current width of the items within the categories. This only returns a value if the items have some form of width (e.g. columns, bars, etc.) otherwise 0 is returned.
*/
IgrRangeBarSeries.prototype.getItemSpan = function () {
var iv = this.i.i5();
return (iv);
};
return IgrRangeBarSeries;
}(IgrVerticalRangeCategorySeries));
export { IgrRangeBarSeries };