ethanselzer / react-cursor-position

A React component that decorates its children with mouse and touch coordinates relative to itself.
https://ethanselzer.github.io/react-cursor-position
MIT License
143 stars 35 forks source link

Support elementDimensions Output Prop #7

Closed ethanselzer closed 7 years ago

ethanselzer commented 7 years ago

Tasks

Notes

Output data structure shape should be:

{
    elementDimensions: {
        width: Number,
        height: Number
    }
    isActive: Boolean,
    isPositionOutside: Boolean,
    position: {
        x: Number,
        y: Number
    }
}
ethanselzer commented 7 years ago

Closing with #8