diff --git a/src/app/components/shared/tag-cloud/tag-cloud.component.html b/src/app/components/shared/tag-cloud/tag-cloud.component.html index dbd0424a6b090a1a97bc1ae628cfb9a666eb2a54..dd93d857bd931403ad197b70b120cfc4d527ff4b 100644 --- a/src/app/components/shared/tag-cloud/tag-cloud.component.html +++ b/src/app/components/shared/tag-cloud/tag-cloud.component.html @@ -12,7 +12,6 @@ [height]="options.height" [overflow]="options.overflow" [zoomOnHover]="zoomOnHoverOptions" - (clicked)="tagClicked($event)" [log]='"debug"'> </angular-tag-cloud> diff --git a/src/app/components/shared/tag-cloud/tag-cloud.component.ts b/src/app/components/shared/tag-cloud/tag-cloud.component.ts index f4ef01748c15d94401966d8abd4c8378d490bf76..fbffc1c86c7eaed1ff77e0bfe3e6fd951faedde0 100644 --- a/src/app/components/shared/tag-cloud/tag-cloud.component.ts +++ b/src/app/components/shared/tag-cloud/tag-cloud.component.ts @@ -74,20 +74,17 @@ export class TagCloudComponent implements OnInit { this.spacyService.analyse(commentsConcatenated, 'de').subscribe((res: Result) => { - this.data = res.words.filter(w => ['NE', 'NN', 'NMP', 'NNE'].indexOf(w.tag) >= 0).map(w => { - const weight = 5 + Math.floor(Math.random() * 4 + 1); - const color = weight2color[weight]; - return new TagComment(color, - true, null, null, - /*Math.floor(Math.random() * 30 - 15)*/0, w.text, - 'TODO', weight); - } - ) - } - ) - } + this.data = res.words.filter(w => ['NE', 'NN', 'NMP', 'NNE'].indexOf(w.tag) >= 0).map(w => { + const weight = 5 + Math.floor(Math.random() * 4 + 1); + const color = weight2color[weight]; + return new TagComment(color, + true, null, null, + /*Math.floor(Math.random() * 30 - 15)*/0, w.text, + 'TODO', weight); + } + ) + }) + - tagClicked(clicked: CloudData) { - console.log(clicked); } }