html-squircle
Version:
Utilities for generating superellipse squircles in the form of SVG strings, to be used in clip-path and background inline styles.
18 lines • 776 B
TypeScript
import type { SquircleOptionsBackground, SquircleOptionsClip } from "../types.js";
/**
* Overloaded function for getting either the background or clip squircle
* objects. Returns a result based on whether any background options are present
* in the options object.
*/
export declare function eitherSquircleObj(options: SquircleOptionsClip): {
clipPath: `path('${string}')`;
};
/**
* Overloaded function for getting either the background or clip squircle
* objects. Returns a result based on whether any background options are present
* in the options object.
*/
export declare function eitherSquircleObj(options: SquircleOptionsBackground): {
background: `url("data:image/svg+xml,${string}") left top no-repeat`;
};
//# sourceMappingURL=eitherSquircle.d.ts.map