d3-scale-chromatic/000755 001751 000177 0000000000 14721710043016070 5ustar00runner000000 000000 1472171004314721710043d3-scale-chromatic/LICENSE000644 001751 000177 0000002165 14721710043017101 0ustar00runner000000 000000 1472171004314721710043 MIT License Copyright (c) Microsoft Corporation. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE d3-scale-chromatic/README.md000644 001751 000177 0000001310 14721710043017342 0ustar00runner000000 000000 1472171004314721710043# Installation > `npm install --save @types/d3-scale-chromatic` # Summary This package contains type definitions for d3-scale-chromatic (https://github.com/d3/d3-scale-chromatic/). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-scale-chromatic. ### Additional Details * Last updated: Wed, 27 Nov 2024 21:33:23 GMT * Dependencies: none # Credits These definitions were written by [Hugues Stefanski](https://github.com/Ledragon), [Alex Ford](https://github.com/gustavderdrache), [Boris Yankov](https://github.com/borisyankov), [Henrique Machado](https://github.com/henriquefm), and [Nathan Bierema](https://github.com/Methuselah96). d3-scale-chromatic/index.d.ts000644 001751 000177 0000057512 14721710043020003 0ustar00runner000000 000000 1472171004314721710043// Last module patch version validated against: 3.0.0 // ----------------------------------------------------------------------- // Categorical // ----------------------------------------------------------------------- /** * An array of ten categorical colors represented as RGB hexadecimal strings. */ export const schemeCategory10: readonly string[]; /** * An array of eight categorical colors represented as RGB hexadecimal strings. */ export const schemeAccent: readonly string[]; /** * An array of eight categorical colors represented as RGB hexadecimal strings. */ export const schemeDark2: readonly string[]; /** * An array of ten categorical colors represented as RGB hexadecimal strings. */ export const schemeObservable10: readonly string[]; /** * An array of twelve categorical colors represented as RGB hexadecimal strings. */ export const schemePaired: readonly string[]; /** * An array of nine categorical colors represented as RGB hexadecimal strings. */ export const schemePastel1: readonly string[]; /** * An array of eight categorical colors represented as RGB hexadecimal strings. */ export const schemePastel2: readonly string[]; /** * An array of nine categorical colors represented as RGB hexadecimal strings. */ export const schemeSet1: readonly string[]; /** * An array of eight categorical colors represented as RGB hexadecimal strings. */ export const schemeSet2: readonly string[]; /** * An array of twelve categorical colors represented as RGB hexadecimal strings. */ export const schemeSet3: readonly string[]; /** * An array of ten categorical colors authored by Tableau as part of Tableau 10 represented as RGB hexadecimal strings. */ export const schemeTableau10: readonly string[]; // ----------------------------------------------------------------------- // Diverging // ----------------------------------------------------------------------- /** * Given a number t in the range [0,1], returns the corresponding color from the “BrBG” diverging color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolateBrBG(t: number): string; /** * An array of arrays of hexadecimal color strings from the “BrBG” diverging color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemeBrBG[9] contains an array of nine strings representing the nine colors of the * brown-blue-green diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11. */ export const schemeBrBG: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “PRGn” diverging color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolatePRGn(t: number): string; /** * An array of arrays of hexadecimal color strings from the “PRGn” diverging color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemePRGn[9] contains an array of nine strings representing the nine colors of the * purple-green diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11. */ export const schemePRGn: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “PiYG” diverging color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolatePiYG(t: number): string; /** * An array of arrays of hexadecimal color strings from the “PiYG” diverging color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemePiYG[9] contains an array of nine strings representing the nine colors of the * pink-yellow-green diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11. */ export const schemePiYG: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “PuOr” diverging color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolatePuOr(t: number): string; /** * An array of arrays of hexadecimal color strings from the “PuOr” diverging color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemePuOr[9] contains an array of nine strings representing the nine colors of the * purple-orange diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11. */ export const schemePuOr: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “RdBu” diverging color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolateRdBu(t: number): string; /** * An array of arrays of hexadecimal color strings from the “RdBu” diverging color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemeRdBu[9] contains an array of nine strings representing the nine colors of the * red-blue diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11. */ export const schemeRdBu: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “RdGy” diverging color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolateRdGy(t: number): string; /** * An array of arrays of hexadecimal color strings from the “RdGy” diverging color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemeRdGy[9] contains an array of nine strings representing the nine colors of the * red-grey diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11. */ export const schemeRdGy: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “RdYlBu” diverging color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolateRdYlBu(t: number): string; /** * An array of arrays of hexadecimal color strings from the “RdYlBu” diverging color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemeRdYlBu[9] contains an array of nine strings representing the nine colors of the * red-yellow-blue diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11. */ export const schemeRdYlBu: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “RdYlGn” diverging color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolateRdYlGn(t: number): string; /** * An array of arrays of hexadecimal color strings from the “RdYlGn” diverging color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemeRdYlGn[9] contains an array of nine strings representing the nine colors of the * red-yellow-green diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11. */ export const schemeRdYlGn: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “Spectral” diverging color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolateSpectral(t: number): string; /** * An array of arrays of hexadecimal color strings from the “Spectral” diverging color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemeSpectral[9] contains an array of nine strings representing the nine colors of the * spectral diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11. */ export const schemeSpectral: ReadonlyArray; // ----------------------------------------------------------------------- // Sequential // ----------------------------------------------------------------------- /** * Given a number t in the range [0,1], returns the corresponding color from the “Blues” sequential color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolateBlues(t: number): string; /** * An array of arrays of hexadecimal color strings from the “Blues” sequential color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemeBlues[9] contains an array of nine strings representing the nine colors of the * blue sequential color scheme. Sequential, single-hue color schemes support a size k ranging from 3 to 9. */ export const schemeBlues: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “Greens” sequential color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolateGreens(t: number): string; /** * An array of arrays of hexadecimal color strings from the “Greens” sequential color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemeGreens[9] contains an array of nine strings representing the nine colors of the * green sequential color scheme. Sequential, single-hue color schemes support a size k ranging from 3 to 9. */ export const schemeGreens: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “Greys” sequential color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolateGreys(t: number): string; /** * An array of arrays of hexadecimal color strings from the “Greys” sequential color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemeGreys[9] contains an array of nine strings representing the nine colors of the * grey sequential color scheme. Sequential, single-hue color schemes support a size k ranging from 3 to 9. */ export const schemeGreys: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “Oranges” sequential color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolateOranges(t: number): string; /** * An array of arrays of hexadecimal color strings from the “Oranges” sequential color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemeOranges[9] contains an array of nine strings representing the nine colors of the * orange sequential color scheme. Sequential, single-hue color schemes support a size k ranging from 3 to 9. */ export const schemeOranges: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “Purples” sequential color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolatePurples(t: number): string; /** * An array of arrays of hexadecimal color strings from the “Purples” sequential color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemePurples[9] contains an array of nine strings representing the nine colors of the * purple sequential color scheme. Sequential, single-hue color schemes support a size k ranging from 3 to 9. */ export const schemePurples: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “Reds” sequential color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolateReds(t: number): string; /** * An array of arrays of hexadecimal color strings from the “Reds” sequential color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemeReds[9] contains an array of nine strings representing the nine colors of the * red sequential color scheme. Sequential, single-hue color schemes support a size k ranging from 3 to 9. */ export const schemeReds: ReadonlyArray; // ----------------------------------------------------------------------- // Sequential(Multi-Hue) // ----------------------------------------------------------------------- /** * Given a number t in the range [0,1], returns the corresponding color from the “turbo” color scheme by Anton Mikhailov. * * @param t A number in the interval [0, 1]. */ export function interpolateTurbo(t: number): string; /** * Given a number t in the range [0,1], returns the corresponding color from the “viridis” perceptually-uniform color scheme designed by van der Walt, Smith and Firing for matplotlib, * represented as an RGB string. * * @param t A number in the interval [0, 1]. */ export function interpolateViridis(t: number): string; /** * Given a number t in the range [0,1], returns the corresponding color from the “inferno” perceptually-uniform color scheme designed by van der Walt and Smith for matplotlib, * represented as an RGB string. * * @param t A number in the interval [0, 1]. */ export function interpolateInferno(t: number): string; /** * Given a number t in the range [0,1], returns the corresponding color from the “magma” perceptually-uniform color scheme designed by van der Walt and Smith for matplotlib, * represented as an RGB string. * * @param t A number in the interval [0, 1]. */ export function interpolateMagma(t: number): string; /** * Given a number t in the range [0,1], returns the corresponding color from the “plasma” perceptually-uniform color scheme designed by van der Walt and Smith for matplotlib, * represented as an RGB string. * * @param t A number in the interval [0, 1]. */ export function interpolatePlasma(t: number): string; /** * Given a number t in the range [0,1], returns the corresponding color from the “plasma” perceptually-uniform color scheme designed by van der Walt and Smith for matplotlib, * represented as an RGB string. * * @param t A number in the interval [0, 1]. */ export function interpolateCividis(t: number): string; /** * Given a number t in the range [0,1], returns the corresponding color from a 180° rotation of Niccoli’s perceptual rainbow, represented as an RGB string. * * @param t A number in the interval [0, 1]. */ export function interpolateWarm(t: number): string; /** * Given a number t in the range [0,1], returns the corresponding color from Niccoli’s perceptual rainbow, represented as an RGB string. * * @param t A number in the interval [0, 1]. */ export function interpolateCool(t: number): string; /** * Given a number t in the range [0,1], returns the corresponding color from d3.interpolateWarm scale from [0.0, 0.5] followed by the d3.interpolateCool scale from [0.5, 1.0], * thus implementing the cyclical less-angry rainbow color scheme. * * @param t A number in the interval [0, 1]. */ export function interpolateRainbow(t: number): string; /** * Given a number t in the range [0,1], returns the corresponding color from the “sinebow” color scheme by Jim Bumgardner and Charlie Loyd. * * @param t A number in the interval [0, 1]. */ export function interpolateSinebow(t: number): string; /** * Given a number t in the range [0,1], returns the corresponding color from Green’s default Cubehelix represented as an RGB string. * * @param t A number in the interval [0, 1]. */ export function interpolateCubehelixDefault(t: number): string; /** * Given a number t in the range [0,1], returns the corresponding color from the “BuGn” sequential color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolateBuGn(t: number): string; /** * An array of arrays of hexadecimal color strings from the “BuGn” sequential color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemeBuGn[9] contains an array of nine strings representing the nine colors of the * blue-green sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9. */ export const schemeBuGn: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “BuPu” sequential color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolateBuPu(t: number): string; /** * An array of arrays of hexadecimal color strings from the “BuPu” sequential color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemeBuPu[9] contains an array of nine strings representing the nine colors of the * blue-purple sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9. */ export const schemeBuPu: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “GnBu” sequential color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolateGnBu(t: number): string; /** * An array of arrays of hexadecimal color strings from the “GnBu” sequential color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemeGnBu[9] contains an array of nine strings representing the nine colors of the * green-blue sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9. */ export const schemeGnBu: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “OrRd” sequential color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolateOrRd(t: number): string; /** * An array of arrays of hexadecimal color strings from the “OrRd” sequential color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemeOrRd[9] contains an array of nine strings representing the nine colors of the * orange-red sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9. */ export const schemeOrRd: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “PuBuGn” sequential color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolatePuBuGn(t: number): string; /** * An array of arrays of hexadecimal color strings from the “PuBuGn” sequential color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemePuBuGn[9] contains an array of nine strings representing the nine colors of the * purple-blue-green sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9. */ export const schemePuBuGn: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “PuBu” sequential color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolatePuBu(t: number): string; /** * An array of arrays of hexadecimal color strings from the “PuBu” sequential color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemePuBu[9] contains an array of nine strings representing the nine colors of the * purple-blue sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9. */ export const schemePuBu: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “PuRd” sequential color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolatePuRd(t: number): string; /** * An array of arrays of hexadecimal color strings from the “PuRd” sequential color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemePuRd[9] contains an array of nine strings representing the nine colors of the * purple-red sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9. */ export const schemePuRd: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “RdPu” sequential color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolateRdPu(t: number): string; /** * An array of arrays of hexadecimal color strings from the “RdPu” sequential color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemeRdPu[9] contains an array of nine strings representing the nine colors of the * red-purple sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9. */ export const schemeRdPu: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “YlGnBu” sequential color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolateYlGnBu(t: number): string; /** * An array of arrays of hexadecimal color strings from the “YlGnBu” sequential color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemeYlGnBu[9] contains an array of nine strings representing the nine colors of the * yellow-green-blue sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9. */ export const schemeYlGnBu: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “YlGn” sequential color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolateYlGn(t: number): string; /** * An array of arrays of hexadecimal color strings from the “YlGn” sequential color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemeYlGn[9] contains an array of nine strings representing the nine colors of the * yellow-green sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9. */ export const schemeYlGn: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “YlOrBr” sequential color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolateYlOrBr(t: number): string; /** * An array of arrays of hexadecimal color strings from the “YlOrBr” sequential color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemeYlOrBr[9] contains an array of nine strings representing the nine colors of the * yellow-orange-brown sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9. */ export const schemeYlOrBr: ReadonlyArray; /** * Given a number t in the range [0,1], returns the corresponding color from the “YlOrRd” sequential color scheme represented as an RGB string. * * @param t Number in the range [0, 1]. */ export function interpolateYlOrRd(t: number): string; /** * An array of arrays of hexadecimal color strings from the “YlOrRd” sequential color scheme. The kth element of this array contains * the color scheme of size k; for example, d3.schemeYlOrRd[9] contains an array of nine strings representing the nine colors of the * yellow-orange-red sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9. */ export const schemeYlOrRd: ReadonlyArray; d3-scale-chromatic/package.json000644 001751 000177 0000002721 14721710043020360 0ustar00runner000000 000000 1472171004314721710043{ "name": "@types/d3-scale-chromatic", "version": "3.1.0", "description": "TypeScript definitions for d3-scale-chromatic", "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-scale-chromatic", "license": "MIT", "contributors": [ { "name": "Hugues Stefanski", "githubUsername": "Ledragon", "url": "https://github.com/Ledragon" }, { "name": "Alex Ford", "githubUsername": "gustavderdrache", "url": "https://github.com/gustavderdrache" }, { "name": "Boris Yankov", "githubUsername": "borisyankov", "url": "https://github.com/borisyankov" }, { "name": "Henrique Machado", "githubUsername": "henriquefm", "url": "https://github.com/henriquefm" }, { "name": "Nathan Bierema", "githubUsername": "Methuselah96", "url": "https://github.com/Methuselah96" } ], "main": "", "types": "index.d.ts", "repository": { "type": "git", "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", "directory": "types/d3-scale-chromatic" }, "scripts": {}, "dependencies": {}, "peerDependencies": {}, "typesPublisherContentHash": "5f5a24a3b0c02b7fa88b0169f2a5e3b4f87588aaa6adfeeec24625d740748355", "typeScriptVersion": "5.0" }