caf80e0234b5b5718f4a85ee796eb182eaceab559829d51a9e8fc566635d86da7a441ed3541401e4c8399b2be7cbe348ef838541281c7c8275891fa7a8e4b3 508 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, space: number) => [dataURL: string, finalWidth: number, finalHeight: number];