1.0.0-next.0 • Published 7 years ago
@potion/extra v1.0.0-next.0
Extras
Extra elements/effects used when visualizing data like gradients, patterns, axes and legends to name a few.
Patterns
Potion provides the ability to fill shapes with patterns using the third-party library react-svg-textures.
Example:
import { Svg, Rect } from '@potion/element';
import { Pattern } from '@potion/extra';
<Svg width={400} height={400}>
<Pattern.Lines
id='my-pattern'
strokeWidth={10}
stroke='purple'
size={10}
orientation='diagonal'
background='blue'
/>
<circle cx={100} cy={100} r={5} fill='url(#my-pattern)' />
</Svg>
Gradients
1.0.0-next.26
7 years ago
1.0.0-next.25
7 years ago
1.0.0-next.24
7 years ago
1.0.0-next.23
7 years ago
1.0.0-next.22
7 years ago
1.0.0-next.21
7 years ago
1.0.0-next.20
7 years ago
1.0.0-next.19
7 years ago
1.0.0-next.18
7 years ago
1.0.0-next.17
7 years ago
1.0.0-next.16
7 years ago
1.0.0-next.15
7 years ago
1.0.0-next.14
7 years ago
1.0.0-next.13
7 years ago
1.0.0-next.12
7 years ago
1.0.0-next.11
7 years ago
1.0.0-next.10
7 years ago
1.0.0-next.9
7 years ago
1.0.0-next.8
7 years ago
1.0.0-next.7
7 years ago
1.0.0-next.6
7 years ago
1.0.0-next.5
7 years ago
1.0.0-next.4
7 years ago
1.0.0-next.3
7 years ago
1.0.0-next.2
7 years ago
1.0.0-next.1
7 years ago
2.0.0-next.0
7 years ago
1.0.0-next.0
7 years ago