mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
34 lines
769 B
TypeScript
34 lines
769 B
TypeScript
import '@fesjs/fes';
|
|
|
|
export interface WatermarkParam {
|
|
content?: string;
|
|
container?: HTMLElement;
|
|
width?: number;
|
|
height?: number;
|
|
textAlign?: 'center' | 'end' | 'left' | 'right' | 'start';
|
|
textBaseline?:
|
|
| 'alphabetic'
|
|
| 'bottom'
|
|
| 'hanging'
|
|
| 'ideographic'
|
|
| 'middle'
|
|
| 'top';
|
|
fontSize?: string;
|
|
fontFamily?: string;
|
|
fillStyle?: string;
|
|
rotate?: number;
|
|
zIndex?: number;
|
|
timestamp?: string | false;
|
|
watch?: boolean;
|
|
}
|
|
export function createWatermark(param: WatermarkParam): void;
|
|
export function destroyWatermark(): void;
|
|
|
|
declare module '@fesjs/fes' {
|
|
interface PluginBuildConfig {
|
|
watermark?: {
|
|
disable: boolean;
|
|
} | false;
|
|
}
|
|
}
|