Socket
Socket
Sign inDemoInstall

@types/d3-array

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/d3-array - npm Package Compare versions

Comparing version 1.1.3 to 1.2.0

54

d3-array/index.d.ts

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

// Type definitions for D3JS d3-array module 1.1
// Type definitions for D3JS d3-array module 1.2
// Project: https://github.com/d3/d3-array

@@ -6,3 +6,3 @@ // Definitions by: Alex Ford <https://github.com/gustavderdrache>, Boris Yankov <https://github.com/borisyankov>, Tom Wanzek <https://github.com/tomwanzek>

// Last module patch version validated against: 1.1.0
// Last module patch version validated against: 1.2.0

@@ -250,2 +250,10 @@ // --------------------------------------------------------------------------

* Generate an array of approximately count + 1 uniformly-spaced, nicely-rounded values between start and stop (inclusive).
* Each value is a power of ten multiplied by 1, 2 or 5. See also d3.tickIncrement, d3.tickStep and linear.ticks.
*
* Ticks are inclusive in the sense that they may include the specified start and stop values if (and only if) they are exact,
* nicely-rounded values consistent with the inferred step. More formally, each returned tick t satisfies start ≤ t and t ≤ stop.
*
* @param start Start value for ticks
* @param stop Stop value for ticks
* @param count count + 1 is the approximate number of ticks to be returned by d3.ticks.
*/

@@ -255,8 +263,31 @@ export function ticks(start: number, stop: number, count: number): number[];

/**
* Generate an array of with the differences between adjecent ticks, had the same arguments
* been passed to ticks(start, stop, count)
* Returns the difference between adjacent tick values if the same arguments were passed to d3.ticks:
* a nicely-rounded value that is a power of ten multiplied by 1, 2 or 5.
*
* Like d3.tickStep, except requires that start is always less than or equal to step, and if the tick step for the given start,
* stop and count would be less than one, returns the negative inverse tick step instead.
*
* This method is always guaranteed to return an integer, and is used by d3.ticks to avoid guarantee that the returned tick values
* are represented as precisely as possible in IEEE 754 floating point.
*
* @param start Start value for ticks
* @param stop Stop value for ticks
* @param count count + 1 is the approximate number of ticks to be returned by d3.ticks.
*/
export function tickStep(start: number, stop: number, count: number): number[];
export function tickIncrement(start: number, stop: number, count: number): number;
/**
* Returns the difference between adjacent tick values if the same arguments were passed to d3.ticks:
* a nicely-rounded value that is a power of ten multiplied by 1, 2 or 5.
*
* Note that due to the limited precision of IEEE 754 floating point, the returned value may not be exact decimals;
* use d3-format to format numbers for human consumption.
*
* @param start Start value for ticks
* @param stop Stop value for ticks
* @param count count + 1 is the approximate number of ticks to be returned by d3.ticks.
*/
export function tickStep(start: number, stop: number, count: number): number;
/**
* Transpose a matrix provided in Array of Arrays format.

@@ -304,2 +335,5 @@ */

*
* Any threshold values outside the domain are ignored. The first bin.x0 is always equal to the minimum domain value,
* and the last bin.x1 is always equal to the maximum domain value.
*
* @param count The desired number of uniform bins.

@@ -313,2 +347,5 @@ */

*
* Any threshold values outside the domain are ignored. The first bin.x0 is always equal to the minimum domain value,
* and the last bin.x1 is always equal to the maximum domain value.
*
* @param count A function which accepts as arguments the array of materialized values, and

@@ -321,2 +358,6 @@ * optionally the domain minimum and maximum. The function calcutates and returns the suggested

* Set the array of values to be used as thresholds in determining the bins.
*
* Any threshold values outside the domain are ignored. The first bin.x0 is always equal to the minimum domain value,
* and the last bin.x1 is always equal to the maximum domain value.
*
* @param thresholds Array of threshold values used for binning. The elements must

@@ -330,2 +371,5 @@ * be of the same type as the materialized values of the histogram.

*
* Any threshold values outside the domain are ignored. The first bin.x0 is always equal to the minimum domain value,
* and the last bin.x1 is always equal to the maximum domain value.
*
* @param thresholds A function which accepts as arguments the array of materialized values, and

@@ -332,0 +376,0 @@ * optionally the domain minimum and maximum. The function calcutates and returns the array of values to be used as

4

d3-array/package.json
{
"name": "@types/d3-array",
"version": "1.1.3",
"version": "1.2.0",
"description": "TypeScript definitions for D3JS d3-array module",

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

"peerDependencies": {},
"typesPublisherContentHash": "1257bf0c82c9fa755741188377be1b7b6d305a016f5de374c9b766cde9e3c0ca",
"typesPublisherContentHash": "916bf1a6e2d159a476b512da31604b55d86e4f5ef702a5dc0b45eb32055f0385",
"typeScriptVersion": "2.0"
}

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

Additional Details
* Last updated: Mon, 17 Apr 2017 17:55:17 GMT
* Last updated: Tue, 25 Apr 2017 16:46:42 GMT
* Dependencies: none

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

Sorry, the diff of this file is not supported yet

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