File tree 3 files changed +17
-21
lines changed
3 files changed +17
-21
lines changed Original file line number Diff line number Diff line change @@ -445,25 +445,19 @@ declare module "jspdf" {
445
445
translate ( x : number , y : number ) : void ;
446
446
}
447
447
448
- export enum ImageCompression {
449
- NONE = "NONE" ,
450
- FAST = "FAST" ,
451
- MEDIUM = "MEDIUM" ,
452
- SLOW = "SLOW"
453
- }
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"
466
- }
448
+ export type ImageCompression = "NONE" | "FAST" | "MEDIUM" | "SLOW" ;
449
+ export type ColorSpace =
450
+ | "DeviceRGB"
451
+ | "DeviceGray"
452
+ | "DeviceCMYK"
453
+ | "CalGray"
454
+ | "CalRGB"
455
+ | "Lab"
456
+ | "ICCBased"
457
+ | "Indexed"
458
+ | "Pattern"
459
+ | "Separation"
460
+ | "DeviceN" ;
467
461
468
462
export interface ImageOptions {
469
463
imageData : string | HTMLImageElement | HTMLCanvasElement | Uint8Array ;
Original file line number Diff line number Diff line change @@ -586,7 +586,8 @@ function test_addImage() {
586
586
x : 0 ,
587
587
y : 0 ,
588
588
width : 100 ,
589
- height : 100
589
+ height : 100 ,
590
+ compression : "FAST"
590
591
} ) ;
591
592
}
592
593
Original file line number Diff line number Diff line change @@ -585,7 +585,8 @@ function test_addImage() {
585
585
x : 0 ,
586
586
y : 0 ,
587
587
width : 100 ,
588
- height : 100
588
+ height : 100 ,
589
+ compression : "FAST"
589
590
} ) ;
590
591
}
591
592
You can’t perform that action at this time.
0 commit comments