useClips.d.ts 502 B

12345678
  1. import type { WatermarkProps } from '.';
  2. export declare const FontGap = 3;
  3. /**
  4. * Get the clips of text content.
  5. * This is a lazy hook function since SSR no need this
  6. */
  7. declare const useClips: () => (content: NonNullable<WatermarkProps["content"]> | HTMLImageElement, rotate: number, ratio: number, width: number, height: number, font: Required<NonNullable<WatermarkProps["font"]>>, gapX: number, gapY: number) => [dataURL: string, finalWidth: number, finalHeight: number];
  8. export default useClips;