useClips.d.ts 493 B

1234567
  1. import type { WatermarkProps } from './watermark';
  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. export default function 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];