![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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 16 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.