Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/d3-zoom

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/d3-zoom - npm Package Compare versions

Comparing version 1.6.0 to 1.7.0

19

d3-zoom/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for d3JS d3-zoom module 1.6
// Type definitions for d3JS d3-zoom module 1.7
// 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.6.0
// Last module patch version validated against: 1.7.0

@@ -504,2 +504,15 @@ import { ArrayLike, Selection, TransitionLike, ValueFn } from 'd3-selection';

/**
* Returns the current constraint function.
* The default implementation attempts to ensure that the viewport extent does not go outside the translate extent.
*/
constrain(): (transform: ZoomTransform, extent: [[number, number], [number, number]], translateExtent: [[number, number], [number, number]]) => ZoomTransform;
/**
* Sets the transform constraint function to the specified function and returns the zoom behavior.
*
* @param constraint A constraint function which returns a transform given the current transform, viewport extent and translate extent.
* The default implementation attempts to ensure that the viewport extent does not go outside the translate extent.
*/
constrain(constraint: ((transform: ZoomTransform, extent: [[number, number], [number, number]], translateExtent: [[number, number], [number, number]]) => ZoomTransform)): this;
/**
* Returns the current filter function.

@@ -652,3 +665,3 @@ */

* a subsequent click event. If at any point between mousedown and mouseup the mouse is greater than or equal to
* distance from its position on mousedown, the click event follwing mouseup will be suppressed.
* distance from its position on mousedown, the click event following mouseup will be suppressed.
*

@@ -655,0 +668,0 @@ * @param distance The distance threshold between mousedown and mouseup measured in client coordinates (event.clientX and event.clientY).

4

d3-zoom/package.json
{
"name": "@types/d3-zoom",
"version": "1.6.0",
"version": "1.7.0",
"description": "TypeScript definitions for d3JS d3-zoom module",

@@ -33,4 +33,4 @@ "license": "MIT",

},
"typesPublisherContentHash": "ff59a6eaa64317688c3f7c62951a9ee089cadf3f4c5429749e6d100e18f8f862",
"typesPublisherContentHash": "5d721b5532c36c0257b7744eb3683fbbd003569cef325845ba2da8ec58f676cc",
"typeScriptVersion": "2.0"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Wed, 11 Oct 2017 23:18:32 GMT
* Last updated: Sat, 28 Oct 2017 00:08:10 GMT
* Dependencies: d3-selection, d3-interpolate

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc