0.5.0 • Published 6 years ago
gwm v0.5.0
gwm.js
Generate Watermark
It can be used to generate watermarking in internal system, which can prompt information security and responsibility tracking. Safety issues can not be ignored, which has a certain role in prompting the sensitive operation of internal personnel.
Characteristic
- Support the generation of three types of watermarking: canvas, SVG and element
- Supporting element monitoring to prevent tampering
- Extensibility
Screenshot
Example
Click here to see the effect →:Demo示例
Instructions
1、Introducing JS files
<script src="../js/gwm.js"></script>Or install with NPM
npm install gwm2、Building watermark
gwm.creation()Parameter
Method
| Method | Explain |
|---|---|
| gwm.creation | Create a watermarking. |
| gwm.observing | Manually open the observer, when the watermarking element is tampered with, re-render the watermarking element. |
| gwm.cancel | Cancel the observer, the watermark can be hidden or deleted. |
The development environment using the method
1、Install
npm install2、Running projects locally
npm run devOpen index.html preview effect
3、build command
npm run build