Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
react-d3-animation
Advanced tools
Animation component in react-d3.
UNDER DEVELOPMENT DON'T USE IN PRODUCTION
"use strict";
var React = require('react');
var ReactDOM = require('react-dom');
var Animation = require('../../lib/index').Animation;
// Example
(function() {
var Container = React.createClass({
getInitialState: function() {
return{
width: 100,
height: 100,
dataSet: {
x: 0,
y: 0
},
color: 'red'
}
},
onClick: function() {
this.setState({
dataSet: this.state.dataSet.x === 0 ? {
x: 100,
y: 100
}: {
x: 0,
y:0
},
width: this.state.width === 100 ? 200: 100,
height: this.state.height === 100 ? 200: 100,
color: this.state.color === 'red' ? 'green': 'red'
})
},
render: function() {
return (
<div>
<button onClick={this.onClick}>toggle</button>
<Animation
width= {this.state.width}
height= {this.state.height}
color= {this.state.color}
data= {this.state.dataSet}
>
{function(state) {
return (
<div style= {{width: state.width, height: state.height, backgroundColor: state.color}}>
x: {state.data.x} <br/>
y: {state.data.y}
</div>
)
}}
</Animation>
</div>
)
}
})
ReactDOM.render(
<Container/>
, document.getElementById('blank-animate')
)
})()
Apache 2.0
FAQs
react-d3 animation
The npm package react-d3-animation receives a total of 0 weekly downloads. As such, react-d3-animation popularity was classified as not popular.
We found that react-d3-animation 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.