watermark-js-plus
Version:
watermark for the browser
20 lines (19 loc) • 579 B
TypeScript
import type { AdvancedStyleParamsType, WatermarkOptions } from '../types';
export declare const initialOptions: WatermarkOptions;
export declare const generateRecommendOptions: (canvas: HTMLCanvasElement, options: WatermarkOptions, args: Partial<WatermarkOptions>) => {
image: {
rect: {
width: number;
height: number;
};
position: {
x: number;
y: number;
};
};
textLine: {
data: string[];
yOffsetValue: number;
};
advancedStyleParams: AdvancedStyleParamsType;
};