Skip to content

Commit

Permalink
feat(swarmplot): add support for border color
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaël Benitte authored and Raphaël Benitte committed Apr 17, 2019
1 parent 99e66e1 commit de3e8b3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/swarmplot/src/SwarmPlotCanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ const SwarmPlotCanvas = memo(
nodes,
xScale,
yScale,
getBorderWidth,
getBorderColor,
voronoi,
currentNode,
])
Expand Down
9 changes: 9 additions & 0 deletions website/src/data/components/swarmplot/props.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,15 @@ const props = [
controlType: 'lineWidth',
group: 'Style',
},
{
key: 'borderColor',
help: 'Control node border color.',
type: 'string | object | Function',
required: false,
defaultValue: defaults.borderColor,
controlType: 'inheritedColor',
group: 'Style',
},
{
key: 'layers',
group: 'Customization',
Expand Down

0 comments on commit de3e8b3

Please sign in to comment.