From fe706dc8cdc1901356003798626fa480cbb0ad30 Mon Sep 17 00:00:00 2001 From: Cafnio Date: Tue, 6 Oct 2020 09:35:15 +0100 Subject: [PATCH] Fixed ImageCompression, ColorSpace, ShadingPatterShop export and enum values (#2933) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Lukas Holländer --- types/index.d.ts | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index eff4a6d99..3c7328d1a 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -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 { @@ -1264,7 +1264,7 @@ declare module "jspdf" { matrix?: Matrix; } - interface ShadingPatterStop { + export interface ShadingPatterStop { offset: number; color: number[]; }