1.2.0 • Published 2 years ago
react-image-marking v1.2.0
Install
- npm install react-image-marking --save
Adaptation mode
import { ImageMark } from 'react-image-marking'; <ImageMark type = 'center' src={'./default.jpg'} logo={'./stamp.png} />
ComponeImageMarknt properties
type = null || 'center' //The watermark location only supports Center for the time being style //Box properties src //Background map height //Background / box Height width //Background / box width logo //Watermark Icon logoHeight //Watermark image height logoWidth //Watermark icon width logoLeft //It needs to be set when the watermark distance to the left is type === center logoTop //The position of the watermark from the top type === center needs to be set onImage //Picture information callback