add comment to colorInfo shape

This commit is contained in:
Matthew Taylor 2017-12-15 10:10:55 -05:00
parent 8c2fc475f6
commit 73dce6ca50

View file

@ -95,7 +95,7 @@ class LoupeComponent extends React.Component {
LoupeComponent.propTypes = { LoupeComponent.propTypes = {
colorInfo: PropTypes.shape({ colorInfo: PropTypes.shape({
color: PropTypes.instanceOf(Uint8ClampedArray), color: PropTypes.instanceOf(Uint8ClampedArray), // this is the [r,g,b,a] array
x: PropTypes.number, x: PropTypes.number,
y: PropTypes.number, y: PropTypes.number,
data: PropTypes.instanceOf(Uint8ClampedArray) data: PropTypes.instanceOf(Uint8ClampedArray)