UNPKG

fast-png

Version:

PNG image decoder and encoder written entirely in JavaScript

50 lines (44 loc) 1.39 kB
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]; export const DisposeOpType = { NONE: 0, BACKGROUND: 1, PREVIOUS: 2, } as const; // eslint-disable-next-line @typescript-eslint/no-redeclare export type DisposeOpType = (typeof DisposeOpType)[keyof typeof DisposeOpType]; export const BlendOpType = { SOURCE: 0, OVER: 1, } as const; // eslint-disable-next-line @typescript-eslint/no-redeclare export type BlendOpType = (typeof BlendOpType)[keyof typeof BlendOpType];