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

react-image-annotate

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-image-annotate - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

7

ImageCanvas/use-mouse.js

@@ -81,3 +81,3 @@ import { useRef } from "react";

e.preventDefault();
if (e.button === 1 || e.button === 0 && dragWithPrimary) return changeDragging(true);
if (e.button === 1 || e.button === 2 || e.button === 0 && dragWithPrimary) return changeDragging(true);
var projMouse = mat.applyToPoint(mousePosition.current.x, mousePosition.current.y);

@@ -156,3 +156,3 @@

if (e.button === 1 || e.button === 0 && dragWithPrimary) return changeDragging(false);
if (e.button === 1 || e.button === 2 || e.button === 0 && dragWithPrimary) return changeDragging(false);

@@ -173,2 +173,5 @@ if (e.button === 0) {

zoomIn(direction, mousePosition.current); // e.preventDefault()
},
onContextMenu: function onContextMenu(e) {
e.preventDefault();
}

@@ -175,0 +178,0 @@ };

import _objectSpread from "@babel/runtime/helpers/esm/objectSpread";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import React, { useRef, useCallback } from "react";
import { makeStyles } from "@material-ui/core/styles";
import { makeStyles, styled } from "@material-ui/core/styles";
import ImageCanvas from "../ImageCanvas";

@@ -40,2 +40,10 @@ import styles from "./styles";

});
var FullScreenContainer = styled("div")({
width: "100%",
height: "100%",
"& .fullscreen": {
width: "100%",
height: "100%"
}
});
export var MainLayout = function MainLayout(_ref2) {

@@ -174,3 +182,3 @@ var state = _ref2.state,

var nextImageHasRegions = !nextImage || nextImage.regions && nextImage.regions.length > 0;
return /*#__PURE__*/React.createElement(FullScreen, {
return /*#__PURE__*/React.createElement(FullScreenContainer, null, /*#__PURE__*/React.createElement(FullScreen, {
handle: fullScreenHandle,

@@ -305,4 +313,4 @@ onChange: function onChange(open) {

}
})));
}))));
};
export default MainLayout;
{
"name": "react-image-annotate",
"version": "1.6.1",
"version": "1.6.2",
"dependencies": {

@@ -5,0 +5,0 @@ "@fortawesome/fontawesome-svg-core": "^1.2.12",

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