Skip to content

Commit fe706dc

Browse files
CafnioHackbrettXXX
andauthored
Fixed ImageCompression, ColorSpace, ShadingPatterShop export and enum values (#2933)
Co-authored-by: Lukas Holländer <[email protected]>
1 parent 2cc2ecf commit fe706dc

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

types/index.d.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -445,24 +445,24 @@ declare module "jspdf" {
445445
translate(x: number, y: number): void;
446446
}
447447

448-
enum ImageCompression {
449-
"NONE",
450-
"FAST",
451-
"MEDIUM",
452-
"SLOW"
448+
export enum ImageCompression {
449+
NONE = "NONE",
450+
FAST = "FAST",
451+
MEDIUM = "MEDIUM",
452+
SLOW = "SLOW"
453453
}
454-
enum ColorSpace {
455-
"DeviceRGB",
456-
"DeviceGray",
457-
"DeviceCMYK",
458-
"CalGray",
459-
"CalRGB",
460-
"Lab",
461-
"ICCBased",
462-
"Indexed",
463-
"Pattern",
464-
"Separation",
465-
"DeviceN"
454+
export enum ColorSpace {
455+
DEVICE_RGB = "DeviceRGB",
456+
DEVICE_GRAY = "DeviceGray",
457+
DEVICE_CMYK = "DeviceCMYK",
458+
CAL_GRAY = "CalGray",
459+
CAL_RGB = "CalRGB",
460+
LAB = "Lab",
461+
ICC_BASED = "ICCBased",
462+
INDEXED = "Indexed",
463+
PATTERN = "Pattern",
464+
SEPARATION = "Separation",
465+
DEVICE_N = "DeviceN"
466466
}
467467

468468
export interface ImageOptions {
@@ -1264,7 +1264,7 @@ declare module "jspdf" {
12641264
matrix?: Matrix;
12651265
}
12661266

1267-
interface ShadingPatterStop {
1267+
export interface ShadingPatterStop {
12681268
offset: number;
12691269
color: number[];
12701270
}

0 commit comments

Comments
 (0)