-
Notifications
You must be signed in to change notification settings - Fork 30
/
index.js
295 lines (272 loc) · 10.9 KB
/
index.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
// Color space definitions
import modeA98 from './a98/definition.js';
import modeCubehelix from './cubehelix/definition.js';
import modeDlab from './dlab/definition.js';
import modeDlch from './dlch/definition.js';
import modeHsi from './hsi/definition.js';
import modeHsl from './hsl/definition.js';
import modeHsv from './hsv/definition.js';
import modeHwb from './hwb/definition.js';
import modeItp from './itp/definition.js';
import modeJab from './jab/definition.js';
import modeJch from './jch/definition.js';
import modeLab from './lab/definition.js';
import modeLab65 from './lab65/definition.js';
import modeLch from './lch/definition.js';
import modeLch65 from './lch65/definition.js';
import modeLchuv from './lchuv/definition.js';
import modeLrgb from './lrgb/definition.js';
import modeLuv from './luv/definition.js';
import modeOkhsl from './okhsl/modeOkhsl.js';
import modeOkhsv from './okhsv/modeOkhsv.js';
import modeOklab from './oklab/definition.js';
import modeOklch from './oklch/definition.js';
import modeP3 from './p3/definition.js';
import modeProphoto from './prophoto/definition.js';
import modeRec2020 from './rec2020/definition.js';
import modeRgb from './rgb/definition.js';
import modeXyb from './xyb/definition.js';
import modeXyz50 from './xyz50/definition.js';
import modeXyz65 from './xyz65/definition.js';
import modeYiq from './yiq/definition.js';
import { useMode } from './modes.js';
export { default as converter } from './converter.js';
export {
serializeHex,
serializeHex8,
serializeRgb,
serializeHsl,
formatHex,
formatHex8,
formatRgb,
formatHsl,
formatCss
} from './formatter.js';
export { default as colorsNamed } from './colors/named.js';
export { default as blend } from './blend.js';
export { default as random } from './random.js';
export {
fixupHueShorter,
fixupHueLonger,
fixupHueIncreasing,
fixupHueDecreasing
} from './fixup/hue.js';
export { fixupAlpha } from './fixup/alpha.js';
export {
mapper,
mapAlphaMultiply,
mapAlphaDivide,
mapTransferLinear,
mapTransferGamma
} from './map.js';
export { average, averageAngle, averageNumber } from './average.js';
export { default as round } from './round.js';
export {
interpolate,
interpolateWith,
interpolateWithPremultipliedAlpha
} from './interpolate/interpolate.js';
export { interpolatorLinear } from './interpolate/linear.js';
export { interpolatorPiecewise } from './interpolate/piecewise.js';
export {
interpolatorSplineBasis,
interpolatorSplineBasisClosed
} from './interpolate/splineBasis.js';
export {
interpolatorSplineNatural,
interpolatorSplineNaturalClosed
} from './interpolate/splineNatural.js';
export {
interpolatorSplineMonotone,
interpolatorSplineMonotone2,
interpolatorSplineMonotoneClosed
} from './interpolate/splineMonotone.js';
export { lerp, unlerp, blerp, trilerp } from './interpolate/lerp.js';
export { default as samples } from './samples.js';
export {
displayable,
inGamut,
clampRgb,
clampChroma,
clampGamut,
toGamut
} from './clamp.js';
export { default as nearest } from './nearest.js';
export { useMode, getMode, useParser, removeParser } from './modes.js';
export { default as parse } from './parse.js';
export {
differenceEuclidean,
differenceCie76,
differenceCie94,
differenceCiede2000,
differenceCmc,
differenceHyab,
differenceHueSaturation,
differenceHueChroma,
differenceHueNaive,
differenceKotsarenkoRamos,
differenceItp
} from './difference.js';
export {
filterBrightness,
filterContrast,
filterSepia,
filterInvert,
filterSaturate,
filterGrayscale,
filterHueRotate
} from './filter.js';
export {
filterDeficiencyProt,
filterDeficiencyDeuter,
filterDeficiencyTrit
} from './deficiency.js';
// Easings
export { default as easingMidpoint } from './easing/midpoint.js';
export {
easingSmoothstep,
easingSmoothstepInverse
} from './easing/smoothstep.js';
export { default as easingSmootherstep } from './easing/smootherstep.js';
export { default as easingInOutSine } from './easing/inOutSine.js';
export { default as easingGamma } from './easing/gamma.js';
export {
luminance as wcagLuminance,
contrast as wcagContrast
} from './wcag.js';
export { default as parseHsl } from './hsl/parseHsl.js';
export { default as parseHwb } from './hwb/parseHwb.js';
export { default as parseLab } from './lab/parseLab.js';
export { default as parseLch } from './lch/parseLch.js';
export { default as parseNamed } from './rgb/parseNamed.js';
export { default as parseTransparent } from './rgb/parseTransparent.js';
export { default as parseHex } from './rgb/parseHex.js';
export { default as parseRgb } from './rgb/parseRgb.js';
export { default as parseHslLegacy } from './hsl/parseHslLegacy.js';
export { default as parseRgbLegacy } from './rgb/parseRgbLegacy.js';
export { default as parseOklab } from './oklab/parseOklab.js';
export { default as parseOklch } from './oklch/parseOklch.js';
export { default as convertA98ToXyz65 } from './a98/convertA98ToXyz65.js';
export { default as convertCubehelixToRgb } from './cubehelix/convertCubehelixToRgb.js';
export { default as convertDlchToLab65 } from './dlch/convertDlchToLab65.js';
export { default as convertHsiToRgb } from './hsi/convertHsiToRgb.js';
export { default as convertHslToRgb } from './hsl/convertHslToRgb.js';
export { default as convertHsvToRgb } from './hsv/convertHsvToRgb.js';
export { default as convertHwbToRgb } from './hwb/convertHwbToRgb.js';
export { default as convertItpToXyz65 } from './itp/convertItpToXyz65.js';
export { default as convertJabToJch } from './jch/convertJabToJch.js';
export { default as convertJabToRgb } from './jab/convertJabToRgb.js';
export { default as convertJabToXyz65 } from './jab/convertJabToXyz65.js';
export { default as convertJchToJab } from './jch/convertJchToJab.js';
export { default as convertLab65ToDlch } from './dlch/convertLab65ToDlch.js';
export { default as convertLab65ToRgb } from './lab65/convertLab65ToRgb.js';
export { default as convertLab65ToXyz65 } from './lab65/convertLab65ToXyz65.js';
export { default as convertLabToLch } from './lch/convertLabToLch.js';
export { default as convertLabToRgb } from './lab/convertLabToRgb.js';
export { default as convertLabToXyz50 } from './lab/convertLabToXyz50.js';
export { default as convertLchToLab } from './lch/convertLchToLab.js';
export { default as convertLchuvToLuv } from './lchuv/convertLchuvToLuv.js';
export { default as convertLrgbToOklab } from './oklab/convertLrgbToOklab.js';
export { default as convertLrgbToRgb } from './lrgb/convertLrgbToRgb.js';
export { default as convertLuvToLchuv } from './lchuv/convertLuvToLchuv.js';
export { default as convertLuvToXyz50 } from './luv/convertLuvToXyz50.js';
export { default as convertOkhslToOklab } from './okhsl/convertOkhslToOklab.js';
export { default as convertOkhsvToOklab } from './okhsv/convertOkhsvToOklab.js';
export { default as convertOklabToLrgb } from './oklab/convertOklabToLrgb.js';
export { default as convertOklabToOkhsl } from './okhsl/convertOklabToOkhsl.js';
export { default as convertOklabToOkhsv } from './okhsv/convertOklabToOkhsv.js';
export { default as convertOklabToRgb } from './oklab/convertOklabToRgb.js';
export { default as convertP3ToXyz65 } from './p3/convertP3ToXyz65.js';
export { default as convertProphotoToXyz50 } from './prophoto/convertProphotoToXyz50.js';
export { default as convertRec2020ToXyz65 } from './rec2020/convertRec2020ToXyz65.js';
export { default as convertRgbToCubehelix } from './cubehelix/convertRgbToCubehelix.js';
export { default as convertRgbToHsi } from './hsi/convertRgbToHsi.js';
export { default as convertRgbToHsl } from './hsl/convertRgbToHsl.js';
export { default as convertRgbToHsv } from './hsv/convertRgbToHsv.js';
export { default as convertRgbToHwb } from './hwb/convertRgbToHwb.js';
export { default as convertRgbToJab } from './jab/convertRgbToJab.js';
export { default as convertRgbToLab } from './lab/convertRgbToLab.js';
export { default as convertRgbToLab65 } from './lab65/convertRgbToLab65.js';
export { default as convertRgbToLrgb } from './lrgb/convertRgbToLrgb.js';
export { default as convertRgbToOklab } from './oklab/convertRgbToOklab.js';
export { default as convertRgbToXyb } from './xyb/convertRgbToXyb.js';
export { default as convertRgbToXyz50 } from './xyz50/convertRgbToXyz50.js';
export { default as convertRgbToXyz65 } from './xyz65/convertRgbToXyz65.js';
export { default as convertRgbToYiq } from './yiq/convertRgbToYiq.js';
export { default as convertXybToRgb } from './xyb/convertXybToRgb.js';
export { default as convertXyz50ToLab } from './lab/convertXyz50ToLab.js';
export { default as convertXyz50ToLuv } from './luv/convertXyz50ToLuv.js';
export { default as convertXyz50ToProphoto } from './prophoto/convertXyz50ToProphoto.js';
export { default as convertXyz50ToRgb } from './xyz50/convertXyz50ToRgb.js';
export { default as convertXyz50ToXyz65 } from './xyz65/convertXyz50ToXyz65.js';
export { default as convertXyz65ToA98 } from './a98/convertXyz65ToA98.js';
export { default as convertXyz65ToItp } from './itp/convertXyz65ToItp.js';
export { default as convertXyz65ToJab } from './jab/convertXyz65ToJab.js';
export { default as convertXyz65ToLab65 } from './lab65/convertXyz65ToLab65.js';
export { default as convertXyz65ToP3 } from './p3/convertXyz65ToP3.js';
export { default as convertXyz65ToRec2020 } from './rec2020/convertXyz65ToRec2020.js';
export { default as convertXyz65ToRgb } from './xyz65/convertXyz65ToRgb.js';
export { default as convertXyz65ToXyz50 } from './xyz65/convertXyz65ToXyz50.js';
export { default as convertYiqToRgb } from './yiq/convertYiqToRgb.js';
export {
modeA98,
modeCubehelix,
modeDlab,
modeDlch,
modeHsi,
modeHsl,
modeHsv,
modeHwb,
modeItp,
modeJab,
modeJch,
modeLab,
modeLab65,
modeLch,
modeLch65,
modeLchuv,
modeLrgb,
modeLuv,
modeOkhsl,
modeOkhsv,
modeOklab,
modeOklch,
modeP3,
modeProphoto,
modeRec2020,
modeRgb,
modeXyb,
modeXyz50,
modeXyz65,
modeYiq
};
export const a98 = useMode(modeA98);
export const cubehelix = useMode(modeCubehelix);
export const dlab = useMode(modeDlab);
export const dlch = useMode(modeDlch);
export const hsi = useMode(modeHsi);
export const hsl = useMode(modeHsl);
export const hsv = useMode(modeHsv);
export const hwb = useMode(modeHwb);
export const itp = useMode(modeItp);
export const jab = useMode(modeJab);
export const jch = useMode(modeJch);
export const lab = useMode(modeLab);
export const lab65 = useMode(modeLab65);
export const lch = useMode(modeLch);
export const lch65 = useMode(modeLch65);
export const lchuv = useMode(modeLchuv);
export const lrgb = useMode(modeLrgb);
export const luv = useMode(modeLuv);
export const okhsl = useMode(modeOkhsl);
export const okhsv = useMode(modeOkhsv);
export const oklab = useMode(modeOklab);
export const oklch = useMode(modeOklch);
export const p3 = useMode(modeP3);
export const prophoto = useMode(modeProphoto);
export const rec2020 = useMode(modeRec2020);
export const rgb = useMode(modeRgb);
export const xyb = useMode(modeXyb);
export const xyz50 = useMode(modeXyz50);
export const xyz65 = useMode(modeXyz65);
export const yiq = useMode(modeYiq);