@wendyjs/watermarker
Version:
This is a framework-agnostic package that provides a Watermark class for managing watermarks on HTML elements. It includes features such as automatic re-rendering when mutations occur, customizable watermark styles
8 lines (7 loc) • 489 B
TypeScript
import { WatermarkConfigs } from "./type";
export declare const FontGap = 3;
/**
* Get the clips of text content.
* This is a lazy hook function since SSR no need this
*/
export default function useClips(): (content: NonNullable<WatermarkConfigs["content"]> | HTMLImageElement, rotate: number, ratio: number, width: number, height: number, font: Required<NonNullable<WatermarkConfigs["font"]>>, gapX: number, gapY: number) => [dataURL: string, finalWidth: number, finalHeight: number];