1.0.2 • Published 1 year ago

aquamark v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Installation

Install using CDN

<script src="https://unpkg.com/browse/aquamark/dist/index.iife.js"></script>

Install using npm

$ npm install aquamark

Basic Usage

In Browser

<script src="https://unpkg.com/browse/aquamark/dist/index.iife.js"></script>
<script>
  const aquamark = new Aquamark(/** props */)
  aquamark.init()
</script>

In webpack or vite etc;

import Aquamark from "aquamark"
const aquamark = new Aquamark(/** props */)
aquamark.init()

Props

nametypedescriptionrequireddefault
contentstringwatermark contentfalse'auqamark.js'
rotatenumber( -180~180)content rotatefalse-22
fontAuqamarkFontfont-relatedfalse
topnumberfalse0
leftnumberfalse0
zIndexnumberz-indexfalse0

AquamarkFont

nametypedescriptionrequireddefault
colorstringfont colorfalsergba(0, 0, 0, .15)
fontSizenumbertext sizefalse22
fontWeight'normal', 'light', 'weight', numbertext weightfalse'normal'
fontFamilystringtext font-famlilyfalse'normal'
textAlign'start', 'end', 'left', 'right', 'center'text alignfalse'center'

Methods

namedescriptionparameters
initwatermark initial-

License

Aquamark licensed on MIT LICENSE. ©2024-present Yev Wang

1.0.2

1 year ago

1.0.1

1 year ago

0.0.0

1 year ago