@types/d3-zoom
Advanced tools
Comparing version 3.0.4 to 3.0.5
@@ -12,4 +12,4 @@ // Type definitions for d3JS d3-zoom module 3.0 | ||
import { Selection, TransitionLike, ValueFn } from 'd3-selection'; | ||
import { ZoomView } from 'd3-interpolate'; | ||
import { ZoomView } from "d3-interpolate"; | ||
import { Selection, TransitionLike, ValueFn } from "d3-selection"; | ||
@@ -80,3 +80,3 @@ // -------------------------------------------------------------------------- | ||
transform: ZoomTransform | ((this: ZoomRefElement, event: any, d: Datum) => ZoomTransform), | ||
point?: [number, number] | ((this: ZoomRefElement, event: any, d: Datum) => [number, number]) | ||
point?: [number, number] | ((this: ZoomRefElement, event: any, d: Datum) => [number, number]), | ||
): void; | ||
@@ -98,3 +98,3 @@ | ||
x: number | ValueFn<ZoomRefElement, Datum, number>, | ||
y: number | ValueFn<ZoomRefElement, Datum, number> | ||
y: number | ValueFn<ZoomRefElement, Datum, number>, | ||
): void; | ||
@@ -125,3 +125,3 @@ | ||
y: number | ValueFn<ZoomRefElement, Datum, number>, | ||
p?: [number, number] | ValueFn<ZoomRefElement, Datum, [number, number]> | ||
p?: [number, number] | ValueFn<ZoomRefElement, Datum, [number, number]>, | ||
): void; | ||
@@ -145,3 +145,3 @@ | ||
k: number | ValueFn<ZoomRefElement, Datum, number>, | ||
p?: [number, number] | ValueFn<ZoomRefElement, Datum, [number, number]> | ||
p?: [number, number] | ValueFn<ZoomRefElement, Datum, [number, number]>, | ||
): void; | ||
@@ -165,3 +165,3 @@ | ||
k: number | ValueFn<ZoomRefElement, Datum, number>, | ||
p?: [number, number] | ||
p?: [number, number], | ||
): void; | ||
@@ -173,3 +173,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; | ||
/** | ||
@@ -181,3 +185,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; | ||
@@ -366,4 +376,6 @@ /** | ||
*/ | ||
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics | ||
interpolate<InterpolationFactory extends (a: ZoomView, b: ZoomView) => ((t: number) => ZoomView)>(): InterpolationFactory; | ||
interpolate< | ||
InterpolationFactory extends (a: ZoomView, b: ZoomView) => (t: number) => ZoomView, | ||
> // eslint-disable-next-line @definitelytyped/no-unnecessary-generics | ||
(): InterpolationFactory; | ||
@@ -380,3 +392,3 @@ /** | ||
*/ | ||
interpolate(interpolatorFactory: (a: ZoomView, b: ZoomView) => ((t: number) => ZoomView)): this; | ||
interpolate(interpolatorFactory: (a: ZoomView, b: ZoomView) => (t: number) => ZoomView): this; | ||
@@ -449,3 +461,3 @@ /** | ||
*/ | ||
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' | ||
/** | ||
@@ -452,0 +464,0 @@ * The current zoom transform |
{ | ||
"name": "@types/d3-zoom", | ||
"version": "3.0.4", | ||
"version": "3.0.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": "82f6aa2048324c371b571a62b031f88b0ec45207c989b14b07bd41a07d886871", | ||
"typeScriptVersion": "4.3" | ||
"typesPublisherContentHash": "052f2eea5b04dce501145a72f84328f682daf23172301e6de51e29fa6c8e3051", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 22 Aug 2023 18:04:19 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
37216
575