react-prismazoom
Advanced tools
Comparing version 3.3.1 to 3.3.2
# Changelog | ||
## [3.3.2] - 2023-03-25 | ||
- Add access to the move method from the ref object | ||
## [3.3.1] - 2023-03-02 | ||
@@ -4,0 +7,0 @@ - Build fix |
@@ -82,10 +82,2 @@ "use strict"; | ||
}; | ||
// Imperative Ref methods | ||
(0, react_1.useImperativeHandle)(forwardedRef, function () { return ({ | ||
getZoom: getZoom, | ||
zoomIn: zoomIn, | ||
reset: reset, | ||
zoomOut: zoomOut, | ||
zoomToZone: zoomToZone, | ||
}); }); | ||
/** | ||
@@ -505,2 +497,11 @@ * Returns the current zoom value. | ||
}; | ||
// Imperative Ref methods | ||
(0, react_1.useImperativeHandle)(forwardedRef, function () { return ({ | ||
getZoom: getZoom, | ||
zoomIn: zoomIn, | ||
reset: reset, | ||
move: move, | ||
zoomOut: zoomOut, | ||
zoomToZone: zoomToZone, | ||
}); }); | ||
(0, react_1.useEffect)(function () { | ||
@@ -507,0 +508,0 @@ var refCurrentValue = ref.current; |
@@ -80,10 +80,2 @@ var __assign = (this && this.__assign) || function () { | ||
}; | ||
// Imperative Ref methods | ||
useImperativeHandle(forwardedRef, function () { return ({ | ||
getZoom: getZoom, | ||
zoomIn: zoomIn, | ||
reset: reset, | ||
zoomOut: zoomOut, | ||
zoomToZone: zoomToZone, | ||
}); }); | ||
/** | ||
@@ -503,2 +495,11 @@ * Returns the current zoom value. | ||
}; | ||
// Imperative Ref methods | ||
useImperativeHandle(forwardedRef, function () { return ({ | ||
getZoom: getZoom, | ||
zoomIn: zoomIn, | ||
reset: reset, | ||
move: move, | ||
zoomOut: zoomOut, | ||
zoomToZone: zoomToZone, | ||
}); }); | ||
useEffect(function () { | ||
@@ -505,0 +506,0 @@ var refCurrentValue = ref.current; |
{ | ||
"name": "react-prismazoom", | ||
"version": "3.3.1", | ||
"version": "3.3.2", | ||
"description": "A pan and zoom component for React, using CSS transformations.", | ||
@@ -5,0 +5,0 @@ "author": "Sylvain Dubus <svn.dbs@gmail.com>", |
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
70117
1291