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

@types/d3-transition

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/d3-transition - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

52

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

@@ -13,3 +13,3 @@ // Type definitions for D3JS d3-transition module 2.0

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

@@ -19,3 +19,3 @@ /**

*/
declare module 'd3-selection' {
declare module "d3-selection" {
/**

@@ -78,3 +78,6 @@ * A D3 Selection of elements.

*/
export function active<GElement extends BaseType, Datum, PElement extends BaseType, PDatum>(node: GElement, name?: string): Transition<GElement, Datum, PElement, PDatum> | null;
export function active<GElement extends BaseType, Datum, PElement extends BaseType, PDatum>(
node: GElement,
name?: string,
): Transition<GElement, Datum, PElement, PDatum> | null;

@@ -124,3 +127,5 @@ /**

*/
select<DescElement extends BaseType>(selector: ValueFn<GElement, Datum, DescElement>): Transition<DescElement, Datum, PElement, PDatum>;
select<DescElement extends BaseType>(
selector: ValueFn<GElement, Datum, DescElement>,
): Transition<DescElement, Datum, PElement, PDatum>;

@@ -137,3 +142,5 @@ /**

*/
selectAll<DescElement extends BaseType, OldDatum>(selector: string): Transition<DescElement, OldDatum, GElement, Datum>;
selectAll<DescElement extends BaseType, OldDatum>(
selector: string,
): Transition<DescElement, OldDatum, GElement, Datum>;
/**

@@ -151,3 +158,5 @@ * For each selected element, select all descendant elements returned by the selector function, if any,

*/
selectAll<DescElement extends BaseType, OldDatum>(selector: ValueFn<GElement, Datum, DescElement[] | ArrayLike<DescElement>>): Transition<DescElement, OldDatum, GElement, Datum>;
selectAll<DescElement extends BaseType, OldDatum>(
selector: ValueFn<GElement, Datum, DescElement[] | ArrayLike<DescElement>>,
): Transition<DescElement, OldDatum, GElement, Datum>;

@@ -264,3 +273,3 @@ /**

*/
style(name: string, value: string | number | boolean, priority?: null | 'important'): this;
style(name: string, value: string | number | boolean, priority?: null | "important"): this;
/**

@@ -285,3 +294,7 @@ * For each selected element, assigns the style tween for the style with the specified name to the specified target value with the

*/
style(name: string, value: ValueFn<GElement, Datum, string | number | boolean | null>, priority?: null | 'important'): this;
style(
name: string,
value: ValueFn<GElement, Datum, string | number | boolean | null>,
priority?: null | "important",
): this;

@@ -314,3 +327,7 @@ /**

*/
styleTween(name: string, factory: ValueFn<GElement, Datum, (this: GElement, t: number) => string>, priority?: null | 'important'): this;
styleTween(
name: string,
factory: ValueFn<GElement, Datum, (this: GElement, t: number) => string>,
priority?: null | "important",
): this;

@@ -460,3 +477,5 @@ /**

*/
filter<FilteredElement extends BaseType>(filter: ValueFn<GElement, Datum, boolean>): Transition<FilteredElement, Datum, PElement, PDatum>;
filter<FilteredElement extends BaseType>(
filter: ValueFn<GElement, Datum, boolean>,
): Transition<FilteredElement, Datum, PElement, PDatum>;

@@ -526,3 +545,6 @@ // Event Handling -------------------

*/
call(func: (transition: Transition<GElement, Datum, PElement, PDatum>, ...args: any[]) => any, ...args: any[]): this;
call(
func: (transition: Transition<GElement, Datum, PElement, PDatum>, ...args: any[]) => any,
...args: any[]
): this;

@@ -627,3 +649,5 @@ /**

*/
export type SelectionOrTransition<GElement extends BaseType, Datum, PElement extends BaseType, PDatum> = Selection<GElement, Datum, PElement, PDatum> | Transition<GElement, Datum, PElement, PDatum>;
export type SelectionOrTransition<GElement extends BaseType, Datum, PElement extends BaseType, PDatum> =
| Selection<GElement, Datum, PElement, PDatum>
| Transition<GElement, Datum, PElement, PDatum>;

@@ -649,2 +673,4 @@ /**

*/
export function transition<OldDatum>(transition: Transition<BaseType, any, BaseType, any>): Transition<HTMLElement, OldDatum, null, undefined>;
export function transition<OldDatum>(
transition: Transition<BaseType, any, BaseType, any>,
): Transition<HTMLElement, OldDatum, null, undefined>;
{
"name": "@types/d3-transition",
"version": "2.0.2",
"version": "2.0.3",
"description": "TypeScript definitions for D3JS d3-transition module",

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

},
"typesPublisherContentHash": "a4346019b33dbc8de14ee7e0f1165f97a2b958736cd960c20ff2d87d2661c79a",
"typeScriptVersion": "3.6"
"typesPublisherContentHash": "2392169a62982ed5d70b8a5ebb4022690dba7c2f154cc33fe2e6289db231e071",
"typeScriptVersion": "4.5"
}

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

### Additional Details
* Last updated: Sat, 26 Jun 2021 11:31:32 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