Support Element Dimensions
Addresses Issue #7
- Child components and the
onPositionChanged
callback receive a new property namedelementDimensions
.elementDimensions
is an object withwidth
andheight
properties of type Number. Dimensions are taken from the element rendered by react-cursor-position. This could be especially useful in a fluid layout where element dimensions may not be known at design time. - Update dependencies and convert to babel-plugin-istanbul for code coverage instrumentation
- Special thanks to @AlexMeah for suggesting this feature and opening a prototype PR!