-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
55 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,34 @@ | ||
export enum ColorType { | ||
UNKNOWN = -1, | ||
GREYSCALE = 0, | ||
TRUECOLOUR = 2, | ||
INDEXED_COLOUR = 3, | ||
GREYSCALE_ALPHA = 4, | ||
TRUECOLOUR_ALPHA = 6, | ||
} | ||
export const ColorType = { | ||
UNKNOWN: -1, | ||
GREYSCALE: 0, | ||
TRUECOLOUR: 2, | ||
INDEXED_COLOUR: 3, | ||
GREYSCALE_ALPHA: 4, | ||
TRUECOLOUR_ALPHA: 6, | ||
} as const; | ||
// eslint-disable-next-line @typescript-eslint/no-redeclare | ||
export type ColorType = (typeof ColorType)[keyof typeof ColorType]; | ||
|
||
export enum CompressionMethod { | ||
UNKNOWN = -1, | ||
DEFLATE = 0, | ||
} | ||
export const CompressionMethod = { | ||
UNKNOWN: -1, | ||
DEFLATE: 0, | ||
} as const; | ||
// eslint-disable-next-line @typescript-eslint/no-redeclare | ||
export type CompressionMethod = | ||
(typeof CompressionMethod)[keyof typeof CompressionMethod]; | ||
|
||
export enum FilterMethod { | ||
UNKNOWN = -1, | ||
ADAPTIVE = 0, | ||
} | ||
export const FilterMethod = { | ||
UNKNOWN: -1, | ||
ADAPTIVE: 0, | ||
} as const; | ||
// eslint-disable-next-line @typescript-eslint/no-redeclare | ||
export type FilterMethod = (typeof FilterMethod)[keyof typeof FilterMethod]; | ||
|
||
export enum InterlaceMethod { | ||
UNKNOWN = -1, | ||
NO_INTERLACE = 0, | ||
ADAM7 = 1, | ||
} | ||
export const InterlaceMethod = { | ||
UNKNOWN: -1, | ||
NO_INTERLACE: 0, | ||
ADAM7: 1, | ||
} as const; | ||
// eslint-disable-next-line @typescript-eslint/no-redeclare | ||
export type InterlaceMethod = | ||
(typeof InterlaceMethod)[keyof typeof InterlaceMethod]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters