From 6fb9cdb16ffff9e4e42e1d96ab7de58a12a9c25a Mon Sep 17 00:00:00 2001 From: Cafnio Date: Fri, 25 Sep 2020 19:05:59 +0100 Subject: [PATCH 1/2] Fixed ImageCompression, ColorSpace, ShadingPatterShop export Those 3 structures are now exposed to be used. --- types/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 93d62218e..8f5324c4f 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -445,13 +445,13 @@ declare module "jspdf" { translate(x: number, y: number): void; } - enum ImageCompression { + export enum ImageCompression { "NONE", "FAST", "MEDIUM", "SLOW" } - enum ColorSpace { + export enum ColorSpace { "DeviceRGB", "DeviceGray", "DeviceCMYK", @@ -1286,7 +1286,7 @@ declare module "jspdf" { matrix?: Matrix; } - interface ShadingPatterStop { + export interface ShadingPatterStop { offset: number; color: number[]; } From 022755493585d85e3c98cd28ade47762ad22c714 Mon Sep 17 00:00:00 2001 From: Cafnio Date: Mon, 5 Oct 2020 12:43:49 +0100 Subject: [PATCH 2/2] Update index.d.ts --- types/index.d.ts | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 8f5324c4f..8456732ce 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -446,23 +446,23 @@ declare module "jspdf" { } export enum ImageCompression { - "NONE", - "FAST", - "MEDIUM", - "SLOW" + NONE = "NONE", + FAST = "FAST", + MEDIUM = "MEDIUM", + SLOW = "SLOW" } export enum ColorSpace { - "DeviceRGB", - "DeviceGray", - "DeviceCMYK", - "CalGray", - "CalRGB", - "Lab", - "ICCBased", - "Indexed", - "Pattern", - "Separation", - "DeviceN" + 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 {