UNPKG

24.4 kBTypeScriptView Raw
1// Last module patch version validated against: 3.0.0
2
3// -----------------------------------------------------------------------
4// Categorical
5// -----------------------------------------------------------------------
6/**
7 * An array of ten categorical colors represented as RGB hexadecimal strings.
8 */
9export const schemeCategory10: readonly string[];
10/**
11 * An array of eight categorical colors represented as RGB hexadecimal strings.
12 */
13export const schemeAccent: readonly string[];
14/**
15 * An array of eight categorical colors represented as RGB hexadecimal strings.
16 */
17export const schemeDark2: readonly string[];
18/**
19 * An array of ten categorical colors represented as RGB hexadecimal strings.
20 */
21export const schemeObservable10: readonly string[];
22/**
23 * An array of twelve categorical colors represented as RGB hexadecimal strings.
24 */
25export const schemePaired: readonly string[];
26/**
27 * An array of nine categorical colors represented as RGB hexadecimal strings.
28 */
29export const schemePastel1: readonly string[];
30/**
31 * An array of eight categorical colors represented as RGB hexadecimal strings.
32 */
33export const schemePastel2: readonly string[];
34/**
35 * An array of nine categorical colors represented as RGB hexadecimal strings.
36 */
37export const schemeSet1: readonly string[];
38/**
39 * An array of eight categorical colors represented as RGB hexadecimal strings.
40 */
41export const schemeSet2: readonly string[];
42/**
43 * An array of twelve categorical colors represented as RGB hexadecimal strings.
44 */
45export const schemeSet3: readonly string[];
46/**
47 * An array of ten categorical colors authored by Tableau as part of Tableau 10 represented as RGB hexadecimal strings.
48 */
49export const schemeTableau10: readonly string[];
50
51// -----------------------------------------------------------------------
52// Diverging
53// -----------------------------------------------------------------------
54/**
55 * Given a number t in the range [0,1], returns the corresponding color from the “BrBG” diverging color scheme represented as an RGB string.
56 *
57 * @param t Number in the range [0, 1].
58 */
59export function interpolateBrBG(t: number): string;
60
61/**
62 * An array of arrays of hexadecimal color strings from the “BrBG” diverging color scheme. The kth element of this array contains
63 * the color scheme of size k; for example, d3.schemeBrBG[9] contains an array of nine strings representing the nine colors of the
64 * brown-blue-green diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11.
65 */
66export const schemeBrBG: ReadonlyArray<readonly string[]>;
67
68/**
69 * Given a number t in the range [0,1], returns the corresponding color from the “PRGn” diverging color scheme represented as an RGB string.
70 *
71 * @param t Number in the range [0, 1].
72 */
73export function interpolatePRGn(t: number): string;
74
75/**
76 * An array of arrays of hexadecimal color strings from the “PRGn” diverging color scheme. The kth element of this array contains
77 * the color scheme of size k; for example, d3.schemePRGn[9] contains an array of nine strings representing the nine colors of the
78 * purple-green diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11.
79 */
80export const schemePRGn: ReadonlyArray<readonly string[]>;
81
82/**
83 * Given a number t in the range [0,1], returns the corresponding color from the “PiYG” diverging color scheme represented as an RGB string.
84 *
85 * @param t Number in the range [0, 1].
86 */
87export function interpolatePiYG(t: number): string;
88
89/**
90 * An array of arrays of hexadecimal color strings from the “PiYG” diverging color scheme. The kth element of this array contains
91 * the color scheme of size k; for example, d3.schemePiYG[9] contains an array of nine strings representing the nine colors of the
92 * pink-yellow-green diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11.
93 */
94export const schemePiYG: ReadonlyArray<readonly string[]>;
95
96/**
97 * Given a number t in the range [0,1], returns the corresponding color from the “PuOr” diverging color scheme represented as an RGB string.
98 *
99 * @param t Number in the range [0, 1].
100 */
101export function interpolatePuOr(t: number): string;
102
103/**
104 * An array of arrays of hexadecimal color strings from the “PuOr” diverging color scheme. The kth element of this array contains
105 * the color scheme of size k; for example, d3.schemePuOr[9] contains an array of nine strings representing the nine colors of the
106 * purple-orange diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11.
107 */
108export const schemePuOr: ReadonlyArray<readonly string[]>;
109
110/**
111 * Given a number t in the range [0,1], returns the corresponding color from the “RdBu” diverging color scheme represented as an RGB string.
112 *
113 * @param t Number in the range [0, 1].
114 */
115export function interpolateRdBu(t: number): string;
116
117/**
118 * An array of arrays of hexadecimal color strings from the “RdBu” diverging color scheme. The kth element of this array contains
119 * the color scheme of size k; for example, d3.schemeRdBu[9] contains an array of nine strings representing the nine colors of the
120 * red-blue diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11.
121 */
122export const schemeRdBu: ReadonlyArray<readonly string[]>;
123
124/**
125 * Given a number t in the range [0,1], returns the corresponding color from the “RdGy” diverging color scheme represented as an RGB string.
126 *
127 * @param t Number in the range [0, 1].
128 */
129export function interpolateRdGy(t: number): string;
130
131/**
132 * An array of arrays of hexadecimal color strings from the “RdGy” diverging color scheme. The kth element of this array contains
133 * the color scheme of size k; for example, d3.schemeRdGy[9] contains an array of nine strings representing the nine colors of the
134 * red-grey diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11.
135 */
136export const schemeRdGy: ReadonlyArray<readonly string[]>;
137
138/**
139 * Given a number t in the range [0,1], returns the corresponding color from the “RdYlBu” diverging color scheme represented as an RGB string.
140 *
141 * @param t Number in the range [0, 1].
142 */
143export function interpolateRdYlBu(t: number): string;
144
145/**
146 * An array of arrays of hexadecimal color strings from the “RdYlBu” diverging color scheme. The kth element of this array contains
147 * the color scheme of size k; for example, d3.schemeRdYlBu[9] contains an array of nine strings representing the nine colors of the
148 * red-yellow-blue diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11.
149 */
150export const schemeRdYlBu: ReadonlyArray<readonly string[]>;
151
152/**
153 * Given a number t in the range [0,1], returns the corresponding color from the “RdYlGn” diverging color scheme represented as an RGB string.
154 *
155 * @param t Number in the range [0, 1].
156 */
157export function interpolateRdYlGn(t: number): string;
158
159/**
160 * An array of arrays of hexadecimal color strings from the “RdYlGn” diverging color scheme. The kth element of this array contains
161 * the color scheme of size k; for example, d3.schemeRdYlGn[9] contains an array of nine strings representing the nine colors of the
162 * red-yellow-green diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11.
163 */
164export const schemeRdYlGn: ReadonlyArray<readonly string[]>;
165
166/**
167 * Given a number t in the range [0,1], returns the corresponding color from the “Spectral” diverging color scheme represented as an RGB string.
168 *
169 * @param t Number in the range [0, 1].
170 */
171export function interpolateSpectral(t: number): string;
172
173/**
174 * An array of arrays of hexadecimal color strings from the “Spectral” diverging color scheme. The kth element of this array contains
175 * the color scheme of size k; for example, d3.schemeSpectral[9] contains an array of nine strings representing the nine colors of the
176 * spectral diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11.
177 */
178export const schemeSpectral: ReadonlyArray<readonly string[]>;
179
180// -----------------------------------------------------------------------
181// Sequential
182// -----------------------------------------------------------------------
183/**
184 * Given a number t in the range [0,1], returns the corresponding color from the “Blues” sequential color scheme represented as an RGB string.
185 *
186 * @param t Number in the range [0, 1].
187 */
188export function interpolateBlues(t: number): string;
189
190/**
191 * An array of arrays of hexadecimal color strings from the “Blues” sequential color scheme. The kth element of this array contains
192 * the color scheme of size k; for example, d3.schemeBlues[9] contains an array of nine strings representing the nine colors of the
193 * blue sequential color scheme. Sequential, single-hue color schemes support a size k ranging from 3 to 9.
194 */
195export const schemeBlues: ReadonlyArray<readonly string[]>;
196
197/**
198 * Given a number t in the range [0,1], returns the corresponding color from the “Greens” sequential color scheme represented as an RGB string.
199 *
200 * @param t Number in the range [0, 1].
201 */
202export function interpolateGreens(t: number): string;
203
204/**
205 * An array of arrays of hexadecimal color strings from the “Greens” sequential color scheme. The kth element of this array contains
206 * the color scheme of size k; for example, d3.schemeGreens[9] contains an array of nine strings representing the nine colors of the
207 * green sequential color scheme. Sequential, single-hue color schemes support a size k ranging from 3 to 9.
208 */
209export const schemeGreens: ReadonlyArray<readonly string[]>;
210
211/**
212 * Given a number t in the range [0,1], returns the corresponding color from the “Greys” sequential color scheme represented as an RGB string.
213 *
214 * @param t Number in the range [0, 1].
215 */
216export function interpolateGreys(t: number): string;
217
218/**
219 * An array of arrays of hexadecimal color strings from the “Greys” sequential color scheme. The kth element of this array contains
220 * the color scheme of size k; for example, d3.schemeGreys[9] contains an array of nine strings representing the nine colors of the
221 * grey sequential color scheme. Sequential, single-hue color schemes support a size k ranging from 3 to 9.
222 */
223export const schemeGreys: ReadonlyArray<readonly string[]>;
224
225/**
226 * Given a number t in the range [0,1], returns the corresponding color from the “Oranges” sequential color scheme represented as an RGB string.
227 *
228 * @param t Number in the range [0, 1].
229 */
230export function interpolateOranges(t: number): string;
231
232/**
233 * An array of arrays of hexadecimal color strings from the “Oranges” sequential color scheme. The kth element of this array contains
234 * the color scheme of size k; for example, d3.schemeOranges[9] contains an array of nine strings representing the nine colors of the
235 * orange sequential color scheme. Sequential, single-hue color schemes support a size k ranging from 3 to 9.
236 */
237export const schemeOranges: ReadonlyArray<readonly string[]>;
238
239/**
240 * Given a number t in the range [0,1], returns the corresponding color from the “Purples” sequential color scheme represented as an RGB string.
241 *
242 * @param t Number in the range [0, 1].
243 */
244export function interpolatePurples(t: number): string;
245
246/**
247 * An array of arrays of hexadecimal color strings from the “Purples” sequential color scheme. The kth element of this array contains
248 * the color scheme of size k; for example, d3.schemePurples[9] contains an array of nine strings representing the nine colors of the
249 * purple sequential color scheme. Sequential, single-hue color schemes support a size k ranging from 3 to 9.
250 */
251export const schemePurples: ReadonlyArray<readonly string[]>;
252
253/**
254 * Given a number t in the range [0,1], returns the corresponding color from the “Reds” sequential color scheme represented as an RGB string.
255 *
256 * @param t Number in the range [0, 1].
257 */
258export function interpolateReds(t: number): string;
259
260/**
261 * An array of arrays of hexadecimal color strings from the “Reds” sequential color scheme. The kth element of this array contains
262 * the color scheme of size k; for example, d3.schemeReds[9] contains an array of nine strings representing the nine colors of the
263 * red sequential color scheme. Sequential, single-hue color schemes support a size k ranging from 3 to 9.
264 */
265export const schemeReds: ReadonlyArray<readonly string[]>;
266
267// -----------------------------------------------------------------------
268// Sequential(Multi-Hue)
269// -----------------------------------------------------------------------
270
271/**
272 * Given a number t in the range [0,1], returns the corresponding color from the “turbo” color scheme by Anton Mikhailov.
273 *
274 * @param t A number in the interval [0, 1].
275 */
276export function interpolateTurbo(t: number): string;
277
278/**
279 * 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,
280 * represented as an RGB string.
281 *
282 * @param t A number in the interval [0, 1].
283 */
284export function interpolateViridis(t: number): string;
285
286/**
287 * 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,
288 * represented as an RGB string.
289 *
290 * @param t A number in the interval [0, 1].
291 */
292export function interpolateInferno(t: number): string;
293
294/**
295 * 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,
296 * represented as an RGB string.
297 *
298 * @param t A number in the interval [0, 1].
299 */
300export function interpolateMagma(t: number): string;
301
302/**
303 * 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,
304 * represented as an RGB string.
305 *
306 * @param t A number in the interval [0, 1].
307 */
308export function interpolatePlasma(t: number): string;
309
310/**
311 * 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,
312 * represented as an RGB string.
313 *
314 * @param t A number in the interval [0, 1].
315 */
316export function interpolateCividis(t: number): string;
317
318/**
319 * 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.
320 *
321 * @param t A number in the interval [0, 1].
322 */
323export function interpolateWarm(t: number): string;
324
325/**
326 * Given a number t in the range [0,1], returns the corresponding color from Niccoli’s perceptual rainbow, represented as an RGB string.
327 *
328 * @param t A number in the interval [0, 1].
329 */
330export function interpolateCool(t: number): string;
331
332/**
333 * 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],
334 * thus implementing the cyclical less-angry rainbow color scheme.
335 *
336 * @param t A number in the interval [0, 1].
337 */
338export function interpolateRainbow(t: number): string;
339
340/**
341 * Given a number t in the range [0,1], returns the corresponding color from the “sinebow” color scheme by Jim Bumgardner and Charlie Loyd.
342 *
343 * @param t A number in the interval [0, 1].
344 */
345export function interpolateSinebow(t: number): string;
346
347/**
348 * Given a number t in the range [0,1], returns the corresponding color from Green’s default Cubehelix represented as an RGB string.
349 *
350 * @param t A number in the interval [0, 1].
351 */
352export function interpolateCubehelixDefault(t: number): string;
353
354/**
355 * Given a number t in the range [0,1], returns the corresponding color from the “BuGn” sequential color scheme represented as an RGB string.
356 *
357 * @param t Number in the range [0, 1].
358 */
359export function interpolateBuGn(t: number): string;
360
361/**
362 * An array of arrays of hexadecimal color strings from the “BuGn” sequential color scheme. The kth element of this array contains
363 * the color scheme of size k; for example, d3.schemeBuGn[9] contains an array of nine strings representing the nine colors of the
364 * blue-green sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.
365 */
366export const schemeBuGn: ReadonlyArray<readonly string[]>;
367
368/**
369 * Given a number t in the range [0,1], returns the corresponding color from the “BuPu” sequential color scheme represented as an RGB string.
370 *
371 * @param t Number in the range [0, 1].
372 */
373export function interpolateBuPu(t: number): string;
374
375/**
376 * An array of arrays of hexadecimal color strings from the “BuPu” sequential color scheme. The kth element of this array contains
377 * the color scheme of size k; for example, d3.schemeBuPu[9] contains an array of nine strings representing the nine colors of the
378 * blue-purple sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.
379 */
380export const schemeBuPu: ReadonlyArray<readonly string[]>;
381
382/**
383 * Given a number t in the range [0,1], returns the corresponding color from the “GnBu” sequential color scheme represented as an RGB string.
384 *
385 * @param t Number in the range [0, 1].
386 */
387export function interpolateGnBu(t: number): string;
388
389/**
390 * An array of arrays of hexadecimal color strings from the “GnBu” sequential color scheme. The kth element of this array contains
391 * the color scheme of size k; for example, d3.schemeGnBu[9] contains an array of nine strings representing the nine colors of the
392 * green-blue sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.
393 */
394export const schemeGnBu: ReadonlyArray<readonly string[]>;
395
396/**
397 * Given a number t in the range [0,1], returns the corresponding color from the “OrRd” sequential color scheme represented as an RGB string.
398 *
399 * @param t Number in the range [0, 1].
400 */
401export function interpolateOrRd(t: number): string;
402
403/**
404 * An array of arrays of hexadecimal color strings from the “OrRd” sequential color scheme. The kth element of this array contains
405 * the color scheme of size k; for example, d3.schemeOrRd[9] contains an array of nine strings representing the nine colors of the
406 * orange-red sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.
407 */
408export const schemeOrRd: ReadonlyArray<readonly string[]>;
409
410/**
411 * Given a number t in the range [0,1], returns the corresponding color from the “PuBuGn” sequential color scheme represented as an RGB string.
412 *
413 * @param t Number in the range [0, 1].
414 */
415export function interpolatePuBuGn(t: number): string;
416
417/**
418 * An array of arrays of hexadecimal color strings from the “PuBuGn” sequential color scheme. The kth element of this array contains
419 * the color scheme of size k; for example, d3.schemePuBuGn[9] contains an array of nine strings representing the nine colors of the
420 * purple-blue-green sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.
421 */
422export const schemePuBuGn: ReadonlyArray<readonly string[]>;
423
424/**
425 * Given a number t in the range [0,1], returns the corresponding color from the “PuBu” sequential color scheme represented as an RGB string.
426 *
427 * @param t Number in the range [0, 1].
428 */
429export function interpolatePuBu(t: number): string;
430
431/**
432 * An array of arrays of hexadecimal color strings from the “PuBu” sequential color scheme. The kth element of this array contains
433 * the color scheme of size k; for example, d3.schemePuBu[9] contains an array of nine strings representing the nine colors of the
434 * purple-blue sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.
435 */
436export const schemePuBu: ReadonlyArray<readonly string[]>;
437
438/**
439 * Given a number t in the range [0,1], returns the corresponding color from the “PuRd” sequential color scheme represented as an RGB string.
440 *
441 * @param t Number in the range [0, 1].
442 */
443export function interpolatePuRd(t: number): string;
444
445/**
446 * An array of arrays of hexadecimal color strings from the “PuRd” sequential color scheme. The kth element of this array contains
447 * the color scheme of size k; for example, d3.schemePuRd[9] contains an array of nine strings representing the nine colors of the
448 * purple-red sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.
449 */
450export const schemePuRd: ReadonlyArray<readonly string[]>;
451
452/**
453 * Given a number t in the range [0,1], returns the corresponding color from the “RdPu” sequential color scheme represented as an RGB string.
454 *
455 * @param t Number in the range [0, 1].
456 */
457export function interpolateRdPu(t: number): string;
458
459/**
460 * An array of arrays of hexadecimal color strings from the “RdPu” sequential color scheme. The kth element of this array contains
461 * the color scheme of size k; for example, d3.schemeRdPu[9] contains an array of nine strings representing the nine colors of the
462 * red-purple sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.
463 */
464export const schemeRdPu: ReadonlyArray<readonly string[]>;
465
466/**
467 * Given a number t in the range [0,1], returns the corresponding color from the “YlGnBu” sequential color scheme represented as an RGB string.
468 *
469 * @param t Number in the range [0, 1].
470 */
471export function interpolateYlGnBu(t: number): string;
472
473/**
474 * An array of arrays of hexadecimal color strings from the “YlGnBu” sequential color scheme. The kth element of this array contains
475 * the color scheme of size k; for example, d3.schemeYlGnBu[9] contains an array of nine strings representing the nine colors of the
476 * yellow-green-blue sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.
477 */
478export const schemeYlGnBu: ReadonlyArray<readonly string[]>;
479
480/**
481 * Given a number t in the range [0,1], returns the corresponding color from the “YlGn” sequential color scheme represented as an RGB string.
482 *
483 * @param t Number in the range [0, 1].
484 */
485export function interpolateYlGn(t: number): string;
486
487/**
488 * An array of arrays of hexadecimal color strings from the “YlGn” sequential color scheme. The kth element of this array contains
489 * the color scheme of size k; for example, d3.schemeYlGn[9] contains an array of nine strings representing the nine colors of the
490 * yellow-green sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.
491 */
492export const schemeYlGn: ReadonlyArray<readonly string[]>;
493
494/**
495 * Given a number t in the range [0,1], returns the corresponding color from the “YlOrBr” sequential color scheme represented as an RGB string.
496 *
497 * @param t Number in the range [0, 1].
498 */
499export function interpolateYlOrBr(t: number): string;
500
501/**
502 * An array of arrays of hexadecimal color strings from the “YlOrBr” sequential color scheme. The kth element of this array contains
503 * the color scheme of size k; for example, d3.schemeYlOrBr[9] contains an array of nine strings representing the nine colors of the
504 * yellow-orange-brown sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.
505 */
506export const schemeYlOrBr: ReadonlyArray<readonly string[]>;
507
508/**
509 * Given a number t in the range [0,1], returns the corresponding color from the “YlOrRd” sequential color scheme represented as an RGB string.
510 *
511 * @param t Number in the range [0, 1].
512 */
513export function interpolateYlOrRd(t: number): string;
514
515/**
516 * An array of arrays of hexadecimal color strings from the “YlOrRd” sequential color scheme. The kth element of this array contains
517 * the color scheme of size k; for example, d3.schemeYlOrRd[9] contains an array of nine strings representing the nine colors of the
518 * yellow-orange-red sequential color scheme. Sequential, multi-hue color schemes support a size k ranging from 3 to 9.
519 */
520export const schemeYlOrRd: ReadonlyArray<readonly string[]>;