npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

wip-image-zoom

v1.4.1

Published

Native angularjs image zoom directive with lots of features.

Downloads

44

Readme

wip-image-zoom

Native angularjs image zoom directive with lots of features.

Install

You can download all necessary wip-image-zoom files manually, or install it with bower:

bower install wip-image-zoom

Usage

You need only to include wip-image-zoom.min.js and wip-image-zoom.min.css.

<link rel="stylesheet" href="/dist/wip-image-zoom.min.css">
<script src="/dist/wip-image-zoom.min.js"></script>

Config Provider

You can change directive defaults using the wipImageZoomConfigProvider in your config for example:

var app = angular.module('exampleApp', ['wipImageZoom']);
app.config(config);

function config(wipImageZoomConfigProvider) {
  wipImageZoomConfigProvider.setDefaults({
    style               : 'box' // e.g.
  });
};

Sample usage with single image

<img wip-image-zoom src="http://lorempixel.com/output/nature-q-c-640-480-4.jpg">

Sample usage with options

   <img src="http://lorempixel.com/output/nature-q-c-640-480-4.jpg" 
    wip-image-zoom="vm.options" 
    selected-model="vm.selected"
    selected-index="vm.selectedIndex">

Configuration

Passing a configuration object to wip-image-zoom="vm.options"" changes the defaults.

vm.options = {
                           zoomEnable          : true,
                           defaultIndex        : 0, // Order of the default selected Image
                           /* You should give images in array with object properties
                            [{
                            thumb : 'assets/images/1-thumb.jpg',
                            medium: 'assets/images/1-medium.jpg',
                            large : 'assets/images/1-large.jpg'
                            }] */
                           images              : [],
                           style               : 'inner', // inner or box
                           boxPos              : 'right-top', // e.g., right-top, right-middle, right-bottom, top-center, top-left, top-right ...
                           boxW                : 400, // Box width
                           boxH                : 400, // Box height
                           method              : 'lens', // fallow 'lens' or 'pointer'
                           cursor              : 'crosshair', // 'none', 'default', 'crosshair', 'pointer', 'move'
                           lens                : true, // Lens toggle
                           zoomLevel           : 3, // 0: not scales, uses the original large image size, use 1 and above to adjust.
                           immersiveMode       : '769', // false or 0 for disable, always, max width(px) for trigger
                           immersiveModeOptions: {}, // can extend immersed mode options
                           immersiveModeMessage: 'Click to Zoom', // Immersive mode message
                           prevThumbButton     : '&#9665;', // Prev thumb button (html)
                           nextThumbButton     : '&#9655;', // Next thumb button (html)
                           thumbsPos           : 'bottom', // Thumbs position: 'top', 'bottom'
                           thumbCol            : 3, // Thumb column count
                           thumbColPadding     : 4 // Padding between thumbs
                       };

Demo

withinpixels.github.io/wip-image-zoom