feat(index.d.ts): erweitere Bildverarbeitungsoptionen um Resampling, Anker, und Dimensionseinsparungen
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
22
index.d.ts
vendored
22
index.d.ts
vendored
@@ -465,10 +465,26 @@ declare global {
|
||||
sourceFile: string,
|
||||
targetFile: string,
|
||||
filters: {
|
||||
fit?: boolean
|
||||
fill?: boolean
|
||||
width?: number
|
||||
height?: number
|
||||
fit?: boolean
|
||||
fill?: boolean
|
||||
resampling?: "nearestNeighbor"
|
||||
| "hermite"
|
||||
| "linear"
|
||||
| "catmullRom"
|
||||
| "lanczos"
|
||||
| "box"
|
||||
| "mitchellNetravili"
|
||||
| "bSpline"
|
||||
| "gaussian"
|
||||
| "bartlett"
|
||||
| "hann"
|
||||
| "hamming"
|
||||
| "blackman"
|
||||
| "welch"
|
||||
| "cosine"
|
||||
anchor?: "center" | "topLeft" | "top" | "topRight" | "left" | "right" | "bottomLeft" | "bottom" | "bottomRight"
|
||||
brightness?: number
|
||||
saturation?: number
|
||||
contrast?: number
|
||||
@@ -479,6 +495,8 @@ declare global {
|
||||
grayscale?: boolean
|
||||
quality?: number
|
||||
lossless?: boolean
|
||||
skipLargerDimensions?: boolean
|
||||
skipLargerFilesize?: boolean
|
||||
outputType?: "jpg" | "jpeg" | "png" | "webp"
|
||||
}[]
|
||||
): void
|
||||
|
||||
Reference in New Issue
Block a user