Created
April 7, 2017 15:56
-
-
Save mvbattan/a3d4bad704fc938f5954ec3da4956f34 to your computer and use it in GitHub Desktop.
createPoint
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const createPoint = (coordinates, color, size = 8) => { | |
return { | |
backgroundColor: color, | |
left: coordinates.x - 3, | |
bottom: coordinates.y - 2, | |
position: 'absolute', | |
borderRadius: 50, | |
width: size, | |
height: size | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment