@potion/extra

1.0.0-next.0 • Public • Published

Extras

Extra elements/effects used when visualizing data like gradients, patterns, axes and legends to name a few.

Patterns

Number Picture 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

Package Sidebar

Install

npm i @potion/extra

Weekly Downloads

0

Version

1.0.0-next.0

License

MIT

Unpacked Size

688 kB

Total Files

23

Last publish

Collaborators

  • finnfiddle