Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
react-radial
Advanced tools
Readme
By Mode Lab
This is a straightforward, customizable radial menu, built with React and Resonance (a library that allows React and D3js to play along nicely).
The radial component is built with SVG, and can be ported into a div, canvas, WebGL scene, etc. We use radial menus for 3D interaction often, and decided to build a generic component for future use. The demo file is an interactive environment for defining how you want the radial menu to look. Check it out here.
Install the component into your project
npm install --save react-radial
Load the component into your app
import React from 'react';
import { ReactRadial } from 'react-radial';
class Component extends React.Component {
render() {
return <ReactRadial />;
}
}
Remmeber to click on your canvas/div after loading the page (the radial menu does not load automatically). Please post any issues.
Name | Type | Default | Description |
---|---|---|---|
buttons | array | ["button1",...(5)] | an array of strings representing each button's label |
buttonFunctions | array | [() => console.log('clicked button 1'),...(5)] | an array of functions triggered by clicking each button |
duration | number (ms) | 400 | duration of transition |
delay | number (ms) | 80 | delay per button in transition |
innerRadius | number (px) | 20 | donut hole size |
outerRadius | number (px) | 120 | distance from outside of donut hole to outside of donut |
strokeWidth | number | 2 | stroke width |
stroke | color | 'rgba(255,255,255,1)' | stroke color |
fill | color | 'rgba(0,0,0,.8)' | fill color |
FAQs
a radial component built with react and resonance
The npm package react-radial receives a total of 1 weekly downloads. As such, react-radial popularity was classified as not popular.
We found that react-radial demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.