import { Percent } from "../util/Percent"; import { Label, ILabelPrivate, ILabelSettings } from "./Label"; import { RadialText } from "./RadialText"; export interface IRadialLabelSettings extends ILabelSettings { /** * Distance in pixels from `baseRadius`: outward, or inward when `inside` * is `true`. A negative value goes the other way. */ radius?: number; /** * Where the label sits across the arc it belongs to, such as a slice: a * percent, `0%` being the inner edge and `100%` the outer one, or pixels * from the inner edge. * * @default 100% */ baseRadius?: number | Percent; /** * Angle in degrees of the label's position around the center: `0` points * right, and angles grow clockwise. Usually set by the series. */ labelAngle?: number; /** * Which way the text faces with `textType` `"circular"`: `"inward"`, * `"outward"`, or `"auto"` to pick whichever reads better at its angle. * With `"radial"`, `"auto"` turns text on the left half so that it does * not read upside down. * * @default "auto" */ orientation?: "inward" | "outward" | "auto"; /** * Places the label inside the arc instead of outside: `radius` then counts * inward. * * @default false */ inside?: boolean; /** * How the label is placed: * * * `"regular"` - horizontal, at its position on the arc. * * `"circular"` - curved along the arc. * * `"radial"` - rotated to run along the radius. * * `"aligned"` - horizontal, lined up in columns with the other labels. * * `"adjusted"` - horizontal, moved outward so that its edge, not its * center, is at its position. * * **IMPORTANT!** In a [[PieSeries]], `alignLabels` (`true` by default) * overrides `textType`. To use a type other than `"aligned"`, also set * `alignLabels: false` on the series. * * @default "regular" */ textType?: "regular" | "circular" | "radial" | "aligned" | "adjusted"; /** * Extra spacing between characters in pixels, for `"circular"` text. * * @default 0 */ kerning?: number; } export interface IRadialLabelPrivate extends ILabelPrivate { /** * @ignore */ left?: boolean; /** * @ignore */ radius?: number; /** * @ignore */ innerRadius?: number; } /** * A label placed around a center at an angle and radius, such as a pie * slice's label. It can also curve along the arc (`textType`). */ export declare class RadialLabel extends Label { _settings: IRadialLabelSettings; _privateSettings: IRadialLabelPrivate; protected _text: RadialText; static className: string; static classNames: Array; protected _flipped: boolean; protected _afterNew(): void; _makeText(): void; /** * Returns the radius in pixels that `baseRadius` points to. * * @return Base radius */ baseRadius(): number; /** * Returns the label's radius in pixels: the base radius plus the `radius` * adjustment. * * @return Radius */ radius(): number; _updateChildren(): void; _updatePosition(): void; /** * @ignore */ get text(): RadialText; } //# sourceMappingURL=RadialLabel.d.ts.map