UNPKG

html-squircle

Version:

Utilities for generating superellipse squircles in the form of SVG strings, to be used in clip-path and background inline styles.

8 lines 662 B
import type { SquircleOptionsBackground } from "../types.js"; /** Produces a URI-encoded squircle SVG to be used in `background` inline styles. */ export declare const backgroundSquircle: ({ width, height, curveLength, roundness, stroke, strokeWidth, background, injectedDefs, injectedBody, }: SquircleOptionsBackground) => `url("data:image/svg+xml,${string}") left top no-repeat`; /** Same as {@link backgroundSquircle}, but wrapped in an object. */ export declare const backgroundSquircleObj: (options: SquircleOptionsBackground) => { background: `url("data:image/svg+xml,${string}") left top no-repeat`; }; //# sourceMappingURL=backgroundSquircle.d.ts.map