formats.exposed/public/png/constants.js

100 lines
973 B
JavaScript
Raw Normal View History

// @ts-check
/** @enum {string} */
export const PngNodeType = [
"root",
"signature",
"unknownChunk",
"chunkLength",
"chunkType",
"chunkData",
"chunkCrc",
"ihdr",
"ihdrChunkData",
"ihdrWidth",
"ihdrHeight",
"ihdrBitDepth",
"ihdrColourType",
"ihdrCompressionMethod",
"ihdrFilterMethod",
"ihdrInterlaceMethod",
"plte",
"plteChunkData",
"plteColor",
"idat",
"idatChunkData",
"iend",
"iendChunkLength",
"trns",
"chrm",
"gama",
"iccp",
"sbit",
"srgb",
"cicp",
"text",
"textData",
"textKeyword",
"textNullSeparator",
"textString",
"ztxt",
"ztxtData",
"ztxtCompressionMethod",
"ztxtString",
"itxt",
"bkgd",
"hist",
"phys",
"splt",
"exif",
"time",
"actl",
"fctl",
"fdat",
"offs",
"pcal",
"scal",
"gifg",
"gifx",
"gift",
"ster",
"dsig",
"idot",
].reduce((result, id) => {
result[id] = id;
return result;
}, Object.create(null));