| Server IP : 159.203.156.69 / Your IP : 216.73.216.37 Web Server : nginx/1.24.0 System : Linux main-ubuntu 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/tanviranik.com/node_modules/css-gradient-parser/dist/ |
Upload File : |
interface ColorStop {
color: string;
offset?: {
unit: string;
value: string;
};
hint?: {
unit: string;
value: string;
};
}
type LinearOrientation = {
type: 'directional';
value: string;
} | {
type: 'angular';
value: {
unit: string;
value: string;
};
};
interface LinearResult {
orientation: LinearOrientation;
repeating: boolean;
stops: ColorStop[];
}
declare function parseLinearGradient(input: string): LinearResult;
type RgExtentKeyword = 'closest-corner' | 'closest-side' | 'farthest-corner' | 'farthest-side';
type RadialPropertyValue = {
type: 'keyword';
value: string;
} | {
type: 'length';
value: {
unit: string;
value: string;
};
};
interface RadialResult {
shape: 'circle' | 'ellipse';
repeating: boolean;
size: RadialPropertyValue[];
position: {
x: RadialPropertyValue;
y: RadialPropertyValue;
};
stops: ColorStop[];
}
declare function parseRadialGradient(input: string): RadialResult;
type RectColorSpace = 'srgb' | 'srgb-linear' | 'lab' | 'oklab' | 'xyz' | 'xyz-d50' | 'xyz-d65';
type PolarColorSpace = 'hsl' | 'hwb' | 'lch' | 'oklch';
type HueInterpolationMethod = `${'shorter' | 'longer' | 'increasing' | 'decreasing'} hue`;
interface ConicGradient {
angle: string;
repeating: boolean;
position: string;
color?: Color;
stops: ColorStop[];
}
type Color = {
space: RectColorSpace | PolarColorSpace;
method?: HueInterpolationMethod;
};
declare function parseConicGradient(input: string): ConicGradient;
export { ColorStop, LinearResult, RadialPropertyValue, RadialResult, RgExtentKeyword, parseConicGradient, parseLinearGradient, parseRadialGradient };