@liquid-js/qr-code-styling
Version:
Generate styled QR codes on web or in Node
27 lines (26 loc) • 638 B
TypeScript
export declare enum GradientType {
radial = "radial",
linear = "linear"
}
export interface Gradient {
/**
* Type of gradient spread
*
* @default GradientType.linear
*/
type: `${GradientType}`;
/**
* Rotation of gradient (in radians, Math.PI === 180 degrees)
*
* @default 0
*/
rotation?: number;
/** Gradient colors. */
colorStops: Array<{
/** Position of color in gradient range */
offset: number;
/** Color of stop in gradient range */
color: string;
}>;
}
export declare function sanitizeGradient(gradient: Gradient): Gradient;