@types/d3-box
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

Installation

npm install --save @types/d3-box

Summary

This package contains type definitions for d3-box (https://github.com/JacksonGariety/d3-box).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-box.

index.d.ts

import * as d3 from "d3";

declare module "d3" {
    export function box(): Box;

    interface Box {
        (sel: d3.Selection<any>): void;
        width(): number;
        width(x: number): Box;
        height(): number;
        height(x: number): Box;
        tickFormat(): (n: number) => string;
        tickFormat(fun: (n: number) => string): Box;
        duration(): number;
        duration(x: number): Box;
        domain(): () => number[];
        domain(x: number[]): Box;
        value(): (d: any) => number;
        value(x: (d: any) => number): Box;
        whiskers(): (d: any[], i?: number) => number[];
        whiskers(x: (d: any[], i?: number) => number[]): Box;
        quartiles(): (d: any[]) => number[];
        quantiles(x: (d: any[]) => number[]): Box;
    }
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: @types/d3

Credits

These definitions were written by Linkun Chen.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/d3-box

Weekly Downloads

1

Version

0.0.7

License

MIT

Unpacked Size

4.15 kB

Total Files

5

Last publish

Collaborators

  • types