You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@types/d3-cloud

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.2 to 1.2.3

20

d3-cloud/index.d.ts

@@ -62,5 +62,5 @@ // Type definitions for d3JS cloud layout plugin by Jason Davies v1.2.5

spiral(): (size: number) => (t: number) => [number, number];
spiral(): (size: [number, number]) => (t: number) => [number, number];
spiral(name: string): Cloud<T>;
spiral(spiral: (size: number) => (t: number) => [number, number]): Cloud<T>;
spiral(spiral: (size: [number, number]) => (t: number) => [number, number]): Cloud<T>;

@@ -75,6 +75,6 @@ fontSize(): (datum: T, index: number) => number;

/**
/**
* If specified, sets the internal random number generator,used for selecting the initial position of each word,
* and the clockwise/counterclockwise direction of the spiral for each word.
*
*
* @param randomFunction should return a number in the range [0, 1).The default is Math.random.

@@ -89,13 +89,13 @@ */

* @param canvasGenerator should return a HTMLCanvasElement.The default is: ()=>{document.createElement("canvas");}
*
*
*/
canvas():Cloud<T>;
canvas(): Cloud<T>;
canvas(canvasGenerator: () => HTMLCanvasElement): Cloud<T>;
on(type: "word", listener: (word: T) => void): Cloud<T>;
on(type: "end", listener: (tags: T[], bounds: { x: number; y: number }[]) => void): Cloud<T>;
on(type: 'word', listener: (word: T) => void): Cloud<T>;
on(type: 'end', listener: (tags: T[], bounds: { x: number; y: number }[]) => void): Cloud<T>;
on(type: string, listener: (...args: any[]) => void): Cloud<T>;
on(type: "word"): (word: T) => void;
on(type: "end"): (tags: T[], bounds: { x: number; y: number }[]) => void;
on(type: 'word'): (word: T) => void;
on(type: 'end'): (tags: T[], bounds: { x: number; y: number }[]) => void;
on(type: string): (...args: any[]) => void;

@@ -102,0 +102,0 @@ }

{
"name": "@types/d3-cloud",
"version": "1.2.2",
"version": "1.2.3",
"description": "TypeScript definitions for d3JS cloud layout plugin by Jason Davies",

@@ -19,3 +19,3 @@ "license": "MIT",

"main": "",
"types": "index",
"types": "index.d.ts",
"repository": {

@@ -30,4 +30,4 @@ "type": "git",

},
"typesPublisherContentHash": "349e6ed2a699a4a609fc4f32a901e6f6af0b5476582cc9ac609e2a5c2f4a4086",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "8bffb16a9692af51d386cdfde7c572834f54851b1f2850aceb4d0e87c76eff2b",
"typeScriptVersion": "2.8"
}

@@ -5,13 +5,13 @@ # Installation

# Summary
This package contains type definitions for d3JS cloud layout plugin by Jason Davies ( https://github.com/jasondavies/d3-cloud ).
This package contains type definitions for d3JS cloud layout plugin by Jason Davies (https://github.com/jasondavies/d3-cloud).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-cloud
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-cloud.
Additional Details
* Last updated: Tue, 05 Mar 2019 17:51:16 GMT
* Dependencies: @types/d3
### Additional Details
* Last updated: Fri, 20 Mar 2020 15:47:15 GMT
* Dependencies: [@types/d3](https://npmjs.com/package/@types/d3)
* Global values: none
# Credits
These definitions were written by hans windhoff <https://github.com/hansrwindhoff>, locknono <https://github.com/locknono>.
These definitions were written by [hans windhoff](https://github.com/hansrwindhoff), and [locknono](https://github.com/locknono).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc