@types/d3-zoom
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for d3JS d3-zoom module 1.2 | ||
// Type definitions for d3JS d3-zoom module 1.3 | ||
// Project: https://github.com/d3/d3-zoom/ | ||
@@ -6,3 +6,3 @@ // Definitions by: Tom Wanzek <https://github.com/tomwanzek>, Alex Ford <https://github.com/gustavderdrache>, Boris Yankov <https://github.com/borisyankov> | ||
// Last module patch version validated against: 1.2.0 | ||
// Last module patch version validated against: 1.3.0 | ||
@@ -375,2 +375,3 @@ import { ArrayLike, Selection, TransitionLike, ValueFn } from 'd3-selection'; | ||
* Sets the filter to the specified filter function and returns the zoom behavior. | ||
* The filter function is invoked in the zoom initiating event handlers of each element to which the zoom behavior was applied. | ||
* | ||
@@ -381,3 +382,3 @@ * If the filter returns falsey, the initiating event is ignored and no zoom gesture is started. | ||
* | ||
* @param filterFn A filter function which is evaluated for each selected element, | ||
* @param filterFn A filter function which is invoked in the zoom initiating event handlers of each element to which the zoom behavior was applied, | ||
* in order, being passed the current datum (d), the current index (i), and the current group (nodes), | ||
@@ -389,2 +390,18 @@ * with this as the current DOM element. The function returns a boolean value. | ||
/** | ||
* Returns the current wheelDelta function. | ||
*/ | ||
wheelDelta(): ValueFn<ZoomRefElement, Datum, number>; | ||
/** | ||
* Sets the wheel delta function to the specified function and returns the zoom behavior. The wheel delta function which is invoked in the wheel event handler | ||
* of each element to which the zoom behavior was applied. | ||
* The value Δ returned by the wheel delta function determines the amount of scaling applied in response to a WheelEvent. | ||
* The scale factor transform.k is multiplied by 2Δ; for example, a Δ of +1 doubles the scale factor, Δ of -1 halves the scale factor. | ||
* | ||
* @param delta Wheel delta function which is invoked in the wheel event handler of each element to which the zoom behavior was applied, | ||
* in order, being passed the current datum (d), the current index (i), and the current group (nodes), | ||
* with this as the current DOM element. The function returns a numeric value. | ||
*/ | ||
wheelDelta(delta: ValueFn<ZoomRefElement, Datum, number>): this; | ||
/** | ||
* Return the current extent accessor, which defaults to [[0, 0], [width, height]] where width is the client width of the element and height is its client height; | ||
@@ -391,0 +408,0 @@ * for SVG elements, the nearest ancestor SVG element’s width and height is used. In this case, |
{ | ||
"name": "@types/d3-zoom", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "TypeScript definitions for d3JS d3-zoom module", | ||
@@ -31,4 +31,4 @@ "license": "MIT", | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "d3461a314816a0940a19288811ffc53bf4a510735f5bf72005d65b7ff98644e2", | ||
"typesPublisherContentHash": "0326479d92455cb58d75b948ef44df9731785f29e0c310f2bebbf9e6fad73407", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Sat, 13 May 2017 17:12:32 GMT | ||
* Last updated: Fri, 02 Jun 2017 01:33:56 GMT | ||
* Dependencies: d3-selection, d3-interpolate | ||
@@ -14,0 +14,0 @@ * Global values: none |
Sorry, the diff of this file is not supported yet
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
45375
716