Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
svelte-d3-cloud
Advanced tools
Svelte wrapper for d3-cloud. See Demo
npm install svelte-d3-cloud
or
yarn add svelte-d3-cloud
<script>
import WordCloud from "svelte-d3-cloud";
const words = [
{ text: "Halo", count: 100 },
{ text: "Dunia", count: 50 },
{ text: "Gaib", count: 75 },
];
</script>
<div>
<WordCloud words={words}/>
</div>
Property | Description | Default Value |
---|---|---|
words | Array of object contains text and count value [{text : "some", count: 10},...] | undefined |
width | Set the word cloud canvas width | 500 |
height | Set the word cloud canvas height | 500 |
backgroundColor | Set the canvas background color | '#fff' |
font | Set the word font family | 'Impact' |
padding | Set the padding of each text | 10 |
scheme | Set the word cloud text color scheme based on d3-scale-chromatic (schemeCategory10 , schemeAccent, schemeDark2, schemePaired, schemePastel1, schemePastel2, schemeSet1, schemeSet2, schemeSet3, schemeTableau10) | 'schemeTableau10' |
minRotate | Set the minimum rotation of the text | 0 |
maxRotate | Set the maximum rotation of the text | 0 |
maxFontSize | Set the maximum font size of the text | 50 |
Event | Description |
---|---|
on:click | Listen to event when word is clicked |
on:mouseover | Listen to event when word is hovered |
on:mouseout | Listen to event when mouse leave the word |
on:mousemove | Listen to event when mouse move inside the word |
FAQs
svelte wrapper for d3-cloud
The npm package svelte-d3-cloud receives a total of 91 weekly downloads. As such, svelte-d3-cloud popularity was classified as not popular.
We found that svelte-d3-cloud 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.