Support Element Dimensions
Addresses Issue #7
- Child components and the
onPositionChangedcallback receive a new property namedelementDimensions.elementDimensionsis an object withwidthandheightproperties 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!