html-squircle
Version:
Utilities for generating superellipse squircles in the form of SVG strings, to be used in clip-path and background inline styles.
19 lines • 701 B
TypeScript
import * as React from "react";
import { LRUCache } from "../utils/LRUCache.js";
export declare const useCache: () => LRUCache<{
readonly clipPath: `path('${string}')`;
} | {
readonly background: `url("data:image/svg+xml,${string}") left top no-repeat`;
}> | null;
export declare namespace CacheProvider {
interface Props {
readonly capacity?: number | undefined;
readonly children?: React.ReactNode | undefined;
}
}
/**
* Optional cache provider component for enabling global caching of computed
* squircle values.
*/
export declare const CacheProvider: ({ capacity, children, }: CacheProvider.Props) => React.JSX.Element;
//# sourceMappingURL=CacheContext.d.ts.map