UNPKG

vue3-watermark-camera

Version:

A Vue 3 component for taking photos with watermark support

23 lines (21 loc) 673 B
import { WatermarkInfo } from '../types'; interface WatermarkConfig { showTime?: boolean; showLocation?: boolean; showName?: boolean; showCompany?: boolean; backgroundColor?: string; textColor?: string; fontSize?: number; height?: number; } /** * 生成带水印的图片 * @param imgPath 原图路径 * @param info 水印信息 * @param config 水印配置 * @returns Promise<string> 生成后的图片路径 */ export declare function drawWatermark(imgPath: string, info: WatermarkInfo, config?: WatermarkConfig): Promise<string>; export declare function formatLatLng(lat: string | number, lng: string | number): string; export {};