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.
circle-divided-by-chord
Advanced tools
Divide a circle into two circular segments whose area is proportional to the data
This React component allows you to divide a circle into two circular segments whose area is proportional to the data received in input.
Take a look to divide-up-circle-in-circular-segments for more information.
npm install --save circle-divided-by-chord
or
yarn add circle-divided-by-chord
Props are all optional:
Prop | Type | Default value | Description |
---|---|---|---|
color1 | string | #8DC0B1 | color of the first section |
color2 | string | #F3E0D2 | color of the second section |
radius | number | 200 | radius of the circle (px) |
datum1 | number | 20 | first datum in [0-100] |
datum2 | number | 80 | second datum in [0-100] |
angle | number | 135 | rotation angle (degree) |
Here the demo page.
import React from "react"
import CircleDividedByChord from "circle-divided-by-chord"
const Example = () => {
return <CircleDividedByChord />
}
import React from "react"
import CircleDividedByChord from "circle-divided-by-chord"
const Example = () => {
return (
<CircleDividedByChord
radius={150}
datum1={50}
datum2={50}
angle={0}
color1="#FF6663"
color2="#0B3954"
/>
)
}
import React from "react"
import CircleDividedByChord from "circle-divided-by-chord"
const Example = () => {
return (
<CircleDividedByChord
radius={150}
datum1={70}
datum2={30}
angle={0}
color1="#525174"
color2="#5DD39E"
/>
)
}
This project was bootstrapped with urca generator.
FAQs
```bash npm install --save circle-divided-by-chord ```
We found that circle-divided-by-chord 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.