Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

iv-viewer

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iv-viewer - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

dist/iv-viewer.es.js
/**
* 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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc