Visx: PatternCircles strokeWidth

Created on 5 Jan 2018  路  5Comments  路  Source: airbnb/visx

I see this example has strokeWidth use in the PatternCircles component. But can anyone confirm this works?

https://vx-demo.now.sh/static/docs/vx-pattern.html

<PatternCircles
  id="circles"
  height={6}
  width={6}
  stroke={'black'}
  strokeWidth={1}
/>
馃敭question

Most helpful comment

@OKNoah great! Yup, just increase radius, width, and height.

width & height define the the area that will be repeated as a pattern. Then the center point for your circle will be cx = width / 2 and cy = height / 2. Here's another example: https://codesandbox.io/s/1z2k2wxk54

All 5 comments

Hi @OKNoah, thanks for checking out vx!

Here's a codesandbox of a working strokeWidth on <PatternCircles />: https://codesandbox.io/s/n9rr21qkrp

screen shot 2018-01-05 at 10 47 30 am

Going to close this but feel free to follow up if you have questions or if something isn鈥檛 working as expected.

@hshoff I will give it another go later, thanks.

@hshoff Indeed it does work, not sure why it didn't before. Is there a way to increase circle diameter? Looking at the code, it's not obvious to me how.

@OKNoah great! Yup, just increase radius, width, and height.

width & height define the the area that will be repeated as a pattern. Then the center point for your circle will be cx = width / 2 and cy = height / 2. Here's another example: https://codesandbox.io/s/1z2k2wxk54

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stefanvermaas picture stefanvermaas  路  3Comments

EfosaSO picture EfosaSO  路  4Comments

hshoff picture hshoff  路  5Comments

akhil9tiet picture akhil9tiet  路  3Comments

crackcomm picture crackcomm  路  5Comments