mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
fix(sharp): add missing modulate type (#35253)
This commit is contained in:
parent
b60d757ef4
commit
93a90edde2
7
types/sharp/index.d.ts
vendored
7
types/sharp/index.d.ts
vendored
@ -434,6 +434,13 @@ declare namespace sharp {
|
||||
*/
|
||||
recomb(inputMatrix: Matrix3x3): Sharp;
|
||||
|
||||
/**
|
||||
* Transforms the image using brightness, saturation and hue rotation.
|
||||
* @param options describes the modulation
|
||||
* @returns A sharp instance that can be used to chain operations
|
||||
*/
|
||||
modulate(options?: { brightness?: number, saturation?: number, hue?: number }): Sharp;
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region Output functions
|
||||
|
||||
@ -244,4 +244,8 @@ sharp('input.gif')
|
||||
[0.2990, 0.5870, 0.1140],
|
||||
[0.2392, 0.4696, 0.0912],
|
||||
])
|
||||
|
||||
.modulate({ brightness: 2 })
|
||||
.modulate({ hue: 180 })
|
||||
.modulate({ brightness: 0.5, saturation: 0.5, hue: 90 })
|
||||
;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user