Socket
Socket
Sign inDemoInstall

@types/d3-brush

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/d3-brush - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

47

d3-brush/index.d.ts
// Type definitions for D3JS d3-brush module 1.1
// Project: https://github.com/d3/d3-brush/, https://d3js.org/d3-brush
// Definitions by: Tom Wanzek <https://github.com/tomwanzek>, Alex Ford <https://github.com/gustavderdrache>, Boris Yankov <https://github.com/borisyankov>
// Definitions by: Tom Wanzek <https://github.com/tomwanzek>
// Alex Ford <https://github.com/gustavderdrache>
// Boris Yankov <https://github.com/borisyankov>
// Nathan Bierema <https://github.com/Methuselah96>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
// Last module patch version validated against: 1.1.5
// Last module patch version validated against: 1.1.6
import { ArrayLike, Selection, TransitionLike, ValueFn } from 'd3-selection';
import { Selection, TransitionLike, ValueFn } from 'd3-selection';

@@ -96,3 +99,11 @@ /**

move(group: TransitionLike<SVGGElement, Datum>, selection: ValueFn<SVGGElement, Datum, BrushSelection>): void;
/**
* Clear the active selection of the brush on the specified SVG G element(s) selection.
*
* @param group A D3 selection of SVG G elements.
*/
clear(group: Selection<SVGGElement, Datum, any, any>): void;
/**
* Returns the current extent accessor.

@@ -143,2 +154,30 @@ */

/**
* Returns the current touch support detector, which defaults to a function returning true,
* if the "ontouchstart" event is supported on the current element.
*/
touchable(): ValueFn<SVGGElement, Datum, boolean>;
/**
* Sets the touch support detector to the specified boolean value and returns the brush.
*
* Touch event listeners are only registered if the detector returns truthy for the corresponding element when the brush is applied.
* The default detector works well for most browsers that are capable of touch input, but not all; Chrome’s mobile device emulator, for example,
* fails detection.
*
* @param touchable A boolean value. true when touch event listeners should be applied to the corresponding element, otherwise false.
*/
touchable(touchable: boolean): this;
/**
* Sets the touch support detector to the specified function and returns the drag behavior.
*
* Touch event listeners are only registered if the detector returns truthy for the corresponding element when the brush is applied.
* The default detector works well for most browsers that are capable of touch input, but not all; Chrome’s mobile device emulator, for example,
* fails detection.
*
* @param touchable A touch support detector function, which returns true when touch event listeners should be applied to the corresponding element.
* The function is evaluated for each selected element to which the brush 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 boolean value.
*/
touchable(touchable: ValueFn<SVGGElement, Datum, boolean>): this;
/**
* Returns the current key modifiers flag.

@@ -153,3 +192,3 @@ */

*
* @param keyModifiers New value for key modifiers flag.
* @param modifiers New value for key modifiers flag.
*/

@@ -156,0 +195,0 @@ keyModifiers(modifiers: boolean): this;

11

d3-brush/package.json
{
"name": "@types/d3-brush",
"version": "1.1.1",
"version": "1.1.2",
"description": "TypeScript definitions for D3JS d3-brush module",

@@ -21,2 +21,7 @@ "license": "MIT",

"githubUsername": "borisyankov"
},
{
"name": "Nathan Bierema",
"url": "https://github.com/Methuselah96",
"githubUsername": "Methuselah96"
}

@@ -35,4 +40,4 @@ ],

},
"typesPublisherContentHash": "68f6c1695b3f7ab4f6c3700d1fb9e98064cb26a1817a1b5f79deb751ddc93ac7",
"typeScriptVersion": "3.0"
"typesPublisherContentHash": "1a26c533938097603438f913d331686d35aed8225954425c5d078d2b3777a69f",
"typeScriptVersion": "3.2"
}

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

### Additional Details
* Last updated: Fri, 05 Jun 2020 23:24:28 GMT
* Last updated: Tue, 29 Sep 2020 22:54:45 GMT
* Dependencies: [@types/d3-selection](https://npmjs.com/package/@types/d3-selection)

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by [Tom Wanzek](https://github.com/tomwanzek), [Alex Ford](https://github.com/gustavderdrache), and [Boris Yankov](https://github.com/borisyankov).
These definitions were written by [Tom Wanzek](https://github.com/tomwanzek), [Alex Ford](https://github.com/gustavderdrache), [Boris Yankov](https://github.com/borisyankov), and [Nathan Bierema](https://github.com/Methuselah96).
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