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

@types/d3-drag

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/d3-drag - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

12

d3-drag v2.0/index.d.ts

@@ -12,3 +12,3 @@ // Type definitions for D3JS d3-drag module 2.0

import { Selection, ValueFn } from 'd3-selection';
import { Selection, ValueFn } from "d3-selection";

@@ -261,3 +261,7 @@ // --------------------------------------------------------------------------

*/
export function drag<GElement extends DraggedElementBaseType, Datum>(): DragBehavior<GElement, Datum, Datum | SubjectPosition>;
export function drag<GElement extends DraggedElementBaseType, Datum>(): DragBehavior<
GElement,
Datum,
Datum | SubjectPosition
>;
/**

@@ -290,3 +294,3 @@ * Creates a new drag behavior. The returned behavior, drag, is both an object and a function, and is

*/
type: 'start' | 'drag' | 'end' | string; // Leave failsafe string type for cases like 'drag.foo'
type: "start" | "drag" | "end" | string; // Leave failsafe string type for cases like 'drag.foo'
/**

@@ -315,3 +319,3 @@ * The drag subject, defined by drag.subject.

*/
identifier: 'mouse' | number;
identifier: "mouse" | number;
/**

@@ -318,0 +322,0 @@ * The number of currently active drag gestures (on start and end, not including this one).

{
"name": "@types/d3-drag",
"version": "2.0.2",
"version": "2.0.3",
"description": "TypeScript definitions for D3JS d3-drag module",

@@ -40,4 +40,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-drag",

},
"typesPublisherContentHash": "9ce95d49a424afc086494d9edaafa7aa306486a57be4fd7a2e8feafb7addd041",
"typeScriptVersion": "3.6"
"typesPublisherContentHash": "0dd867df49ffaea1b9cc284f4399611943d13c8aa3f32cbaebc78099771c6746",
"typeScriptVersion": "4.5"
}

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

### Additional Details
* Last updated: Sat, 26 Jun 2021 11:31:27 GMT
* Last updated: Fri, 22 Sep 2023 20:29:40 GMT
* Dependencies: [@types/d3-selection](https://npmjs.com/package/@types/d3-selection)

@@ -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