All Projects → FatDoge → watermark-enhancer

FatDoge / watermark-enhancer

Licence: MIT License
Add watermark to react components in a more elegant way

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to watermark-enhancer

react-drip-form
☕ HoC based React forms state manager, Support for validation and normalization.
Stars: ✭ 66 (+0%)
Mutual labels:  hoc
hoc-element-table
📦 A Vue 3.x Table Component built on Webpack 5
Stars: ✭ 26 (-60.61%)
Mutual labels:  hoc
with-wrapper
React HOC for wrapper components.
Stars: ✭ 35 (-46.97%)
Mutual labels:  hoc
WebRtcShitBlt
client side WebRTC lib to add an image / watermark on the MediaSource
Stars: ✭ 19 (-71.21%)
Mutual labels:  watermark
Watermark-Bot
A Telegram Video Watermark Adder Bot in Pyrogram by @AbirHasan2005
Stars: ✭ 82 (+24.24%)
Mutual labels:  watermark
addhoc
Handy little helper to create proper React HOC functions complete with hoisted statics and forwarded refs
Stars: ✭ 40 (-39.39%)
Mutual labels:  hoc
ImageResize
Image resizing tool for .Net applications with ability to add text/image watermark, Supports animated images as well.
Stars: ✭ 45 (-31.82%)
Mutual labels:  watermark
pylovepdf
ilovepdf.com python API library
Stars: ✭ 52 (-21.21%)
Mutual labels:  watermark
imagor
Fast, Docker-ready image processing server in Go and libvips
Stars: ✭ 2,276 (+3348.48%)
Mutual labels:  watermark
tiktok-downloader
Tiktok Downloader/Scraper using requests & bs4
Stars: ✭ 47 (-28.79%)
Mutual labels:  watermark
SLBR-Visible-Watermark-Removal
[ACM MM 2021] Visible Watermark Removal via Self-calibrated Localization and Background Refinement
Stars: ✭ 54 (-18.18%)
Mutual labels:  watermark
staruml-watermark
⭐ StarUML watermark remover
Stars: ✭ 48 (-27.27%)
Mutual labels:  watermark
lambda-watermark
AWS Lambda Watermark service for S3 images
Stars: ✭ 20 (-69.7%)
Mutual labels:  watermark
typescript-hoc-tutorial
Code samples for my “React Higher-Order Components in TypeScript made simple” article
Stars: ✭ 35 (-46.97%)
Mutual labels:  hoc
react-patterns
react patterns examples
Stars: ✭ 39 (-40.91%)
Mutual labels:  hoc
pdfconduit
Prepare documents for distribution
Stars: ✭ 22 (-66.67%)
Mutual labels:  watermark
react-portal-hoc
A stupid HOC to make a stupid portal so you can make stupid modals
Stars: ✭ 14 (-78.79%)
Mutual labels:  hoc
hack scripts
Usefull scripts
Stars: ✭ 51 (-22.73%)
Mutual labels:  watermark
next-utils
🥩 🍳 A set of Next.js HoC utilities to make your life easier
Stars: ✭ 30 (-54.55%)
Mutual labels:  hoc
watermarker
A little tool use to add watermark to image.
Stars: ✭ 17 (-74.24%)
Mutual labels:  watermark

watermark-enhancer

Add watermark to your react components in a more elegent way.

casecase

移步详细文档

1.安装

npm i watermark-enhancer -d

2.使用

import EnhancerWaterMark from 'watermark-enhancer'
export default EnhancerWaterMark({
  width: '100',
  height: '80',
  rotate: '17',
  content: 'test',
  asyncContent: renderEffectContent,
}, {
  content: 'watermark loading...',
  color: 'black',
  background: 'white'
})(WrappedComponent)

3.注意

  • 参数说明
    EnhancerWaterMark(
      watermarkOptions = {
        content : 'sync content',
        asyncContent: renderEffectContent,
      }, // 水印参数, 水印内容可异步获取
      loadingOptions = {
        ...loadingStyle,
        content: 'loading...'
      }, // loading遮罩层配置
    )(WrappedComponent) // 传入需要加上水印的组件
    
  • 同步的水印内容
    EnhancerWaterMark(
      options = {
        + content: '水印',
        width,
        height,
        ...  
      }, 
    )(WrappedComponent)
    
  • 异步的水印内容
    EnhancerWaterMark(
      - content,
      + asyncContent: renderEffectContent,  
      options = {
        width,
        height,
        ...  
      }, 
    )(WrappedComponent)
    
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].