igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
82 lines (79 loc) • 2.27 kB
JavaScript
import { AxisAngleLabelMode_$type } from "./AxisAngleLabelMode";
import { IgrNumericAxisBase } from "./igr-numeric-axis-base";
import { NumericAngleAxis } from "./NumericAngleAxis";
import { ensureEnum } from "igniteui-react-core";
/**
* Represents a IgxDataChartComponent angle based axis for polar series.
*/
export class IgrNumericAngleAxis extends IgrNumericAxisBase {
createImplementation() {
return new NumericAngleAxis();
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
constructor(props) {
super(props);
}
/**
* Gets or sets angle in degress that the chart's 0th angle should be offset for the companion axis
*/
get companionAxisStartAngleOffset() {
return this.i.tj;
}
set companionAxisStartAngleOffset(v) {
this.i.tj = +v;
}
/**
* Gets or sets the mode axis labels will operate for the companion axis.
*/
get companionAxisLabelMode() {
return this.i.s9;
}
set companionAxisLabelMode(v) {
this.i.s9 = ensureEnum(AxisAngleLabelMode_$type, v);
}
/**
* Gets if the current axis is of angular axis type
*/
get isAngular() {
return this.i.dc;
}
/**
* Indicates the angle in degress that the chart's 0th angle should be offset.
*/
get startAngleOffset() {
return this.i.tn;
}
set startAngleOffset(v) {
this.i.tn = +v;
}
/**
* Indicates the mode axis labels will operate in.
*/
get labelMode() {
return this.i.ta;
}
set labelMode(v) {
this.i.ta = ensureEnum(AxisAngleLabelMode_$type, v);
}
/**
* Gets the scaled angle value in radians based on the raw input.
* @param unscaledAngle * The unscaled angle.
*/
getScaledAngle(unscaledAngle) {
let iv = this.i.getScaledAngle(unscaledAngle);
return (iv);
}
/**
* Gets the raw axis value back from the angle that would be used on the chart.
* @param scaledAngle * The chart angle value.
*/
getUnscaledAngle(scaledAngle) {
let iv = this.i.getUnscaledAngle(scaledAngle);
return (iv);
}
}