UNPKG

chowa

Version:

UI component library based on React

40 lines (39 loc) 1.13 kB
/** * @license chowa v1.1.3 * * Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn). * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import * as React from 'react'; import { HSB } from './tool'; export interface ColorSaturationProps { value: HSB; onChange: (hsb: HSB) => void; } export interface ColorSaturationState { bgColor: string; left: number; bottom: number; originLeft: number; originBottom: number; clientHeight: number; clientWidth: number; pointerRadius: number; startX: number; startY: number; } declare class ColorSaturation extends React.PureComponent<ColorSaturationProps, ColorSaturationState> { private wrapperEle; constructor(props: ColorSaturationProps); private compileValue; private onRangeClickHandler; private onMouseDownHandler; private onMouseMoveHandler; private triggerChange; private onMouseUpHandler; componentDidUpdate(preProps: ColorSaturationProps): void; render(): JSX.Element; } export default ColorSaturation;