-
Notifications
You must be signed in to change notification settings - Fork 546
/
index.umd.js
119 lines (109 loc) · 3.11 KB
/
index.umd.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
// feel free to comment out anything to rollup
// a smaller chroma.js bundle
import chroma from './src/chroma.js';
// io --> convert colors
import { cmyk } from './src/io/cmyk/index.js';
import { css } from './src/io/css/index.js';
import { gl } from './src/io/gl/index.js';
import { hcg } from './src/io/hcg/index.js';
import { hex } from './src/io/hex/index.js';
import { hsi } from './src/io/hsi/index.js';
import { hsl } from './src/io/hsl/index.js';
import { hsv } from './src/io/hsv/index.js';
import { lab, getLabWhitePoint, setLabWhitePoint } from './src/io/lab/index.js';
import { lch, hcl } from './src/io/lch/index.js';
import { num } from './src/io/num/index.js';
import { rgb } from './src/io/rgb/index.js';
import { temp, kelvin, temperature } from './src/io/temp/index.js';
import { oklab } from './src/io/oklab/index.js';
import { oklch } from './src/io/oklch/index.js';
import './src/io/named/index.js';
// operators --> modify existing Colors
import './src/ops/alpha.js';
import './src/ops/clipped.js';
import './src/ops/darken.js';
import './src/ops/get.js';
import './src/ops/luminance.js';
import './src/ops/mix.js';
import './src/ops/premultiply.js';
import './src/ops/saturate.js';
import './src/ops/set.js';
import './src/ops/shade.js';
// interpolators
import './src/interpolator/rgb.js';
import './src/interpolator/lrgb.js';
import './src/interpolator/lab.js';
import './src/interpolator/lch.js';
import './src/interpolator/num.js';
import './src/interpolator/hcg.js';
import './src/interpolator/hsi.js';
import './src/interpolator/hsl.js';
import './src/interpolator/hsv.js';
import './src/interpolator/oklab.js';
import './src/interpolator/oklch.js';
// generators -- > create new colors
import average from './src/generator/average.js';
import bezier from './src/generator/bezier.js';
import blend from './src/generator/blend.js';
import cubehelix from './src/generator/cubehelix.js';
import mix from './src/generator/mix.js';
import random from './src/generator/random.js';
import scale from './src/generator/scale.js';
// other utility methods
import { analyze } from './src/utils/analyze.js';
import contrast from './src/utils/contrast.js';
import contrastAPCA from './src/utils/contrastAPCA.js';
import deltaE from './src/utils/delta-e.js';
import distance from './src/utils/distance.js';
import { limits } from './src/utils/analyze.js';
import valid from './src/utils/valid.js';
import input from './src/io/input.js';
// scale
import scales from './src/utils/scales.js';
// colors
import colors from './src/colors/w3cx11.js';
import brewer from './src/colors/colorbrewer.js';
import Color from './src/Color.js';
Object.assign(chroma, {
analyze,
average,
bezier,
blend,
brewer,
Color,
colors,
contrast,
contrastAPCA,
cubehelix,
deltaE,
distance,
input,
interpolate: mix,
limits,
mix,
random,
scale,
scales,
valid,
cmyk,
css,
gl,
hcg,
hex,
hsi,
hsl,
hsv,
lab,
lch,
hcl,
num,
rgb,
temp,
kelvin,
temperature,
oklab,
oklch,
getLabWhitePoint,
setLabWhitePoint
});
export default chroma;