Skip to content

Commit

Permalink
Updated Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
SanichKotikov committed Jan 9, 2019
1 parent ed577f2 commit 2c03307
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ const HEIGHT = 80;
rootId={rootId}
width={WIDTH}
height={HEIGHT}
renderNode={(node, point) => (
renderNode={(node) => (
<FamilyNode
key={node.id}
node={node}
style={{
width: WIDTH,
height: HEIGHT,
transform: `translate(${point.x}px, ${point.y}px)`,
transform: `translate(${node.left * (WIDTH / 2)}px, ${node.top * (HEIGHT / 2)}px)`,
}}
/>
)}
Expand Down

0 comments on commit 2c03307

Please sign in to comment.