office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
28 lines (27 loc) • 874 B
TypeScript
/// <reference types="react" />
import { BaseComponent } from '../../../Utilities';
import { IColor } from '../../../utilities/color/colors';
import { IColorRectangleProps } from './ColorRectangle.types';
export interface IColorRectangleState {
isAdjusting?: boolean;
origin?: {
x: number;
y: number;
color: IColor;
};
color?: IColor;
fullColorString?: string;
}
export declare class ColorRectangleBase extends BaseComponent<IColorRectangleProps, IColorRectangleState> {
static defaultProps: {
minSize: number;
};
private _root;
constructor(props: IColorRectangleProps);
componentWillUnmount(): void;
componentWillReceiveProps(newProps: IColorRectangleProps): void;
render(): JSX.Element;
private _onMouseDown;
private _onMouseMove;
private _onMouseUp;
}