New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-svg-pan-zoom

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-svg-pan-zoom - npm Package Compare versions

Comparing version

to
1.2.1

2

lib/viewer.js

@@ -330,3 +330,3 @@ 'use strict';

if (tool === _constants.TOOL_PAN) style.cursor = (0, _cursor2.default)(mode === _constants.MODE_PANNING ? 'grabbing' : 'grab');
if (tool === _constants.TOOL_ZOOM) gStyle.cursor = (0, _cursor2.default)(specialKeyEnabled ? 'zoom-out' : 'zoom-in');
if (tool === _constants.TOOL_ZOOM) style.cursor = (0, _cursor2.default)(specialKeyEnabled ? 'zoom-out' : 'zoom-in');

@@ -333,0 +333,0 @@ var zoomSelectionRect = void 0;

{
"name": "react-svg-pan-zoom",
"version": "1.2.0",
"version": "1.2.1",
"description": "A React component that adds pan and zoom features to SVG",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -212,3 +212,3 @@ import React from 'react';

if (tool === TOOL_PAN) style.cursor = cursor(mode === MODE_PANNING ? 'grabbing' : 'grab');
if (tool === TOOL_ZOOM) gStyle.cursor = cursor(specialKeyEnabled ? 'zoom-out' : 'zoom-in');
if (tool === TOOL_ZOOM) style.cursor = cursor(specialKeyEnabled ? 'zoom-out' : 'zoom-in');

@@ -215,0 +215,0 @@ let zoomSelectionRect;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display