Skip to content

yang-Ann/watermark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

基本使用

import WaveShaperNode from "@anlib/watermark";
const instace = new WaveShaperNode({
  context: "我是水印",
  container: "#container1", // 插入到那个容器里面, 不指定则是 body
  rotate: -30
});

setTimeout(() => {
  // 重新渲染
  instace.render({
    fontSize: 12,
    context: "我变了",
    color: "red",
    rotate: -10,
    width: 100,
    height: 50,
    container: "#container2",
  });
}, 1500);

About

简单的水印生成

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published