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 477 B
import type { SquircleOptionsClip } from "../types.js"; /** Produces a squircle path to be used in `background-clip` inline styles. */ export declare const clipSquircle: ({ width, height, curveLength, roundness, }: SquircleOptionsClip) => `path('${string}')`; /** Same as {@link clipSquircle}, but wrapped in an object. */ export declare const clipSquircleObj: (options: SquircleOptionsClip) => { clipPath: `path('${string}')`; }; //# sourceMappingURL=clipSquircle.d.ts.map