@talentia/angular-d3-cloud
Advanced tools
Comparing version 1.4.4 to 1.4.5
import { ElementRef, EventEmitter, OnChanges, AfterViewInit, SimpleChanges, OnDestroy } from '@angular/core'; | ||
import { AngularD3Word } from './angular-d3-cloud.interfaces'; | ||
import { AngularD3Word, AngularD3Themes } from './angular-d3-cloud.interfaces'; | ||
import * as i0 from "@angular/core"; | ||
@@ -22,2 +22,3 @@ export declare class AngularD3CloudComponent implements OnChanges, AfterViewInit, OnDestroy { | ||
selection: boolean; | ||
theme: AngularD3Themes; | ||
wordClick: EventEmitter<{ | ||
@@ -53,3 +54,3 @@ event: MouseEvent; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<AngularD3CloudComponent, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<AngularD3CloudComponent, "angular-d3-cloud", never, { "data": "data"; "width": "width"; "height": "height"; "padding": "padding"; "font": "font"; "fontSizeMapper": "fontSizeMapper"; "rotate": "rotate"; "autoFill": "autoFill"; "fillMapper": "fillMapper"; "animations": "animations"; "speed": "speed"; "fontWeight": "fontWeight"; "fontStyle": "fontStyle"; "tooltip": "tooltip"; "hover": "hover"; "selection": "selection"; }, { "wordClick": "wordClick"; "wordMouseOver": "wordMouseOver"; "wordMouseMove": "wordMouseMove"; "wordMouseOut": "wordMouseOut"; }, never, never, false, never>; | ||
static ɵcmp: i0.ɵɵComponentDeclaration<AngularD3CloudComponent, "angular-d3-cloud", never, { "data": "data"; "width": "width"; "height": "height"; "padding": "padding"; "font": "font"; "fontSizeMapper": "fontSizeMapper"; "rotate": "rotate"; "autoFill": "autoFill"; "fillMapper": "fillMapper"; "animations": "animations"; "speed": "speed"; "fontWeight": "fontWeight"; "fontStyle": "fontStyle"; "tooltip": "tooltip"; "hover": "hover"; "selection": "selection"; "theme": "theme"; }, { "wordClick": "wordClick"; "wordMouseOver": "wordMouseOver"; "wordMouseMove": "wordMouseMove"; "wordMouseOut": "wordMouseOut"; }, never, never, false, never>; | ||
} |
@@ -31,2 +31,3 @@ export interface AngularD3Word { | ||
selection: boolean; | ||
theme: AngularD3Themes; | ||
mouseClickObserved: boolean; | ||
@@ -37,1 +38,2 @@ mouseOverObserved: boolean; | ||
} | ||
export declare type AngularD3Themes = 'text-opacity' | 'text-shadow'; |
@@ -29,6 +29,6 @@ import { Subject } from 'rxjs'; | ||
private canvasGenerator; | ||
private applyFill; | ||
private applyTooltip; | ||
private applyAnimation; | ||
private applyEventListeners; | ||
private applyTooltip; | ||
private applyFill; | ||
private validateData; | ||
@@ -35,0 +35,0 @@ private validateNode; |
@@ -5,3 +5,3 @@ { | ||
"description": "D3 word cloud component for Angular built upon d3-cloud", | ||
"version": "1.4.4", | ||
"version": "1.4.5", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "d3-cloud": "^1.2.5", |
@@ -19,3 +19,3 @@ # Angular D3 Word Cloud | ||
``` | ||
npm install --save @talentia/angular-d3-cloud@1.4.4 | ||
npm install --save @talentia/angular-d3-cloud@1.4.5 | ||
``` | ||
@@ -82,2 +82,3 @@ Installing the package does not install the type definitions for d3-cloud, d3-scale, d3-scale-chromatic, d3-selection and d3-transition libraries. | ||
| selection | Whether the word should be selectable | boolean | | false | | ||
| theme | Theme to apply on hover or selected words | AngularD3Themes | | text-opacity | | ||
@@ -98,2 +99,8 @@ # AngularD3CloudComponent Events | ||
# AngularD3Themes Type | ||
| Name | Description | Type | | ||
|---------------|-----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------| | ||
| text-opacity | Apply opacity effect on hover or selected words | string | | ||
| text-shadow | Apply shadow effect on hover or selected words | string | | ||
> `AngularD3Word` extends the interface `Word` imported from `d3-cloud` | ||
@@ -100,0 +107,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
259247
1898
114
6