0.4.0 • Published 7 years ago

magnifier v0.4.0

Weekly downloads
80
License
MIT
Repository
github
Last release
7 years ago

magnifier Build Status

Magnifier an image

npm.io

Install

npm install --save magnifier

Usage

import Magnifier from 'magnifier';

new Magnifier('.image');

API

new Magnifier(image)

Create a new Magnifier instance.

image

Type: element, string

Image for magnification.

.height(h)

h

Type: number, string

Lens height.

.width(h)

h

Type: number, string

Lens width.

.backgroundColor(color)

color

Type: string

Lens background color.

.borderColor(color)

color

Type: string

Lens border color.

.borderRadius(r)

r

Type: number, string

Lens radius.

.borderWidth(w)

w

Type: number, string

Lens border width.

.className(name)

name

Type: string

Lens class name.

.show()

Forced show lens.

.hide()

Forced hide lens.

.destroy()

Unbinds the event handlers and removes the lense.

License

MIT

0.4.0

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.0

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago