useWatermark.d.ts 547 B

12345678910111213
  1. import * as React from 'react';
  2. /**
  3. * Base size of the canvas, 1 for parallel layout and 2 for alternate layout
  4. * Only alternate layout is currently supported
  5. */
  6. export declare const BaseSize = 2;
  7. export declare const FontGap = 3;
  8. export type AppendWatermark = (base64Url: string, markWidth: number, container: HTMLElement) => void;
  9. export default function useWatermark(markStyle: React.CSSProperties): [
  10. appendWatermark: AppendWatermark,
  11. removeWatermark: (container: HTMLElement) => void,
  12. isWatermarkEle: (ele: Node) => boolean
  13. ];