1.1.4 • Published 8 years ago

simple-slice v1.1.4

Weekly downloads
22
License
MIT
Repository
github
Last release
8 years ago

Simple Slice

A simple component of a slice created in ReactJS and SVG.

Usage

<SimpleSlice
  center={64}
  radius={32}
  start={0}
  end={30}
  opacity={1.0}
  color='blue'
/>

Properties

center: React.PropTypes.number // The distance from upper left corner of your screen in x- or y- direction.
radius: React.PropTypes.number // The distance from the center to the edge of your slice.
start: React.PropTypes.number // The starting angle of a slice in degrees.
end: React.PropTypes.number // The ending angle of a slice in degrees.
color: React.PropTypes.string // The color of the slice. Default: white
opacity: React.PropTypes.number // The opacity of the slice. Default: 1.0
strokeWidth: React.PropTypes.string // The width of the stroke. Default: 1.0
strokeColor: React.PropTypes.string // The color of the stroke. Default: black
strokeOpacity: React.PropTypes.string // The opacity of the stroke. Default: 1.0
mouseEnter: React.PropTypes.func // A callback function to execute when the mouseenter is fired on slice.
mouseLeave: React.PropTypes.func // A callback function to execute when the mouseleave is fired on slice.

Example

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago