Novel Personal Mantras

    cell-watermark

    1.0.3 • Public • Published

    Class: Watermark

    Watermark(options)

    new Watermark(options)

    Parameters:
    Name Type Description
    options Object The options of watermark(Properties
    Properties:
    Name Type Attributes Default Description
    content String <optional> watermark's text
    appendTo String <optional> 'body' parent of watermark's container
    width Number <optional> 150 watermark's width. unit: px
    height Number <optional> 20 watermark's height. unit: px
    rowSpacing Number <optional> 60 row spacing of watermarks. unit: px
    colSpacing Number <optional> 30 col spacing of watermarks. unit: px
    rotate Number <optional> 15 watermark's tangent angle. unit: deg
    opacity Number <optional> 0.1 watermark's transparency
    fontSize Number <optional> 0.85 watermark's fontSize. unit: rem
    fontFamily String <optional> 'inherit' watermark's fontFamily.

    Author: Lruihao

    Methods

    upload(content)

    Upload watermark's text content

    Parameters:
    Name Type Description
    content String watermark's text

    render(options)

    Rerender watermark

    Parameters:
    Name Type Description
    options Object The options of watermark(Properties

    destroy()

    Force destroy watermark

    Install

    npm i cell-watermark

    DownloadsWeekly Downloads

    2

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    12.8 kB

    Total Files

    4

    Last publish

    Collaborators

    • lruihao