@types/d3-cloud
Advanced tools
Comparing version 1.2.5 to 1.2.6
@@ -6,7 +6,7 @@ // Type definitions for d3JS cloud layout plugin by Jason Davies v1.2.5 | ||
import * as d3 from 'd3'; | ||
import * as d3 from "d3"; | ||
export = d3.layout.cloud; | ||
declare module 'd3' { | ||
declare module "d3" { | ||
namespace layout { | ||
@@ -80,3 +80,2 @@ export function cloud(): Cloud<cloud.Word>; | ||
* @param canvasGenerator should return a HTMLCanvasElement.The default is: ()=>{document.createElement("canvas");} | ||
* | ||
*/ | ||
@@ -86,8 +85,8 @@ canvas(): 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; | ||
@@ -94,0 +93,0 @@ } |
{ | ||
"name": "@types/d3-cloud", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"description": "TypeScript definitions for d3JS cloud layout plugin by Jason Davies", | ||
@@ -30,4 +30,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-cloud", | ||
}, | ||
"typesPublisherContentHash": "c2e384fca12c267d675beb59a9681b982d6281653a5e1d5795db41b2c9e41b4f", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "a95452eb7a0fa6dce9888b5ac381475aff57e38552d7a24cf4c45910c954ce48", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 13 Aug 2021 01:01:27 GMT | ||
* Last updated: Fri, 22 Sep 2023 20:29:40 GMT | ||
* Dependencies: [@types/d3](https://npmjs.com/package/@types/d3) | ||
@@ -14,0 +14,0 @@ * Global values: none |
6782
72