Created
April 18, 2020 00:23
-
-
Save marshallmurphy/1fd4d5976c7f1d534f51fc96a9632175 to your computer and use it in GitHub Desktop.
This file contains 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
<Surface width={width} height={height}> | |
{data.map((item, index) => { | |
let config = { | |
index: index, | |
width: width, | |
height: height, | |
data: data, | |
color: color, | |
lineWidth: 18, | |
} | |
return ( | |
<Group key={index} x={60} y={-20}> | |
<ConstructShape config={{...config, ...{ color: "#353535", type: 'main' }}} /> | |
<ConstructShape config={{...config, ...{ color: color, type: 'top', lineHeight: 5 }}}/> | |
</Group> | |
); | |
})} | |
</Surface> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment