@types/d3-zoom
Advanced tools
Comparing version 0.0.1 to 0.0.2
// Type definitions for d3JS d3-zoom module 1.0.2 | ||
// Project: https://github.com/d3/d3-zoom/ | ||
// Definitions by: Alex Ford <https://github.com/gustavderdrache>, Boris Yankov <https://github.com/borisyankov>, Tom Wanzek <https://github.com/tomwanzek> | ||
// Definitions by: Tom Wanzek <https://github.com/tomwanzek>, Alex Ford <https://github.com/gustavderdrache>, Boris Yankov <https://github.com/borisyankov> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
import { ArrayLike, Selection, TransitionLike } from 'd3-selection'; | ||
import { ArrayLike, Selection, TransitionLike, ValueFn } from 'd3-selection'; | ||
@@ -27,5 +27,5 @@ | ||
domain(): Array<number>; | ||
domain(domain: Array<number>): ZoomScale; | ||
domain(domain: Array<number>): this; | ||
range(): Array<number>; | ||
range(range: Array<number>): ZoomScale; | ||
range(range: Array<number>): this; | ||
copy(): ZoomScale; | ||
@@ -43,56 +43,44 @@ invert(value: number): number; | ||
transform(selection: Selection<ZoomRefElement, Datum, any, any>, transform: ZoomTransform): void; | ||
transform(selection: Selection<ZoomRefElement, Datum, any, any>, transform: (this: ZoomRefElement, d?: Datum, i?: number, group?: Array<ZoomRefElement> | ArrayLike<ZoomRefElement>) => ZoomTransform): void; | ||
transform(selection: Selection<ZoomRefElement, Datum, any, any>, transform: ValueFn<ZoomRefElement, Datum, ZoomTransform>): void; | ||
transform(transition: TransitionLike<ZoomRefElement, Datum>, transform: ZoomTransform): void; | ||
transform(transition: TransitionLike<ZoomRefElement, Datum>, transform: (this: ZoomRefElement, d?: Datum, i?: number, group?: Array<ZoomRefElement> | ArrayLike<ZoomRefElement>) => ZoomTransform): void; | ||
transform(transition: TransitionLike<ZoomRefElement, Datum>, transform: ValueFn<ZoomRefElement, Datum, ZoomTransform>): void; | ||
translateBy(selection: Selection<ZoomRefElement, Datum, any, any>, x: number, y: number): void; | ||
translateBy(selection: Selection<ZoomRefElement, Datum, any, any>, | ||
x: (this: ZoomRefElement, d?: Datum, i?: number, group?: Array<ZoomRefElement> | ArrayLike<ZoomRefElement>) => number, | ||
y: number): void; | ||
translateBy(selection: Selection<ZoomRefElement, Datum, any, any>, | ||
x: number, | ||
y: (this: ZoomRefElement, d?: Datum, i?: number, group?: Array<ZoomRefElement> | ArrayLike<ZoomRefElement>) => number): void; | ||
translateBy(selection: Selection<ZoomRefElement, Datum, any, any>, | ||
x: (this: ZoomRefElement, d?: Datum, i?: number, group?: Array<ZoomRefElement> | ArrayLike<ZoomRefElement>) => number, | ||
y: (this: ZoomRefElement, d?: Datum, i?: number, group?: Array<ZoomRefElement>) => number): void; | ||
translateBy(selection: Selection<ZoomRefElement, Datum, any, any>, x: ValueFn<ZoomRefElement, Datum, number>, y: number): void; | ||
translateBy(selection: Selection<ZoomRefElement, Datum, any, any>, x: number, y: ValueFn<ZoomRefElement, Datum, number>): void; | ||
translateBy(selection: Selection<ZoomRefElement, Datum, any, any>, x: ValueFn<ZoomRefElement, Datum, number>, y: ValueFn<ZoomRefElement, Datum, number>): void; | ||
translateBy(transition: TransitionLike<ZoomRefElement, Datum>, x: number, y: number): void; | ||
translateBy(transition: TransitionLike<ZoomRefElement, Datum>, | ||
x: (this: ZoomRefElement, d?: Datum, i?: number, group?: Array<ZoomRefElement> | ArrayLike<ZoomRefElement>) => number, | ||
y: number): void; | ||
translateBy(transition: TransitionLike<ZoomRefElement, Datum>, | ||
x: number, | ||
y: (this: ZoomRefElement, d?: Datum, i?: number, group?: Array<ZoomRefElement> | ArrayLike<ZoomRefElement>) => number): void; | ||
translateBy(transition: TransitionLike<ZoomRefElement, Datum>, | ||
x: (this: ZoomRefElement, d?: Datum, i?: number, group?: Array<ZoomRefElement> | ArrayLike<ZoomRefElement>) => number, | ||
y: (this: ZoomRefElement, d?: Datum, i?: number, group?: Array<ZoomRefElement> | ArrayLike<ZoomRefElement>) => number): void; | ||
translateBy(transition: TransitionLike<ZoomRefElement, Datum>, x: ValueFn<ZoomRefElement, Datum, number>, y: number): void; | ||
translateBy(transition: TransitionLike<ZoomRefElement, Datum>, x: number, y: ValueFn<ZoomRefElement, Datum, number>): void; | ||
translateBy(transition: TransitionLike<ZoomRefElement, Datum>, x: ValueFn<ZoomRefElement, Datum, number>, y: ValueFn<ZoomRefElement, Datum, number>): void; | ||
scaleBy(selection: Selection<ZoomRefElement, Datum, any, any>, k: number): void; | ||
scaleBy(selection: Selection<ZoomRefElement, Datum, any, any>, k: (this: ZoomRefElement, d?: Datum, i?: number, group?: Array<ZoomRefElement> | ArrayLike<ZoomRefElement>) => number): void; | ||
scaleBy(selection: Selection<ZoomRefElement, Datum, any, any>, k: ValueFn<ZoomRefElement, Datum, number>): void; | ||
scaleBy(transition: TransitionLike<ZoomRefElement, Datum>, k: number): void; | ||
scaleBy(transition: TransitionLike<ZoomRefElement, Datum>, k: (this: ZoomRefElement, d?: Datum, i?: number, group?: Array<ZoomRefElement> | ArrayLike<ZoomRefElement>) => number): void; | ||
scaleBy(transition: TransitionLike<ZoomRefElement, Datum>, k: ValueFn<ZoomRefElement, Datum, number>): void; | ||
scaleTo(selection: Selection<ZoomRefElement, Datum, any, any>, k: number): void; | ||
scaleTo(selection: Selection<ZoomRefElement, Datum, any, any>, k: (this: ZoomRefElement, d?: Datum, i?: number, group?: Array<ZoomRefElement> | ArrayLike<ZoomRefElement>) => number): void; | ||
scaleTo(selection: Selection<ZoomRefElement, Datum, any, any>, k: ValueFn<ZoomRefElement, Datum, number>): void; | ||
scaleTo(transition: TransitionLike<ZoomRefElement, Datum>, k: number): void; | ||
scaleTo(transition: TransitionLike<ZoomRefElement, Datum>, k: (this: ZoomRefElement, d?: Datum, i?: number, group?: Array<ZoomRefElement> | ArrayLike<ZoomRefElement>) => number): void; | ||
scaleTo(transition: TransitionLike<ZoomRefElement, Datum>, k: ValueFn<ZoomRefElement, Datum, number>): void; | ||
filter(): (this: ZoomRefElement, datum: Datum, index: number, group: Array<ZoomRefElement> | ArrayLike<ZoomRefElement>) => boolean; | ||
filter(filterFn: (this: ZoomRefElement, d?: Datum, index?: number, group?: Array<ZoomRefElement> | ArrayLike<ZoomRefElement>) => boolean): ZoomBehavior<ZoomRefElement, Datum>; | ||
filter(): ValueFn<ZoomRefElement, Datum, boolean>; | ||
filter(filterFn: ValueFn<ZoomRefElement, Datum, boolean>): this; | ||
extent(): (this: ZoomRefElement, d: Datum, index: number, group: Array<ZoomRefElement> | ArrayLike<ZoomRefElement>) => [[number, number], [number, number]]; | ||
extent(extent: [[number, number], [number, number]]): ZoomBehavior<ZoomRefElement, Datum>; | ||
extent(extent: (this: ZoomRefElement, d?: Datum, index?: number, group?: Array<ZoomRefElement> | ArrayLike<ZoomRefElement>) => [[number, number], [number, number]]): ZoomBehavior<ZoomRefElement, Datum>; | ||
extent(): ValueFn<ZoomRefElement, Datum, [[number, number], [number, number]]>; | ||
extent(extent: [[number, number], [number, number]]): this; | ||
extent(extent: ValueFn<ZoomRefElement, Datum, [[number, number], [number, number]]>): this; | ||
scaleExtent(): [number, number]; | ||
scaleExtent(extent: [number, number]): ZoomBehavior<ZoomRefElement, Datum>; | ||
scaleExtent(extent: [number, number]): this; | ||
translateExtent(): [[number, number], [number, number]]; | ||
translateExtent(extent: [[number, number], [number, number]]): ZoomBehavior<ZoomRefElement, Datum>; | ||
translateExtent(extent: [[number, number], [number, number]]): this; | ||
duration(): number; | ||
duration(duration: number): ZoomBehavior<ZoomRefElement, Datum>; | ||
duration(duration: number): this; | ||
on(typenames: string): (this: ZoomRefElement, datum: Datum, index: number, group: Array<ZoomRefElement> | ArrayLike<ZoomRefElement>) => void; | ||
on(typenames: string, callback: null): ZoomBehavior<ZoomRefElement, Datum>; | ||
on(typenames: string, callback: (this: ZoomRefElement, datum: Datum, index: number, group: Array<ZoomRefElement> | ArrayLike<ZoomRefElement>) => void): ZoomBehavior<ZoomRefElement, Datum>; | ||
on(typenames: string): ValueFn<ZoomRefElement, Datum, void>; | ||
on(typenames: string, callback: null): this; | ||
on(typenames: string, callback: ValueFn<ZoomRefElement, Datum, void>): this; | ||
} | ||
@@ -99,0 +87,0 @@ |
{ | ||
"name": "@types/d3-zoom", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "TypeScript definitions for d3JS d3-zoom module 1.0.2", | ||
"license": "MIT", | ||
"author": "Alex Ford <https://github.com/gustavderdrache>, Boris Yankov <https://github.com/borisyankov>, Tom Wanzek <https://github.com/tomwanzek>", | ||
"author": "Tom Wanzek <https://github.com/tomwanzek>, Alex Ford <https://github.com/gustavderdrache>, Boris Yankov <https://github.com/borisyankov>", | ||
"main": "", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 08 Aug 2016 20:24:46 GMT | ||
* Last updated: Mon, 22 Aug 2016 17:52:11 GMT | ||
* File structure: ProperModule | ||
@@ -19,2 +19,2 @@ * Library Dependencies: none | ||
# Credits | ||
These definitions were written by Alex Ford <https://github.com/gustavderdrache>, Boris Yankov <https://github.com/borisyankov>, Tom Wanzek <https://github.com/tomwanzek>. | ||
These definitions were written by Tom Wanzek <https://github.com/tomwanzek>, Alex Ford <https://github.com/gustavderdrache>, Boris Yankov <https://github.com/borisyankov>. |
{ | ||
"authors": "Alex Ford <https://github.com/gustavderdrache>, Boris Yankov <https://github.com/borisyankov>, Tom Wanzek <https://github.com/tomwanzek>", | ||
"authors": "Tom Wanzek <https://github.com/tomwanzek>, Alex Ford <https://github.com/gustavderdrache>, Boris Yankov <https://github.com/borisyankov>", | ||
"definitionFilename": "index.d.ts", | ||
@@ -24,3 +24,3 @@ "libraryDependencies": [], | ||
"hasPackageJson": false, | ||
"contentHash": "05fa6ff8c4baa4cf5a1a01e6a9ff4300f7ca024d35882879d70f22edffe96c42" | ||
"contentHash": "aa801c54163e2b44a612b9281b31032dd14babea8ae270bdac8e85d4ba32d4ca" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8324
122