Skip to content

Instantly share code, notes, and snippets.

@marshallmurphy
Created April 18, 2020 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marshallmurphy/1fd4d5976c7f1d534f51fc96a9632175 to your computer and use it in GitHub Desktop.
Save marshallmurphy/1fd4d5976c7f1d534f51fc96a9632175 to your computer and use it in GitHub Desktop.
<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