You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

react-pdf-annotator

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

Comparing version 0.0.3 to 0.0.4

22

lib/components/AreaHighlight.js

@@ -27,2 +27,5 @@ "use strict";

// $FlowFixMe
var AreaHighlight = function (_Component) {

@@ -45,16 +48,21 @@ _inherits(AreaHighlight, _Component);

className: "AreaHighlight",
onDragStop: function onDragStop(_, ui) {
var boundingRect = _extends({}, highlight.position.boundingRect, ui.position);
onDragStop: function onDragStop(_, data) {
var boundingRect = _extends({}, highlight.position.boundingRect, {
top: data.y,
left: data.x
});
onChange(boundingRect);
},
onResizeStop: function onResizeStop(direction, styleSize, clientSize, delta, position) {
var boundingRect = _extends({}, styleSize, {
onResizeStop: function onResizeStop(_, direction, ref, delta, position) {
var boundingRect = {
top: position.y,
left: position.x
});
left: position.x,
width: ref.offsetWidth,
height: ref.offsetHeight
};
onChange(boundingRect);
},
initial: {
"default": {
x: highlight.position.boundingRect.left,

@@ -61,0 +69,0 @@ y: highlight.position.boundingRect.top,

{
"name": "react-pdf-annotator",
"version": "0.0.3",
"version": "0.0.4",
"description": "Set of React components for PDF annotation",

@@ -17,3 +17,3 @@ "main": "lib/index.js",

"deploy": "npm run build && gh-pages --dist ./demo/dist --branch gh-pages",
"publish": "npm run build && npm run copy-files && npm publish",
"prepublish": "npm run build && npm run copy-files",
"prettier": "prettier --write 'src/**/*.js' 'demo/src/**/*.js'"

@@ -23,3 +23,3 @@ },

"pdfjs-dist": "^2.0.159",
"react-rnd": "4.2.0"
"react-rnd": "^7.1.5"
},

@@ -26,0 +26,0 @@ "peerDependencies": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc