UNPKG

@serializedowen/vue-img-watermark

Version:

add watermark for your image with only a single directive

19 lines (18 loc) 759 B
import { VueConstructor } from "vue"; import { registerCustomStrategy } from "./selectStrategy"; export declare type WatermarkOptionConfig = { mode: displayMode; textBaseline: CanvasTextBaseline; fillStyle: string | CanvasGradient | CanvasPattern; content: string; font: string; rotate: number; }; export declare type displayMode = "bottomleft" | "bottomright" | "topleft" | "topright" | "center" | "fill"; export { registerCustomStrategy }; export declare const setScopedConfig: (opts: Partial<WatermarkOptionConfig>, vm: Vue) => void; export declare const setGlobalConfig: (opts: Partial<WatermarkOptionConfig>) => void; declare const vueImgWatermark: { install: (Vue: VueConstructor) => void; }; export default vueImgWatermark;