@mvasigh/react-selection
Advanced tools
Comparing version 0.2.0 to 0.2.1
15
index.js
@@ -969,3 +969,4 @@ 'use strict'; | ||
style: { | ||
display: 'inline-block' | ||
display: 'inline-block', | ||
position: 'relative' | ||
} | ||
@@ -1002,5 +1003,3 @@ }, props), props.children); | ||
context.current = ctx; | ||
requestAnimationFrame(function () { | ||
return draw(); | ||
}); | ||
requestAnimationFrame(draw); | ||
}; | ||
@@ -1086,5 +1085,3 @@ | ||
requestAnimationFrame(function () { | ||
return draw(); | ||
}); | ||
requestAnimationFrame(draw); | ||
} | ||
@@ -1094,7 +1091,7 @@ | ||
ref: area | ||
}, select()), props.children), React__default.createElement(PureCanvas, { | ||
}, select()), props.children, React__default.createElement(PureCanvas, { | ||
width: w, | ||
height: h, | ||
contextRef: handleCanvasRef | ||
})); | ||
}))); | ||
}; | ||
@@ -1101,0 +1098,0 @@ |
{ | ||
"name": "@mvasigh/react-selection", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Grab an area of a component tree and get selection coordinates", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
33381
947