@hyperframes/core 0.7.70 → 0.7.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/colorGrading.d.ts +314 -7
- package/dist/colorGrading.d.ts.map +1 -1
- package/dist/colorGrading.js +413 -73
- package/dist/colorGrading.js.map +1 -1
- package/dist/generated/runtime-inline.js +1 -1
- package/dist/generated/runtime-inline.js.map +1 -1
- package/dist/hyperframe.runtime.iife.js +22 -22
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/colorGrading.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { COLOR_GRADING_ADJUST_KEYS, COLOR_GRADING_DETAIL_KEYS, COLOR_GRADING_EFFECT_KEYS } from "@hyperframes/parsers/color-grading-contract";
|
|
1
2
|
export declare const HF_COLOR_GRADING_ATTR = "data-color-grading";
|
|
2
3
|
/** Set on a graded source while its pixels render on the grading canvas. */
|
|
3
4
|
export declare const COLOR_GRADING_SOURCE_HIDDEN_ATTR = "data-hf-color-grading-source-hidden";
|
|
@@ -9,12 +10,12 @@ export declare const COLOR_GRADING_SOURCE_HIDDEN_ATTR = "data-hf-color-grading-s
|
|
|
9
10
|
export declare const COLOR_GRADING_AUTHORED_OPACITY_ATTR = "data-hf-authored-opacity";
|
|
10
11
|
export declare const HF_COLOR_GRADING_CANVAS_ID_PREFIX = "__hf_color_grading_";
|
|
11
12
|
export declare const HF_COLOR_GRADING_COLOR_SPACE = "rec709";
|
|
12
|
-
export type HfColorGradingPresetId = "neutral" | "
|
|
13
|
-
export type HfColorGradingAdjustKey =
|
|
13
|
+
export type HfColorGradingPresetId = "neutral" | "warm-daylight" | "clean-studio" | "skin-soft" | "food-pop" | "night-lift" | "muted-editorial" | "vintage-wash" | "mono-clean" | "mono-fade" | "soft-boost" | "bright-pop" | "deep-contrast" | "creator-camcorder" | "vhs-playback" | "home-movie-8mm" | "editorial-halftone" | "two-ink-print";
|
|
14
|
+
export type HfColorGradingAdjustKey = (typeof COLOR_GRADING_ADJUST_KEYS)[number];
|
|
14
15
|
export type HfColorGradingAdjust = Partial<Record<HfColorGradingAdjustKey, number>>;
|
|
15
|
-
export type HfColorGradingDetailKey =
|
|
16
|
+
export type HfColorGradingDetailKey = (typeof COLOR_GRADING_DETAIL_KEYS)[number];
|
|
16
17
|
export type HfColorGradingDetails = Partial<Record<HfColorGradingDetailKey, number>>;
|
|
17
|
-
export type HfColorGradingEffectKey =
|
|
18
|
+
export type HfColorGradingEffectKey = (typeof COLOR_GRADING_EFFECT_KEYS)[number];
|
|
18
19
|
export type HfColorGradingEffects = Partial<Record<HfColorGradingEffectKey, number>>;
|
|
19
20
|
export interface HfColorGradingLutRef {
|
|
20
21
|
src: string;
|
|
@@ -27,9 +28,12 @@ export interface HfColorGrading {
|
|
|
27
28
|
adjust?: HfColorGradingAdjust;
|
|
28
29
|
details?: HfColorGradingDetails;
|
|
29
30
|
effects?: HfColorGradingEffects;
|
|
31
|
+
palette?: readonly string[] | null;
|
|
30
32
|
lut?: HfColorGradingLutRef | string | null;
|
|
31
33
|
colorSpace?: typeof HF_COLOR_GRADING_COLOR_SPACE | string;
|
|
32
34
|
}
|
|
35
|
+
export declare const HF_COLOR_GRADING_TOP_LEVEL_KEYS: readonly ["enabled", "preset", "intensity", "adjust", "details", "effects", "palette", "lut", "colorSpace"];
|
|
36
|
+
export declare const HF_COLOR_GRADING_LUT_KEYS: readonly ["src", "intensity"];
|
|
33
37
|
export interface NormalizedHfColorGrading {
|
|
34
38
|
enabled: boolean;
|
|
35
39
|
preset: HfColorGradingPresetId | string | null;
|
|
@@ -37,6 +41,7 @@ export interface NormalizedHfColorGrading {
|
|
|
37
41
|
adjust: Record<HfColorGradingAdjustKey, number>;
|
|
38
42
|
details: Record<HfColorGradingDetailKey, number>;
|
|
39
43
|
effects: Record<HfColorGradingEffectKey, number>;
|
|
44
|
+
palette: readonly string[] | null;
|
|
40
45
|
lut: HfColorGradingLutRef | null;
|
|
41
46
|
colorSpace: typeof HF_COLOR_GRADING_COLOR_SPACE | string;
|
|
42
47
|
}
|
|
@@ -49,15 +54,317 @@ export interface HfColorGradingTarget {
|
|
|
49
54
|
export interface HfColorGradingPreset {
|
|
50
55
|
id: HfColorGradingPresetId;
|
|
51
56
|
label: string;
|
|
57
|
+
intensity: number;
|
|
52
58
|
adjust: Record<HfColorGradingAdjustKey, number>;
|
|
53
59
|
details: Record<HfColorGradingDetailKey, number>;
|
|
54
60
|
effects: Record<HfColorGradingEffectKey, number>;
|
|
55
61
|
}
|
|
62
|
+
export declare const HF_COLOR_GRADING_PALETTES: readonly [{
|
|
63
|
+
readonly id: "noir";
|
|
64
|
+
readonly label: "Noir";
|
|
65
|
+
readonly group: "Classic";
|
|
66
|
+
readonly colors: readonly ["#000000", "#ffffff"];
|
|
67
|
+
}, {
|
|
68
|
+
readonly id: "ink-paper";
|
|
69
|
+
readonly label: "Ink & Paper";
|
|
70
|
+
readonly group: "Classic";
|
|
71
|
+
readonly colors: readonly ["#1a1a2e", "#f5f5dc"];
|
|
72
|
+
}, {
|
|
73
|
+
readonly id: "terminal";
|
|
74
|
+
readonly label: "Terminal";
|
|
75
|
+
readonly group: "Classic";
|
|
76
|
+
readonly colors: readonly ["#001100", "#00ff00"];
|
|
77
|
+
}, {
|
|
78
|
+
readonly id: "amber-glow";
|
|
79
|
+
readonly label: "Amber Glow";
|
|
80
|
+
readonly group: "Classic";
|
|
81
|
+
readonly colors: readonly ["#1a0f00", "#ffcc00"];
|
|
82
|
+
}, {
|
|
83
|
+
readonly id: "handheld-green";
|
|
84
|
+
readonly label: "Handheld Green";
|
|
85
|
+
readonly group: "Classic";
|
|
86
|
+
readonly colors: readonly ["#0f380f", "#306230", "#8bac0f", "#9bbc0f"];
|
|
87
|
+
}, {
|
|
88
|
+
readonly id: "golden-hour";
|
|
89
|
+
readonly label: "Golden Hour";
|
|
90
|
+
readonly group: "Mood";
|
|
91
|
+
readonly colors: readonly ["#1a1205", "#4a3510", "#8b6914", "#d4a017", "#fff8dc"];
|
|
92
|
+
}, {
|
|
93
|
+
readonly id: "deep-sea";
|
|
94
|
+
readonly label: "Deep Sea";
|
|
95
|
+
readonly group: "Mood";
|
|
96
|
+
readonly colors: readonly ["#0a1628", "#1a3a5c", "#2d6187", "#5ba4c9", "#a8dce8"];
|
|
97
|
+
}, {
|
|
98
|
+
readonly id: "arctic-night";
|
|
99
|
+
readonly label: "Arctic Night";
|
|
100
|
+
readonly group: "Mood";
|
|
101
|
+
readonly colors: readonly ["#0a0a14", "#1a2a4a", "#3a5a8a", "#6a9aca", "#cae8ff"];
|
|
102
|
+
}, {
|
|
103
|
+
readonly id: "synthwave";
|
|
104
|
+
readonly label: "Synthwave";
|
|
105
|
+
readonly group: "Mood";
|
|
106
|
+
readonly colors: readonly ["#120458", "#7b2cbf", "#e040fb", "#ff6ec7", "#fff59d"];
|
|
107
|
+
}, {
|
|
108
|
+
readonly id: "vaporwave";
|
|
109
|
+
readonly label: "Vaporwave";
|
|
110
|
+
readonly group: "Mood";
|
|
111
|
+
readonly colors: readonly ["#1a0a2e", "#3d1a5c", "#ff71ce", "#01cdfe", "#fffb96"];
|
|
112
|
+
}, {
|
|
113
|
+
readonly id: "forest";
|
|
114
|
+
readonly label: "Forest";
|
|
115
|
+
readonly group: "Mood";
|
|
116
|
+
readonly colors: readonly ["#1a2e1a", "#2d4a2d", "#4a7c4a", "#7ab37a", "#c8e6c8"];
|
|
117
|
+
}, {
|
|
118
|
+
readonly id: "sepia";
|
|
119
|
+
readonly label: "Sepia";
|
|
120
|
+
readonly group: "Mono";
|
|
121
|
+
readonly colors: readonly ["#1a1610", "#3d3020", "#6b5a40", "#a89070", "#e8dcc8"];
|
|
122
|
+
}, {
|
|
123
|
+
readonly id: "blueprint";
|
|
124
|
+
readonly label: "Blueprint";
|
|
125
|
+
readonly group: "Mono";
|
|
126
|
+
readonly colors: readonly ["#001830", "#003060", "#0050a0", "#0080e0", "#e0f0ff"];
|
|
127
|
+
}, {
|
|
128
|
+
readonly id: "warm-print";
|
|
129
|
+
readonly label: "Warm Print";
|
|
130
|
+
readonly group: "HyperFrames";
|
|
131
|
+
readonly colors: readonly ["#17121a", "#824c50", "#e09873", "#f7ddb1"];
|
|
132
|
+
}, {
|
|
133
|
+
readonly id: "electric-ink";
|
|
134
|
+
readonly label: "Electric Ink";
|
|
135
|
+
readonly group: "HyperFrames";
|
|
136
|
+
readonly colors: readonly ["#080717", "#3c185f", "#7e2278", "#d9339f", "#ff6b66", "#aafae0"];
|
|
137
|
+
}];
|
|
56
138
|
export type HfColorGradingVariableMap = Record<string, unknown>;
|
|
57
|
-
export declare const HF_COLOR_GRADING_ADJUST_KEYS: readonly
|
|
58
|
-
export declare const HF_COLOR_GRADING_DETAIL_KEYS: readonly
|
|
59
|
-
export declare const HF_COLOR_GRADING_EFFECT_KEYS: readonly
|
|
139
|
+
export declare const HF_COLOR_GRADING_ADJUST_KEYS: readonly ["exposure", "contrast", "highlights", "shadows", "whites", "blacks", "temperature", "tint", "vibrance", "saturation"];
|
|
140
|
+
export declare const HF_COLOR_GRADING_DETAIL_KEYS: readonly ["vignette", "vignetteMidpoint", "vignetteRoundness", "vignetteFeather", "grain", "grainSize", "grainRoughness"];
|
|
141
|
+
export declare const HF_COLOR_GRADING_EFFECT_KEYS: readonly ["blur", "pixelate", "chromaBleed", "tapeDamage", "tapeTracking", "tapeNoise", "tapeSpeed", "filmArtifacts", "halftone", "halftoneSize", "twoInkPrint", "twoInkPrintSize", "ascii", "asciiSize", "asciiInvert", "asciiStyle", "asciiColor", "asciiRotation", "dither", "ditherSize", "bloom", "bloomRadius", "monoScreen", "monoScreenSize", "monoScreenAngle", "monoScreenSpread", "monoScreenShape", "monoScreenInvert", "scanlines", "scanlineCount", "scanlineSoftness", "chromaticAberration", "chromaticAngle", "crtCurvature", "digitalGlitch", "digitalGlitchColorSplit", "digitalGlitchLineTear", "digitalGlitchPixelate", "digitalGlitchBlockAmount", "digitalGlitchBlockDisplacement", "digitalGlitchBlockOpacity", "digitalGlitchSpeed", "engraving", "engravingSpacing", "engravingMinThickness", "engravingMaxThickness", "engravingAngle", "engravingContrast", "engravingSharpness", "engravingWave", "engravingWaveFrequency", "crosshatch", "crosshatchSpacing", "crosshatchThickness", "crosshatchAngle", "crosshatchContrast", "crosshatchEdges", "crosshatchLineWeight", "crosshatchWave", "crosshatchWaveFrequency", "kuwahara", "kuwaharaRadius", "kuwaharaSharpness", "kuwaharaSaturation"];
|
|
60
142
|
export declare const HF_COLOR_GRADING_PRESETS: readonly HfColorGradingPreset[];
|
|
143
|
+
export declare const HF_COLOR_GRADING_ACTIVE_EFFECT_KEYS: readonly ["blur", "pixelate", "chromaBleed", "tapeDamage", "filmArtifacts", "halftone", "twoInkPrint", "ascii", "dither", "bloom", "monoScreen", "scanlines", "chromaticAberration", "crtCurvature", "digitalGlitch", "engraving", "crosshatch", "kuwahara"];
|
|
144
|
+
export type HfColorGradingActiveEffectKey = (typeof HF_COLOR_GRADING_ACTIVE_EFFECT_KEYS)[number];
|
|
145
|
+
export declare const HF_COLOR_GRADING_EFFECT_PRESETS: HfColorGradingPreset[];
|
|
146
|
+
export declare const HF_COLOR_GRADING_GRADE_PRESETS: HfColorGradingPreset[];
|
|
147
|
+
/** Useful one-click values. Sub-controls not listed here keep their normalized defaults. */
|
|
148
|
+
export declare const HF_COLOR_GRADING_EFFECT_APPLY_DEFAULTS: Readonly<Record<HfColorGradingActiveEffectKey, HfColorGradingEffects>>;
|
|
149
|
+
export declare const HF_COLOR_GRADING_ANIMATABLE_PROPERTIES: readonly [{
|
|
150
|
+
readonly path: "intensity";
|
|
151
|
+
readonly name: "--hf-color-grading-intensity";
|
|
152
|
+
readonly min: 0;
|
|
153
|
+
readonly max: 1;
|
|
154
|
+
}, {
|
|
155
|
+
readonly path: "lut.intensity";
|
|
156
|
+
readonly name: "--hf-color-grading-lut-intensity";
|
|
157
|
+
readonly min: 0;
|
|
158
|
+
readonly max: 1;
|
|
159
|
+
}, {
|
|
160
|
+
readonly path: "adjust.exposure";
|
|
161
|
+
readonly name: "--hf-color-grading-exposure";
|
|
162
|
+
readonly min: -2;
|
|
163
|
+
readonly max: 2;
|
|
164
|
+
}, {
|
|
165
|
+
readonly path: "effects.blur";
|
|
166
|
+
readonly name: "--hf-color-grading-blur";
|
|
167
|
+
readonly min: 0;
|
|
168
|
+
readonly max: 1;
|
|
169
|
+
}, {
|
|
170
|
+
readonly path: "effects.bloom";
|
|
171
|
+
readonly name: "--hf-color-grading-bloom";
|
|
172
|
+
readonly min: 0;
|
|
173
|
+
readonly max: 3;
|
|
174
|
+
}, {
|
|
175
|
+
readonly path: "effects.kuwahara";
|
|
176
|
+
readonly name: "--hf-color-grading-kuwahara";
|
|
177
|
+
readonly min: 0;
|
|
178
|
+
readonly max: 1;
|
|
179
|
+
}, {
|
|
180
|
+
readonly path: "effects.pixelate";
|
|
181
|
+
readonly name: "--hf-color-grading-pixelate";
|
|
182
|
+
readonly min: 0;
|
|
183
|
+
readonly max: 1;
|
|
184
|
+
}, {
|
|
185
|
+
readonly path: "effects.ascii";
|
|
186
|
+
readonly name: "--hf-color-grading-ascii";
|
|
187
|
+
readonly min: 0;
|
|
188
|
+
readonly max: 1;
|
|
189
|
+
}, {
|
|
190
|
+
readonly path: "effects.dither";
|
|
191
|
+
readonly name: "--hf-color-grading-dither";
|
|
192
|
+
readonly min: 0;
|
|
193
|
+
readonly max: 1;
|
|
194
|
+
}];
|
|
195
|
+
export type HfColorGradingAnimatablePath = (typeof HF_COLOR_GRADING_ANIMATABLE_PROPERTIES)[number]["path"];
|
|
196
|
+
/** Agent-readable view of the canonical grading and effect contracts. */
|
|
197
|
+
export declare function getHfColorGradingCapabilities(): {
|
|
198
|
+
version: number;
|
|
199
|
+
targetTags: string[];
|
|
200
|
+
colorSpace: string;
|
|
201
|
+
intensity: {
|
|
202
|
+
identity: number;
|
|
203
|
+
min: number;
|
|
204
|
+
max: number;
|
|
205
|
+
};
|
|
206
|
+
palette: {
|
|
207
|
+
minColors: number;
|
|
208
|
+
maxColors: number;
|
|
209
|
+
colorFormat: string;
|
|
210
|
+
};
|
|
211
|
+
lut: {
|
|
212
|
+
format: string;
|
|
213
|
+
maxCubeSize: number;
|
|
214
|
+
intensity: {
|
|
215
|
+
min: number;
|
|
216
|
+
max: number;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
presets: {
|
|
220
|
+
id: HfColorGradingPresetId;
|
|
221
|
+
label: string;
|
|
222
|
+
intensity: number;
|
|
223
|
+
}[];
|
|
224
|
+
adjustments: {
|
|
225
|
+
min: number;
|
|
226
|
+
max: number;
|
|
227
|
+
key: "exposure" | "contrast" | "highlights" | "shadows" | "whites" | "blacks" | "temperature" | "tint" | "vibrance" | "saturation";
|
|
228
|
+
identity: number;
|
|
229
|
+
}[];
|
|
230
|
+
finishing: {
|
|
231
|
+
min: number;
|
|
232
|
+
max: number;
|
|
233
|
+
key: "vignette" | "vignetteMidpoint" | "vignetteRoundness" | "vignetteFeather" | "grain" | "grainSize" | "grainRoughness";
|
|
234
|
+
identity: number;
|
|
235
|
+
}[];
|
|
236
|
+
effects: {
|
|
237
|
+
key: "blur" | "pixelate" | "chromaBleed" | "tapeDamage" | "filmArtifacts" | "halftone" | "twoInkPrint" | "ascii" | "dither" | "bloom" | "monoScreen" | "scanlines" | "chromaticAberration" | "crtCurvature" | "digitalGlitch" | "engraving" | "crosshatch" | "kuwahara";
|
|
238
|
+
apply: {
|
|
239
|
+
blur?: number | undefined;
|
|
240
|
+
pixelate?: number | undefined;
|
|
241
|
+
chromaBleed?: number | undefined;
|
|
242
|
+
tapeDamage?: number | undefined;
|
|
243
|
+
tapeTracking?: number | undefined;
|
|
244
|
+
tapeNoise?: number | undefined;
|
|
245
|
+
tapeSpeed?: number | undefined;
|
|
246
|
+
filmArtifacts?: number | undefined;
|
|
247
|
+
halftone?: number | undefined;
|
|
248
|
+
halftoneSize?: number | undefined;
|
|
249
|
+
twoInkPrint?: number | undefined;
|
|
250
|
+
twoInkPrintSize?: number | undefined;
|
|
251
|
+
ascii?: number | undefined;
|
|
252
|
+
asciiSize?: number | undefined;
|
|
253
|
+
asciiInvert?: number | undefined;
|
|
254
|
+
asciiStyle?: number | undefined;
|
|
255
|
+
asciiColor?: number | undefined;
|
|
256
|
+
asciiRotation?: number | undefined;
|
|
257
|
+
dither?: number | undefined;
|
|
258
|
+
ditherSize?: number | undefined;
|
|
259
|
+
bloom?: number | undefined;
|
|
260
|
+
bloomRadius?: number | undefined;
|
|
261
|
+
monoScreen?: number | undefined;
|
|
262
|
+
monoScreenSize?: number | undefined;
|
|
263
|
+
monoScreenAngle?: number | undefined;
|
|
264
|
+
monoScreenSpread?: number | undefined;
|
|
265
|
+
monoScreenShape?: number | undefined;
|
|
266
|
+
monoScreenInvert?: number | undefined;
|
|
267
|
+
scanlines?: number | undefined;
|
|
268
|
+
scanlineCount?: number | undefined;
|
|
269
|
+
scanlineSoftness?: number | undefined;
|
|
270
|
+
chromaticAberration?: number | undefined;
|
|
271
|
+
chromaticAngle?: number | undefined;
|
|
272
|
+
crtCurvature?: number | undefined;
|
|
273
|
+
digitalGlitch?: number | undefined;
|
|
274
|
+
digitalGlitchColorSplit?: number | undefined;
|
|
275
|
+
digitalGlitchLineTear?: number | undefined;
|
|
276
|
+
digitalGlitchPixelate?: number | undefined;
|
|
277
|
+
digitalGlitchBlockAmount?: number | undefined;
|
|
278
|
+
digitalGlitchBlockDisplacement?: number | undefined;
|
|
279
|
+
digitalGlitchBlockOpacity?: number | undefined;
|
|
280
|
+
digitalGlitchSpeed?: number | undefined;
|
|
281
|
+
engraving?: number | undefined;
|
|
282
|
+
engravingSpacing?: number | undefined;
|
|
283
|
+
engravingMinThickness?: number | undefined;
|
|
284
|
+
engravingMaxThickness?: number | undefined;
|
|
285
|
+
engravingAngle?: number | undefined;
|
|
286
|
+
engravingContrast?: number | undefined;
|
|
287
|
+
engravingSharpness?: number | undefined;
|
|
288
|
+
engravingWave?: number | undefined;
|
|
289
|
+
engravingWaveFrequency?: number | undefined;
|
|
290
|
+
crosshatch?: number | undefined;
|
|
291
|
+
crosshatchSpacing?: number | undefined;
|
|
292
|
+
crosshatchThickness?: number | undefined;
|
|
293
|
+
crosshatchAngle?: number | undefined;
|
|
294
|
+
crosshatchContrast?: number | undefined;
|
|
295
|
+
crosshatchEdges?: number | undefined;
|
|
296
|
+
crosshatchLineWeight?: number | undefined;
|
|
297
|
+
crosshatchWave?: number | undefined;
|
|
298
|
+
crosshatchWaveFrequency?: number | undefined;
|
|
299
|
+
kuwahara?: number | undefined;
|
|
300
|
+
kuwaharaRadius?: number | undefined;
|
|
301
|
+
kuwaharaSharpness?: number | undefined;
|
|
302
|
+
kuwaharaSaturation?: number | undefined;
|
|
303
|
+
};
|
|
304
|
+
supportsPalette: boolean;
|
|
305
|
+
renderLane: string;
|
|
306
|
+
controls: {
|
|
307
|
+
min: number;
|
|
308
|
+
max: number;
|
|
309
|
+
key: "blur" | "pixelate" | "chromaBleed" | "tapeDamage" | "tapeTracking" | "tapeNoise" | "tapeSpeed" | "filmArtifacts" | "halftone" | "halftoneSize" | "twoInkPrint" | "twoInkPrintSize" | "ascii" | "asciiSize" | "asciiInvert" | "asciiStyle" | "asciiColor" | "asciiRotation" | "dither" | "ditherSize" | "bloom" | "bloomRadius" | "monoScreen" | "monoScreenSize" | "monoScreenAngle" | "monoScreenSpread" | "monoScreenShape" | "monoScreenInvert" | "scanlines" | "scanlineCount" | "scanlineSoftness" | "chromaticAberration" | "chromaticAngle" | "crtCurvature" | "digitalGlitch" | "digitalGlitchColorSplit" | "digitalGlitchLineTear" | "digitalGlitchPixelate" | "digitalGlitchBlockAmount" | "digitalGlitchBlockDisplacement" | "digitalGlitchBlockOpacity" | "digitalGlitchSpeed" | "engraving" | "engravingSpacing" | "engravingMinThickness" | "engravingMaxThickness" | "engravingAngle" | "engravingContrast" | "engravingSharpness" | "engravingWave" | "engravingWaveFrequency" | "crosshatch" | "crosshatchSpacing" | "crosshatchThickness" | "crosshatchAngle" | "crosshatchContrast" | "crosshatchEdges" | "crosshatchLineWeight" | "crosshatchWave" | "crosshatchWaveFrequency" | "kuwahara" | "kuwaharaRadius" | "kuwaharaSharpness" | "kuwaharaSaturation";
|
|
310
|
+
identity: number;
|
|
311
|
+
recommended: number;
|
|
312
|
+
}[];
|
|
313
|
+
}[];
|
|
314
|
+
palettes: {
|
|
315
|
+
id: "noir" | "ink-paper" | "terminal" | "amber-glow" | "handheld-green" | "golden-hour" | "deep-sea" | "arctic-night" | "synthwave" | "vaporwave" | "forest" | "sepia" | "blueprint" | "warm-print" | "electric-ink";
|
|
316
|
+
label: "Noir" | "Ink & Paper" | "Terminal" | "Amber Glow" | "Handheld Green" | "Golden Hour" | "Deep Sea" | "Arctic Night" | "Synthwave" | "Vaporwave" | "Forest" | "Sepia" | "Blueprint" | "Warm Print" | "Electric Ink";
|
|
317
|
+
group: "Classic" | "Mood" | "Mono" | "HyperFrames";
|
|
318
|
+
colors: readonly ["#000000", "#ffffff"] | readonly ["#1a1a2e", "#f5f5dc"] | readonly ["#001100", "#00ff00"] | readonly ["#1a0f00", "#ffcc00"] | readonly ["#0f380f", "#306230", "#8bac0f", "#9bbc0f"] | readonly ["#1a1205", "#4a3510", "#8b6914", "#d4a017", "#fff8dc"] | readonly ["#0a1628", "#1a3a5c", "#2d6187", "#5ba4c9", "#a8dce8"] | readonly ["#0a0a14", "#1a2a4a", "#3a5a8a", "#6a9aca", "#cae8ff"] | readonly ["#120458", "#7b2cbf", "#e040fb", "#ff6ec7", "#fff59d"] | readonly ["#1a0a2e", "#3d1a5c", "#ff71ce", "#01cdfe", "#fffb96"] | readonly ["#1a2e1a", "#2d4a2d", "#4a7c4a", "#7ab37a", "#c8e6c8"] | readonly ["#1a1610", "#3d3020", "#6b5a40", "#a89070", "#e8dcc8"] | readonly ["#001830", "#003060", "#0050a0", "#0080e0", "#e0f0ff"] | readonly ["#17121a", "#824c50", "#e09873", "#f7ddb1"] | readonly ["#080717", "#3c185f", "#7e2278", "#d9339f", "#ff6b66", "#aafae0"];
|
|
319
|
+
}[];
|
|
320
|
+
animatable: readonly [{
|
|
321
|
+
readonly path: "intensity";
|
|
322
|
+
readonly name: "--hf-color-grading-intensity";
|
|
323
|
+
readonly min: 0;
|
|
324
|
+
readonly max: 1;
|
|
325
|
+
}, {
|
|
326
|
+
readonly path: "lut.intensity";
|
|
327
|
+
readonly name: "--hf-color-grading-lut-intensity";
|
|
328
|
+
readonly min: 0;
|
|
329
|
+
readonly max: 1;
|
|
330
|
+
}, {
|
|
331
|
+
readonly path: "adjust.exposure";
|
|
332
|
+
readonly name: "--hf-color-grading-exposure";
|
|
333
|
+
readonly min: -2;
|
|
334
|
+
readonly max: 2;
|
|
335
|
+
}, {
|
|
336
|
+
readonly path: "effects.blur";
|
|
337
|
+
readonly name: "--hf-color-grading-blur";
|
|
338
|
+
readonly min: 0;
|
|
339
|
+
readonly max: 1;
|
|
340
|
+
}, {
|
|
341
|
+
readonly path: "effects.bloom";
|
|
342
|
+
readonly name: "--hf-color-grading-bloom";
|
|
343
|
+
readonly min: 0;
|
|
344
|
+
readonly max: 3;
|
|
345
|
+
}, {
|
|
346
|
+
readonly path: "effects.kuwahara";
|
|
347
|
+
readonly name: "--hf-color-grading-kuwahara";
|
|
348
|
+
readonly min: 0;
|
|
349
|
+
readonly max: 1;
|
|
350
|
+
}, {
|
|
351
|
+
readonly path: "effects.pixelate";
|
|
352
|
+
readonly name: "--hf-color-grading-pixelate";
|
|
353
|
+
readonly min: 0;
|
|
354
|
+
readonly max: 1;
|
|
355
|
+
}, {
|
|
356
|
+
readonly path: "effects.ascii";
|
|
357
|
+
readonly name: "--hf-color-grading-ascii";
|
|
358
|
+
readonly min: 0;
|
|
359
|
+
readonly max: 1;
|
|
360
|
+
}, {
|
|
361
|
+
readonly path: "effects.dither";
|
|
362
|
+
readonly name: "--hf-color-grading-dither";
|
|
363
|
+
readonly min: 0;
|
|
364
|
+
readonly max: 1;
|
|
365
|
+
}];
|
|
366
|
+
};
|
|
367
|
+
export type HfColorGradingCapabilities = ReturnType<typeof getHfColorGradingCapabilities>;
|
|
61
368
|
export declare function resolveHfColorGradingVariables(raw: unknown, variables: HfColorGradingVariableMap): unknown;
|
|
62
369
|
export declare function normalizeHfColorGrading(raw: unknown): NormalizedHfColorGrading | null;
|
|
63
370
|
export declare function normalizeHfColorGradingWithVariables(raw: unknown, variables: HfColorGradingVariableMap): NormalizedHfColorGrading | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colorGrading.d.ts","sourceRoot":"","sources":["../src/colorGrading.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"colorGrading.d.ts","sourceRoot":"","sources":["../src/colorGrading.ts"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EAEzB,yBAAyB,EACzB,yBAAyB,EAG1B,MAAM,6CAA6C,CAAC;AAErD,eAAO,MAAM,qBAAqB,uBAAuB,CAAC;AAK1D,4EAA4E;AAC5E,eAAO,MAAM,gCAAgC,wCAAwC,CAAC;AACtF;;;;GAIG;AACH,eAAO,MAAM,mCAAmC,6BAA6B,CAAC;AAE9E,eAAO,MAAM,iCAAiC,wBAAwB,CAAC;AAEvE,eAAO,MAAM,4BAA4B,WAA4B,CAAC;AAEtE,MAAM,MAAM,sBAAsB,GAC9B,SAAS,GACT,eAAe,GACf,cAAc,GACd,WAAW,GACX,UAAU,GACV,YAAY,GACZ,iBAAiB,GACjB,cAAc,GACd,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,YAAY,GACZ,eAAe,GACf,mBAAmB,GACnB,cAAc,GACd,gBAAgB,GAChB,oBAAoB,GACpB,eAAe,CAAC;AAEpB,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC;AAejF,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAA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