You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.1 KiB
37 lines
1.1 KiB
import * as React from 'react';
|
|
import { ProgressGradient, ProgressProps, StringGradients } from './progress';
|
|
interface LineProps extends ProgressProps {
|
|
prefixCls: string;
|
|
children: React.ReactNode;
|
|
}
|
|
/**
|
|
* {
|
|
* '0%': '#afc163',
|
|
* '75%': '#009900',
|
|
* '50%': 'green', ====> '#afc163 0%, #66FF00 25%, #00CC00 50%, #009900 75%, #ffffff 100%'
|
|
* '25%': '#66FF00',
|
|
* '100%': '#ffffff'
|
|
* }
|
|
*/
|
|
export declare const sortGradient: (gradients: StringGradients) => string;
|
|
/**
|
|
* {
|
|
* '0%': '#afc163',
|
|
* '25%': '#66FF00',
|
|
* '50%': '#00CC00', ====> linear-gradient(to right, #afc163 0%, #66FF00 25%,
|
|
* '75%': '#009900', #00CC00 50%, #009900 75%, #ffffff 100%)
|
|
* '100%': '#ffffff'
|
|
* }
|
|
*
|
|
* Then this man came to realize the truth:
|
|
* Besides six pence, there is the moon.
|
|
* Besides bread and butter, there is the bug.
|
|
* And...
|
|
* Besides women, there is the code.
|
|
*/
|
|
export declare const handleGradient: (strokeColor: ProgressGradient) => {
|
|
backgroundImage: string;
|
|
};
|
|
declare const Line: React.FC<LineProps>;
|
|
export default Line;
|