🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

vue-image-zoom

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-image-zoom

A vue-based image viewer plugin with zooming

1.0.0
npm
Version published
Weekly downloads
117
-41.21%
Maintainers
1
Weekly downloads
 
Created
Source

vue-image-zoom

A vue-based image viewer plugin with zooming

Install

Download the ZIP pack or Clone the project, then:

// main.js

import zoom from '../../dist/vue-image-zoom.js';
import '../../dist/vue-image-zoom.css';

Vue.use(zoom);

It will be published on NPM soon...maybe

Usage

Normal:

this.$zoom('/path/to/your/img');

With Params:

this.$zoom('/path/to/your/img', {
  allowZoom:          true,  // When false, zooming is not available. Image will be shown on 100% size.
  autoScale:          true,  // When true, if the image is larger than the screen, it will be automatically scaled down until suitable. Along with 'allowZoom'
  closeOnClickModal:  false, // When false, clicking modal layer will close the viewer.
})

FAQs

Package last updated on 04 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts