UNPKG

fast-png

Version:

PNG image decoder and encoder written entirely in JavaScript

35 lines (31 loc) 962 B
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 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 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 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];