![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@talentia/angular-d3-cloud
Advanced tools
D3 Cloud component for Angular built upon d3-cloud
npm install --save @talentia/angular-d3-cloud@1.4.4
Installing the package does not install the type definitions for d3-cloud, d3-scale, d3-scale-chromatic, d3-selection and d3-transition libraries. If you need to use these libraries in your project then install the type definitions with the following command:
npm i --save-dev @types/d3-cloud@1.2.5 @types/d3-scale@4.0.2 @types/d3-scale-chromatic@3.0.0 @types/d3-selection@3.0.3 @types/d3-transition@3.0.2
First import the package to your app module
// app.module.ts
import { AngularD3CloudModule } from '@talentia/angular-d3-cloud';
@NgModule({
imports: [
AngularD3CloudModule
],
...
})
Now the component is ready to use.
<!-- app.component.html -->
<angular-d3-cloud [data]="data" [hover]="true" [selection]="true" [tooltip]="true"></angular-d3-cloud>
// app.component.ts
export class AppComponent implements OnInit {
@Input() data!: AngularD3Word[];
private words = ["Exercitation","duis","ex","laboris","est","aliqua","Lorem","veniam","ad","Minim","enim","do","exercitation","eiusmod","sunt","qui","Aliqua","velit","in","commodo","anim","Sunt","labore","dolor","non","culpa","proident","laborum","dolore","occaecat","mollit","ea","aute","excepteur","Labore","incididunt","tempor","Nisi","nostrud","deserunt","ipsum","adipisicing","pariatur","magna","Ut","aliquip","et","Pariatur","sint","ut","amet","id","eu","cillum","nulla","esse","elit","consequat","Ea","ullamco","Ad","voluptate","nisi","minim"];
ngOnInit(): void {
this.data = this.words.map((word) => {
const value = 10 + Math.random() * 90;
return { text: word, value: value, tooltip: `The value of ${word} is ${value}` } as AngularD3Word;
});
}
}
Name | Description | Type | Required | Default |
---|---|---|---|---|
data | Words array | AngularD3Word[] | ✓ | |
width | Layout width (px) | number | 700 | |
height | Layout height (px) | number | 600 | |
padding | Padding between tags (px) | number | 5 | |
font | Font family needed for calculating layout | string | Arial | |
fontSizeMapper | Map each word value of data to font size (px) | number | ((word: AngularD3Word, index: number) => number) | |
rotate | Rotation in degrees | number | ((word: AngularD3Word, index: number) => number) | |
autoFill | Whether words need to be filled with random colors | boolean | false | |
fillMapper | Function used by autoFill to map each data item to a fill color | (word: AngularD3Word, index: number) => string | schemeCategory10 | |
animations | Whether to apply animation | boolean | false | |
speed | Animation speed (ms) | number | 600 | |
fontWeight | Font weight | string | number | |
fontStyle | Font style | string | normal | |
tooltip | Whether the tooltip should be shown | boolean | false | |
hover | Whether to apply the hover effect on the words | boolean | false | |
selection | Whether the word should be selectable | boolean | false |
Name | Description | Payload |
---|---|---|
wordClick | Event triggered when click event triggered on a word | { event: MouseEvent, word: AngularD3Word } |
wordMouseOver | Event triggered when mouseover event triggered on a word | { event: MouseEvent, word: AngularD3Word } |
wordMouseMove | Event triggered when mousemove event triggered on a word | { event: MouseEvent, word: AngularD3Word } |
wordMouseOut | Event triggered when mouseout event triggered on a word | { event: MouseEvent, word: AngularD3Word } |
Name | Description | Type |
---|---|---|
value | Value to map to font size | number |
tooltip | Tooltip text | string |
AngularD3Word
extends the interfaceWord
imported fromd3-cloud
Run the following commands to start sample project:
npm start
This project is built with the idea of React D3 Cloud.
This project is forked from maitrungduc1410/d3-cloud-angular.
FAQs
D3 word cloud component for Angular built upon d3-cloud
The npm package @talentia/angular-d3-cloud receives a total of 0 weekly downloads. As such, @talentia/angular-d3-cloud popularity was classified as not popular.
We found that @talentia/angular-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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.