@types/d3-zoom
Advanced tools
Comparing version 1.8.4 to 1.8.5
@@ -13,4 +13,4 @@ // Type definitions for d3JS d3-zoom module 1.8 | ||
import { ArrayLike, Selection, TransitionLike, ValueFn } from 'd3-selection'; | ||
import { ZoomView, ZoomInterpolator } from 'd3-interpolate'; | ||
import { ZoomInterpolator, ZoomView } from "d3-interpolate"; | ||
import { ArrayLike, Selection, TransitionLike, ValueFn } from "d3-selection"; | ||
@@ -81,3 +81,3 @@ // -------------------------------------------------------------------------- | ||
transform: ZoomTransform | ValueFn<ZoomRefElement, Datum, ZoomTransform>, | ||
point?: [number, number] | ValueFn<ZoomRefElement, Datum, [number, number]> | ||
point?: [number, number] | ValueFn<ZoomRefElement, Datum, [number, number]>, | ||
): void; | ||
@@ -99,3 +99,3 @@ | ||
x: number | ValueFn<ZoomRefElement, Datum, number>, | ||
y: number | ValueFn<ZoomRefElement, Datum, number> | ||
y: number | ValueFn<ZoomRefElement, Datum, number>, | ||
): void; | ||
@@ -126,3 +126,3 @@ | ||
y: number | ValueFn<ZoomRefElement, Datum, number>, | ||
p?: [number, number] | ValueFn<ZoomRefElement, Datum, [number, number]> | ||
p?: [number, number] | ValueFn<ZoomRefElement, Datum, [number, number]>, | ||
): void; | ||
@@ -146,3 +146,3 @@ | ||
k: number | ValueFn<ZoomRefElement, Datum, number>, | ||
p?: [number, number] | ValueFn<ZoomRefElement, Datum, [number, number]> | ||
p?: [number, number] | ValueFn<ZoomRefElement, Datum, [number, number]>, | ||
): void; | ||
@@ -166,3 +166,3 @@ | ||
k: number | ValueFn<ZoomRefElement, Datum, number>, | ||
p?: [number, number] | ||
p?: [number, number], | ||
): void; | ||
@@ -174,3 +174,7 @@ | ||
*/ | ||
constrain(): (transform: ZoomTransform, extent: [[number, number], [number, number]], translateExtent: [[number, number], [number, number]]) => ZoomTransform; | ||
constrain(): ( | ||
transform: ZoomTransform, | ||
extent: [[number, number], [number, number]], | ||
translateExtent: [[number, number], [number, number]], | ||
) => ZoomTransform; | ||
/** | ||
@@ -182,3 +186,9 @@ * Sets the transform constraint function to the specified function and returns the zoom behavior. | ||
*/ | ||
constrain(constraint: ((transform: ZoomTransform, extent: [[number, number], [number, number]], translateExtent: [[number, number], [number, number]]) => ZoomTransform)): this; | ||
constrain( | ||
constraint: ( | ||
transform: ZoomTransform, | ||
extent: [[number, number], [number, number]], | ||
translateExtent: [[number, number], [number, number]], | ||
) => ZoomTransform, | ||
): this; | ||
@@ -356,3 +366,5 @@ /** | ||
*/ | ||
interpolate<InterpolationFactory extends (a: ZoomView, b: ZoomView) => ((t: number) => ZoomView)>(): InterpolationFactory; | ||
interpolate< | ||
InterpolationFactory extends (a: ZoomView, b: ZoomView) => (t: number) => ZoomView, | ||
>(): InterpolationFactory; | ||
@@ -369,3 +381,3 @@ /** | ||
*/ | ||
interpolate(interpolatorFactory: (a: ZoomView, b: ZoomView) => ((t: number) => ZoomView)): this; | ||
interpolate(interpolatorFactory: (a: ZoomView, b: ZoomView) => (t: number) => ZoomView): this; | ||
@@ -399,3 +411,2 @@ /** | ||
* | ||
* | ||
* @param typenames The typenames is a string containing one or more typename separated by whitespace. | ||
@@ -440,3 +451,3 @@ * Each typename is a type, optionally followed by a period (.) and a name, such as "drag.foo"" and "drag.bar"; | ||
*/ | ||
type: 'start' | 'zoom' | 'end' | string; // Leave failsafe string type for cases like 'zoom.foo' | ||
type: "start" | "zoom" | "end" | string; // Leave failsafe string type for cases like 'zoom.foo' | ||
/** | ||
@@ -443,0 +454,0 @@ * The current zoom transform |
{ | ||
"name": "@types/d3-zoom", | ||
"version": "1.8.4", | ||
"version": "1.8.5", | ||
"description": "TypeScript definitions for d3JS d3-zoom module", | ||
@@ -46,4 +46,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-zoom", | ||
}, | ||
"typesPublisherContentHash": "609d558bcb5094f7737f2eb12e248a1c1633522dbba6707f89825ef9e105fd2a", | ||
"typeScriptVersion": "4.3" | ||
"typesPublisherContentHash": "b37a431d2b2447bf5ed0834475ed504f9d17d926d7aacda2b0996b5932faa944", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 25 May 2023 20:34:09 GMT | ||
* Last updated: Fri, 22 Sep 2023 20:29:40 GMT | ||
* Dependencies: [@types/d3-interpolate](https://npmjs.com/package/@types/d3-interpolate), [@types/d3-selection](https://npmjs.com/package/@types/d3-selection) | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
36471
561