15 lines
608 B
TypeScript
15 lines
608 B
TypeScript
import * as React from 'react';
|
|
/**
|
|
* Base size of the canvas, 1 for parallel layout and 2 for alternate layout
|
|
* Only alternate layout is currently supported
|
|
*/
|
|
export declare const BaseSize = 2;
|
|
export declare const FontGap = 3;
|
|
export type AppendWatermark = (base64Url: string, markWidth: number, container: HTMLElement) => void;
|
|
declare function useWatermark(markStyle: React.CSSProperties, onRemove?: () => void): [
|
|
appendWatermark: AppendWatermark,
|
|
removeWatermark: (container: HTMLElement) => void,
|
|
isWatermarkEle: (ele: Node, index?: number) => boolean
|
|
];
|
|
export default useWatermark;
|