Comparing version 2.0.0 to 2.0.1
/** | ||
* iv-viewer - 2.0.0 | ||
* iv-viewer - 2.0.1 | ||
* Author : Sudhanshu Yadav | ||
@@ -4,0 +4,0 @@ * Copyright (c) 2019 to Sudhanshu Yadav, released under the MIT license. |
/** | ||
* iv-viewer - 2.0.0 | ||
* iv-viewer - 2.0.1 | ||
* Author : Sudhanshu Yadav | ||
@@ -4,0 +4,0 @@ * Copyright (c) 2019 to Sudhanshu Yadav, released under the MIT license. |
{ | ||
"name": "iv-viewer", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A zooming and panning plugin inspired by google photos for your web images.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -52,3 +52,3 @@ # iv-viewer | ||
const viewer = FullScreenViewer(options); // check options section for supported options | ||
const viewer = new FullScreenViewer(options); // check options section for supported options | ||
@@ -69,3 +69,3 @@ viewer.show('images/low-res-img', 'images/hi-res-img'); //second option is optional. Check better image loading section | ||
const container = document.querySelector('#image-container'); | ||
const viewer = ImageViewer(container, options); //check options section for supported options | ||
const viewer = new ImageViewer(container, options); //check options section for supported options | ||
@@ -85,3 +85,3 @@ viewer.load('images/low-res-img', 'images/hi-res-img'); //second option is optional. Check better image loading section | ||
const image = document.querySelector('#image'); | ||
const viewer = ImageViewer(image, options); // check options section for supported options | ||
const viewer = new ImageViewer(image, options); // check options section for supported options | ||
``` | ||
@@ -106,3 +106,3 @@ | ||
const viewer = ImageViewer(element, options); | ||
const viewer = new ImageViewer(element, options); | ||
``` | ||
@@ -113,3 +113,3 @@ Here the first argument is the element, which can be container where viewer will be loaded, or it can be a image in which case viewer will be initialized in a image mode. | ||
```js | ||
const viewer = ImageViewer('#element', options); | ||
const viewer = new ImageViewer('#element', options); | ||
``` | ||
@@ -169,3 +169,3 @@ | ||
const viewer = FullScreenViewer(options); | ||
const viewer = new FullScreenViewer(options); | ||
``` | ||
@@ -231,4 +231,4 @@ Unlike ImageViewer you don't have to pass container for the viewer as it will be initialized in pre-defined full screen container. | ||
- It's a complete rewrite of ImageViewer with no jQuery requirement in ES6. | ||
- While the options and instance method are same the way you use a ImageViewer and FullScreenViewed is changed. The v1 API will no longer be supported. | ||
- While the options and instance method are same the way you use a ImageViewer and FullScreenView is changed. The v1 API will no longer be supported. | ||
- Published on the npm. V1 was not available on npm. | ||
- Changed the package name to iv-viewer. image-viewer name was not available on npm. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
454587