1.1.4 • Published 10 years ago
simple-slice v1.1.4
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: whiteopacity: React.PropTypes.number // The opacity of the slice. Default: 1.0strokeWidth: React.PropTypes.string // The width of the stroke. Default: 1.0strokeColor: React.PropTypes.string // The color of the stroke. Default: blackstrokeOpacity: React.PropTypes.string // The opacity of the stroke. Default: 1.0mouseEnter: 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.