Skip to content

Commit

Permalink
Fixed ImageCompression, ColorSpace, ShadingPatterShop export and enum…
Browse files Browse the repository at this point in the history
… values (#2933)

Co-authored-by: Lukas Holländer <lukas.hollaender@yworks.com>
  • Loading branch information
Cafnio and HackbrettXXX committed Oct 6, 2020
1 parent 2cc2ecf commit fe706dc
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions types/index.d.ts
Expand Up @@ -445,24 +445,24 @@ declare module "jspdf" {
translate(x: number, y: number): void;
}

enum ImageCompression {
"NONE",
"FAST",
"MEDIUM",
"SLOW"
export enum ImageCompression {
NONE = "NONE",
FAST = "FAST",
MEDIUM = "MEDIUM",
SLOW = "SLOW"
}
enum ColorSpace {
"DeviceRGB",
"DeviceGray",
"DeviceCMYK",
"CalGray",
"CalRGB",
"Lab",
"ICCBased",
"Indexed",
"Pattern",
"Separation",
"DeviceN"
export enum ColorSpace {
DEVICE_RGB = "DeviceRGB",
DEVICE_GRAY = "DeviceGray",
DEVICE_CMYK = "DeviceCMYK",
CAL_GRAY = "CalGray",
CAL_RGB = "CalRGB",
LAB = "Lab",
ICC_BASED = "ICCBased",
INDEXED = "Indexed",
PATTERN = "Pattern",
SEPARATION = "Separation",
DEVICE_N = "DeviceN"
}

export interface ImageOptions {
Expand Down Expand Up @@ -1264,7 +1264,7 @@ declare module "jspdf" {
matrix?: Matrix;
}

interface ShadingPatterStop {
export interface ShadingPatterStop {
offset: number;
color: number[];
}
Expand Down

0 comments on commit fe706dc

Please sign in to comment.