/** @packageDocumentation * @module RadialMenu */ import "./RadialMenu.scss"; import * as React from "react"; import { IconSpec } from "../icons/IconComponent"; import { CommonProps } from "../utils/Props"; import { AnnularSector } from "./Annulus"; /** Properties for [[RadialMenu]] * @beta */ export interface RadialMenuProps extends CommonProps { /** Whether to show RadialMenu */ opened: boolean; /** Radius of inner portion of RadialMenu */ innerRadius: number; /** Radius of outer portion of RadialMenu */ outerRadius: number; /** Optional parameter to specify left position in viewport. */ left?: number | string; /** Optional parameter to specify top position in viewport. */ top?: number | string; /** Whether to rotate labels according to location on the RadialMenu, or to keep labels upright. * Default: false */ labelRotate?: boolean; /** Which child RadialButton to highlight */ selected?: number; /** triggered in case of onClick events anywhere other than radial menu */ onBlur?: (event: any) => any; /** triggered onKeyUp for key */ onEsc?: (event: any) => any; } /** @internal */ interface RadialMenuState { sectors: AnnularSector[]; } /** * A context menu arranged in a radial layout. * @beta */ export declare class RadialMenu extends React.Component { private _root; private _selectedButton; static defaultProps: Partial; /** @internal */ readonly state: Readonly; constructor(props: RadialMenuProps); render(): JSX.Element; componentDidMount(): void; componentWillUnmount(): void; componentDidUpdate(prevProps: RadialMenuProps): void; private _handleKeyUp; private _handleClick; /** Manually call onSelect of highlighted button. */ select: () => void; private _generateAnnularSectors; } /** Properties for [[RadialButton]] component * @beta */ export interface RadialButtonProps extends CommonProps { /** Whether label is rotated to radial menu. Default: Inherit */ labelRotate?: boolean; /** which icon to display in on the menu button */ icon?: IconSpec; /** @internal */ annularSector?: AnnularSector; /** listens to any onClick event, or any select event, which can be triggered by the select() method. */ onSelect?: (e: any) => any; /** Whether item is highlighted */ selected?: boolean; } /** @internal */ interface RadialButtonState { hover: boolean; } /** * Button for use within a [[RadialMenu]] * @beta */ export declare class RadialButton extends React.Component { /** @internal */ readonly state: Readonly; constructor(props: RadialButtonProps); render(): JSX.Element; /** Manually call this.props.onSelect */ select: () => void; private _handleClick; private _handleMouseOver; private _handleMouseOut; } export {}; //# sourceMappingURL=RadialMenu.d.ts.map