
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
react-svg-connector
Advanced tools
React component to draw svg connectors between any React components
Supply Chain Security
Vulnerability
Quality
Maintenance
License
React component to draw svg connectors to connect any React components
npm install react-svg-connector
or
yarn add react-svg-connector
Component props:
optional
): 's' | 'narrow-s' | 'line'
optional
): 'r2l' | 'l2l' | 'r2r' | 'l2r' |'b2t' | 'b2b' | 't2b' | 't2t'
optional
): true | false
optional
): number of grid, used to calculate step = distanceX(Y) / grid
optional
): min value for the step
optional
): min distance from the start pointoptional
): true | false
optional
): true | false
optional
): arrow sizeAll svg path props are available. Please run a full example to see all available props.
S shape
narrow-s shape
import Connector from 'react-svg-connector';
// if you want to use core connector components
import { SConnector, LineConnector, NarrowSConnector } from 'react-svg-connector';
const Wrapper = styled.div`
position: relative;
height: 100vh;
overflow: auto;
`;
const Box = styled.div`
width: 150px;
height: 50px;
cursor: pointer;
`;
const Box1 = styled(Box)`
background-color: green;
position: absolute;
top: 200px;
left: 200px;
`;
const Box2 = styled(Box)`
background-color: red;
position: absolute;
top: 400px;
left: 500px;
`;
function App() {
const ref1 = useRef<any>();
const ref2 = useRef<any>();
const [draw, redraw] = useState(0);
useEffect(() => {
redraw(Math.random());
}, [ref1, ref2]);
return (
<Wrapper>
<Connector
el1={ref1.current}
el2={ref2.current}
shape="narrow-s"
direction="r2l" // "l2l", "r2r", "l2l"
roundCorner={true}
endArrow={true}
/>
<Box1 ref={ref1} />
<Box2 ref={ref2} />
</Wrapper>
);
}
FAQs
React component to draw svg connectors between any React components
The npm package react-svg-connector receives a total of 238 weekly downloads. As such, react-svg-connector popularity was classified as not popular.
We found that react-svg-connector 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.